Releases: duke-libraries/ezid-client
v1.5.0
v1.4.3
v1.4.2
Addresses backward compatibility issues in Ezid::Identifier.new
introduced in v1.4.0.
v1.4.1
Addresses a backward compatibility issue introduced in v1.4.0. Calling Ezid::Identifier.create
with no arguments is now deprecated in favor of Ezid::Identifier.mint
.
v1.4.0
EZID host metadata and local metadata set on Identifier instances
are now kept in separate Metadata instances (closes #4). The means
only local changes are posted to the remote host. Since Identifier is
now "lazy" Ezid::ProxyIdentifier
is deprecated.
A special exception (Ezid::IdentifierNotFoundError) is raised when a
given identifier is not found (closes #58).
Adds .mint
class method to Ezid::Identifier
so that the .create
method is now intended for CreateIdentifier requests only (minting
via .create
is supported with deprecation pending v2.0).
Adds .modify
class method and #modify!
instance method to
Ezid::Identifier
for updates of known identifiers without
checking existence. Raises Ezid::IdentifierNotFoundError
.
A change in .find
corrects a bug in which default metadata
is reset on existing identifiers (not reported).
Ezid::Identifier.new
yields the new instance to a given block.
v1.3.0
- Adds
Ezid::BatchDownload
class to ease usage of EZID batch download API.
v1.2.0
- Adds
Ezid::ProxyIdentifier
for lazy loading.
v1.1.0
Identifier metadata is now loaded lazily from EZID (#23)
- The local metadata is cleared after persisting (create/mint or modify)
and reloaded only on subsequent access. - The
#metadata
reader method provides a booleanrefresh
parameter
(default:true
) which can be used to bypass the reload. This may
be useful in testing scenarios.
Internal implementation details of Ezid::Metadata were also changed
without public API impact (the class itself is documented as
private).
v1.0.1
Removed stray text from Ezid::Configuration
initializer which would cause a NoMethodError
when ENV["EZID_USE_SSL"] == "true"
.
This environment setting is only necessary when using SSL with a non-standard port (i.e., other than 443).
v1.0.0
Backward-incompatible change from 0.13.0 - Ezid::Metadata.register_element
has been removed. Custom elements can be accessed on Ezid::Identifier
instances by keys:
>> i = Ezid::Identifier.new
=> #<Ezid::Identifier id="" status="" target="" created="">
>> i["foo"] = "bar"
=> "bar"
>> i["foo"]
=> "bar"
>> i.metadata
=> {"foo"=>"bar"}