Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Includes search for managed venues and stats from managed venues #14

Open
wants to merge 78 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
60db101
added explore to venues (but does not return objects yet)
pierrevalade Sep 14, 2011
4ccdc67
NEW methods for the NEW List API
pierrevalade Sep 17, 2011
c543d5b
forgot some files... oups
pierrevalade Sep 17, 2011
e5371c2
added comments and photos to the checkin object
pierrevalade Sep 17, 2011
afbc629
added tips search
pierrevalade Sep 17, 2011
631073d
return an empty array is better than returning a nil
pierrevalade Sep 17, 2011
24aec8a
adding category.id
pierrevalade Sep 17, 2011
5c90cb6
Added search for managed venues
mnyon-grandkru Oct 20, 2011
ea15480
Added VenueProxy#managed_stats
mnyon-grandkru Oct 20, 2011
357345c
moved VenueProxy#manged_stats to Venue#managed_stats
mnyon-grandkru Oct 20, 2011
9ccaf59
Added Venue Stats
mnyon-grandkru Oct 20, 2011
e767e3b
Updated version
mnyon-grandkru Oct 20, 2011
be8c90d
Fixed class resolution for Foursquare::VenueStats and updated gemspec
mnyon-grandkru Oct 20, 2011
a230baa
Added require statement
mnyon-grandkru Oct 20, 2011
db942a4
Added email to gemspec
mnyon-grandkru Oct 21, 2011
a407aa0
submodule test
roomnoise Oct 21, 2011
44ec01c
submodule test 2
roomnoise Oct 21, 2011
0df017b
added checkin.comments? to know if a checkin has some comments (witho…
pierrevalade Oct 22, 2011
b259502
WARNING: new venue search format / WILL BREAK EXISTING APPS
pierrevalade Oct 22, 2011
0958ef2
add icon_url to Category
pierrevalade Oct 22, 2011
9ac2f83
Added Versioning for the entire API
pierrevalade Oct 22, 2011
65910f7
added ability to set date range for managed venue stats
roomnoise Oct 25, 2011
51496b6
new venue search to support updated 4sq API
roomnoise Oct 26, 2011
f3a7688
added friends_count to User
pierrevalade Nov 1, 2011
8f206f3
tip search/find updates
roomnoise Nov 1, 2011
8912611
venue options update
roomnoise Nov 1, 2011
7936416
added a note about issues with Heroku and typhoeus GEM
pierrevalade Nov 5, 2011
e3091ea
spec added
Pasta Nov 7, 2011
aa09c57
forgot stub
Pasta Nov 7, 2011
ed595ec
Updated README
mnyon-grandkru Nov 12, 2011
23798ae
Merged readme with updated search
mnyon-grandkru Nov 25, 2011
d3ee674
cleaning the tests, added new tests, changed gem version for next maj…
Nov 30, 2011
73ce2fb
search method cleanup and version integration
roomnoise Dec 11, 2011
08d9e26
Added Author
mnyon-grandkru Dec 19, 2011
cd07429
Added Bundler Gemfile
mnyon-grandkru Dec 19, 2011
d314cc4
Integrated specs from pierrevalade's quimby branch. Has some addition…
mnyon-grandkru Dec 19, 2011
1752f24
list functionality
roomnoise Jan 4, 2012
5a8944b
list proxy support
roomnoise Jan 4, 2012
2677b3e
Merge branch 'master' of github.com:locationstar/quimby
roomnoise Jan 4, 2012
7bfa83d
readme updates
roomnoise Jan 4, 2012
dd66a04
calls list and listproxy
roomnoise Jan 10, 2012
57045d8
list item deletion method
roomnoise Jan 11, 2012
5c0f1c2
Merge branch 'spec_integration'
roomnoise Jan 11, 2012
d99da95
syntax fix for List
roomnoise Jan 11, 2012
de36c70
gemspec updates
roomnoise Jan 11, 2012
3149269
escape the text param for Tips
roomnoise Jan 16, 2012
df551be
venue proxy updaet
Feb 15, 2012
8596c16
Add a method to upload a photo. Photo requires a :tip_id, or other o…
Mar 25, 2012
5aafba0
Merge pull request #1 from mdemanett/master
Apr 1, 2012
d89e188
Changed Autotest to use version without ZenTest dependency
mnyon-grandkru Apr 2, 2012
5c7d7ed
Added coverage to main branch
mnyon-grandkru Apr 2, 2012
e7345f0
Updated gemspec
mnyon-grandkru May 19, 2012
296c479
Fixed syntax error
mnyon-grandkru May 20, 2012
0ba2b7f
Added simplecov for Ruby 1.9
mnyon-grandkru May 20, 2012
f4f1938
Moved spec directories
mnyon-grandkru May 20, 2012
c1304b6
Updated to 0.5.5
mnyon-grandkru May 20, 2012
d4dbb18
removed version params in get/post since is also in merge_auth_params
May 25, 2012
acca8cd
Merge branch 'master' of github.com:locationstar/quimby
May 25, 2012
fbdbee7
removed duplicate followers method and added followers_count
Jun 12, 2012
4404f91
added method for a user to mark a list item as done
Jun 12, 2012
0eb6a38
added follwer count method
Jun 12, 2012
b874fb8
added near to acceptable param list
Jun 12, 2012
d456e40
added url method
Nov 13, 2012
e68002d
added url method
Nov 13, 2012
07b6050
Add :sw to the minimum search parameter requirements.
janosrusiczki Apr 12, 2013
2431429
Merge pull request #2 from kitsched/master
roomnoise Apr 25, 2013
0ab56ea
WIP ruby bug
mnyon-grandkru May 15, 2013
60688e2
Added Rake task
mnyon-grandkru Jul 19, 2013
6ca1aea
Added rake spec task
mnyon-grandkru Sep 17, 2013
cc2e30f
Exchanged Metrical for MetricFu
mnyon-grandkru Dec 8, 2013
d293d88
add venuehistory, remove whitespace
bshyong Dec 11, 2013
e54191c
Adding Travis support
mnyon-grandkru Dec 11, 2013
06698b5
Added rake to gemfile for Travis
mnyon-grandkru Dec 11, 2013
d3f5acd
Updated development dependency syntax
mnyon-grandkru Dec 11, 2013
f859413
Removed rake from Gemfile
mnyon-grandkru Dec 11, 2013
4d2e2c4
Added Rakefile
mnyon-grandkru Dec 11, 2013
e2df23a
Merge pull request #3 from bshyong/master
mnyon-grandkru Dec 11, 2013
a82d4d2
Removed plymouth issue due to pry-explorer
Apr 13, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test.rb
test.rb
coverage
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format documentation
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: ruby
rvm:
- 2.0.0
- 1.9.3
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'http://rubygems.org'
gemspec
151 changes: 151 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
PATH
remote: .
specs:
quimby (0.5.5)
hashie
json
multipart-post
typhoeus

GEM
remote: http://rubygems.org/
specs:
activesupport (4.1.0)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arrayfields (4.9.2)
autotest-standalone (4.5.11)
awesome_print (1.2.0)
cane (2.6.1)
parallel
chronic (0.10.2)
churn (0.0.35)
chronic (>= 0.2.3)
hirb
json_pure
main
rest-client (>= 1.6.0)
ruby_parser (~> 3.0)
sexp_processor (~> 4.1)
code_analyzer (0.4.5)
sexp_processor
code_metrics (0.1.3)
coderay (1.0.9)
colored (1.2)
diff-lcs (1.2.4)
erubis (2.7.0)
ethon (0.6.1)
ffi (>= 1.3.0)
mime-types (~> 1.18)
fattr (2.2.2)
ffi (1.9.0)
flay (2.4.0)
ruby_parser (~> 3.0)
sexp_processor (~> 4.0)
flog (4.2.0)
ruby_parser (~> 3.1, > 3.1.0)
sexp_processor (~> 4.4)
hashie (2.0.5)
hirb (0.7.1)
i18n (0.6.9)
json (1.8.0)
json_pure (1.8.1)
main (6.0.0)
arrayfields (>= 4.7.4)
chronic (>= 0.6.2)
fattr (>= 2.2.0)
map (>= 5.1.0)
map (6.5.3)
method_source (0.8.2)
metric_fu (4.10.0)
cane (~> 2.5, >= 2.5.2)
churn (~> 0.0.35)
code_metrics (~> 0.1)
coderay
flay (~> 2.1, >= 2.0.1)
flog (~> 4.1, >= 4.1.1)
metric_fu-Saikuro (~> 1.1, >= 1.1.3)
multi_json
rails_best_practices (~> 1.14, >= 1.14.3)
redcard
reek (~> 1.3, >= 1.3.4)
roodi (~> 3.1)
metric_fu-Saikuro (1.1.3)
mime-types (1.25)
minitest (5.3.2)
multi_json (1.9.2)
multipart-post (1.2.0)
parallel (1.0.0)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
pry-nav (0.2.3)
pry (~> 0.9.10)
pry-remote (0.1.7)
pry (~> 0.9)
slop (~> 3.0)
rails_best_practices (1.15.2)
activesupport
awesome_print
code_analyzer (>= 0.4.3)
colored
erubis
i18n
require_all
ruby-progressbar
rainbow (2.0.0)
rake (10.2.2)
redcard (1.1.0)
reek (1.3.7)
rainbow
ruby2ruby (~> 2.0.8)
ruby_parser (~> 3.3)
sexp_processor
require_all (1.3.2)
rest-client (1.6.7)
mime-types (>= 1.16)
roodi (3.3.1)
ruby_parser (~> 3.2, >= 3.2.2)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.5)
rspec-expectations (2.14.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.3)
ruby-progressbar (1.4.2)
ruby2ruby (2.0.8)
ruby_parser (~> 3.1)
sexp_processor (~> 4.0)
ruby_parser (3.5.0)
sexp_processor (~> 4.1)
sexp_processor (4.4.3)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.4.6)
thread_safe (0.3.3)
typhoeus (0.6.5)
ethon (~> 0.6.1)
tzinfo (1.1.0)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
autotest-standalone
metric_fu
pry
pry-nav
pry-remote
quimby!
rake
rspec
simplecov
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# This is a locationstar fork of the Quimby plugin. It has a couple of features not in the Groupme fork, including:

1. Searching for managed venues
2. Retrieving stats from managed venues
3. Support for List and ListItem management

and there's more on the menu.


## TODOS (Including the TODOS from the Quimby)

* Proper specs for the gem.
* Documentation for new features.
* Creating checkins works, but it should really return notifications.
* If the checkin can't be created, it should return errors.

# Quimby

### Formerly named after a pop star whose lawyers decided they didn't like us using his name.
Expand All @@ -9,8 +25,10 @@ It's a Foursquare API wrapper. It uses objects instead of hashes, and tries to b
Install it as a gem (in your `Gemfile`) and its dependencies:

gem "json"
gem "typhoeus"
gem "typhoeus", :version => "0.2.2"
gem "quimby"

Note that some users have reported problems with Heroku and gem "typhoeus", so specifying version "0.2.2" should help resolve the issues.

## Usage

Expand Down Expand Up @@ -96,6 +114,17 @@ You can also search venues:
The `:ll` option is required for venue searches. You can also feel free to pass any of the other
available Foursquare API options, as specified in the docs.

### Lists

We can get all the lists a user has created, edited, ... see [https://developer.foursquare.com/docs/users/lists.html](https://developer.foursquare.com/docs/users/lists.html) for more information.

user.lists("created")
user.lists("edited")

To get a specific list, use:

foursquare.lists.find("LIST_ID")

### Logging

If you want to see what's going on up in there, you can set `Foursquare.verbose` to `true`
Expand All @@ -114,4 +143,4 @@ if you want to use your own logger, and you're kind of a jerk like me, you can d

* Creating checkins works, but it should really return notifications. Also, if the
checkin can't be created, it should return errors.
* I don't know, so much other stuff.
* I don't know, so much other stuff.
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec
13 changes: 12 additions & 1 deletion lib/foursquare.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,28 @@
require "json"
require "cgi"
require "foursquare/base"
require "foursquare/category"
require "foursquare/checkin_proxy"
require "foursquare/checkin"
require "foursquare/user_proxy"
require "foursquare/user"
require "foursquare/venue_proxy"
require "foursquare/venue"
require "foursquare/venue_stats"
require "foursquare/explore_result"
require "foursquare/explore_item"
require "foursquare/icon"
require "foursquare/settings"
require "foursquare/tip"
require "foursquare/tip_proxy"
require "foursquare/photo"
require "foursquare/photo_proxy"
require "foursquare/location"
require "foursquare/category"
require "foursquare/list"
require "foursquare/list_item"
require "foursquare/list_proxy"
require "foursquare/comment"


module Foursquare
class Error < StandardError ; end
Expand Down
Loading