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 +4 -4
- data/README.md +1 -1
- data/lib/vacuum/request.rb +9 -8
- data/lib/vacuum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2187eb118ab30e2d03a6aa4363456335614b2ea0
|
4
|
+
data.tar.gz: d627561295a2da45b87030ccb10cef19461070ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50fc2693d3e43a4ca83279d4a39c162ea9bef69f722b4a70fbf9bf0816a7058bd6dc03c919be5c1d95b00e6c6ae7a2e51e88649d4f6083f338c96fbc75ef69fc
|
7
|
+
data.tar.gz: 27e153888b98328823574adc22f5ff93e9420998b025163d5ae0cfd0e98189747417d194b0d08a5db6f0b5256679ac5a6e00f84e2507db72ab15350ac73de69a
|
data/README.md
CHANGED
data/lib/vacuum/request.rb
CHANGED
@@ -9,15 +9,16 @@ module Vacuum
|
|
9
9
|
|
10
10
|
# A list of Amazon Product Advertising API hosts.
|
11
11
|
HOSTS = {
|
12
|
-
'CA' => '
|
12
|
+
'CA' => 'webservices.amazon.ca',
|
13
13
|
'CN' => 'webservices.amazon.cn',
|
14
|
-
'DE' => '
|
14
|
+
'DE' => 'webservices.amazon.de',
|
15
15
|
'ES' => 'webservices.amazon.es',
|
16
|
-
'FR' => '
|
16
|
+
'FR' => 'webservices.amazon.fr',
|
17
|
+
'IN' => 'webservices.amazon.in',
|
17
18
|
'IT' => 'webservices.amazon.it',
|
18
|
-
'JP' => '
|
19
|
-
'GB' => '
|
20
|
-
'US' => '
|
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.
|
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
|
-
[
|
74
|
+
[aws_endpoint, build_options(opts).fetch(:query)].join('?')
|
74
75
|
end
|
75
76
|
end
|
76
77
|
end
|
data/lib/vacuum/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jeff
|