sirportly 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sirportly.rb +1 -1
- data/lib/sirportly/request.rb +3 -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: 1f3208ce00e77a451326f543ab412f64faf60461
|
4
|
+
data.tar.gz: a9b1272d7b0bd87eaf53fa7b9666cc197a482e6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06999302d78011b1b6eabb68a77fed79a7a0d657196c812ebc4dc3f3ce0e548a71d250d8d398463dd0bb90b56a987638ae3fdc96919b8289a211230bd41e4a0
|
7
|
+
data.tar.gz: 503f6d1fcbe164c645361609c92fdf645df2c2f61515584a0cc6423cf34cddebce9977f6cbabaad08cb4f6b62c8b67aaa700576e696a5d688f3b2bf9e2294bdc
|
data/lib/sirportly.rb
CHANGED
data/lib/sirportly/request.rb
CHANGED
@@ -49,8 +49,10 @@ module Sirportly
|
|
49
49
|
@output = true
|
50
50
|
elsif http_result.body == 'false'
|
51
51
|
@output = false
|
52
|
-
|
52
|
+
elsif http_result.content_type == 'application/json'
|
53
53
|
@output = JSON.parse(http_result.body)
|
54
|
+
else
|
55
|
+
@output = http_result.body
|
54
56
|
end
|
55
57
|
|
56
58
|
@success = case http_result
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sirportly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|