json_api_toolbox 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93a2045c2294932efa199ba493e039f17f050ad9
4
- data.tar.gz: e8ed8912207f37a2620eeb69c19f7da2aec2ed9b
3
+ metadata.gz: c4147983481edc3bbff420b2bf7864377a7c3b2c
4
+ data.tar.gz: 5b2150fdb190902c1e912dc475245d318dab920a
5
5
  SHA512:
6
- metadata.gz: 11676fb0e857a27e12fc7e2fb402854d4234cea07238f13a90efd4451630b0a649620e37dcdfccc209716895c1fa17175697188ec1cacc08d31bd3dc1bfa00e7
7
- data.tar.gz: 72cc4f6c03ee1466481498840311c4775589d1029047ad85c2fe7e5f096e8477796490b6975ea453271ca459daf1189cdc10237a0e11c538da258cd00d982848
6
+ metadata.gz: 52da95bde801bffff337f0fe7d6dfd50aab1091761f8d7ff8b1786bb4d4763155be69b30f181f4b572853cbe5fa1f6407751fae1d40d10915dd869db9fc053b8
7
+ data.tar.gz: c17d4093b20e724bebc46bf2d5b4f22b6da87125a5cc5143fcb7f240c20b6e1b0b68d43a61e974e8dcca4b8696ef7417af8521c20f9a754e0333847d4535b513
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.15.1] - 2018-07-02
10
+ ### Fixed
11
+ - Fixed headers Content-Type in post method at JsonApiToolbox::Service
12
+
9
13
  ## [0.15.0] - 2018-06-15
10
14
  ### Added
11
15
  - Added method `.patch` to JsonApiToolbox::Service
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonApiToolbox
4
- VERSION = '0.15.0'
4
+ VERSION = '0.15.1'
5
5
  end
@@ -32,7 +32,10 @@ module JsonApiToolbox
32
32
  end
33
33
 
34
34
  def build_header
35
- headers = { Authorization: RequestStore.store[:token] }
35
+ headers = {
36
+ 'Authorization' => RequestStore.store[:token],
37
+ 'Content-Type' => 'application/json'
38
+ }
36
39
  headers[:params] = body if method == :get
37
40
  headers
38
41
  end
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: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Bacha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-21 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack