testcloud_devices_ruby 0.0.0.4 → 0.0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef2d46358f4d2d42284a442e1c300d7c42406a95
4
- data.tar.gz: 3d47259a67267c1ba6f9c4d275856e280e51e6cd
3
+ metadata.gz: 10adc55bb58e27978441a2ad206c02e13a1625a9
4
+ data.tar.gz: cbc209601c26cb52172f2d58c90f2ea65dd0abb7
5
5
  SHA512:
6
- metadata.gz: 815d99fc04a3df1a2eaf5ab4b3b9db0c91fc57ccaf738bea0432f0441868b0ffc9eee2f52fca4b7da41fce6daa63aee121e92123305675a384c20ffdce413e4a
7
- data.tar.gz: db19c96dac57ba2aed49172a29dc56fefd1c7eb05701f255344401de63cf68b70879d6240c8b6a8dadd3c9606b77e681386188705e9f1e7967945513cea669d7
6
+ metadata.gz: 127e358a92ef23983be3ace1f5dc6ddbcb94e3faee2b44056e4a0070587dfae7b05151c92f902c98d17a43cb231a54901cd2799653cf2ddf8121a48471a15fa1
7
+ data.tar.gz: 2a3d91794e6e9a4ac9a980e90151e0f8c538ff4fc35e20d27b9bc4f95c09caccc989823fb0ea9b218b0dbc5cc8841150ac83ee7029611e5995d8a8fbf2fc7cb7
@@ -23,12 +23,20 @@ module Testcloud
23
23
  def api_token
24
24
  @api_token
25
25
  end
26
+
27
+ def url
28
+ @url
29
+ end
30
+
31
+ def url=(value)
32
+ @url = value
33
+ end
26
34
  end
27
35
 
28
36
  def initialize(options = {})
29
37
  @type, @category = options[:type], options[:category]
30
38
  self.class.debug_output if options[:debug]
31
- self.class.base_uri(options[:url] || DEFAULT_URL)
39
+ self.class.base_uri(options[:url] || self.class.url || DEFAULT_URL)
32
40
  self.class.api_token = options[:api_token] if options[:api_token]
33
41
  end
34
42
 
@@ -10,7 +10,7 @@ module Testcloud
10
10
  MAJOR = 0
11
11
  MINOR = 0
12
12
  PATCH = 0
13
- PRE = 4
13
+ PRE = 5
14
14
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
15
15
  end
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcloud_devices_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.4
4
+ version: 0.0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Faucett