ubiq-security 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ubiq/credentials.rb +6 -0
- data/lib/ubiq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97aa80db52e77adb021ed791c52ca09b12bea36fd82d402fca9506e8fcac253d
|
4
|
+
data.tar.gz: b421f79fe3e7630dc3b20fc588156c679f60914ecf880c9f799d3861a4d1d9a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d6d1136d3db18adf77b492c8369feb76d448fc263e5178be4b896a3c2767ee872700eb2832f8acd7d2ec99f3779e478da4a6172072e1613e72dd7815ff4d2e4
|
7
|
+
data.tar.gz: 12cc028eed9331209b3198ceb4b82dc3fd019da29d2148b02923d955a2439d18cb84f8ba2e435d34ba6da2eb8bbb815f0545d67ef4aa567968ae3cf2bdab31c6
|
data/lib/ubiq/credentials.rb
CHANGED
@@ -19,6 +19,8 @@
|
|
19
19
|
require 'configparser'
|
20
20
|
require 'rb-readline'
|
21
21
|
require 'byebug'
|
22
|
+
require_relative './host.rb'
|
23
|
+
|
22
24
|
|
23
25
|
module Ubiq
|
24
26
|
# Access Credentials used by the library to validate service calls
|
@@ -76,6 +78,10 @@ module Ubiq
|
|
76
78
|
d = config['default']
|
77
79
|
end
|
78
80
|
|
81
|
+
if !d.key?('SERVER')
|
82
|
+
d['SERVER'] = Ubiq::UBIQ_HOST
|
83
|
+
end
|
84
|
+
|
79
85
|
# get the supplied profile if there is one
|
80
86
|
if config[profile].present?
|
81
87
|
p = config[profile]
|
data/lib/ubiq/version.rb
CHANGED