duracloud-client 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/duracloud.rb +17 -7
- data/lib/duracloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ea1d566d589b0239af81569fdceac167c8575be
|
4
|
+
data.tar.gz: c0ec71dae623136241d50856a09b32f03b9b58e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e86296cf25ec3129073f1f1ffdfa5e3612b6e08dc8a2177e673f8c7222fd2c667f08e826c54882bde5b1211be27767f8a9defc761bbe9e89be25ee095d6625d
|
7
|
+
data.tar.gz: 9c295568ad77a66261e98465b790b0118b303ddd971edd5f19c867e8a4c685010c225a33067bf8f5eb785b1367290c34f2f9a4e5dfc184cd4162daac429bcefd
|
data/lib/duracloud.rb
CHANGED
@@ -31,8 +31,7 @@ module Duracloud
|
|
31
31
|
autoload :TSV, "duracloud/tsv"
|
32
32
|
|
33
33
|
class << self
|
34
|
-
|
35
|
-
attr_writer :logger
|
34
|
+
attr_writer :host, :port, :user, :password, :logger
|
36
35
|
|
37
36
|
def logger
|
38
37
|
@logger ||= Logger.new(STDERR)
|
@@ -42,6 +41,22 @@ module Duracloud
|
|
42
41
|
self.logger = Logger.new(File::NULL)
|
43
42
|
end
|
44
43
|
|
44
|
+
def host
|
45
|
+
@host ||= ENV["DURACLOUD_HOST"]
|
46
|
+
end
|
47
|
+
|
48
|
+
def port
|
49
|
+
@port ||= ENV["DURACLOUD_PORT"]
|
50
|
+
end
|
51
|
+
|
52
|
+
def user
|
53
|
+
@user ||= ENV["DURACLOUD_USER"]
|
54
|
+
end
|
55
|
+
|
56
|
+
def password
|
57
|
+
@password ||= ENV["DURACLOUD_PASSWORD"]
|
58
|
+
end
|
59
|
+
|
45
60
|
def base_url
|
46
61
|
URI::HTTPS.build(host: host, port: port, path: '/')
|
47
62
|
end
|
@@ -51,9 +66,4 @@ module Duracloud
|
|
51
66
|
end
|
52
67
|
end
|
53
68
|
|
54
|
-
self.host = ENV["DURACLOUD_HOST"]
|
55
|
-
self.port = ENV["DURACLOUD_PORT"]
|
56
|
-
self.user = ENV["DURACLOUD_USER"]
|
57
|
-
self.password = ENV["DURACLOUD_PASSWORD"]
|
58
|
-
|
59
69
|
end
|
data/lib/duracloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duracloud-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chandek-Stark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|