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 +8 -8
- data/lib/seiso/connector/connector_v1.rb +2 -1
- data/seiso-connector.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDJmZDJhYTNhNTM4NWY3MmUxMGZmMjI2NDJjNzg1ODRjYTM3ODFiNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWM0ODUzNjhmYTE1ZmNlMmMzMDg0M2I3M2Q4NTcyOTllYzcxY2IyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWFkMjNmMmVkYWMyODJlNmM5MjFiZTFhYmJlMjJmZjY1MjkxZGE2YmQyMmJi
|
10
|
+
Y2IzMzRlMTVlZDVhZGFkYzU0Y2NiYWQ1ODc3ZjcxZDkzMjM2NmEyNWZhMWNj
|
11
|
+
Yjk1NTA5Njk5YTgxY2Q5MzhiYzM5ZjY1Zjc0OTZhMDFkM2E5Yjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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)
|
data/seiso-connector.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|