ezid-client 1.1.0 → 1.1.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: dcda4d65432df1b88c9727ca05e22a8f214f27b6
4
- data.tar.gz: 878ccc4caf544c3fd1f1b3cedc9da7ed6a72180d
3
+ metadata.gz: b99665638ed549f4b2aac8d64b4c0481c9ced185
4
+ data.tar.gz: 9a0425a9a6a7b7fb5d379b23ad886f8287061b92
5
5
  SHA512:
6
- metadata.gz: 778b583288d8bbc0bf8463ed3caadb117babfa5ef092c838367ddfbb7d6043b7186eeff4101d1fb0c51871299371e31e371cf5ace8f81e59eb168373b5f46422
7
- data.tar.gz: 9d149efa596af0db3268522cff9deeecfcf72f235608367311adc6ee5d3c86ba087c6519cfba44c15edd30c60158423e5245d09ac4e99f1ad7501d76dd5e7990
6
+ metadata.gz: d4231d347ddb5a4d81a5f45997a0f3e578d4f3016a18faaefb3751bbfe2db5b7d2e52e387cfa0b4060dac359667e9fcffa36fa74f68afe4257c6e80cfdde1863
7
+ data.tar.gz: 132dd35cd17df14438744ce7aad382241d2cc9695a42582ba8f3ae3c651b26bf06889c400373bc1b40aaaf6f4f6b5a6b9f6cc489a41e0cc6070e9e8778124607
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -18,10 +18,10 @@ module Ezid
18
18
  class Client
19
19
 
20
20
  # ezid-client gem version (e.g., "0.8.0")
21
- VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).chomp
21
+ VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).chomp.freeze
22
22
 
23
23
  # EZID API version
24
- API_VERSION = "2"
24
+ API_VERSION = "2".freeze
25
25
 
26
26
  class << self
27
27
  # Configuration reader
@@ -10,7 +10,7 @@ module Ezid
10
10
  #
11
11
  class Configuration
12
12
 
13
- HOST = "ezid.cdlib.org"
13
+ HOST = "ezid.cdlib.org".freeze
14
14
  PORT = 443
15
15
  TIMEOUT = 300
16
16
 
@@ -12,12 +12,12 @@ module Ezid
12
12
  private :state, :state=, :id=
13
13
 
14
14
  # Attributes to display on inspect
15
- INSPECT_ATTRS = %w( id status target created )
15
+ INSPECT_ATTRS = %w( id status target created ).freeze
16
16
 
17
17
  # EZID status terms
18
- PUBLIC = "public"
19
- RESERVED = "reserved"
20
- UNAVAILABLE = "unavailable"
18
+ PUBLIC = "public".freeze
19
+ RESERVED = "reserved".freeze
20
+ UNAVAILABLE = "unavailable".freeze
21
21
 
22
22
  class << self
23
23
  attr_accessor :defaults
@@ -170,7 +170,9 @@ module Ezid
170
170
  def unavailable!(reason = nil)
171
171
  raise Error, "Cannot make a reserved identifier unavailable." if persisted? && reserved?
172
172
  value = UNAVAILABLE
173
- value << " | #{reason}" if reason
173
+ if reason
174
+ value += " | #{reason}"
175
+ end
174
176
  self.status = value
175
177
  end
176
178
 
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: 1.1.0
4
+ version: 1.1.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: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler