eps-rapid 1.2.0 → 1.3.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: 0635d7fc795915ac4229d1968713e1f78ab615ec52bd59cb9a3fce51b421ce20
4
- data.tar.gz: fb3aab1e962108feea5d465907fd680d5c312589b1a73b143d1e61be752d4129
3
+ metadata.gz: 7626d523b5a56e49f1819581a045eca494ac8bd637158d12a63b6d1c0018ade2
4
+ data.tar.gz: a91f3c9b295ba64592872baac0b400feeb8a9a927c2ce89a99456c024aba3786
5
5
  SHA512:
6
- metadata.gz: 2f7056cc0acbedbe619bdd81c4c0120d2866c6f9940b098417eeb40238a01505d0d9e34978d6e920db583dbbb5ee7cac6075e1b49ccb886f1eeefe7442542191
7
- data.tar.gz: 9daa91af2bd45fdf330aa182a12da06c981114f5420b8ab3dcd603a16d6c3d42d1aac63b931389c39b2d1d71a17887f70e901cf0bdf3e35742e4f4cfe7294110
6
+ metadata.gz: 837516289fcfc258afb8ddc2ff4e71a2d0b8233407ca9842371a0f59270b64297dc2655d41395a58b04322f6c44d11fc26d5b3d35c92a2b6800ceea607f41fe5
7
+ data.tar.gz: 58dcb8f0955d53f5ef117b00f2feeb0a9cbfcf62d5f00345af59686632fd2a2e58441bc3e49567d8e0ad7308cdd6a9741edbc0be57bd679ca1bfc6b178f16165
data/CHANGELOG.MD CHANGED
@@ -34,3 +34,6 @@
34
34
  ### Version 1.2.0
35
35
  # Changed
36
36
  - configuration: language -> language_resolver
37
+ ### Version 1.3.0
38
+ # Changed
39
+ - Content.content_file and Content.catalog_file supports params
@@ -97,6 +97,8 @@ module EpsRapid
97
97
  when HttpStatusCodes::HTTP_NO_CONTENT_CODE
98
98
  { 'status' => 204 }
99
99
  else
100
+ logger.warn("Request with error: #{uri} headers=(#{req.to_hash}): body=(#{req.body})")
101
+ logger.warn("Response with error: #{response.code} headers=(#{response.to_hash}): body=(#{response.body})")
100
102
  raise error_class(response.code), "Code: #{response.code}, Error: #{map_error_messages(response.body)}"
101
103
  end
102
104
  end
@@ -10,12 +10,12 @@ module EpsRapid
10
10
  EpsRapid::Client.get("properties/#{property_id}/guest-reviews", {})
11
11
  end
12
12
 
13
- def self.catalog_file
14
- EpsRapid::Client.get('files/properties/catalog', {})
13
+ def self.catalog_file(**params)
14
+ EpsRapid::Client.get('files/properties/catalog', params)
15
15
  end
16
16
 
17
- def self.content_file
18
- EpsRapid::Client.get('files/properties/content', {})
17
+ def self.content_file(**params)
18
+ EpsRapid::Client.get('files/properties/content', params)
19
19
  end
20
20
 
21
21
  def self.chains
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EpsRapid
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eps-rapid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Leonenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec