seiso-connector 0.1.4 → 0.1.5
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.
- checksums.yaml +8 -8
- data/lib/seiso/connector/rest_connector.rb +5 -1
- data/seiso-connector.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzg1ZTBjNTVkOWVmZDc4Nzg3OGY4YjMxNTM3ZDAwNGJjNWUyMDY1NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTM0ODBjNjc5ODhjYjhkNWIyN2MwYzA2ZTRkMTQ2MzM5N2FlYzdkMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzhlMzMxMjdmYzIzMTc0MGMwYTQwNDY3YjRlNzA5ZDM2NjIyYWUzYWQ3MGI4
|
10
|
+
N2NjMWEzYTliOGFiMmVhMzBhNjY4ZTEwN2Q0Nzc2MGI3MjQwMmY2M2RmNTY1
|
11
|
+
OWI2ZTBiY2QzYWZiZjczZjg0NDNkYjY5OWQxMzQwNjRmMmNlY2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Njk4OGFlODBiM2UwNTI5YjM0ZmY0MDM5OTNhODI5OTI1MzYyMzY3Y2U4ZTM2
|
14
|
+
N2NmOTQ2YTQzZjFjY2FhNGRjYTExMzM2MjhmYmJiN2EzZjg3MDdmM2Y2ZDk0
|
15
|
+
ZWU4NjZlODQ4M2ZkMDY4ZDUwMjY4MzFhYjVjYTNiMGJhMmM2ZTY=
|
@@ -73,7 +73,11 @@ module Seiso
|
|
73
73
|
# - uri: main resource URI
|
74
74
|
# - linked_uri: specifies resource we're linking to the main resource
|
75
75
|
def put_link(uri, linked_uri)
|
76
|
-
|
76
|
+
request = Net::HTTP::Put.new uri.request_uri
|
77
|
+
request[HN_CONTENT_TYPE] = MT_TEXT_URI
|
78
|
+
request.basic_auth(@username, @password)
|
79
|
+
request.body = linked_uri.request_uri
|
80
|
+
do_request(http, request)
|
77
81
|
end
|
78
82
|
|
79
83
|
def delete(uri)
|
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.5"
|
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."
|