seiso-connector 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGQwOTc5MGEyMzk1ODZiODQ3MGU1MGJhMjNkMmQyNTBjMjExZGY1Mg==
4
+ NDJmZDJhYTNhNTM4NWY3MmUxMGZmMjI2NDJjNzg1ODRjYTM3ODFiNw==
5
5
  data.tar.gz: !binary |-
6
- NDE5OWZiNjQ1OWMzY2RmZjYxNDg4NGMzZjA4ZWY3YmU1MDJjOTFhOQ==
6
+ NWM0ODUzNjhmYTE1ZmNlMmMzMDg0M2I3M2Q4NTcyOTllYzcxY2IyNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjNjMjRkOGFkNGQ2ZGFhNzVmMTlhZWQyMWNjN2RmOTE5ZjVmZmNjNWY0NjYz
10
- Nzk3MmJiYjBhNGVlOWRkYjgzMzZhOGI4ODNkNjIyODJjY2JjY2ZjM2UyN2I4
11
- NzhhZTcxNWUzY2Q0YTgzZDQ4ZjRmZTQyNjJjMzBiNzE4ZmU4Y2M=
9
+ YWFkMjNmMmVkYWMyODJlNmM5MjFiZTFhYmJlMjJmZjY1MjkxZGE2YmQyMmJi
10
+ Y2IzMzRlMTVlZDVhZGFkYzU0Y2NiYWQ1ODc3ZjcxZDkzMjM2NmEyNWZhMWNj
11
+ Yjk1NTA5Njk5YTgxY2Q5MzhiYzM5ZjY1Zjc0OTZhMDFkM2E5Yjk=
12
12
  data.tar.gz: !binary |-
13
- ZjY0NDgwOWU3NmY0YTMyNzg1N2M0ZTk0YzY5NjIyMzEwMGNkZjE2NTIyZmEx
14
- MGZkNzc2ZjlhM2Q5OTFkYjc4ZTk2MjY5ZDE1YzBkYmZhOTJkYjIxNzU1NGE0
15
- MzQyOWQyMWJlZmU0NGYxNzE0NTk1MGZmYmJhNDhmY2E1ZDQ1YmE=
13
+ YzJjOGQ0ZDg4ZjQ0NjFmZjcxNmUzMzQ4ZmJhYzZkZjA3NmViZjk0ZDI3MTcw
14
+ MjkxZTA3NjU4ODgwZTVkYmJmMzYwZGQ4MDM1N2RjYjNmMzc2MWM5MjI3OTI4
15
+ M2Q2YWUxMjQ4YjFjYWJkNTdjNzZiMDA5ZjdjMjVlZGI2MjkwYjk=
@@ -1,3 +1,4 @@
1
+ require 'json'
1
2
  require 'net/http'
2
3
  require_relative 'request_failed_error'
3
4
 
@@ -23,7 +24,7 @@ module Seiso
23
24
  request.basic_auth(@username, @password)
24
25
  response = @http.request(request)
25
26
  raise(Seiso::Connector::RequestFailedError, response.body) if !response.kind_of?(Net::HTTPSuccess)
26
- response.body
27
+ JSON.parse(response.body)
27
28
  end
28
29
 
29
30
  def do_post(path, data)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "seiso-connector"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["Willie Wheeler"]
9
9
  spec.email = ["wwheeler@expedia.com"]
10
10
  spec.summary = "Connector to make it easier for Ruby clients to talk to the Seiso REST API."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seiso-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willie Wheeler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-25 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler