dpickett-amazon_associate 0.6.1 → 0.6.2
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.
@@ -87,7 +87,6 @@ module AmazonAssociate
|
|
87
87
|
# Performs BrowseNodeLookup request, defaults to TopSellers ResponseGroup
|
88
88
|
def self.browse_node_lookup(browse_node_id, opts = {})
|
89
89
|
opts = self.options.merge(opts) if self.options
|
90
|
-
opts[:response_group] = opts[:response_group] || "TopSellers"
|
91
90
|
opts[:operation] = "BrowseNodeLookup"
|
92
91
|
opts[:browse_node_id] = browse_node_id
|
93
92
|
|
@@ -4,7 +4,7 @@ class AmazonAssociate::BrowseNodeLookupTest < Test::Unit::TestCase
|
|
4
4
|
|
5
5
|
## Test browse_node_lookup
|
6
6
|
def test_browse_node_lookup
|
7
|
-
resp = AmazonAssociate::Request.browse_node_lookup("5")
|
7
|
+
resp = AmazonAssociate::Request.browse_node_lookup("5", :response_group => "TopSellers")
|
8
8
|
assert resp.is_valid_request?
|
9
9
|
browse_node_tags = resp.doc.get_elements_by_tag_name("browsenodeid")
|
10
10
|
browse_node_tags.each { |node| assert_equal("5", node.inner_text) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpickett-amazon_associate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Pickett
|
@@ -10,7 +10,7 @@ autorequire: amazon_associate
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2008-11-
|
13
|
+
date: 2008-11-25 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|