goodreads 0.4.2 → 0.4.3
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.
- checksums.yaml +4 -4
- data/lib/goodreads/client/authors.rb +2 -1
- data/lib/goodreads/version.rb +1 -1
- data/spec/client_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e1c4bc2ac3e141e0c1b7774c1a80507a236946d
|
|
4
|
+
data.tar.gz: 2d335ac55485c8ec4259a1296df9ae68095e94ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 497e314c0b4596b2117cdd3402d01602d33abcabce9653abcb6cd9bc112dee643ba970f7e0cdda1462fa8ea1c439248e3400562160fcd5b8b7c57fea80a9b706
|
|
7
|
+
data.tar.gz: 43aea244b93abe77c875cf894aa229c3d2062e6ed78e094ba9d1dcac4c46fffac46cc968d263536d45cdbbcd18c808b13b53db4f220ea8efa3644a1a445d2362
|
|
@@ -12,7 +12,8 @@ module Goodreads
|
|
|
12
12
|
#
|
|
13
13
|
def author_by_name(name, params={})
|
|
14
14
|
params[:id] = name
|
|
15
|
-
|
|
15
|
+
name_encoded = URI.encode(name)
|
|
16
|
+
data = request("/api/author_url/#{name_encoded}", params)
|
|
16
17
|
Hashie::Mash.new(data['author'])
|
|
17
18
|
end
|
|
18
19
|
end
|
data/lib/goodreads/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
|
@@ -189,7 +189,7 @@ describe 'Client' do
|
|
|
189
189
|
|
|
190
190
|
describe '#author_by_name' do
|
|
191
191
|
before do
|
|
192
|
-
stub_with_key_get('/api/author_url', {:id => 'Orson Scott Card'}, 'author_by_name.xml')
|
|
192
|
+
stub_with_key_get('/api/author_url/Orson%20Scott%20Card', {:id => 'Orson Scott Card'}, 'author_by_name.xml')
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
it 'returns author details' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: goodreads
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Sosedoff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: webmock
|