goodreads 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a55562550afaad324257b5662c49cd4b5795348
4
- data.tar.gz: 3153d5c577af053de337def0170680c22dbbf6f9
3
+ metadata.gz: 4e1c4bc2ac3e141e0c1b7774c1a80507a236946d
4
+ data.tar.gz: 2d335ac55485c8ec4259a1296df9ae68095e94ab
5
5
  SHA512:
6
- metadata.gz: 9cbcece870be588b5f0769cd7806ab13a8538aaf7a7c54fd3188cac999aedc782ccfe0309b1c0dceacc7f2fefa39415c78b3594493eb65b4ac4b58d796ae6386
7
- data.tar.gz: b79e4f95f116fa25a1c4da5e188a8ac15e62deceac3ffaeb5b7f404bc37b9599b225a57e22994ab00beb47c25fee8eeacbc0cff750aa3f8fa8314c658b2b60a3
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
- data = request('/api/author_url', params)
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
@@ -1,3 +1,3 @@
1
1
  module Goodreads
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -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.2
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-08-31 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webmock