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 +4 -4
- data/lib/spaceborne.rb +4 -6
- data/lib/spaceborne/version.rb +1 -1
- 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: 735d09d9d4e4b735895299add40bf99631e41921
|
4
|
+
data.tar.gz: 8cbb76bb69faeaad546bff664845396191d14a73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
130
|
+
{ content_type: 'application/json' }
|
131
|
+
.merge(Airborne.configuration.headers || {})
|
134
132
|
end
|
135
133
|
end
|
136
134
|
|
data/lib/spaceborne/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|