vacuum 0.4.0 → 0.4.1

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: d07486645b8ea810b09ea915c530618f63044dd6
4
- data.tar.gz: 8e09b77ac5525b6f4ded9af4eaa1162d7b6e3ad3
3
+ metadata.gz: 2187eb118ab30e2d03a6aa4363456335614b2ea0
4
+ data.tar.gz: d627561295a2da45b87030ccb10cef19461070ef
5
5
  SHA512:
6
- metadata.gz: 3c0961d922ddb4999cdbd597c24174b44b3619f9ed82cacf6cba40fe928c5c202c694404b9f43b2ca754d2b70b86e777d5058371ed8ca9ca3c8fecec77f0fb51
7
- data.tar.gz: 913688bc90be1251d194b303d3737cbf30400392b9f65dc00f102dca5ddd52c6b8e128740f1cf54e90bdd975f3b2ef551c8906abc81b9b5061660e8f25548bb6
6
+ metadata.gz: 50fc2693d3e43a4ca83279d4a39c162ea9bef69f722b4a70fbf9bf0816a7058bd6dc03c919be5c1d95b00e6c6ae7a2e51e88649d4f6083f338c96fbc75ef69fc
7
+ data.tar.gz: 27e153888b98328823574adc22f5ff93e9420998b025163d5ae0cfd0e98189747417d194b0d08a5db6f0b5256679ac5a6e00f84e2507db72ab15350ac73de69a
data/README.md CHANGED
@@ -49,7 +49,7 @@ require 'multi_xml'
49
49
  class Response
50
50
  extend Forwardable
51
51
 
52
- def_delegators :code, :body, :@response
52
+ def_delegators :@response, :code, :body
53
53
 
54
54
  def initialize(response)
55
55
  @response = response
@@ -9,15 +9,16 @@ module Vacuum
9
9
 
10
10
  # A list of Amazon Product Advertising API hosts.
11
11
  HOSTS = {
12
- 'CA' => 'ecs.amazonaws.ca',
12
+ 'CA' => 'webservices.amazon.ca',
13
13
  'CN' => 'webservices.amazon.cn',
14
- 'DE' => 'ecs.amazonaws.de',
14
+ 'DE' => 'webservices.amazon.de',
15
15
  'ES' => 'webservices.amazon.es',
16
- 'FR' => 'ecs.amazonaws.fr',
16
+ 'FR' => 'webservices.amazon.fr',
17
+ 'IN' => 'webservices.amazon.in',
17
18
  'IT' => 'webservices.amazon.it',
18
- 'JP' => 'ecs.amazonaws.jp',
19
- 'GB' => 'ecs.amazonaws.co.uk',
20
- 'US' => 'ecs.amazonaws.com'
19
+ 'JP' => 'webservices.amazon.co.jp',
20
+ 'GB' => 'webservices.amazon.co.uk',
21
+ 'US' => 'webservices.amazon.com'
21
22
  }.freeze
22
23
 
23
24
  params 'AssociateTag' => -> { associate_tag },
@@ -36,7 +37,7 @@ module Vacuum
36
37
  end
37
38
 
38
39
  host = HOSTS[locale || 'US'] or raise BadLocale
39
- self.endpoint = "http://#{host}/onca/xml"
40
+ self.aws_endpoint = "http://#{host}/onca/xml"
40
41
  end
41
42
 
42
43
  # Configure the Amazon Product Advertising API request.
@@ -70,7 +71,7 @@ module Vacuum
70
71
  query: params
71
72
  }
72
73
 
73
- [endpoint, build_options(opts).fetch(:query)].join('?')
74
+ [aws_endpoint, build_options(opts).fetch(:query)].join('?')
74
75
  end
75
76
  end
76
77
  end
@@ -1,3 +1,3 @@
1
1
  module Vacuum
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vacuum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-04 00:00:00.000000000 Z
11
+ date: 2013-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff