amazon-ecs 1.2.1 → 1.2.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.
- data/lib/amazon/ecs.rb +8 -0
- data/test/amazon/ecs_test.rb +12 -1
- metadata +6 -6
data/lib/amazon/ecs.rb
CHANGED
data/test/amazon/ecs_test.rb
CHANGED
|
@@ -150,7 +150,7 @@ class Amazon::EcsTest < Test::Unit::TestCase
|
|
|
150
150
|
|
|
151
151
|
first_author = item.get_element("author")
|
|
152
152
|
assert_equal "Dave Thomas", first_author.get
|
|
153
|
-
assert_equal
|
|
153
|
+
assert_equal '', first_author.attributes['unknown']
|
|
154
154
|
|
|
155
155
|
item_height = item.get_element("itemdimensions/height")
|
|
156
156
|
assert_equal "hundredths-inches", item_height.attributes['units']
|
|
@@ -160,4 +160,15 @@ class Amazon::EcsTest < Test::Unit::TestCase
|
|
|
160
160
|
resp = Amazon::Ecs.item_search("パソコン")
|
|
161
161
|
assert(resp.is_valid_request?)
|
|
162
162
|
end
|
|
163
|
+
|
|
164
|
+
def test_marshal_dump_and_load
|
|
165
|
+
resp = Amazon::Ecs::Response.new(File.read(File.expand_path('../../fixtures/item_search.xml', __FILE__)))
|
|
166
|
+
dumped_resp = Marshal.load(Marshal.dump(resp))
|
|
167
|
+
|
|
168
|
+
assert_equal resp.doc.to_s, dumped_resp.doc.to_s
|
|
169
|
+
assert_equal resp.items.size, dumped_resp.items.size
|
|
170
|
+
assert_equal resp.item_page, dumped_resp.item_page
|
|
171
|
+
assert_equal resp.total_results, dumped_resp.total_results
|
|
172
|
+
assert_equal resp.total_pages, dumped_resp.total_pages
|
|
173
|
+
end
|
|
163
174
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: amazon-ecs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 27
|
|
5
|
+
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 1.2.
|
|
9
|
+
- 2
|
|
10
|
+
version: 1.2.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Herryanto Siatono
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-05-07 00:00:00 +08:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
requirements: []
|
|
93
93
|
|
|
94
94
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 1.
|
|
95
|
+
rubygems_version: 1.3.7
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 2
|
|
98
98
|
summary: Generic Amazon Product Advertising Ruby API
|