asin 1.0.0 → 1.1.0

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.
Files changed (41) hide show
  1. data/.travis.yml +0 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile.lock +30 -40
  4. data/README.md +1 -7
  5. data/asin.gemspec +8 -11
  6. data/lib/asin/client.rb +0 -3
  7. data/lib/asin/configuration.rb +3 -3
  8. data/lib/asin/version.rb +1 -1
  9. data/rakefile.rb +2 -2
  10. data/spec/cassettes/asin/browse_node_should_lookup_a_browse_node.yml +34 -28
  11. data/spec/cassettes/asin/cart_should_create_a_cart.yml +34 -27
  12. data/spec/cassettes/asin/cart_with_an_existing_cart_should_add_items_to_a_cart.yml +93 -0
  13. data/spec/cassettes/asin/cart_with_an_existing_cart_should_clear_a_cart.yml +90 -0
  14. data/spec/cassettes/asin/cart_with_an_existing_cart_should_get_a_cart.yml +92 -0
  15. data/spec/cassettes/asin/cart_with_an_existing_cart_should_update_a_cart.yml +94 -0
  16. data/spec/cassettes/asin/lookup_and_search_should_have_metadata.yml +81 -74
  17. data/spec/cassettes/asin/lookup_and_search_should_lookup_a_book.yml +81 -74
  18. data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_books.yml +132 -124
  19. data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_response_groups.yml +38 -32
  20. data/spec/cassettes/asin/lookup_and_search_should_return_a_custom_item_class.yml +81 -74
  21. data/spec/cassettes/asin/lookup_and_search_should_return_a_mash_value.yml +81 -74
  22. data/spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml +81 -74
  23. data/spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml +586 -571
  24. data/spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml +70 -64
  25. data/spec/cassettes/asin/lookup_and_search_should_search_keywords_never_mind_music.yml +114 -108
  26. data/spec/cassettes/asin/lookup_and_search_should_search_music.yml +29 -23
  27. data/spec/cassettes/asin/lookup_and_search_should_search_never_mind_music.yml +114 -108
  28. data/spec/cassettes/asin/similarity_should_find_similar_items.yml +626 -614
  29. data/spec/cassettes/asin/similarity_should_find_similar_items_for_multiple_asins_and_different_config.yml +66 -69
  30. data/spec/{browse_node_spec.rb → lib/browse_node_spec.rb} +0 -0
  31. data/spec/{cart_spec.rb → lib/cart_spec.rb} +0 -0
  32. data/spec/{config_spec.rb → lib/config_spec.rb} +1 -1
  33. data/spec/{search_spec.rb → lib/search_spec.rb} +0 -5
  34. data/spec/{similarity_spec.rb → lib/similarity_spec.rb} +1 -1
  35. data/spec/spec_helper.rb +2 -3
  36. metadata +38 -70
  37. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml +0 -84
  38. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml +0 -81
  39. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml +0 -82
  40. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml +0 -85
  41. data/spec/cassettes/asin/lookup_and_search_should_return_a_rash_value.yml +0 -90
@@ -1,10 +1,6 @@
1
1
  script: "bundle exec rake"
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
5
4
  - jruby-19mode
6
5
  - rbx-19mode
7
6
  - ruby-head
8
- branches:
9
- only:
10
- - develop
@@ -1,3 +1,13 @@
1
+ ## 1.1.0
2
+
3
+ * remove built-in support for Hashie::Rash
4
+ * relaxe and update gem dependencies
5
+
6
+ ## 1.0.0
7
+
8
+ * add requirement to associate_tag in configuration
9
+ * update to latest API changes
10
+
1
11
  ## 0.8.0
2
12
 
3
13
  * use confiture for configuration
@@ -1,56 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- asin (0.8.0)
5
- confiture (~> 0.1)
6
- crack (~> 0.3)
7
- hashie (~> 1.1)
8
- httpi (~> 0.9)
4
+ asin (1.0.0)
5
+ confiture (>= 0.1)
6
+ crack (>= 0.3)
7
+ hashie (>= 1.1)
8
+ httpi (>= 0.9)
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- addressable (2.2.8)
13
+ addressable (2.3.2)
14
14
  coderay (1.0.7)
15
15
  confiture (0.1.2)
16
16
  crack (0.3.1)
17
17
  diff-lcs (1.1.3)
18
- fuubar (0.0.6)
19
- rspec (~> 2.0)
20
- rspec-instafail (~> 0.1.8)
21
- ruby-progressbar (~> 0.0.10)
22
- hashie (1.1.0)
23
- httpclient (2.2.3)
24
- httpi (0.9.7)
18
+ hashie (1.2.0)
19
+ httpclient (2.2.7)
20
+ httpi (1.1.1)
25
21
  rack
26
- method_source (0.7.1)
27
- pry (0.9.9.6)
22
+ method_source (0.8)
23
+ pry (0.9.10)
28
24
  coderay (~> 1.0.5)
29
- method_source (~> 0.7.1)
30
- slop (>= 2.4.4, < 3)
31
- pry (0.9.9.6-java)
25
+ method_source (~> 0.8)
26
+ slop (~> 3.3.1)
27
+ pry (0.9.10-java)
32
28
  coderay (~> 1.0.5)
33
- method_source (~> 0.7.1)
34
- slop (>= 2.4.4, < 3)
29
+ method_source (~> 0.8)
30
+ slop (~> 3.3.1)
35
31
  spoon (~> 0.0)
36
32
  rack (1.4.1)
37
33
  rake (0.9.2.2)
38
- rash (0.3.1)
39
- hashie (~> 1.1.0)
40
- rspec (2.7.0)
41
- rspec-core (~> 2.7.0)
42
- rspec-expectations (~> 2.7.0)
43
- rspec-mocks (~> 2.7.0)
44
- rspec-core (2.7.1)
45
- rspec-expectations (2.7.0)
46
- diff-lcs (~> 1.1.2)
47
- rspec-instafail (0.1.9)
48
- rspec-mocks (2.7.0)
49
- ruby-progressbar (0.0.10)
50
- slop (2.4.4)
34
+ rspec (2.11.0)
35
+ rspec-core (~> 2.11.0)
36
+ rspec-expectations (~> 2.11.0)
37
+ rspec-mocks (~> 2.11.0)
38
+ rspec-core (2.11.1)
39
+ rspec-expectations (2.11.3)
40
+ diff-lcs (~> 1.1.3)
41
+ rspec-mocks (2.11.3)
42
+ slop (3.3.3)
51
43
  spoon (0.0.1)
52
- vcr (1.11.3)
53
- webmock (1.8.7)
44
+ vcr (2.2.5)
45
+ webmock (1.8.10)
54
46
  addressable (>= 2.2.7)
55
47
  crack (>= 0.1.7)
56
48
 
@@ -60,11 +52,9 @@ PLATFORMS
60
52
 
61
53
  DEPENDENCIES
62
54
  asin!
63
- fuubar (~> 0.0.5)
64
- httpclient (~> 2.2.3)
55
+ httpclient (>= 2.2.3)
65
56
  pry (~> 0.9.9)
66
57
  rake (~> 0.9.2.2)
67
- rash (~> 0.3.1)
68
- rspec (~> 2.7.0)
69
- vcr (~> 1.11.3)
58
+ rspec (~> 2.11.0)
59
+ vcr (~> 2.2.5)
70
60
  webmock (~> 1.8.7)
data/README.md CHANGED
@@ -14,13 +14,11 @@ The gem runs smoothly with Rails 3 and is tested against multiple rubies. See *.
14
14
 
15
15
  gem install asin
16
16
  gem install httpclient # optional, see HTTPI
17
- gem install rash # optional, see Response Configuration
18
17
 
19
18
  or in your Gemfile:
20
19
 
21
20
  gem 'asin'
22
21
  gem 'httpclient' # optional, see HTTPI
23
- gem 'rash' # optional, see Response Configuration
24
22
 
25
23
  ## Configuration
26
24
 
@@ -127,11 +125,7 @@ but you can override this behavior for using your custom Classes:
127
125
  client.configure :cart_type => YourCartClass
128
126
  client.configure :node_type => YourNodeClass
129
127
 
130
- You can also use built-in *:raw*, *:mash* or *:rash* types.
131
- Since *rash* is an additional library, you need to add it to your gemfile if you want to use it:
132
-
133
- gem 'rash'
134
-
128
+ You can also use built-in *:raw*, *:mash* types.
135
129
  ## HTTPI
136
130
 
137
131
  ASIN uses [HTTPI](https://github.com/rubiii/httpi) as a HTTP-Client adapter.
@@ -9,8 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ['Peter Schröder']
10
10
  s.email = ['phoetmail@googlemail.com']
11
11
  s.homepage = 'http://github.com/phoet/asin'
12
- s.summary = 'Simple interface to AWS Lookup, Search and Cart operations.'
13
- s.description = 'Amazon Simple INterface.'
12
+ s.description = s.summary = 'Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search, BrowseNode and Cart Operations.'
14
13
 
15
14
  s.rubyforge_project = "asin"
16
15
 
@@ -19,20 +18,18 @@ Gem::Specification.new do |s|
19
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
19
  s.require_paths = ["lib"]
21
20
 
22
- s.add_dependency('crack', '~> 0.3')
23
- s.add_dependency('hashie', '~> 1.1')
24
- s.add_dependency('httpi', '~> 0.9')
25
- s.add_dependency('confiture', '~> 0.1')
21
+ s.add_dependency('crack', '>= 0.3')
22
+ s.add_dependency('hashie', '>= 1.1')
23
+ s.add_dependency('httpi', '>= 0.9')
24
+ s.add_dependency('confiture', '>= 0.1')
26
25
 
27
26
  s.add_runtime_dependency('jruby-openssl') if RUBY_PLATFORM == 'java'
28
27
 
29
- s.add_development_dependency('httpclient', '~> 2.2.3')
30
- s.add_development_dependency('rash', '~> 0.3.1')
28
+ s.add_development_dependency('httpclient', '>= 2.2.3')
31
29
 
32
30
  s.add_development_dependency('rake', '~> 0.9.2.2')
33
- s.add_development_dependency('vcr', '~> 1.11.3')
31
+ s.add_development_dependency('vcr', '~> 2.2.5')
34
32
  s.add_development_dependency('webmock', '~> 1.8.7')
35
- s.add_development_dependency('rspec', '~> 2.7.0')
36
- s.add_development_dependency('fuubar', '~> 0.0.5')
33
+ s.add_development_dependency('rspec', '~> 2.11.0')
37
34
  s.add_development_dependency('pry', '~> 0.9.9')
38
35
  end
@@ -327,9 +327,6 @@ module ASIN
327
327
  elsif type == :mash
328
328
  require 'hashie'
329
329
  Hashie::Mash.new(data)
330
- elsif type == :rash
331
- require 'rash'
332
- Hashie::Rash.new(data)
333
330
  else
334
331
  data
335
332
  end
@@ -23,9 +23,9 @@ module ASIN
23
23
  # [host] the host, which defaults to 'webservices.amazon.com'
24
24
  # [logger] a different logger than logging to STDERR (nil for no logging)
25
25
  # [version] a custom version of the API calls. Default is 2010-11-01
26
- # [item_type] a different class for SimpleItem, use :mash / :rash for Hashie::Mash / Hashie::Rash or :raw for a plain hash
27
- # [cart_type] a different class for SimpleCart, use :mash / :rash for Hashie::Mash / Hashie::Rash or :raw for a plain hash
28
- # [node_type] a different class for SimpleNode, use :mash / :rash for Hashie::Mash / Hashie::Rash or :raw for a plain hash
26
+ # [item_type] a different class for SimpleItem, use :mash for Hashie::Mash or :raw for a plain hash
27
+ # [cart_type] a different class for SimpleCart, use :mash for Hashie::Mash or :raw for a plain hash
28
+ # [node_type] a different class for SimpleNode, use :mash for Hashie::Mash or :raw for a plain hash
29
29
  #
30
30
  class Configuration
31
31
  include Confiture::Configuration
@@ -1,3 +1,3 @@
1
1
  module ASIN
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -4,8 +4,8 @@ require "rspec/core/rake_task"
4
4
  Bundler::GemHelper.install_tasks
5
5
 
6
6
  RSpec::Core::RakeTask.new do |t|
7
- t.rspec_opts = ["--format Fuubar", "--color"]
7
+ t.rspec_opts = ["--format documentation", "--color"]
8
8
  t.pattern = 'spec/**/*_spec.rb'
9
9
  end
10
10
 
11
- task :default=>:spec
11
+ task :default => :spec
@@ -1,44 +1,50 @@
1
1
  ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&BrowseNodeId=599826&Operation=BrowseNodeLookup&ResponseGroup=BrowseNodeInfo&Service=AWSECommerceService&Signature=JR37iX+Dg2nrP56PRM3y844/H0wESfuTcaUUHaAS4SY=&Timestamp=2012-09-22T13:41:46Z&Version=2011-08-01
6
- body:
7
- headers:
8
- response: !ruby/struct:VCR::Response
9
- status: !ruby/struct:VCR::ResponseStatus
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&BrowseNodeId=599826&Operation=BrowseNodeLookup&ResponseGroup=BrowseNodeInfo&Service=AWSECommerceService&Signature=UB+NuD8bReMd+8UFaQva+uJiYYsM6uefMtPTVysD2dU=&Timestamp=2012-09-25T20:04:51Z&Version=2011-08-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
10
12
  code: 200
11
13
  message: !binary |-
12
14
  T0s=
13
15
  headers:
14
- !binary "ZGF0ZQ==":
16
+ !binary "RGF0ZQ==":
15
17
  - !binary |-
16
- U2F0LCAyMiBTZXAgMjAxMiAxMzo0MTo0MiBHTVQ=
17
- !binary "c2VydmVy":
18
+ VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1MyBHTVQ=
19
+ !binary "U2VydmVy":
18
20
  - !binary |-
19
21
  U2VydmVy
20
- !binary "Y29udGVudC10eXBl":
22
+ !binary "Q29udGVudC1UeXBl":
21
23
  - !binary |-
22
24
  dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
23
- !binary "dmFyeQ==":
25
+ !binary "VmFyeQ==":
24
26
  - !binary |-
25
27
  QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
26
- !binary "bm5jb2VjdGlvbg==":
28
+ !binary "Tm5jb2VjdGlvbg==":
27
29
  - !binary |-
28
30
  Y2xvc2U=
29
- !binary "dHJhbnNmZXItZW5jb2Rpbmc=":
31
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
30
32
  - !binary |-
31
33
  Y2h1bmtlZA==
32
- body: <BrowseNodeLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><RequestId>0966442c-04b1-4174-bb51-e6cf37f3fe24</RequestId><Arguments><Argument
33
- Name="Operation" Value="BrowseNodeLookup"/><Argument Name="Service" Value="AWSECommerceService"/><Argument
34
- Name="Signature" Value="JR37iX+Dg2nrP56PRM3y844/H0wESfuTcaUUHaAS4SY="/><Argument
35
- Name="AssociateTag" Value="phoet-20"/><Argument Name="Version" Value="2011-08-01"/><Argument
36
- Name="BrowseNodeId" Value="599826"/><Argument Name="AWSAccessKeyId" Value="AKIAIBNLWSCV5OXMPD6A"/><Argument
37
- Name="Timestamp" Value="2012-09-22T13:41:46Z"/><Argument Name="ResponseGroup"
38
- Value="BrowseNodeInfo"/></Arguments><RequestProcessingTime>0.008533</RequestProcessingTime></OperationRequest><BrowseNodes><Request><IsValid>True</IsValid><BrowseNodeLookupRequest><BrowseNodeId>599826</BrowseNodeId><ResponseGroup>BrowseNodeInfo</ResponseGroup></BrowseNodeLookupRequest></Request><BrowseNode><BrowseNodeId>599826</BrowseNodeId><Name>Comedy</Name><Ancestors><BrowseNode><BrowseNodeId>501230</BrowseNodeId><Name>Boxed
39
- Sets</Name><Ancestors><BrowseNode><BrowseNodeId>2998369011</BrowseNodeId><Name>DVD
40
- Custom Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644982011</BrowseNodeId><Name>Custom
41
- Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644981011</BrowseNodeId><Name>Specialty
42
- Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2625373011</BrowseNodeId><Name>Movies
43
- &amp; TV</Name></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></BrowseNodes></BrowseNodeLookupResponse>
44
- http_version: '1.1'
34
+ body:
35
+ encoding: US-ASCII
36
+ string: <BrowseNodeLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><RequestId>8189583a-defc-4fef-8ac0-c7347b03233e</RequestId><Arguments><Argument
37
+ Name="Operation" Value="BrowseNodeLookup"/><Argument Name="Service" Value="AWSECommerceService"/><Argument
38
+ Name="Signature" Value="UB+NuD8bReMd+8UFaQva+uJiYYsM6uefMtPTVysD2dU="/><Argument
39
+ Name="AssociateTag" Value="phoet-20"/><Argument Name="Version" Value="2011-08-01"/><Argument
40
+ Name="BrowseNodeId" Value="599826"/><Argument Name="AWSAccessKeyId" Value="AKIAIBNLWSCV5OXMPD6A"/><Argument
41
+ Name="Timestamp" Value="2012-09-25T20:04:51Z"/><Argument Name="ResponseGroup"
42
+ Value="BrowseNodeInfo"/></Arguments><RequestProcessingTime>0.009791</RequestProcessingTime></OperationRequest><BrowseNodes><Request><IsValid>True</IsValid><BrowseNodeLookupRequest><BrowseNodeId>599826</BrowseNodeId><ResponseGroup>BrowseNodeInfo</ResponseGroup></BrowseNodeLookupRequest></Request><BrowseNode><BrowseNodeId>599826</BrowseNodeId><Name>Comedy</Name><Ancestors><BrowseNode><BrowseNodeId>501230</BrowseNodeId><Name>Boxed
43
+ Sets</Name><Ancestors><BrowseNode><BrowseNodeId>2998369011</BrowseNodeId><Name>DVD
44
+ Custom Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644982011</BrowseNodeId><Name>Custom
45
+ Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644981011</BrowseNodeId><Name>Specialty
46
+ Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2625373011</BrowseNodeId><Name>Movies
47
+ &amp; TV</Name></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></BrowseNodes></BrowseNodeLookupResponse>
48
+ http_version:
49
+ recorded_at: Tue, 25 Sep 2012 20:04:51 GMT
50
+ recorded_with: VCR 2.2.5
@@ -1,43 +1,50 @@
1
1
  ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&Item.0.ASIN=1430218150&Item.0.Quantity=1&Item.1.ASIN=1430216263&Item.1.Quantity=2&Operation=CartCreate&Service=AWSECommerceService&Signature=94x6IL1Xx0E98uLAzARafcUSduERAcKZZAahVL0M59o=&Timestamp=2012-09-22T13:41:47Z&Version=2011-08-01
6
- body:
7
- headers:
8
- response: !ruby/struct:VCR::Response
9
- status: !ruby/struct:VCR::ResponseStatus
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&Item.0.ASIN=1430218150&Item.0.Quantity=1&Item.1.ASIN=1430216263&Item.1.Quantity=2&Operation=CartCreate&Service=AWSECommerceService&Signature=flV22mEdFjJLQhXrliGTeo2KaTfDh0f2lc80z/GKrEM=&Timestamp=2012-09-25T20:04:51Z&Version=2011-08-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
10
12
  code: 200
11
13
  message: !binary |-
12
14
  T0s=
13
15
  headers:
14
- !binary "ZGF0ZQ==":
16
+ !binary "RGF0ZQ==":
15
17
  - !binary |-
16
- U2F0LCAyMiBTZXAgMjAxMiAxMzo0MTo0MiBHTVQ=
17
- !binary "c2VydmVy":
18
+ VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1MyBHTVQ=
19
+ !binary "U2VydmVy":
18
20
  - !binary |-
19
21
  U2VydmVy
20
- !binary "Y29udGVudC10eXBl":
22
+ !binary "Q29udGVudC1UeXBl":
21
23
  - !binary |-
22
24
  dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
23
- !binary "dmFyeQ==":
25
+ !binary "VmFyeQ==":
24
26
  - !binary |-
25
27
  QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
26
- !binary "bm5jb2VjdGlvbg==":
28
+ !binary "Tm5jb2VjdGlvbg==":
27
29
  - !binary |-
28
30
  Y2xvc2U=
29
- !binary "dHJhbnNmZXItZW5jb2Rpbmc=":
31
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
30
32
  - !binary |-
31
33
  Y2h1bmtlZA==
32
- body: ! '<?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
33
- Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>1TJQ45VR3HHEQ91Q6TFD</RequestId><Arguments><Argument
34
- Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Item.1.ASIN"
35
- Value="1430216263"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
36
- Name="Item.0.Quantity" Value="1"></Argument><Argument Name="Signature" Value="94x6IL1Xx0E98uLAzARafcUSduERAcKZZAahVL0M59o="></Argument><Argument
37
- Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="Item.1.Quantity"
38
- Value="2"></Argument><Argument Name="Operation" Value="CartCreate"></Argument><Argument
39
- Name="AWSAccessKeyId" Value="AKIAIBNLWSCV5OXMPD6A"></Argument><Argument Name="Timestamp"
40
- Value="2012-09-22T13:41:47Z"></Argument><Argument Name="Version" Value="2011-08-01"></Argument></Arguments><RequestProcessingTime>0.196837902069092</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item><Item><ASIN>1430216263</ASIN><Quantity>2</Quantity></Item></Items></CartCreateRequest></Request><CartId>175-6420802-8237500</CartId><HMAC>WyQGLltheoq0tMKsFq47Fe+gj2I=</HMAC><URLEncodedHMAC>WyQGLltheoq0tMKsFq47Fe%2Bgj2I%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=175-6420802-8237500%26associate-id=phoet-20%26hmac=WyQGLltheoq0tMKsFq47Fe%2Bgj2I=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
41
- Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>C3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
42
- iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2594</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$25.94</FormattedPrice></Price><ItemTotal><Amount>5188</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$51.88</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>'
43
- http_version: '1.1'
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ! '<?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
37
+ Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>1HQKRF1W2YT6MSR5Y5PA</RequestId><Arguments><Argument
38
+ Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Item.0.Quantity"
39
+ Value="1"></Argument><Argument Name="Item.1.Quantity" Value="2"></Argument><Argument
40
+ Name="Operation" Value="CartCreate"></Argument><Argument Name="Timestamp"
41
+ Value="2012-09-25T20:04:51Z"></Argument><Argument Name="Version" Value="2011-08-01"></Argument><Argument
42
+ Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Item.1.ASIN"
43
+ Value="1430216263"></Argument><Argument Name="Signature" Value="flV22mEdFjJLQhXrliGTeo2KaTfDh0f2lc80z/GKrEM="></Argument><Argument
44
+ Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="AWSAccessKeyId"
45
+ Value="AKIAIBNLWSCV5OXMPD6A"></Argument></Arguments><RequestProcessingTime>0.18497109413147</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item><Item><ASIN>1430216263</ASIN><Quantity>2</Quantity></Item></Items></CartCreateRequest></Request><CartId>178-4406165-1533801</CartId><HMAC>j34Oo0M/z1qqCknonoH2sLHC7rc=</HMAC><URLEncodedHMAC>j34Oo0M%2Fz1qqCknonoH2sLHC7rc%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=178-4406165-1533801%26associate-id=phoet-20%26hmac=j34Oo0M/z1qqCknonoH2sLHC7rc=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
46
+ Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>C3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
47
+ iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2594</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$25.94</FormattedPrice></Price><ItemTotal><Amount>5188</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$51.88</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>'
48
+ http_version:
49
+ recorded_at: Tue, 25 Sep 2012 20:04:52 GMT
50
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,93 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&Item.0.ASIN=1430218150&Item.0.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=cfMtsaSBmsdjvivwfY3b8qLvb4xEUy4zU2c1a++MU/8=&Timestamp=2012-09-25T20:04:54Z&Version=2011-08-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "RGF0ZQ==":
17
+ - !binary |-
18
+ VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1NiBHTVQ=
19
+ !binary "U2VydmVy":
20
+ - !binary |-
21
+ U2VydmVy
22
+ !binary "Q29udGVudC1UeXBl":
23
+ - !binary |-
24
+ dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
25
+ !binary "VmFyeQ==":
26
+ - !binary |-
27
+ QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
28
+ !binary "Tm5jb2VjdGlvbg==":
29
+ - !binary |-
30
+ Y2xvc2U=
31
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
32
+ - !binary |-
33
+ Y2h1bmtlZA==
34
+ body:
35
+ encoding: US-ASCII
36
+ string: <?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
37
+ Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>08794EK0TGS8F6R0J6N5</RequestId><Arguments><Argument
38
+ Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Item.0.Quantity"
39
+ Value="1"></Argument><Argument Name="Operation" Value="CartCreate"></Argument><Argument
40
+ Name="Timestamp" Value="2012-09-25T20:04:54Z"></Argument><Argument Name="Version"
41
+ Value="2011-08-01"></Argument><Argument Name="AssociateTag" Value="phoet-20"></Argument><Argument
42
+ Name="Signature" Value="cfMtsaSBmsdjvivwfY3b8qLvb4xEUy4zU2c1a++MU/8="></Argument><Argument
43
+ Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="AWSAccessKeyId"
44
+ Value="AKIAIBNLWSCV5OXMPD6A"></Argument></Arguments><RequestProcessingTime>0.131492137908936</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>192-6352781-1036323</CartId><HMAC>pUpWk87PTHSRkzYY1JZMQ64viG4=</HMAC><URLEncodedHMAC>pUpWk87PTHSRkzYY1JZMQ64viG4%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=192-6352781-1036323%26associate-id=phoet-20%26hmac=pUpWk87PTHSRkzYY1JZMQ64viG4=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></SubTotal><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
45
+ Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
46
+ http_version:
47
+ recorded_at: Tue, 25 Sep 2012 20:04:55 GMT
48
+ - request:
49
+ method: get
50
+ uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&CartId=192-6352781-1036323&HMAC=pUpWk87PTHSRkzYY1JZMQ64viG4=&Item.0.ASIN=1430216263&Item.0.Quantity=2&Operation=CartAdd&Service=AWSECommerceService&Signature=3izDgv/ClrGF57ZNaa/GDkN03FwJRScT3Y6C79pmIqM=&Timestamp=2012-09-25T20:04:55Z&Version=2011-08-01
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers: {}
55
+ response:
56
+ status:
57
+ code: 200
58
+ message: !binary |-
59
+ T0s=
60
+ headers:
61
+ !binary "RGF0ZQ==":
62
+ - !binary |-
63
+ VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1NiBHTVQ=
64
+ !binary "U2VydmVy":
65
+ - !binary |-
66
+ U2VydmVy
67
+ !binary "Q29udGVudC1UeXBl":
68
+ - !binary |-
69
+ dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
70
+ !binary "VmFyeQ==":
71
+ - !binary |-
72
+ QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
73
+ !binary "Tm5jb2VjdGlvbg==":
74
+ - !binary |-
75
+ Y2xvc2U=
76
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
77
+ - !binary |-
78
+ Y2h1bmtlZA==
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ! '<?xml version="1.0" encoding="UTF-8"?><CartAddResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
82
+ Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0KE8K85TK8SJ889BN77G</RequestId><Arguments><Argument
83
+ Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
84
+ Name="Item.0.Quantity" Value="2"></Argument><Argument Name="Signature" Value="3izDgv/ClrGF57ZNaa/GDkN03FwJRScT3Y6C79pmIqM="></Argument><Argument
85
+ Name="Item.0.ASIN" Value="1430216263"></Argument><Argument Name="HMAC" Value="pUpWk87PTHSRkzYY1JZMQ64viG4="></Argument><Argument
86
+ Name="Operation" Value="CartAdd"></Argument><Argument Name="CartId" Value="192-6352781-1036323"></Argument><Argument
87
+ Name="AWSAccessKeyId" Value="AKIAIBNLWSCV5OXMPD6A"></Argument><Argument Name="Timestamp"
88
+ Value="2012-09-25T20:04:55Z"></Argument><Argument Name="Version" Value="2011-08-01"></Argument></Arguments><RequestProcessingTime>0.154760837554932</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartAddRequest><CartId>192-6352781-1036323</CartId><HMAC>pUpWk87PTHSRkzYY1JZMQ64viG4=</HMAC><Items><Item><ASIN>1430216263</ASIN><Quantity>2</Quantity></Item></Items></CartAddRequest></Request><CartId>192-6352781-1036323</CartId><HMAC>pUpWk87PTHSRkzYY1JZMQ64viG4=</HMAC><URLEncodedHMAC>pUpWk87PTHSRkzYY1JZMQ64viG4%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=192-6352781-1036323%26associate-id=phoet-20%26hmac=pUpWk87PTHSRkzYY1JZMQ64viG4=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItem><CartItemId>C3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
89
+ iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2594</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$25.94</FormattedPrice></Price><ItemTotal><Amount>5188</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$51.88</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
90
+ Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartAddResponse>'
91
+ http_version:
92
+ recorded_at: Tue, 25 Sep 2012 20:04:55 GMT
93
+ recorded_with: VCR 2.2.5