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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b663c3779c4cdf3e373bc9c407d3b3f9e0f77590
4
- data.tar.gz: 82a2dfc6204fbf73cf87b5f6a76efc3f59de7ba6
3
+ metadata.gz: 1f3208ce00e77a451326f543ab412f64faf60461
4
+ data.tar.gz: a9b1272d7b0bd87eaf53fa7b9666cc197a482e6f
5
5
  SHA512:
6
- metadata.gz: 5d503ae4ccb222724740c727147acfeff06044cab21b959d0fbb927ed29889b9403e9fae5113819fee1d5a23cb7d1967ebd278bc46809a7968b5cb42fff1392b
7
- data.tar.gz: de44849947207001b07bd0cd703ead77c8d323a3ce7b5500499919ab9d7882d251c98e4fd6d3334aed68cdd04451cfb14cbaf4216a609725ea2fa60f04353807
6
+ metadata.gz: a06999302d78011b1b6eabb68a77fed79a7a0d657196c812ebc4dc3f3ce0e548a71d250d8d398463dd0bb90b56a987638ae3fdc96919b8289a211230bd41e4a0
7
+ data.tar.gz: 503f6d1fcbe164c645361609c92fdf645df2c2f61515584a0cc6423cf34cddebce9977f6cbabaad08cb4f6b62c8b67aaa700576e696a5d688f3b2bf9e2294bdc
@@ -31,7 +31,7 @@ require 'sirportly/data_objects/ticket_update'
31
31
  require 'sirportly/data_objects/user'
32
32
 
33
33
  module Sirportly
34
- VERSION = '1.4.0'
34
+ VERSION = '1.4.1'
35
35
 
36
36
  class << self
37
37
 
@@ -49,8 +49,10 @@ module Sirportly
49
49
  @output = true
50
50
  elsif http_result.body == 'false'
51
51
  @output = false
52
- else
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post