goodreads 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/Gemfile +2 -3
- data/README.md +111 -48
- data/examples/oauth.md +57 -0
- data/goodreads.gemspec +6 -6
- data/lib/goodreads/client/authors.rb +8 -0
- data/lib/goodreads/client/friends.rb +12 -0
- data/lib/goodreads/client/groups.rb +15 -0
- data/lib/goodreads/client.rb +10 -6
- data/lib/goodreads/request.rb +16 -11
- data/lib/goodreads/version.rb +1 -1
- data/spec/client_spec.rb +265 -151
- data/spec/fixtures/author.xml +1 -1
- data/spec/fixtures/author_by_name.xml +17 -0
- data/spec/fixtures/friends.xml +30 -0
- data/spec/fixtures/group.xml +364 -0
- data/spec/fixtures/group_list.xml +422 -0
- data/spec/goodreads_spec.rb +14 -14
- metadata +102 -98
metadata
CHANGED
@@ -1,149 +1,148 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodreads
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Dan Sosedoff
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-03-20 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: webmock
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70338034884860 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.11'
|
24
22
|
type: :development
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rake
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: *70338034884860
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70338034884300 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
29
|
+
requirements:
|
32
30
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.9'
|
35
33
|
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rspec
|
39
34
|
prerelease: false
|
40
|
-
|
35
|
+
version_requirements: *70338034884300
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &70338034883740 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
40
|
+
requirements:
|
43
41
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.12'
|
46
44
|
type: :development
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: simplecov
|
50
45
|
prerelease: false
|
51
|
-
|
46
|
+
version_requirements: *70338034883740
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: simplecov
|
49
|
+
requirement: &70338034883060 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
51
|
+
requirements:
|
54
52
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
57
55
|
type: :development
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: yard
|
61
56
|
prerelease: false
|
62
|
-
|
57
|
+
version_requirements: *70338034883060
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: yard
|
60
|
+
requirement: &70338034882440 !ruby/object:Gem::Requirement
|
63
61
|
none: false
|
64
|
-
requirements:
|
62
|
+
requirements:
|
65
63
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0.6'
|
68
66
|
type: :development
|
69
|
-
version_requirements: *id005
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: rest-client
|
72
67
|
prerelease: false
|
73
|
-
|
68
|
+
version_requirements: *70338034882440
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rest-client
|
71
|
+
requirement: &70338034881800 !ruby/object:Gem::Requirement
|
74
72
|
none: false
|
75
|
-
requirements:
|
73
|
+
requirements:
|
76
74
|
- - ~>
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.6'
|
79
77
|
type: :runtime
|
80
|
-
version_requirements: *id006
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: hashie
|
83
78
|
prerelease: false
|
84
|
-
|
79
|
+
version_requirements: *70338034881800
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: hashie
|
82
|
+
requirement: &70338034881240 !ruby/object:Gem::Requirement
|
85
83
|
none: false
|
86
|
-
requirements:
|
84
|
+
requirements:
|
87
85
|
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version:
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '2.0'
|
90
88
|
type: :runtime
|
91
|
-
version_requirements: *id007
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: activesupport
|
94
89
|
prerelease: false
|
95
|
-
|
90
|
+
version_requirements: *70338034881240
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: activesupport
|
93
|
+
requirement: &70338034880700 !ruby/object:Gem::Requirement
|
96
94
|
none: false
|
97
|
-
requirements:
|
95
|
+
requirements:
|
98
96
|
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version:
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3'
|
101
99
|
type: :runtime
|
102
|
-
version_requirements: *id008
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: i18n
|
105
100
|
prerelease: false
|
106
|
-
|
101
|
+
version_requirements: *70338034880700
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: i18n
|
104
|
+
requirement: &70338034880040 !ruby/object:Gem::Requirement
|
107
105
|
none: false
|
108
|
-
requirements:
|
106
|
+
requirements:
|
109
107
|
- - ~>
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0.5'
|
112
110
|
type: :runtime
|
113
|
-
version_requirements: *id009
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
|
-
name: oauth
|
116
111
|
prerelease: false
|
117
|
-
|
112
|
+
version_requirements: *70338034880040
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: oauth
|
115
|
+
requirement: &70338034879460 !ruby/object:Gem::Requirement
|
118
116
|
none: false
|
119
|
-
requirements:
|
117
|
+
requirements:
|
120
118
|
- - ~>
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version:
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0.4'
|
123
121
|
type: :runtime
|
124
|
-
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *70338034879460
|
125
124
|
description: Simple wrapper for the Goodreads API
|
126
|
-
email:
|
125
|
+
email:
|
127
126
|
- dan.sosedoff@gmail.com
|
128
127
|
executables: []
|
129
|
-
|
130
128
|
extensions: []
|
131
|
-
|
132
129
|
extra_rdoc_files: []
|
133
|
-
|
134
|
-
files:
|
130
|
+
files:
|
135
131
|
- .gitignore
|
136
132
|
- .rspec
|
137
133
|
- .travis.yml
|
138
134
|
- Gemfile
|
139
135
|
- README.md
|
140
136
|
- Rakefile
|
137
|
+
- examples/oauth.md
|
141
138
|
- goodreads.gemspec
|
142
139
|
- lib/goodreads.rb
|
143
140
|
- lib/goodreads/client.rb
|
144
141
|
- lib/goodreads/client/authorized.rb
|
145
142
|
- lib/goodreads/client/authors.rb
|
146
143
|
- lib/goodreads/client/books.rb
|
144
|
+
- lib/goodreads/client/friends.rb
|
145
|
+
- lib/goodreads/client/groups.rb
|
147
146
|
- lib/goodreads/client/reviews.rb
|
148
147
|
- lib/goodreads/client/shelves.rb
|
149
148
|
- lib/goodreads/client/users.rb
|
@@ -153,8 +152,12 @@ files:
|
|
153
152
|
- spec/authentication_spec.rb
|
154
153
|
- spec/client_spec.rb
|
155
154
|
- spec/fixtures/author.xml
|
155
|
+
- spec/fixtures/author_by_name.xml
|
156
156
|
- spec/fixtures/book.xml
|
157
157
|
- spec/fixtures/empty.xml
|
158
|
+
- spec/fixtures/friends.xml
|
159
|
+
- spec/fixtures/group.xml
|
160
|
+
- spec/fixtures/group_list.xml
|
158
161
|
- spec/fixtures/oauth_response.xml
|
159
162
|
- spec/fixtures/recent_reviews.xml
|
160
163
|
- spec/fixtures/review.xml
|
@@ -166,37 +169,38 @@ files:
|
|
166
169
|
- spec/spec_helper.rb
|
167
170
|
homepage: http://github.com/sosedoff/goodreads
|
168
171
|
licenses: []
|
169
|
-
|
170
172
|
post_install_message:
|
171
173
|
rdoc_options: []
|
172
|
-
|
173
|
-
require_paths:
|
174
|
+
require_paths:
|
174
175
|
- lib
|
175
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
176
177
|
none: false
|
177
|
-
requirements:
|
178
|
-
- -
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version:
|
181
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
183
|
none: false
|
183
|
-
requirements:
|
184
|
-
- -
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version:
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
187
188
|
requirements: []
|
188
|
-
|
189
189
|
rubyforge_project:
|
190
|
-
rubygems_version: 1.8.
|
190
|
+
rubygems_version: 1.8.15
|
191
191
|
signing_key:
|
192
192
|
specification_version: 3
|
193
193
|
summary: Goodreads API wrapper
|
194
|
-
test_files:
|
194
|
+
test_files:
|
195
195
|
- spec/authentication_spec.rb
|
196
196
|
- spec/client_spec.rb
|
197
197
|
- spec/fixtures/author.xml
|
198
|
+
- spec/fixtures/author_by_name.xml
|
198
199
|
- spec/fixtures/book.xml
|
199
200
|
- spec/fixtures/empty.xml
|
201
|
+
- spec/fixtures/friends.xml
|
202
|
+
- spec/fixtures/group.xml
|
203
|
+
- spec/fixtures/group_list.xml
|
200
204
|
- spec/fixtures/oauth_response.xml
|
201
205
|
- spec/fixtures/recent_reviews.xml
|
202
206
|
- spec/fixtures/review.xml
|