json_api_toolbox 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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/json_api_toolbox/version.rb +1 -1
- data/lib/service.rb +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af58f7d3d2dc113db2fd9a34cad4e6861aee871f
|
4
|
+
data.tar.gz: 93a83be02bb1c09da703f1aa274a9005761f8b6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90a1513719aa4bfe47a83dd800c1e23d0a12bb9856ca1b490d90a564b2d3d3928052fb4ca85ab6cbd9585349481c5de14a95b2f0a2e86fa5284de7eaa635983f
|
7
|
+
data.tar.gz: 4365c231d6a15e8f55509270011d09203cb0e3b47c9bb5024caeee7795a3d0b7f5a9d400166ed1c568f63e852204623556991606ecd562061106b58015158dc7
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
8
8
|
### Added
|
9
9
|
|
10
10
|
## [Released]
|
11
|
+
## [1.3.0] - 2020-02-19
|
12
|
+
### Added
|
13
|
+
- Remove gem rescue responsibility
|
14
|
+
|
11
15
|
## [1.2.0] - 2020-01-16
|
12
16
|
### Added
|
13
17
|
- Added param `headers` to `#get`, `#post`, `#patch`, `#put`, to send extra headers
|
data/lib/service.rb
CHANGED
@@ -16,10 +16,7 @@ module JsonApiToolbox
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def execute
|
19
|
-
|
20
|
-
return if response.code == 404
|
21
|
-
|
22
|
-
Service.parse_response(response)
|
19
|
+
Service.parse_response(request)
|
23
20
|
end
|
24
21
|
|
25
22
|
def request
|
@@ -29,8 +26,6 @@ module JsonApiToolbox
|
|
29
26
|
payload: build_body,
|
30
27
|
headers: build_header
|
31
28
|
)
|
32
|
-
rescue RestClient::ExceptionWithResponse => e
|
33
|
-
e.response
|
34
29
|
end
|
35
30
|
|
36
31
|
def build_header
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adriano Bacha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|