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 +4 -4
- data/README.md +1 -0
- data/lib/eezee/request.rb +4 -2
- data/lib/eezee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ee55fccb36a352b1f4c7e80acb7aacbdd96a3ee748e8501fe462dccbb91d00c
|
4
|
+
data.tar.gz: e252cb751c34ee8a5f931f8e16b25a7b917786a8e53ce077820679b8a0b94035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2019-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|