Skip to content

Releases: duke-libraries/ezid-client

v1.5.0

24 Mar 18:31
Compare
Choose a tag to compare
  • Metadata element writer raises exception when value is not supported (b746a06). Obviously Hash values can't be accepted. Arrays are also rejected because they will be coerced into Strings which may lead to unexpected results.

v1.4.3

21 Mar 22:04
Compare
Choose a tag to compare

v1.4.2

03 Mar 22:23
Compare
Choose a tag to compare

Addresses backward compatibility issues in Ezid::Identifier.new introduced in v1.4.0.

v1.4.1

03 Mar 22:25
Compare
Choose a tag to compare

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

02 Mar 20:40
Compare
Choose a tag to compare

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

25 Feb 03:04
Compare
Choose a tag to compare
  • Adds Ezid::BatchDownload class to ease usage of EZID batch download API.

v1.2.0

25 Feb 03:05
Compare
Choose a tag to compare
  • Adds Ezid::ProxyIdentifier for lazy loading.

v1.1.0

25 Mar 16:22
Compare
Choose a tag to compare

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 boolean refresh 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

26 Feb 16:35
Compare
Choose a tag to compare

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

25 Feb 15:33
Compare
Choose a tag to compare

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"}