asin 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,7 +1,11 @@
1
+ ## 1.1.1
2
+
3
+ * fix handling of multiple BrowseNodes https://github.com/phoet/asin/issues/20
4
+
1
5
  ## 1.1.0
2
6
 
3
7
  * remove built-in support for Hashie::Rash
4
- * relaxe and update gem dependencies
8
+ * relax and update gem dependencies
5
9
 
6
10
  ## 1.0.0
7
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- asin (1.0.0)
4
+ asin (1.1.0)
5
5
  confiture (>= 0.1)
6
6
  crack (>= 0.3)
7
7
  hashie (>= 1.1)
@@ -11,15 +11,15 @@ GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
13
  addressable (2.3.2)
14
- coderay (1.0.7)
15
- confiture (0.1.2)
14
+ coderay (1.0.8)
15
+ confiture (0.1.4)
16
16
  crack (0.3.1)
17
17
  diff-lcs (1.1.3)
18
18
  hashie (1.2.0)
19
- httpclient (2.2.7)
20
- httpi (1.1.1)
19
+ httpclient (2.3.0.1)
20
+ httpi (2.0.0)
21
21
  rack
22
- method_source (0.8)
22
+ method_source (0.8.1)
23
23
  pry (0.9.10)
24
24
  coderay (~> 1.0.5)
25
25
  method_source (~> 0.8)
@@ -42,7 +42,7 @@ GEM
42
42
  slop (3.3.3)
43
43
  spoon (0.0.1)
44
44
  vcr (2.2.5)
45
- webmock (1.8.10)
45
+ webmock (1.8.11)
46
46
  addressable (>= 2.2.7)
47
47
  crack (>= 0.1.7)
48
48
 
data/lib/asin/client.rb CHANGED
@@ -213,7 +213,7 @@ module ASIN
213
213
  #
214
214
  def browse_node(node_id, params={:ResponseGroup => :BrowseNodeInfo})
215
215
  response = call(params.merge(:Operation => :BrowseNodeLookup, :BrowseNodeId => node_id))
216
- handle_type(response['BrowseNodeLookupResponse']['BrowseNodes']['BrowseNode'], Configuration.node_type)
216
+ arrayfy(response['BrowseNodeLookupResponse']['BrowseNodes']['BrowseNode']).map {|item| handle_type(item, Configuration.node_type)}
217
217
  end
218
218
 
219
219
  # Performs an +SimilarityLookup+ REST call against the Amazon API.
data/lib/asin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ASIN
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -9,7 +9,7 @@ module ASIN
9
9
  end
10
10
 
11
11
  it "should lookup a browse_node", :vcr do
12
- item = @helper.browse_node(ANY_BROWSE_NODE_ID)
12
+ item = @helper.browse_node(ANY_BROWSE_NODE_ID).first
13
13
  item.node_id.should eql(ANY_BROWSE_NODE_ID)
14
14
  item.name.should eql('Comedy')
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-17 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crack