atlas_rb 0.0.86 → 0.0.88

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: edb369e9dcfdf666142e223a76650ec1e8d56d41c68fe0e4d999b743ea2571d0
4
- data.tar.gz: 2d99a9c9916ec579fac9f98523082fc5bb69f637d4cea05b24ed40c85ce86554
3
+ metadata.gz: 32ee794eeaed7d20594470df3855ba0d970c9c80e4f4bf8ce2f930e287a56f26
4
+ data.tar.gz: b1dd7c4007aa3353d5bcc21a2f4022b33f4986e28ed144a92c541cddd194b801
5
5
  SHA512:
6
- metadata.gz: e1d8a33a03209ef903fc15027b5d9d5bd57abd495d96ca93609e4939658fcd2b7b95029fdde2f8e43d28cd39c3231bdba6e8180049bd0be029c8acffd8deb398
7
- data.tar.gz: f9a267f330f6ea11ba553249b72cd29d29947550f85d18a6228d2fac40fb564dc3d3a3692ae5bf334de56aeef6a529df5289676630a9ca513659bb550bc7dc77
6
+ metadata.gz: 6a61eb2b1217fa42f19bb37673e8244cd6544976446cf8f85657b25d928cebbc0c763b6e660984f71037c669f3638dd6a4657788cc628ed68e18cb52a0d99ccc
7
+ data.tar.gz: b721b72a80318001ce3e2e770dbc592665c1bad510c9db157bef04dcfc5b706978306ecc9dacec902817116c9b4127694769eb6c7b4d22763ee476bc76084d5a
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.86
1
+ 0.0.88
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.86)
4
+ atlas_rb (0.0.88)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -62,13 +62,17 @@ module AtlasRb
62
62
 
63
63
  # List the Works in a Collection.
64
64
  #
65
+ # The endpoint returns just the noids; resolve each through
66
+ # {Resource.find} (or {Work.find}) when a full payload is needed.
67
+ #
65
68
  # @param id [String] the Collection ID.
66
- # @return [Hash] the child listing from `GET /collections/<id>/children`.
69
+ # @return [Array<String>] child noids from `GET /collections/<id>/children`.
67
70
  #
68
71
  # @example
69
72
  # AtlasRb::Collection.children("col-456")
73
+ # # => ["w-789", "w-790"]
70
74
  def self.children(id)
71
- AtlasRb::Mash.new(JSON.parse(connection({}).get(ROUTE + id + '/children')&.body))
75
+ JSON.parse(connection({}).get(ROUTE + id + '/children')&.body)
72
76
  end
73
77
 
74
78
  # Replace a Collection's metadata by uploading a MODS XML document.
@@ -66,13 +66,18 @@ module AtlasRb
66
66
 
67
67
  # List the immediate children (sub-Communities and Collections) of a Community.
68
68
  #
69
+ # The endpoint returns just the noids; resolve each through
70
+ # {Resource.find} (which dispatches by type) when richer payloads are
71
+ # needed.
72
+ #
69
73
  # @param id [String] the parent Community ID.
70
- # @return [Hash] the child listing from `GET /communities/<id>/children`.
74
+ # @return [Array<String>] child noids from `GET /communities/<id>/children`.
71
75
  #
72
76
  # @example
73
77
  # AtlasRb::Community.children("c-123")
78
+ # # => ["fn106x926", "kw52j804p"]
74
79
  def self.children(id)
75
- AtlasRb::Mash.new(JSON.parse(connection({}).get(ROUTE + id + '/children')&.body))
80
+ JSON.parse(connection({}).get(ROUTE + id + '/children')&.body)
76
81
  end
77
82
 
78
83
  # Replace a Community's metadata by uploading a MODS XML document.
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.86
4
+ version: 0.0.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff