goodreads 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +0 -2
- data/README.md +22 -9
- data/goodreads.gemspec +23 -22
- data/lib/goodreads/version.rb +1 -3
- metadata +70 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f5ce5af4765e7a8b7b1a3e44a82d9ddc52c816d0
|
4
|
+
data.tar.gz: d0dde6c3b9924f2b948464d0d56e5b2cfed08979
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 541d71e3c85f82d29b847e8c0271519f6bedda7ecdb471372af390a174c09cf9d36d9be5f1f51244e3c0bc1d8d9e9c6e543523187ed447639206bde325305d39
|
7
|
+
data.tar.gz: f9ff399475037170e27ed7987f9ab6179b27576a7ed0afeb481669ff7505721900bef56df72bb2ff434e37ba4d9274700227fe27524ed117e81a73575b425193
|
data/README.md
CHANGED
@@ -51,7 +51,7 @@ In case you need to reset options:
|
|
51
51
|
Goodreads.reset_configuration
|
52
52
|
```
|
53
53
|
|
54
|
-
##
|
54
|
+
## Examples
|
55
55
|
|
56
56
|
### Lookup books
|
57
57
|
|
@@ -177,18 +177,20 @@ group_list.group.each do |g|
|
|
177
177
|
end
|
178
178
|
```
|
179
179
|
|
180
|
-
The `sort` parameter is optional, and defaults to `my_activity`.
|
180
|
+
The `sort` parameter is optional, and defaults to `my_activity`.
|
181
|
+
For other sorting options, [see here](http://www.goodreads.com/api#group.list).
|
181
182
|
|
182
183
|
### OAuth
|
183
184
|
|
184
|
-
For API calls requiring permission, such as write operations or browsing friends,
|
185
|
+
For API calls requiring permission, such as write operations or browsing friends,
|
186
|
+
see our [OAuth tutorial](examples/oauth.md).
|
185
187
|
|
186
188
|
## Testing
|
187
189
|
|
188
190
|
To run the test suite:
|
189
191
|
|
190
192
|
```
|
191
|
-
rake test
|
193
|
+
bundle exec rake test
|
192
194
|
```
|
193
195
|
|
194
196
|
## Contributions
|
@@ -204,8 +206,19 @@ You're welcome to submit patches and new features.
|
|
204
206
|
|
205
207
|
Copyright © 2011-2013 Dan Sosedoff.
|
206
208
|
|
207
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
209
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
210
|
+
this software and associated documentation files (the "Software"), to deal in
|
211
|
+
the Software without restriction, including without limitation the rights to
|
212
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
213
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
214
|
+
subject to the following conditions:
|
215
|
+
|
216
|
+
The above copyright notice and this permission notice shall be included in all
|
217
|
+
copies or substantial portions of the Software.
|
218
|
+
|
219
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
220
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
221
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
222
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
223
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
224
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/goodreads.gemspec
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
require File.expand_path('../lib/goodreads/version', __FILE__)
|
2
2
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "goodreads"
|
5
|
+
spec.version = Goodreads::VERSION.dup
|
6
|
+
spec.summary = "Goodreads API wrapper"
|
7
|
+
spec.description = "Simple wrapper for the Goodreads API"
|
8
|
+
spec.homepage = "http://github.com/sosedoff/goodreads"
|
9
|
+
spec.authors = ["Dan Sosedoff"]
|
10
|
+
spec.email = ["dan.sosedoff@gmail.com"]
|
11
|
+
spec.license = "MIT"
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
spec.add_development_dependency 'webmock', '~> 1.11'
|
14
|
+
spec.add_development_dependency 'rake', '~> 0.9'
|
15
|
+
spec.add_development_dependency 'rspec', '~> 2.12'
|
16
|
+
spec.add_development_dependency 'simplecov', '~> 0.7'
|
17
|
+
spec.add_development_dependency 'yard', '~> 0.6'
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
spec.add_runtime_dependency 'rest-client', '~> 1.6'
|
20
|
+
spec.add_runtime_dependency 'hashie', '~> 2.0'
|
21
|
+
spec.add_runtime_dependency 'activesupport', '>= 3'
|
22
|
+
spec.add_runtime_dependency 'i18n', '~> 0.5'
|
23
|
+
spec.add_runtime_dependency 'oauth', '~> 0.4'
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
spec.files = `git ls-files`.split("\n")
|
26
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
|
+
spec.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
28
|
+
spec.require_paths = ["lib"]
|
28
29
|
end
|
data/lib/goodreads/version.rb
CHANGED
metadata
CHANGED
@@ -1,126 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodreads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dan Sosedoff
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: webmock
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.11'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rake
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0.9'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '2.12'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.12'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: simplecov
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0.7'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.7'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: yard
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
73
|
- - ~>
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0.6'
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.6'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rest-client
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
87
|
- - ~>
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '1.6'
|
77
90
|
type: :runtime
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: hashie
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
101
|
- - ~>
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: '2.0'
|
88
104
|
type: :runtime
|
89
105
|
prerelease: false
|
90
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.0'
|
91
111
|
- !ruby/object:Gem::Dependency
|
92
112
|
name: activesupport
|
93
|
-
requirement:
|
94
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
95
114
|
requirements:
|
96
|
-
- -
|
115
|
+
- - '>='
|
97
116
|
- !ruby/object:Gem::Version
|
98
117
|
version: '3'
|
99
118
|
type: :runtime
|
100
119
|
prerelease: false
|
101
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3'
|
102
125
|
- !ruby/object:Gem::Dependency
|
103
126
|
name: i18n
|
104
|
-
requirement:
|
105
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
106
128
|
requirements:
|
107
129
|
- - ~>
|
108
130
|
- !ruby/object:Gem::Version
|
109
131
|
version: '0.5'
|
110
132
|
type: :runtime
|
111
133
|
prerelease: false
|
112
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.5'
|
113
139
|
- !ruby/object:Gem::Dependency
|
114
140
|
name: oauth
|
115
|
-
requirement:
|
116
|
-
none: false
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
117
142
|
requirements:
|
118
143
|
- - ~>
|
119
144
|
- !ruby/object:Gem::Version
|
120
145
|
version: '0.4'
|
121
146
|
type: :runtime
|
122
147
|
prerelease: false
|
123
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.4'
|
124
153
|
description: Simple wrapper for the Goodreads API
|
125
154
|
email:
|
126
155
|
- dan.sosedoff@gmail.com
|
@@ -168,28 +197,28 @@ files:
|
|
168
197
|
- spec/goodreads_spec.rb
|
169
198
|
- spec/spec_helper.rb
|
170
199
|
homepage: http://github.com/sosedoff/goodreads
|
171
|
-
licenses:
|
200
|
+
licenses:
|
201
|
+
- MIT
|
202
|
+
metadata: {}
|
172
203
|
post_install_message:
|
173
204
|
rdoc_options: []
|
174
205
|
require_paths:
|
175
206
|
- lib
|
176
207
|
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
208
|
requirements:
|
179
|
-
- -
|
209
|
+
- - '>='
|
180
210
|
- !ruby/object:Gem::Version
|
181
211
|
version: '0'
|
182
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
213
|
requirements:
|
185
|
-
- -
|
214
|
+
- - '>='
|
186
215
|
- !ruby/object:Gem::Version
|
187
216
|
version: '0'
|
188
217
|
requirements: []
|
189
218
|
rubyforge_project:
|
190
|
-
rubygems_version:
|
219
|
+
rubygems_version: 2.0.5
|
191
220
|
signing_key:
|
192
|
-
specification_version:
|
221
|
+
specification_version: 4
|
193
222
|
summary: Goodreads API wrapper
|
194
223
|
test_files:
|
195
224
|
- spec/authentication_spec.rb
|