vacuum 4.0.0 → 4.2.0

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
  SHA256:
3
- metadata.gz: fa1820852b9b98be65a7a8f3a69a65f89a5ac914dff10800bb9524709bb907ea
4
- data.tar.gz: 8e1b3d9bbc02807619c48259b22424414dbff2f6c7adbf53eddd1962f7b3c055
3
+ metadata.gz: 34c9e2f22421d1e451012c575f258b6edcf08b1530fa8c1fe2c0f03962e71203
4
+ data.tar.gz: c57c9b38a17b85a46ea18588d6ee6ec0250ff3b86bf561424d61815c032ff126
5
5
  SHA512:
6
- metadata.gz: 8a3b132c7c99a7b0f8878e7febc4bed97adac3c26b94b883f3118251f3bc2f71975fe4a9c48d787e0a75b944993bccc8bad78d7a998a7109d8f303a10b95f3ba
7
- data.tar.gz: 81ebb45404ce50a2519691bc4bfd0acc4898732d0f5c1872aac21892435ded6a345d345c0db8d42ab452cc015dcecdcc6ee4ccab2205dc28b08a22b36da38ed9
6
+ metadata.gz: 032b32779e3560cfe7eca40a198c7c9796d58febf6da78e652e2a63aa399bde0beb5e7e39bd270c3d9dbdc48a1badee37fd1451aaa84aae7cdb846e8649051ba
7
+ data.tar.gz: bccaa58046ba0d8807c253aa18aa9014518acd6e74fb0080dd102c8fbd08ec743bb88455a650750b7107ddae3459080bad8167e3f84dc21bd2642767496fb7c9
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2010-2021 Hakan Ensari
3
+ Copyright (c) 2010-2024 Hakan Ensari
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/lib/vacuum/locale.rb CHANGED
@@ -11,8 +11,10 @@ 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'],
@@ -20,8 +22,11 @@ module Vacuum
20
22
  jp: ['webservices.amazon.co.jp', 'us-west-2'],
21
23
  mx: ['webservices.amazon.com.mx', 'us-east-1'],
22
24
  nl: ['webservices.amazon.nl', 'eu-west-1'],
25
+ pl: ['webservices.amazon.pl', 'eu-west-1'],
23
26
  sg: ['webservices.amazon.sg', 'us-west-2'],
27
+ sa: ['webservices.amazon.sa', 'eu-west-1'],
24
28
  es: ['webservices.amazon.es', 'eu-west-1'],
29
+ se: ['webservices.amazon.se', 'eu-west-1'],
25
30
  tr: ['webservices.amazon.com.tr', 'eu-west-1'],
26
31
  ae: ['webservices.amazon.ae', 'eu-west-1'],
27
32
  gb: ['webservices.amazon.co.uk', 'eu-west-1'],
@@ -61,7 +61,7 @@ module Vacuum
61
61
  end
62
62
 
63
63
  def signature
64
- signer.sign_request(http_method: 'POST', url: url, body: body)
64
+ signer.sign_request(http_method: 'POST', url:, body:)
65
65
  end
66
66
 
67
67
  def signer
@@ -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: 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: params, locale: locale)
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
 
@@ -35,7 +35,7 @@ module Vacuum
35
35
  #
36
36
  # @note Delegates to {#to_h} if no custom parser is set
37
37
  def parse
38
- parser ? parser.parse(body) : to_h
38
+ parser&.parse(body) || to_h
39
39
  end
40
40
 
41
41
  # Casts body to Hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vacuum
4
- VERSION = '4.0.0'
4
+ VERSION = '4.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vacuum
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-27 00:00:00.000000000 Z
12
+ date: 2024-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sigv4
@@ -45,135 +45,9 @@ dependencies:
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '6.0'
48
- - !ruby/object:Gem::Dependency
49
- name: minitest
50
- requirement: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :development
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- type: :development
70
- prerelease: false
71
- version_requirements: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- - !ruby/object:Gem::Dependency
77
- name: rubocop
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- - !ruby/object:Gem::Dependency
91
- name: rubocop-minitest
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- type: :development
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- - !ruby/object:Gem::Dependency
105
- name: rubocop-rake
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- - !ruby/object:Gem::Dependency
119
- name: simplecov
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 0.17.1
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 0.17.1
132
- - !ruby/object:Gem::Dependency
133
- name: vcr
134
- requirement: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- type: :development
140
- prerelease: false
141
- version_requirements: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- - !ruby/object:Gem::Dependency
147
- name: webmock
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- type: :development
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- - !ruby/object:Gem::Dependency
161
- name: yard
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
48
  description: A wrapper to the Amazon Product Advertising API
175
49
  email:
176
- - me@hakanensari.com
50
+ - hakanensari@gmail.com
177
51
  - sk@skylup.com
178
52
  executables: []
179
53
  extensions: []
@@ -188,21 +62,11 @@ files:
188
62
  - lib/vacuum/request.rb
189
63
  - lib/vacuum/response.rb
190
64
  - lib/vacuum/version.rb
191
- - test/cassettes/vacuum.yml
192
- - test/helper.rb
193
- - test/integration/test_requests.rb
194
- - test/integration_helper.rb
195
- - test/locales.rb
196
- - test/locales.yml
197
- - test/locales.yml.example
198
- - test/unit/test_locale.rb
199
- - test/unit/test_operation.rb
200
- - test/unit/test_request.rb
201
- - test/unit/test_response.rb
202
65
  homepage: https://github.com/hakanensari/vacuum
203
66
  licenses:
204
67
  - MIT
205
- metadata: {}
68
+ metadata:
69
+ rubygems_mfa_required: 'true'
206
70
  post_install_message:
207
71
  rdoc_options: []
208
72
  require_paths:
@@ -211,26 +75,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
75
  requirements:
212
76
  - - ">="
213
77
  - !ruby/object:Gem::Version
214
- version: '2.6'
78
+ version: '3.1'
215
79
  required_rubygems_version: !ruby/object:Gem::Requirement
216
80
  requirements:
217
81
  - - ">="
218
82
  - !ruby/object:Gem::Version
219
83
  version: '0'
220
84
  requirements: []
221
- rubygems_version: 3.2.15
85
+ rubygems_version: 3.5.16
222
86
  signing_key:
223
87
  specification_version: 4
224
88
  summary: Amazon Product Advertising in Ruby
225
- test_files:
226
- - test/cassettes/vacuum.yml
227
- - test/helper.rb
228
- - test/integration/test_requests.rb
229
- - test/integration_helper.rb
230
- - test/locales.rb
231
- - test/locales.yml
232
- - test/locales.yml.example
233
- - test/unit/test_locale.rb
234
- - test/unit/test_operation.rb
235
- - test/unit/test_request.rb
236
- - test/unit/test_response.rb
89
+ test_files: []