vacuum 3.4.1 → 4.1.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: 61ab29cce33477553968b592986abbc5de22f4885945032313a08dc89174c5c4
4
- data.tar.gz: 01b3fddbc4f06899df06c595ff28dc0f812cca8d1b8604771614a077129d4a99
3
+ metadata.gz: 32de5f3eacc54e8af929aa9ea3bf20f729d95bb63ccec8b4ace5afc8964e67b3
4
+ data.tar.gz: b2851592e815e7d393619f6f6504acc3ef1668549ce966af5480ca293017c9c4
5
5
  SHA512:
6
- metadata.gz: b0d2aeb0b372920cca1f68268fe91f80630ca7272e1a6dadb25677aacad9a6ae86fa3ec2056ec5419f3167c2871ed9ffaf4a37dc248b8d0bc50ce51599a08e9a
7
- data.tar.gz: 423a1e7ccd04499c3df8a05dde1da3a25f691ef4d846f64bd59ac55af55f9783239efdd537881a0c460900cad326fdd4c50041e0ce7bb9233cd3c934861227ba
6
+ metadata.gz: 7a32eb1a6db5ee923a87e1ad20664eaa17621f5432b0041f4b831d5d67070e8deb7dd58928fad3aefa020fc18e553e95fcca01d5132d23d913dfcd3302a2f0cb
7
+ data.tar.gz: 91fd3af04a013591a90930db4d3c9e8de47b890899f8aa0973c04bd374b308309a15c20ad1342b3bb0e51375b8b44c4976bdb5a9cee4b3c53db02a91ddc50444
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) Hakan Ensari
3
+ Copyright (c) 2010-2021 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/README.md CHANGED
@@ -10,7 +10,7 @@ Cart Form functionality is not covered by this gem but is a primary focus on [ca
10
10
 
11
11
  You need to [register first](https://webservices.amazon.com/paapi5/documentation/register-for-pa-api.html) to use the API.
12
12
 
13
- ![vacuum](http://f.cl.ly/items/2k2X0e2u0G3k1c260D2u/vacuum.png)
13
+ ![vacuum](https://github.com/hakanensari/vacuum/blob/main/images/vacuum.jpg?raw=true)
14
14
 
15
15
  ## Usage
16
16
 
@@ -174,6 +174,7 @@ In either case, add actual API credentials to a [`locales.yml`](https://github.c
174
174
  ## Getting Help
175
175
 
176
176
  * Ask specific questions about the API on the [Amazon forum](https://forums.aws.amazon.com/forum.jspa?forumID=9).
177
- * Report bugs and discuss potential features in [GitHub issues](https://github.com/hakanensari/vacuum/issues).
177
+ * Report bugs in [GitHub issues](https://github.com/hakanensari/vacuum/issues).
178
+ * Discuss potential features in [GitHub Discussions](https://github.com/hakanensari/vacuum/discussions).
178
179
 
179
180
 
data/lib/vacuum/locale.rb CHANGED
@@ -25,7 +25,11 @@ module Vacuum
25
25
  tr: ['webservices.amazon.com.tr', 'eu-west-1'],
26
26
  ae: ['webservices.amazon.ae', 'eu-west-1'],
27
27
  gb: ['webservices.amazon.co.uk', 'eu-west-1'],
28
- us: ['webservices.amazon.com', 'us-east-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']
29
33
  }.freeze
30
34
  private_constant :HOSTS_AND_REGIONS
31
35
 
@@ -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 = '3.4.1'
4
+ VERSION = '4.1.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: 3.4.1
4
+ version: 4.1.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: 2020-10-07 00:00:00.000000000 Z
12
+ date: 2023-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sigv4
@@ -28,115 +28,23 @@ dependencies:
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: http
30
30
  requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '4.0'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '4.0'
42
- - !ruby/object:Gem::Dependency
43
- name: minitest
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: rake
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: rubocop
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: simplecov
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - '='
89
- - !ruby/object:Gem::Version
90
- version: 0.17.1
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - '='
96
- - !ruby/object:Gem::Version
97
- version: 0.17.1
98
- - !ruby/object:Gem::Dependency
99
- name: vcr
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
31
  requirements:
109
32
  - - ">="
110
33
  - !ruby/object:Gem::Version
111
- version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: webmock
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
34
+ version: '4.0'
35
+ - - "<"
117
36
  - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
37
+ version: '6.0'
38
+ type: :runtime
120
39
  prerelease: false
121
40
  version_requirements: !ruby/object:Gem::Requirement
122
41
  requirements:
123
42
  - - ">="
124
43
  - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: yard
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - ">="
44
+ version: '4.0'
45
+ - - "<"
138
46
  - !ruby/object:Gem::Version
139
- version: '0'
47
+ version: '6.0'
140
48
  description: A wrapper to the Amazon Product Advertising API
141
49
  email:
142
50
  - me@hakanensari.com
@@ -154,20 +62,11 @@ files:
154
62
  - lib/vacuum/request.rb
155
63
  - lib/vacuum/response.rb
156
64
  - lib/vacuum/version.rb
157
- - test/cassettes/vacuum.yml
158
- - test/helper.rb
159
- - test/integration/test_requests.rb
160
- - test/integration_helper.rb
161
- - test/locales.rb
162
- - test/locales.yml.example
163
- - test/unit/test_locale.rb
164
- - test/unit/test_operation.rb
165
- - test/unit/test_request.rb
166
- - test/unit/test_response.rb
167
65
  homepage: https://github.com/hakanensari/vacuum
168
66
  licenses:
169
67
  - MIT
170
- metadata: {}
68
+ metadata:
69
+ rubygems_mfa_required: 'true'
171
70
  post_install_message:
172
71
  rdoc_options: []
173
72
  require_paths:
@@ -176,25 +75,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
75
  requirements:
177
76
  - - ">="
178
77
  - !ruby/object:Gem::Version
179
- version: '2.5'
78
+ version: '2.7'
180
79
  required_rubygems_version: !ruby/object:Gem::Requirement
181
80
  requirements:
182
81
  - - ">="
183
82
  - !ruby/object:Gem::Version
184
83
  version: '0'
185
84
  requirements: []
186
- rubygems_version: 3.1.2
85
+ rubygems_version: 3.4.3
187
86
  signing_key:
188
87
  specification_version: 4
189
88
  summary: Amazon Product Advertising in Ruby
190
- test_files:
191
- - test/unit/test_operation.rb
192
- - test/unit/test_request.rb
193
- - test/unit/test_locale.rb
194
- - test/unit/test_response.rb
195
- - test/helper.rb
196
- - test/locales.yml.example
197
- - test/cassettes/vacuum.yml
198
- - test/locales.rb
199
- - test/integration_helper.rb
200
- - test/integration/test_requests.rb
89
+ test_files: []