sirportly 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sirportly.rb CHANGED
@@ -27,7 +27,7 @@ require 'sirportly/data_objects/ticket_update'
27
27
  require 'sirportly/data_objects/user'
28
28
 
29
29
  module Sirportly
30
- VERSION = '1.2.4'
30
+ VERSION = '1.2.5'
31
31
 
32
32
  class << self
33
33
 
@@ -46,7 +46,15 @@ module Sirportly
46
46
  end
47
47
 
48
48
  http_result = http.request(http_request)
49
- @output = JSON.parse(http_result.body)
49
+
50
+ if @output == 'true'
51
+ @output = true
52
+ elsif @output == 'false'
53
+ @output = false
54
+ else
55
+ @output = JSON.parse(http_result.body)
56
+ end
57
+
50
58
  @success = case http_result
51
59
  when Net::HTTPSuccess
52
60
  true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sirportly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: