spaceborne 0.1.4 → 0.1.5
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 +1 -1
- data/lib/spaceborne/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d807129ca7d69ac7265ef9c1007c05eb35c03f30
|
4
|
+
data.tar.gz: c077f71a0d66fb2171064d48159c2363ad0b07d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3756ac17314d3c096abfbef483ada46d4855d02db102a05dfe9c4002397273f2232e7487959b692463925f9eab22133f0d9d09a018f5976e175bcf7f8ad2d2a4
|
7
|
+
data.tar.gz: 592e1511c66c79bc870b240d71b71f667f9293d5cd3f59f5fa0a9278ae380c7fba494f4a5c84a789f0de5fc4585778b700073caa657ab61ef1f0fbb493c5bcc9
|
data/lib/spaceborne.rb
CHANGED
@@ -6,7 +6,7 @@ require 'json'
|
|
6
6
|
|
7
7
|
module Spaceborne
|
8
8
|
def is_json?(headers)
|
9
|
-
headers.
|
9
|
+
headers.has_key?(:content_type) && headers[:content_type].include?('application/json')
|
10
10
|
end
|
11
11
|
def wrap_request(&block)
|
12
12
|
block.call
|
data/lib/spaceborne/version.rb
CHANGED