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