vacuum 4.1.0 → 4.3.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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/vacuum/locale.rb +7 -5
- data/lib/vacuum/operation.rb +1 -1
- data/lib/vacuum/request.rb +2 -2
- data/lib/vacuum/version.rb +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9defa7d4e94d0039667f94ede365982df2d9fac5a63be691a90e0efe3124aa1
|
4
|
+
data.tar.gz: fc35f8f66b767c8f8a9951e83cd247611b00c221715ca633eb84916d6d9d294c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e21de47a9ce2ab5fdfb290c7d429e884c9c41c09e19a276ae76a90b2157aa38f83e99538633f2c7cad26cdc85e595885f28654d6072dd308fd87cd793fb36633
|
7
|
+
data.tar.gz: 619767b577fc2ecdcd04e4f034973a244d9b5f37319094df8fb58633c048c8644bce310fe5b16c0e27bb432ec7b7760b29689598b9417af3c37ca3c698d82685
|
data/LICENSE
CHANGED
data/lib/vacuum/locale.rb
CHANGED
@@ -11,25 +11,27 @@ module Vacuum
|
|
11
11
|
|
12
12
|
HOSTS_AND_REGIONS = {
|
13
13
|
au: ['webservices.amazon.com.au', 'us-west-2'],
|
14
|
+
be: ['webservices.amazon.be', 'eu-west-1'],
|
14
15
|
br: ['webservices.amazon.com.br', 'us-east-1'],
|
15
16
|
ca: ['webservices.amazon.ca', 'us-east-1'],
|
17
|
+
eg: ['webservices.amazon.eg', 'eu-west-1'],
|
16
18
|
fr: ['webservices.amazon.fr', 'eu-west-1'],
|
17
19
|
de: ['webservices.amazon.de', 'eu-west-1'],
|
18
20
|
in: ['webservices.amazon.in', 'eu-west-1'],
|
21
|
+
ie: ['webservices.amazon.ie', 'eu-west-1'],
|
19
22
|
it: ['webservices.amazon.it', 'eu-west-1'],
|
20
23
|
jp: ['webservices.amazon.co.jp', 'us-west-2'],
|
21
24
|
mx: ['webservices.amazon.com.mx', 'us-east-1'],
|
22
25
|
nl: ['webservices.amazon.nl', 'eu-west-1'],
|
26
|
+
pl: ['webservices.amazon.pl', 'eu-west-1'],
|
23
27
|
sg: ['webservices.amazon.sg', 'us-west-2'],
|
28
|
+
sa: ['webservices.amazon.sa', 'eu-west-1'],
|
24
29
|
es: ['webservices.amazon.es', 'eu-west-1'],
|
30
|
+
se: ['webservices.amazon.se', 'eu-west-1'],
|
25
31
|
tr: ['webservices.amazon.com.tr', 'eu-west-1'],
|
26
32
|
ae: ['webservices.amazon.ae', 'eu-west-1'],
|
27
33
|
gb: ['webservices.amazon.co.uk', 'eu-west-1'],
|
28
|
-
us: ['webservices.amazon.com', 'us-east-1']
|
29
|
-
eg: ['webservices.amazon.eg', 'eu-west-1'],
|
30
|
-
pl: ['webservices.amazon.pl', 'eu-west-1'],
|
31
|
-
sa: ['webservices.amazon.sa', 'eu-west-1'],
|
32
|
-
se: ['webservices.amazon.se', 'eu-west-1']
|
34
|
+
us: ['webservices.amazon.com', 'us-east-1']
|
33
35
|
}.freeze
|
34
36
|
private_constant :HOSTS_AND_REGIONS
|
35
37
|
|
data/lib/vacuum/operation.rb
CHANGED
data/lib/vacuum/request.rb
CHANGED
@@ -129,7 +129,7 @@ module Vacuum
|
|
129
129
|
# @return [self]
|
130
130
|
def persistent(timeout: 5)
|
131
131
|
host = "https://#{locale.host}"
|
132
|
-
@client = client.persistent(host, timeout:
|
132
|
+
@client = client.persistent(host, timeout:)
|
133
133
|
|
134
134
|
self
|
135
135
|
end
|
@@ -163,7 +163,7 @@ module Vacuum
|
|
163
163
|
|
164
164
|
def request(operation_name, params)
|
165
165
|
validate_keywords(params)
|
166
|
-
@operation = Operation.new(operation_name, params
|
166
|
+
@operation = Operation.new(operation_name, params:, locale:)
|
167
167
|
response = client.headers(operation.headers)
|
168
168
|
.post(operation.url, body: operation.body)
|
169
169
|
|
data/lib/vacuum/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vacuum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hakan Ensari
|
8
8
|
- Stanislav Katkov
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: aws-sigv4
|
@@ -47,7 +46,7 @@ dependencies:
|
|
47
46
|
version: '6.0'
|
48
47
|
description: A wrapper to the Amazon Product Advertising API
|
49
48
|
email:
|
50
|
-
-
|
49
|
+
- hakanensari@gmail.com
|
51
50
|
- sk@skylup.com
|
52
51
|
executables: []
|
53
52
|
extensions: []
|
@@ -67,7 +66,6 @@ licenses:
|
|
67
66
|
- MIT
|
68
67
|
metadata:
|
69
68
|
rubygems_mfa_required: 'true'
|
70
|
-
post_install_message:
|
71
69
|
rdoc_options: []
|
72
70
|
require_paths:
|
73
71
|
- lib
|
@@ -75,15 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
73
|
requirements:
|
76
74
|
- - ">="
|
77
75
|
- !ruby/object:Gem::Version
|
78
|
-
version: '2
|
76
|
+
version: '3.2'
|
79
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
78
|
requirements:
|
81
79
|
- - ">="
|
82
80
|
- !ruby/object:Gem::Version
|
83
81
|
version: '0'
|
84
82
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
86
|
-
signing_key:
|
83
|
+
rubygems_version: 3.6.2
|
87
84
|
specification_version: 4
|
88
85
|
summary: Amazon Product Advertising in Ruby
|
89
86
|
test_files: []
|