ezid-client 0.9.0 → 0.9.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: 1d293bcff52ee5fc46ff4b072fd1593d09bc1518
4
- data.tar.gz: 0b62eadf5c906ecfe85e1bf7caaf2d49a47dec56
3
+ metadata.gz: 034acbeee70fe9fe84f4e8b26c90e30cb158501c
4
+ data.tar.gz: 57a075ccf73a3c29e2fe2945acb4a9675a8c3224
5
5
  SHA512:
6
- metadata.gz: 1246ddbb77a2a3cfef82934dc7498ee6be3e57106974e71cb16c4e1f7e812929fe6e1ec67f35ad286ab0736264fffabfdc3f0e2dabe6c66839116920fadc4359
7
- data.tar.gz: fb3a3ae2e4a1bc0bd065c4e6bccd2f10078abde0cd0ab7a3db56c6d39c9d1943a67a82961b67b16db6dc43e62c084774d268f9379dcdaed57dc7f7b9f2b7ddb5
6
+ metadata.gz: 11a3a93987cccc2c665abf3a0cd1f822980186ce0547aae500f5cd509ccdf5868b9fc41bcef16215a6fac4c0ef1f09e0eddd32f8baf11a5d347fc66154df3d09
7
+ data.tar.gz: b5193f91303db313b4a385d2c557d19b2ee97290acfa08ec912c4201d8164504a62d9f962a4a6d67d194ebfbadd81b27a04659dbae139c8327b4271f7be1e99a
data/README.md CHANGED
@@ -42,13 +42,21 @@ I, [2014-12-04T15:06:03.249793 #86655] INFO -- : EZID GET ark:/99999/fk4rx9d523
42
42
 
43
43
  A default shoulder can be configured:
44
44
 
45
+ - By environment variable (added in v0.9.1):
46
+
47
+ ```sh
48
+ export EZID_DEFAULT_SHOULDER="ark:/99999/fk4"
49
+ ```
50
+
51
+ - By client configuration:
52
+
45
53
  ```ruby
46
54
  Ezid::Client.configure do |config|
47
55
  config.default_shoulder = "ark:/99999/fk4"
48
56
  end
49
57
  ```
50
58
 
51
- Then identifiers can minted on the default shoulder:
59
+ New identifiers will then be minted on the default shoulder when a shoulder is not specified:
52
60
 
53
61
  ```ruby
54
62
  >> identifier = Ezid::Identifier.create
@@ -138,7 +146,12 @@ I, [2014-12-09T11:38:38.153546 #32279] INFO -- : EZID GET ark:/99999/fk4zs2w500
138
146
 
139
147
  Credentials can be provided in any -- or a combination -- of these ways:
140
148
 
141
- - Environment variables `EZID_USER` and/or `EZID_PASSWORD`;
149
+ - Environment variables:
150
+
151
+ ```sh
152
+ export EZID_USER="eziduser"
153
+ export EZID_PASSWORD="ezidpass"
154
+ ```
142
155
 
143
156
  - Client configuration:
144
157
 
@@ -157,9 +170,14 @@ client = Ezid::Client.new(user: "eziduser", password: "ezidpass")
157
170
 
158
171
  ## Alternate Host and Disabling SSL
159
172
 
160
- By default Ezid::Client connects over SSL to the EZID host at [ezid.cdlib.org](http://ezid.cdlib.org), but the host and SSL settings may be overridden:
173
+ By default `Ezid::Client` connects over SSL to the EZID host at [ezid.cdlib.org](http://ezid.cdlib.org), but the host and SSL settings may be overridden:
161
174
 
162
- - By setting the `EZID_HOST` environment variable; `EZID_USE_SSL` may be set to the string "false" to disable SSL for all requests.
175
+ - By environment variables:
176
+
177
+ ```sh
178
+ export EZID_HOST="localhost"
179
+ export EZID_USE_SSL="false" # "false" disables SSL for all requests
180
+ ```
163
181
 
164
182
  - Client configuration:
165
183
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -39,10 +39,11 @@ module Ezid
39
39
  attr_accessor :default_shoulder
40
40
 
41
41
  def initialize
42
- @user = ENV["EZID_USER"]
43
- @password = ENV["EZID_PASSWORD"]
44
- @host = ENV["EZID_HOST"] || HOST
45
- @use_ssl = ENV["EZID_USE_SSL"] != false.to_s
42
+ @user = ENV["EZID_USER"]
43
+ @password = ENV["EZID_PASSWORD"]
44
+ @host = ENV["EZID_HOST"] || HOST
45
+ @use_ssl = ENV["EZID_USE_SSL"] != false.to_s
46
+ @default_shoulder = ENV["EZID_DEFAULT_SHOULDER"]
46
47
  end
47
48
 
48
49
  def logger
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezid-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.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: 2014-12-17 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler