gowalla 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,6 @@ require 'test/unit'
2
2
  require 'pathname'
3
3
  require 'rubygems'
4
4
 
5
- gem 'shoulda', '>= 2.10.1'
6
- gem 'jnunemaker-matchy', '0.4.0'
7
- gem 'fakeweb', '>= 1.2.5'
8
5
 
9
6
  require 'shoulda'
10
7
  require 'matchy'
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 4
9
- version: 0.1.4
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wynn Netherland
@@ -14,147 +14,95 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-06 00:00:00 -05:00
17
+ date: 2010-06-26 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: hashie
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  requirements:
25
23
  - - ">="
26
24
  - !ruby/object:Gem::Version
27
25
  segments:
28
26
  - 0
29
- - 1
30
- - 3
31
- version: 0.1.3
27
+ version: "0"
28
+ name: oauth2
29
+ prerelease: false
30
+ requirement: *id001
32
31
  type: :runtime
33
- version_requirements: *id001
34
32
  - !ruby/object:Gem::Dependency
35
- name: httparty
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
33
+ version_requirements: &id002 !ruby/object:Gem::Requirement
38
34
  requirements:
39
- - - ">="
35
+ - - ~>
40
36
  - !ruby/object:Gem::Version
41
37
  segments:
42
38
  - 0
39
+ - 4
43
40
  - 5
44
- - 0
45
- version: 0.5.0
41
+ version: 0.4.5
42
+ name: faraday
43
+ prerelease: false
44
+ requirement: *id002
46
45
  type: :runtime
47
- version_requirements: *id002
48
46
  - !ruby/object:Gem::Dependency
49
- name: shoulda
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
47
+ version_requirements: &id003 !ruby/object:Gem::Requirement
52
48
  requirements:
53
- - - ">="
49
+ - - ~>
54
50
  - !ruby/object:Gem::Version
55
51
  segments:
52
+ - 0
56
53
  - 2
57
- - 10
58
- - 1
59
- version: 2.10.1
60
- type: :development
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: jnunemaker-matchy
54
+ - 0
55
+ version: 0.2.0
56
+ name: hashie
64
57
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
58
+ requirement: *id003
59
+ type: :runtime
60
+ - !ruby/object:Gem::Dependency
61
+ version_requirements: &id004 !ruby/object:Gem::Requirement
66
62
  requirements:
67
- - - "="
63
+ - - ~>
68
64
  - !ruby/object:Gem::Version
69
65
  segments:
70
66
  - 0
71
- - 4
72
67
  - 0
73
- version: 0.4.0
74
- type: :development
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: fakeweb
68
+ - 4
69
+ version: 0.0.4
70
+ name: multi_json
78
71
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 1
85
- - 2
86
- - 5
87
- version: 1.2.5
88
- type: :development
89
- version_requirements: *id005
72
+ requirement: *id004
73
+ type: :runtime
90
74
  - !ruby/object:Gem::Dependency
91
- name: yard
92
- prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
75
+ version_requirements: &id005 !ruby/object:Gem::Requirement
94
76
  requirements:
95
- - - ">="
77
+ - - ~>
96
78
  - !ruby/object:Gem::Version
97
79
  segments:
80
+ - 2
81
+ - 10
98
82
  - 0
99
- version: "0"
83
+ version: 2.10.0
84
+ name: shoulda
85
+ prerelease: false
86
+ requirement: *id005
100
87
  type: :development
101
- version_requirements: *id006
102
88
  description: Ruby wrapper for the Gowalla API
103
89
  email: wynn.netherland@gmail.com
104
90
  executables: []
105
91
 
106
92
  extensions: []
107
93
 
108
- extra_rdoc_files:
109
- - LICENSE
110
- - README.md
94
+ extra_rdoc_files: []
95
+
111
96
  files:
112
- - .document
113
- - .gitignore
114
- - LICENSE
115
- - README.md
116
- - Rakefile
117
- - VERSION
118
- - changelog.md
119
- - gowalla.gemspec
120
- - lib/gowalla.rb
121
97
  - lib/gowalla/client.rb
122
- - test/fixtures/categories.json
123
- - test/fixtures/category.json
124
- - test/fixtures/challenges.json
125
- - test/fixtures/checkin.json
126
- - test/fixtures/events.json
127
- - test/fixtures/find_spots.json
128
- - test/fixtures/find_trips.json
129
- - test/fixtures/friend_requests.json
130
- - test/fixtures/friends.json
131
- - test/fixtures/friends_recent.json
132
- - test/fixtures/item.json
133
- - test/fixtures/items.json
134
- - test/fixtures/me.json
135
- - test/fixtures/missing_items.json
136
- - test/fixtures/new_spot.json
137
- - test/fixtures/pins.json
138
- - test/fixtures/potential_twitter_friends.json
139
- - test/fixtures/spot.json
140
- - test/fixtures/spots.json
141
- - test/fixtures/spots_by_category.json
142
- - test/fixtures/stamps.json
143
- - test/fixtures/top_spots.json
144
- - test/fixtures/trip.json
145
- - test/fixtures/trips.json
146
- - test/fixtures/user.json
147
- - test/fixtures/vaulted_items.json
148
- - test/fixtures/visited_spots.json
149
- - test/helper.rb
150
- - test/test_gowalla.rb
98
+ - lib/gowalla.rb
151
99
  has_rdoc: true
152
- homepage: http://github.com/pengwynn/gowalla
100
+ homepage: http://wynnnetherland.com/projects/gowalla/
153
101
  licenses: []
154
102
 
155
103
  post_install_message:
156
- rdoc_options:
157
- - --charset=UTF-8
104
+ rdoc_options: []
105
+
158
106
  require_paths:
159
107
  - lib
160
108
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -169,15 +117,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
117
  - - ">="
170
118
  - !ruby/object:Gem::Version
171
119
  segments:
172
- - 0
173
- version: "0"
120
+ - 1
121
+ - 3
122
+ - 6
123
+ version: 1.3.6
174
124
  requirements: []
175
125
 
176
126
  rubyforge_project:
177
127
  rubygems_version: 1.3.6
178
128
  signing_key:
179
129
  specification_version: 3
180
- summary: Ruby wrapper for the Gowalla API
130
+ summary: Wrapper for the Gowalla API
181
131
  test_files:
182
132
  - test/helper.rb
183
- - test/test_gowalla.rb
133
+ - test/gowalla_test.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 Wynn Netherland
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,59 +0,0 @@
1
- # Gowalla
2
-
3
- Ruby wrapper for the [Gowalla API](http://gowalla.com/api/docs).
4
-
5
-
6
- ## Installation
7
-
8
- sudo gem install gowalla
9
-
10
- ## Get your API key
11
-
12
- Be sure and get your API key: [http://gowalla.com/api/keys](http://gowalla.com/api/keys)
13
-
14
- ## Usage
15
-
16
- ### Instantiate a client
17
-
18
- >> gowalla = Gowalla::Client.new(:username => 'pengwynn', :password => 'somepassword', :api_key => 'your_api_key')
19
-
20
- ### or configure once
21
-
22
- >> Gowalla.configure do |config|
23
- >> config.api_key = 'your_api_key'
24
- >> config.username = 'pengwynn'
25
- >> config.password = 'somepassword'
26
- >> end
27
- >> gowalla = Gowalla::Client.new
28
-
29
- #### Examples
30
-
31
- >> gowalla.user('pengwynn')
32
- => <#Hashie::Mash accept_url="/friendships/accept?user_id=1707" activity_url="/users/1707/events" bio="Web designer and Ruby developer." events_url="/users/1707/events" fb_id=605681706 first_name="Wynn" friends_count=27 friends_only=false friends_url="/users/1707/friends" hometown="Aubrey, TX" image_url="http://s3.amazonaws.com/static.gowalla.com/users/1707-standard.jpg?1262011383" is_friend=false items_count=5 items_url="/users/1707/items" last_name="Netherland" last_visit=<#Hashie::Mash comment="Closing every account I have " created_at="2010/01/26 15:31:46 +0000" spot=<#Hashie::Mash image_url="http://static.gowalla.com/categories/186-standard.png" name="Bank Of America" small_image_url="http://static.gowalla.com/categories/186-small-standard.png" url="/spots/164052">> name="Wynn Netherland" pins_count=3 pins_url="/users/1707/pins" reject_url="/friendships/reject?user_id=1707" request_url="/friendships/request?user_id=1707" stamps_count=15 stamps_url="/users/1707/stamps" top_spots_url="/users/1707/top_spots" twitter_username="pengwynn" url="/users/1707" username="pengwynn" vaulted_kinds_count=0 visited_spots_count=15 website="http://wynnnetherland.com">
33
-
34
-
35
- #### Details for the current user
36
-
37
- >> gowalla.user
38
-
39
- #### Details for another user
40
-
41
- >> gowalla.user('bradleyjoyce')
42
- >> gowalla.user(1707)
43
-
44
-
45
-
46
- ## Note on Patches/Pull Requests
47
-
48
- * Fork the project.
49
- * Make your feature addition or bug fix.
50
- * Add tests for it. This is important so I don't break it in a
51
- future version unintentionally.
52
- * Commit, do not mess with rakefile, version, or history.
53
- (if you want to have your own version, that is fine but
54
- bump version in a commit by itself I can ignore when I pull)
55
- * Send me a pull request. Bonus points for topic branches.
56
-
57
- ## Copyright
58
-
59
- Copyright (c) 2010 Wynn Netherland. See LICENSE for details.
data/Rakefile DELETED
@@ -1,58 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "gowalla"
8
- gem.summary = %Q{Ruby wrapper for the Gowalla API}
9
- gem.description = %Q{Ruby wrapper for the Gowalla API}
10
- gem.email = "wynn.netherland@gmail.com"
11
- gem.homepage = "http://github.com/pengwynn/gowalla"
12
- gem.authors = ["Wynn Netherland"]
13
-
14
- gem.add_dependency('hashie', '>= 0.1.3')
15
- gem.add_dependency('httparty', '>= 0.5.0')
16
-
17
- gem.add_development_dependency('shoulda', '>= 2.10.1')
18
- gem.add_development_dependency('jnunemaker-matchy', '0.4.0')
19
- gem.add_development_dependency('fakeweb', '>= 1.2.5')
20
- gem.add_development_dependency "yard", ">= 0"
21
- end
22
- Jeweler::GemcutterTasks.new
23
- rescue LoadError
24
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
25
- end
26
-
27
- require 'rake/testtask'
28
- Rake::TestTask.new(:test) do |test|
29
- test.libs << 'lib' << 'test'
30
- test.pattern = 'test/**/test_*.rb'
31
- test.verbose = true
32
- end
33
-
34
- begin
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- end
41
- rescue LoadError
42
- task :rcov do
43
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
44
- end
45
- end
46
-
47
- task :test => :check_dependencies
48
-
49
- task :default => :test
50
-
51
- begin
52
- require 'yard'
53
- YARD::Rake::YardocTask.new
54
- rescue LoadError
55
- task :yardoc do
56
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
57
- end
58
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.4
@@ -1,19 +0,0 @@
1
- # Changelog
2
- ## 0.1.4 May 6, 2010
3
- * Updated accepts header
4
- * Added patch from [Ruben Fonseca](http://github.com/rubenfonseca) to check in at a spot
5
- ## 0.1.3 March 7, 2010
6
- * Updated README with correct config call
7
- * Applied patch from [Kacy Fortner](http://github.com/kacy) to add vaulted items and missing items calls
8
- * Applied patches from [Eric Hutzelman](http://github.com/ehutzelman) to clean up fixtures, changed api methods
9
- ## 0.1.2 March 3, 2010
10
-
11
- * Applied patch from [Ruben Fonseca](http://github.com/rubenfonseca) to search within a given bounds
12
- * Applied patch from [Eric Hutzelman](http://github.com/ehutzelman) to clean up config
13
-
14
- ## 0.1.0 February 8, 2010
15
-
16
- * Updates for released API
17
-
18
- ## 0.0.1 January 28, 2010
19
- * Initial version
@@ -1,98 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{gowalla}
8
- s.version = "0.1.4"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Wynn Netherland"]
12
- s.date = %q{2010-05-06}
13
- s.description = %q{Ruby wrapper for the Gowalla API}
14
- s.email = %q{wynn.netherland@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.md",
24
- "Rakefile",
25
- "VERSION",
26
- "changelog.md",
27
- "gowalla.gemspec",
28
- "lib/gowalla.rb",
29
- "lib/gowalla/client.rb",
30
- "test/fixtures/categories.json",
31
- "test/fixtures/category.json",
32
- "test/fixtures/challenges.json",
33
- "test/fixtures/checkin.json",
34
- "test/fixtures/events.json",
35
- "test/fixtures/find_spots.json",
36
- "test/fixtures/find_trips.json",
37
- "test/fixtures/friend_requests.json",
38
- "test/fixtures/friends.json",
39
- "test/fixtures/friends_recent.json",
40
- "test/fixtures/item.json",
41
- "test/fixtures/items.json",
42
- "test/fixtures/me.json",
43
- "test/fixtures/missing_items.json",
44
- "test/fixtures/new_spot.json",
45
- "test/fixtures/pins.json",
46
- "test/fixtures/potential_twitter_friends.json",
47
- "test/fixtures/spot.json",
48
- "test/fixtures/spots.json",
49
- "test/fixtures/spots_by_category.json",
50
- "test/fixtures/stamps.json",
51
- "test/fixtures/top_spots.json",
52
- "test/fixtures/trip.json",
53
- "test/fixtures/trips.json",
54
- "test/fixtures/user.json",
55
- "test/fixtures/vaulted_items.json",
56
- "test/fixtures/visited_spots.json",
57
- "test/helper.rb",
58
- "test/test_gowalla.rb"
59
- ]
60
- s.homepage = %q{http://github.com/pengwynn/gowalla}
61
- s.rdoc_options = ["--charset=UTF-8"]
62
- s.require_paths = ["lib"]
63
- s.rubygems_version = %q{1.3.6}
64
- s.summary = %q{Ruby wrapper for the Gowalla API}
65
- s.test_files = [
66
- "test/helper.rb",
67
- "test/test_gowalla.rb"
68
- ]
69
-
70
- if s.respond_to? :specification_version then
71
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
72
- s.specification_version = 3
73
-
74
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
75
- s.add_runtime_dependency(%q<hashie>, [">= 0.1.3"])
76
- s.add_runtime_dependency(%q<httparty>, [">= 0.5.0"])
77
- s.add_development_dependency(%q<shoulda>, [">= 2.10.1"])
78
- s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
79
- s.add_development_dependency(%q<fakeweb>, [">= 1.2.5"])
80
- s.add_development_dependency(%q<yard>, [">= 0"])
81
- else
82
- s.add_dependency(%q<hashie>, [">= 0.1.3"])
83
- s.add_dependency(%q<httparty>, [">= 0.5.0"])
84
- s.add_dependency(%q<shoulda>, [">= 2.10.1"])
85
- s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
86
- s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
87
- s.add_dependency(%q<yard>, [">= 0"])
88
- end
89
- else
90
- s.add_dependency(%q<hashie>, [">= 0.1.3"])
91
- s.add_dependency(%q<httparty>, [">= 0.5.0"])
92
- s.add_dependency(%q<shoulda>, [">= 2.10.1"])
93
- s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
94
- s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
95
- s.add_dependency(%q<yard>, [">= 0"])
96
- end
97
- end
98
-