gowalla 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +25 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +43 -0
- data/LICENSE +20 -0
- data/README.md +96 -0
- data/Rakefile +14 -0
- data/changelog.md +33 -0
- data/gowalla.gemspec +30 -0
- data/lib/gowalla.rb +26 -22
- data/lib/gowalla/checkins.rb +31 -0
- data/lib/gowalla/client.rb +22 -176
- data/lib/gowalla/flags.rb +42 -0
- data/lib/gowalla/items.rb +22 -0
- data/lib/gowalla/spots.rb +67 -0
- data/lib/gowalla/trips.rb +27 -0
- data/lib/gowalla/users.rb +91 -0
- data/lib/gowalla/version.rb +3 -0
- data/test/checkins_test.rb +18 -0
- data/test/client_test.rb +72 -0
- data/test/fixtures/categories.json +1826 -0
- data/test/fixtures/category.json +8 -0
- data/test/fixtures/challenges.json +191 -0
- data/test/fixtures/checkin.json +21 -0
- data/test/fixtures/events.json +185 -0
- data/test/fixtures/find_spots.json +620 -0
- data/test/fixtures/find_trips.json +695 -0
- data/test/fixtures/flag.json +23 -0
- data/test/fixtures/flags.json +31 -0
- data/test/fixtures/friend_requests.json +21 -0
- data/test/fixtures/friends.json +3 -0
- data/test/fixtures/friends_recent.json +243 -0
- data/test/fixtures/item.json +8 -0
- data/test/fixtures/item_events.json +35 -0
- data/test/fixtures/items.json +100 -0
- data/test/fixtures/me.json +49 -0
- data/test/fixtures/missing_items.json +1 -0
- data/test/fixtures/new_spot.json +49 -0
- data/test/fixtures/photos.json +88 -0
- data/test/fixtures/pins.json +81 -0
- data/test/fixtures/potential_twitter_friends.json +2090 -0
- data/test/fixtures/spot.json +251 -0
- data/test/fixtures/spots.json +557 -0
- data/test/fixtures/spots_by_category.json +620 -0
- data/test/fixtures/spots_urls.json +26 -0
- data/test/fixtures/stamps.json +284 -0
- data/test/fixtures/top_spots.json +64 -0
- data/test/fixtures/trip.json +22 -0
- data/test/fixtures/trips.json +881 -0
- data/test/fixtures/user.json +43 -0
- data/test/fixtures/users.json +46 -0
- data/test/fixtures/vaulted_items.json +12 -0
- data/test/fixtures/visited_spots.json +1 -0
- data/test/flags_test.rb +46 -0
- data/test/helper.rb +6 -6
- data/test/items_test.rb +26 -0
- data/test/spots_test.rb +70 -0
- data/test/trips_test.rb +25 -0
- data/test/users_test.rb +83 -0
- metadata +177 -29
- data/test/gowalla_test.rb +0 -214
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"bookmarked_spots_url": "/spots?bookmarks_user_id=1",
|
3
|
+
"activity_url": "/users/1/events",
|
4
|
+
"bio": "CTO & co-founder of Gowalla. Ruby/Cocoa/JavaScript developer. Game designer. Author. Indoorsman.",
|
5
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/1-standard.jpg?1263521844",
|
6
|
+
"pins_url": "/users/1/pins",
|
7
|
+
"trips_count": 3,
|
8
|
+
"bookmarked_spots_count": 2,
|
9
|
+
"friends_count": 444,
|
10
|
+
"trips_url": "/users/1/trips",
|
11
|
+
"items_url": "/users/1/items",
|
12
|
+
"_bookmarked_spots_urls_url": "/users/1/bookmarked_spots_urls",
|
13
|
+
"twitter_username": "",
|
14
|
+
"last_checkins": [
|
15
|
+
{
|
16
|
+
"type": "checkin",
|
17
|
+
"created_at": "2010-03-06T21:15:22+00:00",
|
18
|
+
"message": "Trying the new BBQ trailer. ",
|
19
|
+
"url": "/checkins/4342021",
|
20
|
+
"spot": {
|
21
|
+
"image_url": "http://static.gowalla.com/categories/17-standard.png",
|
22
|
+
"name": "Muck-N-Dave's Texas BBQ",
|
23
|
+
"url": "/spots/646423"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"pins_count": 21,
|
28
|
+
"stamps_count": 506,
|
29
|
+
"facebook_id": 505421674,
|
30
|
+
"photos_url": "/users/1/photos",
|
31
|
+
"top_spots_url": "/users/1/top_spots",
|
32
|
+
"add_friend_url": "/friendships/request?user_id=1",
|
33
|
+
"last_name": "Raymond",
|
34
|
+
"url": "/users/1",
|
35
|
+
"photos_count": 24,
|
36
|
+
"friends_url": "/users/1/friends",
|
37
|
+
"website": "",
|
38
|
+
"hometown": "Austin, Texas",
|
39
|
+
"first_name": "Scott",
|
40
|
+
"stamps_url": "/users/1/stamps",
|
41
|
+
"items_count": 8,
|
42
|
+
"_is_friend": false
|
43
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"users": [
|
3
|
+
{
|
4
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/330493-standard.jpg?1277914145?1",
|
5
|
+
"first_name": "Chalkbot",
|
6
|
+
"last_name": "",
|
7
|
+
"url": "/users/330493",
|
8
|
+
"hometown": "Pittsburgh, PA"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/309765-standard.jpg?1276496139?1",
|
12
|
+
"first_name": "Red Bull",
|
13
|
+
"last_name": "",
|
14
|
+
"url": "/users/309765",
|
15
|
+
"hometown": "Everywhere you want to be"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/343958-standard.jpg?1278684129?1",
|
19
|
+
"first_name": "CNNMoney",
|
20
|
+
"last_name": " ",
|
21
|
+
"url": "/users/343958",
|
22
|
+
"hometown": "Best Places To Live"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/25096-standard.jpg?1259001300?1",
|
26
|
+
"first_name": "Tyler",
|
27
|
+
"last_name": "$chultz",
|
28
|
+
"url": "/users/25096",
|
29
|
+
"hometown": "San Francisco, CA"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/26700-standard.jpg?1259180481?1",
|
33
|
+
"first_name": "whurley",
|
34
|
+
"last_name": "*",
|
35
|
+
"url": "/users/26700",
|
36
|
+
"hometown": "Austin, Texas"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"image_url": "http://s3.amazonaws.com/static.gowalla.com/users/135506-standard.jpg?1267714751?1",
|
40
|
+
"first_name": "Lawrence",
|
41
|
+
"last_name": ".com",
|
42
|
+
"url": "/users/135506",
|
43
|
+
"hometown": "Lawrence, Kansas"
|
44
|
+
}
|
45
|
+
]
|
46
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"image_url": "http://static.gowalla.com/kinds/1661-799838260b4873e99d07fd9c1fe64757.png",
|
4
|
+
"drop_url": "/items/1501734/drop",
|
5
|
+
"name": "Football Helmet",
|
6
|
+
"activity_url": "/items/1501734/events",
|
7
|
+
"determiner": "a",
|
8
|
+
"issue_number": 9932,
|
9
|
+
"url": "/items/1501734",
|
10
|
+
"pick_up_url": "/items/1501734/pick_up"
|
11
|
+
}]
|
12
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
["/spots/49747", "/spots/136029", "/spots/142525", "/spots/11641", "/spots/43464", "/spots/18320", "/spots/455129", "/spots/59817", "/spots/78953", "/spots/261180", "/spots/284084", "/spots/164052", "/spots/13354", "/spots/366585", "/spots/11300"]
|
data/test/flags_test.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class FlagsTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "When using the Gowalla API and working with flags" do
|
6
|
+
setup do
|
7
|
+
@client = gowalla_test_client
|
8
|
+
end
|
9
|
+
|
10
|
+
should "retrieve a list of flags" do
|
11
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/flags", "flags.json")
|
12
|
+
flags = @client.list_flags
|
13
|
+
flags.first.spot.name.should == 'Wild Gowallaby #1'
|
14
|
+
flags.first.user.url.should == '/users/340897'
|
15
|
+
flags.first[:type].should == 'invalid'
|
16
|
+
flags.first.status.should == 'open'
|
17
|
+
end
|
18
|
+
|
19
|
+
should "retrieve information about a specific flag" do
|
20
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/flags/1", "flag.json")
|
21
|
+
flag = @client.flag(1)
|
22
|
+
flag.spot.name.should == 'Wild Gowallaby #1'
|
23
|
+
flag.user.url.should == '/users/340897'
|
24
|
+
flag[:type].should == 'invalid'
|
25
|
+
flag.status.should == 'open'
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
should "retrieve flags associated with that spot" do
|
30
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/spots/1/flags", "flags.json")
|
31
|
+
flags = @client.spot_flags(1)
|
32
|
+
flags.first.spot.name.should == 'Wild Gowallaby #1'
|
33
|
+
flags.first.user.url.should == '/users/340897'
|
34
|
+
flags.first[:type].should == 'invalid'
|
35
|
+
flags.first.status.should == 'open'
|
36
|
+
end
|
37
|
+
|
38
|
+
should "set a flag on a specific spot" do
|
39
|
+
url = "http://pengwynn:0U812@api.gowalla.com/spots/1/flags/invalid"
|
40
|
+
FakeWeb.register_uri(:post, url, :body => '{"result": "flag created"}')
|
41
|
+
response = @client.flag_spot(1, 'invalid', 'my problem description')
|
42
|
+
response.result.should == 'flag created'
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
data/test/helper.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'pathname'
|
3
1
|
require 'rubygems'
|
4
|
-
|
5
|
-
|
2
|
+
require 'test/unit'
|
6
3
|
require 'shoulda'
|
7
4
|
require 'matchy'
|
8
5
|
require 'fakeweb'
|
9
|
-
|
10
6
|
begin require 'redgreen'; rescue LoadError; end
|
11
7
|
|
12
8
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
@@ -18,6 +14,10 @@ FakeWeb.allow_net_connect = false
|
|
18
14
|
class Test::Unit::TestCase
|
19
15
|
end
|
20
16
|
|
17
|
+
def gowalla_test_client
|
18
|
+
Gowalla::Client.new(:username => 'pengwynn', :password => '0U812', :api_key => 'gowallawallabingbang')
|
19
|
+
end
|
20
|
+
|
21
21
|
def fixture_file(filename)
|
22
22
|
return '' if filename == ''
|
23
23
|
file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
|
@@ -30,7 +30,7 @@ end
|
|
30
30
|
|
31
31
|
def stub_get(url, filename, options={})
|
32
32
|
opts = {:body => fixture_file(filename)}.merge(options)
|
33
|
-
|
33
|
+
|
34
34
|
FakeWeb.register_uri(:get, gowalla_url(url), opts)
|
35
35
|
end
|
36
36
|
|
data/test/items_test.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class ItemsTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "When using the Gowalla API and working with items" do
|
6
|
+
setup do
|
7
|
+
@client = gowalla_test_client
|
8
|
+
end
|
9
|
+
|
10
|
+
should "retrieve information about a specific item" do
|
11
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/items/607583', 'item.json')
|
12
|
+
item = @client.item(607583)
|
13
|
+
item.issue_number.should == 13998
|
14
|
+
item.name.should == 'Sweets'
|
15
|
+
item.determiner.should == 'some'
|
16
|
+
end
|
17
|
+
|
18
|
+
should "retrieve events associated with a specific item" do
|
19
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/items/607583/events', 'item_events.json')
|
20
|
+
events = @client.item_events(607583)
|
21
|
+
events.first.spot.name = 'Jerusalem Bakery'
|
22
|
+
events.first.user.first_name = 'Scott'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/test/spots_test.rb
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class SpotsTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "When using the Gowalla API and working with Spots" do
|
6
|
+
setup do
|
7
|
+
@client = gowalla_test_client
|
8
|
+
end
|
9
|
+
|
10
|
+
should "Retrieve a list of spots within a specified distance of a location" do
|
11
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/spots?lat=%2B33.237593417&lng=-96.960559033&radius=50", "spots.json")
|
12
|
+
spots = @client.list_spots(:lat => 33.237593417, :lng => -96.960559033, :radius => 50)
|
13
|
+
spots.first.name.should == 'Gnomb Bar'
|
14
|
+
spots.first.radius_meters.should == 50
|
15
|
+
end
|
16
|
+
|
17
|
+
should "Retrieve a list of spots within a specified bounds" do
|
18
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/spots?sw=%2839.25565142103586%2C%20-8.717308044433594%29&nw=%2839.31411296530539%2C%20-8.490715026855469%29", "spots.json")
|
19
|
+
spots = @client.list_spots(:sw => "(39.25565142103586, -8.717308044433594)", :nw => "(39.31411296530539, -8.490715026855469)")
|
20
|
+
spots.first.name.should == 'Gnomb Bar'
|
21
|
+
end
|
22
|
+
|
23
|
+
should "Retrieve information about a specific spot" do
|
24
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/spots/18568', 'spot.json')
|
25
|
+
spot = @client.spot(18568)
|
26
|
+
spot.name.should == "Wahoo's"
|
27
|
+
spot.twitter_username.should == 'Wahoos512'
|
28
|
+
spot.spot_categories.first.name.should == 'Mexican'
|
29
|
+
end
|
30
|
+
|
31
|
+
should "retrieve a list of check-ins at a particular spot. Shows only the activity that is visible to a given user" do
|
32
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/spots/452593/events', 'events.json')
|
33
|
+
events = @client.spot_events(452593)
|
34
|
+
events.first[:type].should == 'checkin'
|
35
|
+
events.first.user.last_name.should == 'Mack'
|
36
|
+
end
|
37
|
+
|
38
|
+
should "retrieve a list of items available at a particular spot" do
|
39
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/spots/18568/items', 'items.json')
|
40
|
+
items = @client.spot_items(18568)
|
41
|
+
items.first.issue_number.should == 27868
|
42
|
+
items.first.name.should == 'Bowl of Noodles'
|
43
|
+
end
|
44
|
+
|
45
|
+
should "lists all spot categories" do
|
46
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/categories", "categories.json")
|
47
|
+
categories = @client.categories
|
48
|
+
categories.size.should == 9
|
49
|
+
categories.first.name.should == 'Architecture & Buildings'
|
50
|
+
categories.first.description.should == 'Bridge, Corporate, Home, Church, etc.'
|
51
|
+
categories.first.spot_categories.size.should == 15
|
52
|
+
categories.first.spot_categories.first.name.should == 'Bridge'
|
53
|
+
end
|
54
|
+
|
55
|
+
should "retrieve information about a specific category" do
|
56
|
+
stub_get("http://pengwynn:0U812@api.gowalla.com/categories/1", "category.json")
|
57
|
+
category = @client.category(1)
|
58
|
+
category.name.should == 'Coffee Shop'
|
59
|
+
end
|
60
|
+
|
61
|
+
should "retrieve photos taken at a spot" do
|
62
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/spots/18568/photos', 'photos.json')
|
63
|
+
photos = @client.spot_photos(18568)
|
64
|
+
#photos.first.type.should == 'photo'
|
65
|
+
photos.first.photo_urls.square_50.should == 'http://static.gowalla.com/photos/912078_square_50.jpg'
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
data/test/trips_test.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TripsTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "When using the Gowalla API and working with trips" do
|
6
|
+
setup do
|
7
|
+
@client = gowalla_test_client
|
8
|
+
end
|
9
|
+
|
10
|
+
should "retrieve a list of trips" do
|
11
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/trips', 'trips.json')
|
12
|
+
trips = @client.trips
|
13
|
+
trips.first.name.should == 'London Pub Crawl'
|
14
|
+
trips.first.spots.first.url.should == '/spots/164009'
|
15
|
+
end
|
16
|
+
|
17
|
+
should "retrieve information about a specific trip" do
|
18
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/trips/1', 'trip.json')
|
19
|
+
trip = @client.trip(1)
|
20
|
+
trip.creator.last_name.should == 'Gowalla'
|
21
|
+
trip.map_bounds.east.should == -63.457031
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
data/test/users_test.rb
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class UsersTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "When using the Gowalla API and working with Users" do
|
6
|
+
setup do
|
7
|
+
@client = gowalla_test_client
|
8
|
+
end
|
9
|
+
|
10
|
+
should "retrive information about the current user if no user specified" do
|
11
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/pengwynn', 'user.json')
|
12
|
+
user = @client.user
|
13
|
+
user.bio.should == "CTO & co-founder of Gowalla. Ruby/Cocoa/JavaScript developer. Game designer. Author. Indoorsman."
|
14
|
+
user.stamps_count.should == 506
|
15
|
+
end
|
16
|
+
|
17
|
+
should "retrieve information about a specific user" do
|
18
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco', 'user.json')
|
19
|
+
user = @client.user('sco')
|
20
|
+
user.bio.should == "CTO & co-founder of Gowalla. Ruby/Cocoa/JavaScript developer. Game designer. Author. Indoorsman."
|
21
|
+
user.stamps_count.should == 506
|
22
|
+
end
|
23
|
+
|
24
|
+
should "retrieve a list of the stamps the user has collected" do
|
25
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/1707/stamps?limit=20', 'stamps.json')
|
26
|
+
stamps = @client.stamps(1707)
|
27
|
+
stamps.size.should == 20
|
28
|
+
stamps.first.spot.name.should == "Muck-N-Dave's Texas BBQ"
|
29
|
+
stamps.first.spot.address.locality.should == 'Austin'
|
30
|
+
end
|
31
|
+
|
32
|
+
should "retrieve a list of spots the user has visited most often" do
|
33
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/1707/top_spots', 'top_spots.json')
|
34
|
+
top_spots = @client.top_spots(1707)
|
35
|
+
top_spots.size.should == 10
|
36
|
+
top_spots.first.name.should == 'Juan Pelota Cafe'
|
37
|
+
top_spots.first.user_checkins_count.should == 30
|
38
|
+
end
|
39
|
+
|
40
|
+
should "retrieve a list of spot urls the user has visited" do
|
41
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco/visited_spots_urls', 'spots_urls.json')
|
42
|
+
spot_urls = @client.visited_spots_urls('sco')
|
43
|
+
spot_urls.size.should == 22
|
44
|
+
spot_urls.first.should == '/spots/682460'
|
45
|
+
end
|
46
|
+
|
47
|
+
should "retrieve a list of items the user is carrying" do
|
48
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco/items?context=vault', 'items.json')
|
49
|
+
items = @client.user_items('sco', 'vault')
|
50
|
+
items.first.issue_number.should == 27868
|
51
|
+
items.first.name.should == 'Bowl of Noodles'
|
52
|
+
end
|
53
|
+
|
54
|
+
should "retrieve a list of friends for the user" do
|
55
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco/friends', 'users.json')
|
56
|
+
users = @client.friends('sco')
|
57
|
+
users.first.first_name.should == 'Chalkbot'
|
58
|
+
end
|
59
|
+
|
60
|
+
should "retrieve a list of trips created by the user" do
|
61
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco/trips', 'trips.json')
|
62
|
+
trips = @client.user_trips('sco')
|
63
|
+
trips.first.name.should == 'London Pub Crawl'
|
64
|
+
trips.first.spots.first.url.should == '/spots/164009'
|
65
|
+
end
|
66
|
+
|
67
|
+
should "retrieve a list of photos taken by the user" do
|
68
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco/photos', 'photos.json')
|
69
|
+
photos = @client.user_photos('sco')
|
70
|
+
#photos.first.type.should == 'photo'
|
71
|
+
photos.first.photo_urls.square_50.should == 'http://static.gowalla.com/photos/912078_square_50.jpg'
|
72
|
+
end
|
73
|
+
|
74
|
+
should "retrieve a list of pins collected by the user" do
|
75
|
+
stub_get('http://pengwynn:0U812@api.gowalla.com/users/sco/pins', 'pins.json')
|
76
|
+
pins = @client.user_pins('sco')
|
77
|
+
pins.first.name.should == '110 Film'
|
78
|
+
#pins.first.trip.type.should == 'challenge'
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
metadata
CHANGED
@@ -4,33 +4,38 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 4
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.4.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Wynn Netherland
|
13
|
+
- Eric Hutzelman
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-09-28 00:00:00 -05:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
+
name: oauth2
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
22
26
|
requirements:
|
23
27
|
- - ">="
|
24
28
|
- !ruby/object:Gem::Version
|
25
29
|
segments:
|
26
30
|
- 0
|
27
31
|
version: "0"
|
28
|
-
name: oauth2
|
29
|
-
prerelease: false
|
30
|
-
requirement: *id001
|
31
32
|
type: :runtime
|
33
|
+
version_requirements: *id001
|
32
34
|
- !ruby/object:Gem::Dependency
|
33
|
-
|
35
|
+
name: faraday
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
34
39
|
requirements:
|
35
40
|
- - ~>
|
36
41
|
- !ruby/object:Gem::Version
|
@@ -39,12 +44,13 @@ dependencies:
|
|
39
44
|
- 4
|
40
45
|
- 5
|
41
46
|
version: 0.4.5
|
42
|
-
name: faraday
|
43
|
-
prerelease: false
|
44
|
-
requirement: *id002
|
45
47
|
type: :runtime
|
48
|
+
version_requirements: *id002
|
46
49
|
- !ruby/object:Gem::Dependency
|
47
|
-
|
50
|
+
name: hashie
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
48
54
|
requirements:
|
49
55
|
- - ~>
|
50
56
|
- !ruby/object:Gem::Version
|
@@ -53,12 +59,13 @@ dependencies:
|
|
53
59
|
- 2
|
54
60
|
- 0
|
55
61
|
version: 0.2.0
|
56
|
-
name: hashie
|
57
|
-
prerelease: false
|
58
|
-
requirement: *id003
|
59
62
|
type: :runtime
|
63
|
+
version_requirements: *id003
|
60
64
|
- !ruby/object:Gem::Dependency
|
61
|
-
|
65
|
+
name: multi_json
|
66
|
+
prerelease: false
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
62
69
|
requirements:
|
63
70
|
- - ~>
|
64
71
|
- !ruby/object:Gem::Version
|
@@ -67,24 +74,26 @@ dependencies:
|
|
67
74
|
- 0
|
68
75
|
- 4
|
69
76
|
version: 0.0.4
|
70
|
-
name: multi_json
|
71
|
-
prerelease: false
|
72
|
-
requirement: *id004
|
73
77
|
type: :runtime
|
78
|
+
version_requirements: *id004
|
74
79
|
- !ruby/object:Gem::Dependency
|
75
|
-
|
80
|
+
name: faraday_middleware
|
81
|
+
prerelease: false
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
76
84
|
requirements:
|
77
85
|
- - ">="
|
78
86
|
- !ruby/object:Gem::Version
|
79
87
|
segments:
|
80
88
|
- 0
|
81
89
|
version: "0"
|
82
|
-
name: faraday-middleware
|
83
|
-
prerelease: false
|
84
|
-
requirement: *id005
|
85
90
|
type: :runtime
|
91
|
+
version_requirements: *id005
|
86
92
|
- !ruby/object:Gem::Dependency
|
87
|
-
|
93
|
+
name: shoulda
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
88
97
|
requirements:
|
89
98
|
- - ~>
|
90
99
|
- !ruby/object:Gem::Version
|
@@ -93,10 +102,51 @@ dependencies:
|
|
93
102
|
- 10
|
94
103
|
- 0
|
95
104
|
version: 2.10.0
|
96
|
-
|
105
|
+
type: :development
|
106
|
+
version_requirements: *id006
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: jnunemaker-matchy
|
97
109
|
prerelease: false
|
98
|
-
requirement:
|
110
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ~>
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
- 4
|
118
|
+
- 0
|
119
|
+
version: 0.4.0
|
120
|
+
type: :development
|
121
|
+
version_requirements: *id007
|
122
|
+
- !ruby/object:Gem::Dependency
|
123
|
+
name: fakeweb
|
124
|
+
prerelease: false
|
125
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
segments:
|
131
|
+
- 0
|
132
|
+
version: "0"
|
99
133
|
type: :development
|
134
|
+
version_requirements: *id008
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: bundler
|
137
|
+
prerelease: false
|
138
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
segments:
|
144
|
+
- 1
|
145
|
+
- 0
|
146
|
+
- 0
|
147
|
+
version: 1.0.0
|
148
|
+
type: :development
|
149
|
+
version_requirements: *id009
|
100
150
|
description: Ruby wrapper for the Gowalla API
|
101
151
|
email: wynn.netherland@gmail.com
|
102
152
|
executables: []
|
@@ -106,8 +156,65 @@ extensions: []
|
|
106
156
|
extra_rdoc_files: []
|
107
157
|
|
108
158
|
files:
|
109
|
-
-
|
159
|
+
- .document
|
160
|
+
- .gitignore
|
161
|
+
- Gemfile
|
162
|
+
- Gemfile.lock
|
163
|
+
- LICENSE
|
164
|
+
- README.md
|
165
|
+
- Rakefile
|
166
|
+
- changelog.md
|
167
|
+
- gowalla.gemspec
|
110
168
|
- lib/gowalla.rb
|
169
|
+
- lib/gowalla/checkins.rb
|
170
|
+
- lib/gowalla/client.rb
|
171
|
+
- lib/gowalla/flags.rb
|
172
|
+
- lib/gowalla/items.rb
|
173
|
+
- lib/gowalla/spots.rb
|
174
|
+
- lib/gowalla/trips.rb
|
175
|
+
- lib/gowalla/users.rb
|
176
|
+
- lib/gowalla/version.rb
|
177
|
+
- test/checkins_test.rb
|
178
|
+
- test/client_test.rb
|
179
|
+
- test/fixtures/categories.json
|
180
|
+
- test/fixtures/category.json
|
181
|
+
- test/fixtures/challenges.json
|
182
|
+
- test/fixtures/checkin.json
|
183
|
+
- test/fixtures/events.json
|
184
|
+
- test/fixtures/find_spots.json
|
185
|
+
- test/fixtures/find_trips.json
|
186
|
+
- test/fixtures/flag.json
|
187
|
+
- test/fixtures/flags.json
|
188
|
+
- test/fixtures/friend_requests.json
|
189
|
+
- test/fixtures/friends.json
|
190
|
+
- test/fixtures/friends_recent.json
|
191
|
+
- test/fixtures/item.json
|
192
|
+
- test/fixtures/item_events.json
|
193
|
+
- test/fixtures/items.json
|
194
|
+
- test/fixtures/me.json
|
195
|
+
- test/fixtures/missing_items.json
|
196
|
+
- test/fixtures/new_spot.json
|
197
|
+
- test/fixtures/photos.json
|
198
|
+
- test/fixtures/pins.json
|
199
|
+
- test/fixtures/potential_twitter_friends.json
|
200
|
+
- test/fixtures/spot.json
|
201
|
+
- test/fixtures/spots.json
|
202
|
+
- test/fixtures/spots_by_category.json
|
203
|
+
- test/fixtures/spots_urls.json
|
204
|
+
- test/fixtures/stamps.json
|
205
|
+
- test/fixtures/top_spots.json
|
206
|
+
- test/fixtures/trip.json
|
207
|
+
- test/fixtures/trips.json
|
208
|
+
- test/fixtures/user.json
|
209
|
+
- test/fixtures/users.json
|
210
|
+
- test/fixtures/vaulted_items.json
|
211
|
+
- test/fixtures/visited_spots.json
|
212
|
+
- test/flags_test.rb
|
213
|
+
- test/helper.rb
|
214
|
+
- test/items_test.rb
|
215
|
+
- test/spots_test.rb
|
216
|
+
- test/trips_test.rb
|
217
|
+
- test/users_test.rb
|
111
218
|
has_rdoc: true
|
112
219
|
homepage: http://wynnnetherland.com/projects/gowalla/
|
113
220
|
licenses: []
|
@@ -118,6 +225,7 @@ rdoc_options: []
|
|
118
225
|
require_paths:
|
119
226
|
- lib
|
120
227
|
required_ruby_version: !ruby/object:Gem::Requirement
|
228
|
+
none: false
|
121
229
|
requirements:
|
122
230
|
- - ">="
|
123
231
|
- !ruby/object:Gem::Version
|
@@ -125,6 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
233
|
- 0
|
126
234
|
version: "0"
|
127
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
|
+
none: false
|
128
237
|
requirements:
|
129
238
|
- - ">="
|
130
239
|
- !ruby/object:Gem::Version
|
@@ -136,10 +245,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
245
|
requirements: []
|
137
246
|
|
138
247
|
rubyforge_project:
|
139
|
-
rubygems_version: 1.3.
|
248
|
+
rubygems_version: 1.3.7
|
140
249
|
signing_key:
|
141
250
|
specification_version: 3
|
142
251
|
summary: Wrapper for the Gowalla API
|
143
252
|
test_files:
|
253
|
+
- test/checkins_test.rb
|
254
|
+
- test/client_test.rb
|
255
|
+
- test/fixtures/categories.json
|
256
|
+
- test/fixtures/category.json
|
257
|
+
- test/fixtures/challenges.json
|
258
|
+
- test/fixtures/checkin.json
|
259
|
+
- test/fixtures/events.json
|
260
|
+
- test/fixtures/find_spots.json
|
261
|
+
- test/fixtures/find_trips.json
|
262
|
+
- test/fixtures/flag.json
|
263
|
+
- test/fixtures/flags.json
|
264
|
+
- test/fixtures/friend_requests.json
|
265
|
+
- test/fixtures/friends.json
|
266
|
+
- test/fixtures/friends_recent.json
|
267
|
+
- test/fixtures/item.json
|
268
|
+
- test/fixtures/item_events.json
|
269
|
+
- test/fixtures/items.json
|
270
|
+
- test/fixtures/me.json
|
271
|
+
- test/fixtures/missing_items.json
|
272
|
+
- test/fixtures/new_spot.json
|
273
|
+
- test/fixtures/photos.json
|
274
|
+
- test/fixtures/pins.json
|
275
|
+
- test/fixtures/potential_twitter_friends.json
|
276
|
+
- test/fixtures/spot.json
|
277
|
+
- test/fixtures/spots.json
|
278
|
+
- test/fixtures/spots_by_category.json
|
279
|
+
- test/fixtures/spots_urls.json
|
280
|
+
- test/fixtures/stamps.json
|
281
|
+
- test/fixtures/top_spots.json
|
282
|
+
- test/fixtures/trip.json
|
283
|
+
- test/fixtures/trips.json
|
284
|
+
- test/fixtures/user.json
|
285
|
+
- test/fixtures/users.json
|
286
|
+
- test/fixtures/vaulted_items.json
|
287
|
+
- test/fixtures/visited_spots.json
|
288
|
+
- test/flags_test.rb
|
144
289
|
- test/helper.rb
|
145
|
-
- test/
|
290
|
+
- test/items_test.rb
|
291
|
+
- test/spots_test.rb
|
292
|
+
- test/trips_test.rb
|
293
|
+
- test/users_test.rb
|