json_http_connection 1.0.0 → 1.0.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: 824e8e8fc6764e26772cea62aa0250805fd64b88
4
- data.tar.gz: 78c89c7d5be28079146896073ac2c001cd1216cb
3
+ metadata.gz: 9e7086901aafe7fee66e5e61b3c7d0811986f9e2
4
+ data.tar.gz: 32cb9ced064e2301f3bc4ebce82cab3a41343481
5
5
  SHA512:
6
- metadata.gz: dc0c26f0aeafe74d1dbe06838208af2f18570f546fc8fea6150f859d1433c5bb3cdfd2da9bfe89d346a3444035fdef0531d9215ea3074c841cd801306c408894
7
- data.tar.gz: aa458d427ca3e2e24bc5c4107fe9590d3d5f2995390f5927dc246a1ec48797a82d0a5cb7c8d2a5676439179c7d61fef49c1e4181d2d4b44c9a556d908937c44b
6
+ metadata.gz: 84b18280290ee52752ea52ffd4cab9720214031f9b234a449926c80e1bcf4e7582c971ecd72d96a00db049d09698e90ea19fb96c6f1998e857f72438eb1e2677
7
+ data.tar.gz: 219514b61bfe6281c845abe7c952e9577b92ec4569fd3c41864fbd05b9145704593a7ee8b38688672ef8ad716f5367d89f80956e1cfce1fbb5e3b8c74d2db566
@@ -20,8 +20,13 @@ module JsonHttpConnection
20
20
  private
21
21
 
22
22
  def faraday_opts
23
- { url: config[:url],
24
- headers: { 'Content-Type' => 'application/json' } }
23
+ {
24
+ url: config[:url],
25
+ headers: {
26
+ 'Content-Type' => 'application/json',
27
+ 'Accept' => 'application/json'
28
+ }
29
+ }
25
30
  end
26
31
 
27
32
  def faraday_connection
@@ -1,3 +1,3 @@
1
1
  module JsonHttpConnection
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_http_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Raganhan Barbosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-04 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday