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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7038c336858ee4ac23c97beaab29792b1ded14e7
4
- data.tar.gz: 94f61f5dee12030051d01bf760aed3e8976fa78b
3
+ metadata.gz: af58f7d3d2dc113db2fd9a34cad4e6861aee871f
4
+ data.tar.gz: 93a83be02bb1c09da703f1aa274a9005761f8b6f
5
5
  SHA512:
6
- metadata.gz: 51f83d87385cce4c0830c6dbede7e304f5ffe47e32de626e5aed3915a54d9eb3962eb8146218bf5689aa0a90c14a27ffc3d57ff0fe7c66710279508b86f80d10
7
- data.tar.gz: 4056d9c5a4fe7a1457b8a5afb76d98302beac94a0faf5b5afcd02f88aba23403ea133b9f0f0486ac3ddd032d0a4192e61b273f5b425e79c859c8a711ae78a743
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonApiToolbox
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
data/lib/service.rb CHANGED
@@ -16,10 +16,7 @@ module JsonApiToolbox
16
16
  end
17
17
 
18
18
  def execute
19
- response = request
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.2.0
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-01-16 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack