Skip to content

Releases: mlibrary/handle_rest

v0.0.5

12 Jan 14:18
Compare
Choose a tag to compare
v0.0.5 Pre-release
Pre-release

Update faraday to 1.0 to match hyrax 4.0 requirements

v0.0.4

26 Apr 18:52
Compare
Choose a tag to compare
v0.0.4 Pre-release
Pre-release

Fixed called to Service#write in UrlService#set.

v0.0.3

22 Apr 17:08
Compare
Choose a tag to compare
v0.0.3 Pre-release
Pre-release

Return empty array when handle not found.

   # Get Handle Value Lines
    #
    # @param handle [Handle]
    # @return [[ValueLine]]
    # @raise [RuntimeError] if the handle server returns an error.
    def get(handle)
      response = @conn.get(handle.to_s)
      if response.success?
        response.body["values"].map { |v| HandleRest::ValueLine.from_h(v) }
      else
        case response_code(response)
        when 100
          []
        else
          raise_response_error(response)
        end
      end
    end

v0.0.2

15 Apr 15:09
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release

Handle Value Line Objects

v0.0.1

15 Apr 15:15
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

First round trip sketch.