atlas_rb 0.0.85 → 0.0.86

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
  SHA256:
3
- metadata.gz: a85ca8a2fc7cb44ff2d348c03e2a1d8a0b5c01a35ddeccd823445071290d4ea0
4
- data.tar.gz: 1dbf5a8aeb3052c5841003951710320d23559133f00a2a24ed57bc7631472c79
3
+ metadata.gz: edb369e9dcfdf666142e223a76650ec1e8d56d41c68fe0e4d999b743ea2571d0
4
+ data.tar.gz: 2d99a9c9916ec579fac9f98523082fc5bb69f637d4cea05b24ed40c85ce86554
5
5
  SHA512:
6
- metadata.gz: 86d853b18df5e0f278de6e4c58bf8df6705fc88d495c72ebd44c7e2075357e486e3c7c5702bb40ae7cdd211576a374f2bda920fc2aba3f1f0be3a7f8999388f0
7
- data.tar.gz: 255bfa1ce0f3edf9268dd58b86093d429e2fac74d118a72a68e02106d9bc5779978c874b6d6ded9ffe68798949c2ffef90bd845aa66d34a93c23fab48962b16f
6
+ metadata.gz: e1d8a33a03209ef903fc15027b5d9d5bd57abd495d96ca93609e4939658fcd2b7b95029fdde2f8e43d28cd39c3231bdba6e8180049bd0be029c8acffd8deb398
7
+ data.tar.gz: f9a267f330f6ea11ba553249b72cd29d29947550f85d18a6228d2fac40fb564dc3d3a3692ae5bf334de56aeef6a529df5289676630a9ca513659bb550bc7dc77
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.85
1
+ 0.0.86
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.85)
4
+ atlas_rb (0.0.86)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
data/lib/atlas_rb/work.rb CHANGED
@@ -96,12 +96,13 @@ module AtlasRb
96
96
  # render each file's display name, size, and download URL.
97
97
  #
98
98
  # @param id [String] the Work ID.
99
- # @return [Hash] the listing from `GET /works/<id>/files`.
99
+ # @return [Array<AtlasRb::Mash>] the listing from `GET /works/<id>/files`,
100
+ # one entry per attached file.
100
101
  #
101
102
  # @example
102
- # AtlasRb::Work.files("w-789")
103
+ # AtlasRb::Work.files("w-789").each { |f| puts f.label }
103
104
  def self.files(id)
104
- AtlasRb::Mash.new(JSON.parse(connection({}).get(ROUTE + id + '/files')&.body))
105
+ JSON.parse(connection({}).get(ROUTE + id + '/files')&.body).map { |entry| AtlasRb::Mash.new(entry) }
105
106
  end
106
107
 
107
108
  # Fetch the Work's MODS representation in the requested format.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.85
4
+ version: 0.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff