seiso-connector 0.1.4 → 0.1.5

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
- MDU0ZTNiZWYzYmMyMWM0NzA1MzFkZTA1MzBkZGQxZDI5MTkyY2U3Mw==
4
+ Mzg1ZTBjNTVkOWVmZDc4Nzg3OGY4YjMxNTM3ZDAwNGJjNWUyMDY1NA==
5
5
  data.tar.gz: !binary |-
6
- MGJkYWYwNmNkMjllODdhNTVkOTg0MGIyZTM4MTdkNDdkZWVmMGIwNw==
6
+ YTM0ODBjNjc5ODhjYjhkNWIyN2MwYzA2ZTRkMTQ2MzM5N2FlYzdkMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGY0NTYzNzM1YWQ3ZWI2ZDQ5NjZjNDFlZTc3ZmQ1YmQ1MjliNGU3ZmNhYzg1
10
- M2YyMWZmNmY0N2ZiOTNkNzVlNDgxZjY2ZmI3YzJlOTczMGFjZjZjMDE1ZTFi
11
- MTliYmZhM2MxZWQzNTU0NmI1MDk5N2YzMGU4YTliODhmYjc4MDI=
9
+ YzhlMzMxMjdmYzIzMTc0MGMwYTQwNDY3YjRlNzA5ZDM2NjIyYWUzYWQ3MGI4
10
+ N2NjMWEzYTliOGFiMmVhMzBhNjY4ZTEwN2Q0Nzc2MGI3MjQwMmY2M2RmNTY1
11
+ OWI2ZTBiY2QzYWZiZjczZjg0NDNkYjY5OWQxMzQwNjRmMmNlY2Y=
12
12
  data.tar.gz: !binary |-
13
- NmI0NGQzMmU2NmQwZDYxMGRlNTQ5YjA3NGViZDg4NDMzNWJiYTU4NDZhNGNl
14
- OTU5MTEwYzViYjk0YjVlNGEzMThhNGM3ODEyM2EzMzAyOGZkZWEzYWM1ZTMw
15
- YzRhYzFjOTZhOWU5OWRiN2I0ZTNhOTdlMGQ3NmJhYTNlZWI1NmM=
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
- puts "uri=#{uri}, linked_uri=#{linked_uri}"
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)
@@ -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.4"
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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seiso-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willie Wheeler