duracloud-client 0.10.0 → 0.10.1

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: ab3c4183dff4f6bcd2b40da7e2601cf0822407d0
4
- data.tar.gz: 426c246ed3d48bbac47dc17972157147cd9dcf56
3
+ metadata.gz: 7ea1d566d589b0239af81569fdceac167c8575be
4
+ data.tar.gz: c0ec71dae623136241d50856a09b32f03b9b58e6
5
5
  SHA512:
6
- metadata.gz: 99041da397ad7d9cef8ff49cc0cf352bf254db576cc068e270133e0f3e247a38f954c3de7c1a8e5d636e3f3e508a5fcc1d7aa118fbeaeb97038ec06e7e72ca59
7
- data.tar.gz: 5f377cbe3a4940613310bad558bf8761bcbcfbd4fee5352ab3a5ac41a08368ef28e0715d0ed219cd0b54441243bc19af4ddb894432ca9ec99a82fa6250e1fba2
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
- attr_accessor :host, :port, :user, :password
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
@@ -1,3 +1,3 @@
1
1
  module Duracloud
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable