openshift_client 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34bd2729a966c5256a6fadc5fdc91adeae1e208c
4
- data.tar.gz: d780e38580028882c93f66e284cc06e74e57fe06
3
+ metadata.gz: 010cd4b66f106a307ae77b1304d73f4209e27225
4
+ data.tar.gz: 3092e44c2f8cdb793421d7b77c1efd03dbb23a6d
5
5
  SHA512:
6
- metadata.gz: 84230f05d43ead506bce0d562bde8f1c1c738497f909bee71e1126497e76e1e2a693f74a95b35e834e5d7f0e87203def77c8e36234f2a897302e5feeee826de1
7
- data.tar.gz: fc35aaf78df8147411fe1c224eeb06afa369e8abe409a10461275ee7a4793083390be8aee718b7e0e093c252072be992a5e2b46b6f00c98aa81a5bf34e83a4d5
6
+ metadata.gz: 3c73ad7d5c290e95d524916c3b5c1cb06079259ca0035ea53483ef7ede31504771d71016c1e47ca5a0abc77d07da0a590e2d3240598a01a78197f3774d1d6c6d
7
+ data.tar.gz: a1d8024a7ee3c604055ce93413f47ee62e1ffdd6f1276b61c4d66802cb52a38c01fd6a58cf6f70069ef08a56fb0fc448b756b75771d4e7c2b4c3f31d65c1272a
@@ -1,4 +1,4 @@
1
1
  # Openshift REST-API Client
2
2
  module OpenshiftClient
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
@@ -20,7 +20,7 @@ module OpenshiftClient
20
20
  [OpenshiftClient.const_set(et, Class.new(RecursiveOpenStruct)), et]
21
21
  end
22
22
 
23
- def initialize(uri, version = 'v1', path = 'oapi')
23
+ def initialize(uri, version = 'v1', path = '/oapi')
24
24
  handle_uri(uri, path)
25
25
  @api_version = version
26
26
  @headers = {}
data/test/test_client.rb CHANGED
@@ -6,4 +6,10 @@ class TestClient < MiniTest::Test
6
6
  client = OpenshiftClient::Client.new 'https://localhost:8080/oapi'
7
7
  assert_equal(true, client.respond_to?('api_valid?'))
8
8
  end
9
+
10
+ def test_path_valid
11
+ uri = URI::HTTPS.build(host: 'localhost', port: 8080)
12
+ client2 = OpenshiftClient::Client.new uri
13
+ assert_equal(true, client2.respond_to?('api_valid?'))
14
+ end
9
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openshift_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas