vacuum 4.1.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: 32de5f3eacc54e8af929aa9ea3bf20f729d95bb63ccec8b4ace5afc8964e67b3
4
- data.tar.gz: b2851592e815e7d393619f6f6504acc3ef1668549ce966af5480ca293017c9c4
3
+ metadata.gz: 34c9e2f22421d1e451012c575f258b6edcf08b1530fa8c1fe2c0f03962e71203
4
+ data.tar.gz: c57c9b38a17b85a46ea18588d6ee6ec0250ff3b86bf561424d61815c032ff126
5
5
  SHA512:
6
- metadata.gz: 7a32eb1a6db5ee923a87e1ad20664eaa17621f5432b0041f4b831d5d67070e8deb7dd58928fad3aefa020fc18e553e95fcca01d5132d23d913dfcd3302a2f0cb
7
- data.tar.gz: 91fd3af04a013591a90930db4d3c9e8de47b890899f8aa0973c04bd374b308309a15c20ad1342b3bb0e51375b8b44c4976bdb5a9cee4b3c53db02a91ddc50444
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,16 +22,15 @@ 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'],
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']
33
+ us: ['webservices.amazon.com', 'us-east-1']
33
34
  }.freeze
34
35
  private_constant :HOSTS_AND_REGIONS
35
36
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vacuum
4
- VERSION = '4.1.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.1.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: 2023-01-23 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
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '6.0'
48
48
  description: A wrapper to the Amazon Product Advertising API
49
49
  email:
50
- - me@hakanensari.com
50
+ - hakanensari@gmail.com
51
51
  - sk@skylup.com
52
52
  executables: []
53
53
  extensions: []
@@ -75,14 +75,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: '2.7'
78
+ version: '3.1'
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.4.3
85
+ rubygems_version: 3.5.16
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Amazon Product Advertising in Ruby