spaceborne 0.1.18 → 0.1.19

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: c5b4c72798174a5029aa6196647a660d7e54cb66
4
- data.tar.gz: 129182edd0bbdb187b17dbd84188300c1b817a43
3
+ metadata.gz: 735d09d9d4e4b735895299add40bf99631e41921
4
+ data.tar.gz: 8cbb76bb69faeaad546bff664845396191d14a73
5
5
  SHA512:
6
- metadata.gz: 6ddc6c9b2e839e7598c87c180fd5eaa2eb79f6072d9b534c5d2a859305bcaf411f0d52abb4e8eadb160515d733e47a7a5e26beff97ca50cfbce307ec6833a9af
7
- data.tar.gz: 11300c0550ed4fe180679cb3bf3d94ac24bf98f7a22d4a28c9440421245087326dba5227b87dfbfcf6c6a2caf1ad4039af60cd283fd038cd5d9532562b7b0945
6
+ metadata.gz: c3bac0ad5b87a0b84a93c109b21ae216f85d2ffdb3ce65ad0f68d1ce1cb009662fe86d6a9b46908298e3f54cac363b559c0c8ea6b641f254c3b7cf71a56e4df5
7
+ data.tar.gz: f553d11bd0a35b85dfc296b2507d8e80d5de88aa3123ba1944d9c9a565d5b8c1fadf6ff280919da7a40bcee8c663bfb2689c2c0443ac29ee48f383d7d66b9ffa
data/lib/spaceborne.rb CHANGED
@@ -85,12 +85,9 @@ module Airborne
85
85
 
86
86
  def calc_headers(options, local)
87
87
  headers = base_headers.merge(options[:headers] || {})
88
+ headers[:no_restclient_headers] = true
88
89
  return headers unless local[:is_hash]
89
- if options[:nonjson_data]
90
- headers.delete('Content-Type')
91
- else
92
- headers[:no_restclient_headers] = true
93
- end
90
+ headers.delete('Content-Type') if options[:nonjson_data]
94
91
  headers
95
92
  end
96
93
 
@@ -130,7 +127,8 @@ module Airborne
130
127
  private
131
128
 
132
129
  def base_headers
133
- { content_type: :json }.merge(Airborne.configuration.headers || {})
130
+ { content_type: 'application/json' }
131
+ .merge(Airborne.configuration.headers || {})
134
132
  end
135
133
  end
136
134
 
@@ -1,3 +1,3 @@
1
1
  module Spaceborne
2
- VERSION = '0.1.18'.freeze
2
+ VERSION = '0.1.19'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaceborne
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-24 00:00:00.000000000 Z
11
+ date: 2018-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport