eezee 1.0.11 → 1.0.12

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: 8ec8c0319024f4bba7f5954a4c550b6a9979693675c372471cf11b2f46151921
4
- data.tar.gz: 0ee3cda9cdf0a4a9c7c603106bede81fb67e3102db7fb4d955e5b1d7a3755a02
3
+ metadata.gz: 5ee55fccb36a352b1f4c7e80acb7aacbdd96a3ee748e8501fe462dccbb91d00c
4
+ data.tar.gz: e252cb751c34ee8a5f931f8e16b25a7b917786a8e53ce077820679b8a0b94035
5
5
  SHA512:
6
- metadata.gz: 51b80692f4d37107bd6087095e8066fc7c1bc361563d31fe2a41ba4f3fd5edafad3937d268cca6910326550aca915e13c90186d0cd42a7e2ea0982dbe5f347f9
7
- data.tar.gz: 9e39db90a62825eae3cdca9736fd9020b0d21c4355b5e5126aee2d9a6ecb67ce620fd1afe44a8edf61bd4c2484d4becfea07f44e660d918c7a9905eb8dd19e74
6
+ metadata.gz: 9de0410372d8c222820a6dd4934b38604f37bcda82939ae87be36b9f4acfbb7bc181e9ff60a64c7ea58de0e2833b78f53bef0ddb1ed76f8c74037d07a4a954f7
7
+ data.tar.gz: 1f384c90ce0c78c1423263cf4721b1c16a3e7e3d0f890e59cdcaf904863cb677c08215e2ded9d44e7b7b409159a4cf9a8fdd8beb0e9915669b52d6438fc4072d
data/README.md CHANGED
@@ -179,6 +179,7 @@ Here are the list of available options and about them:
179
179
  | `raise_error` | No | `false` | If you want that Eezee raises an error if the request has wasn't successful. See more in [Errors](#errors) | `true` |
180
180
  | `logger` | No | `false` | If you want to log the request, response, and error | `true` |
181
181
  | `url_encoded` | No | `false` | If you want to send request body as form_url_encoded | `true` |
182
+ | `preserve_url_params` | No | `false` | The query params will be preserved if the url or path has a nested param like `:character_id` this value will be not replaced | `true` |
182
183
 
183
184
 
184
185
  ### Services
data/lib/eezee/request.rb CHANGED
@@ -16,6 +16,7 @@ module Eezee
16
16
  timeout
17
17
  url
18
18
  url_encoded
19
+ preserve_url_params
19
20
  ].freeze
20
21
 
21
22
  DEFAULT = {
@@ -24,7 +25,8 @@ module Eezee
24
25
  params: {},
25
26
  payload: {},
26
27
  raise_error: false,
27
- url_encoded: false
28
+ url_encoded: false,
29
+ preserve_url_params: false
28
30
  }.freeze
29
31
 
30
32
  attr_accessor(*(ACCESSORS | %i[uri method]))
@@ -56,7 +58,7 @@ module Eezee
56
58
  validate!
57
59
  build_urn!
58
60
  handle_query_params!
59
- handle_urn_params!
61
+ handle_urn_params! unless @preserve_url_params
60
62
  end
61
63
 
62
64
  def hook!(hook, params)
data/lib/eezee/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eezee
4
- VERSION = '1.0.11'
4
+ VERSION = '1.0.12'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eezee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - linqueta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-26 00:00:00.000000000 Z
11
+ date: 2019-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday