ocp 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/client/OcpClient.rb +8 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 001da620f5d23077105f3e76137004436939c221
4
- data.tar.gz: dec33cc652e3f44d4a93619751e50fc0d2696ca0
3
+ metadata.gz: 3d2625c711d28144a6538b2d5bd9a30fea0b4f9f
4
+ data.tar.gz: b33ba935d134d7fc8cea7312f2c04f06e516acb5
5
5
  SHA512:
6
- metadata.gz: 347c5491525a5f7498e6eb2670a8fe5f27b8652cf81802a5222d598af7cb3db9ee2753237d59957badcb1a190f41934c857f82f5599f8e7f2cb47a8f1617ca1b
7
- data.tar.gz: bad8c5375e8fa09681901831c93d761365ae16292b87fd9e2d06573cd9992276cad3076526702d56c08100da914b7e8737922bc84dacb78c323a10e01d806607
6
+ metadata.gz: 3111a1f2de5440bac8294468b7ab885e742de967f075cbbd4f9a28d0ed8af161b0aebf8e6413655b899d5d67985b2d714954275dbb3a056aa59f9679765af009
7
+ data.tar.gz: 5b80b23de2da7ff8faa0a84bc5086a64c247b4a58717ff5e033eb94cba029f4fb8e57e4fd936f1aa26b414c894506acf2743a88ef946535d98dcf9b69746448c
@@ -123,16 +123,16 @@ class OcpClient
123
123
  end
124
124
  rescue => exception
125
125
  if @debug and !exception.nil?
126
- puts "Exception: " << exception
126
+ puts "Exception: " << exception.to_s
127
127
  end
128
- @response = exception
128
+ @response = exception.to_s
129
129
  end
130
130
 
131
- @response = response
132
-
133
131
  if !response.nil? and @pretty
134
132
  results = JSON.pretty_generate(JSON.parse(response.to_str))
135
133
  @response = results
134
+ elsif !response.nil?
135
+ @response = response
136
136
  end
137
137
 
138
138
  return @response
@@ -177,9 +177,9 @@ class OcpClient
177
177
  end
178
178
  rescue => exception
179
179
  if @debug and !exception.nil?
180
- puts "Exception: " << exception
180
+ puts "Exception: " << exception.to_s
181
181
  end
182
- @response = exception
182
+ @response = exception.to_s
183
183
  end
184
184
 
185
185
  @response = response
@@ -187,6 +187,8 @@ class OcpClient
187
187
  if !response.nil? and @pretty
188
188
  results = JSON.pretty_generate(JSON.parse(response.to_str))
189
189
  @response = results
190
+ elsif !response.nil?
191
+ @response = response
190
192
  end
191
193
 
192
194
  return @response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Evensen