atlas_rb 0.0.87 → 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: dc46e02febd818ebeae248bdfe2cd09bb98621bea3c03b9bb63c6e6b00047da6
4
- data.tar.gz: 8b933b86bc86d6127789d22b6585bef3bb590b5ca40a14ae50cb456356d0de26
3
+ metadata.gz: 32ee794eeaed7d20594470df3855ba0d970c9c80e4f4bf8ce2f930e287a56f26
4
+ data.tar.gz: b1dd7c4007aa3353d5bcc21a2f4022b33f4986e28ed144a92c541cddd194b801
5
5
  SHA512:
6
- metadata.gz: 642f8e95f4113401726f28d4221e79e9e7225463a94d633426775cf57e969f07bc0414446d6ebf0fd859d7e334f235ff7dc3b04639729b7b27472adfbd09fc4d
7
- data.tar.gz: fa7d393184858673d6f9ea6138cdc77bd01d7f62f73298d16018935f49b079eea9055fdfd282b2098b7327bdcc3d1b1a8f5c673c5a7eaf52620efa12c54216e0
6
+ metadata.gz: 6a61eb2b1217fa42f19bb37673e8244cd6544976446cf8f85657b25d928cebbc0c763b6e660984f71037c669f3638dd6a4657788cc628ed68e18cb52a0d99ccc
7
+ data.tar.gz: b721b72a80318001ce3e2e770dbc592665c1bad510c9db157bef04dcfc5b706978306ecc9dacec902817116c9b4127694769eb6c7b4d22763ee476bc76084d5a
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.87
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.87)
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,14 +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 [Array<AtlasRb::Mash>] the child listing from
67
- # `GET /collections/<id>/children`, one entry per Work.
69
+ # @return [Array<String>] child noids from `GET /collections/<id>/children`.
68
70
  #
69
71
  # @example
70
- # AtlasRb::Collection.children("col-456").each { |work| puts work.noid }
72
+ # AtlasRb::Collection.children("col-456")
73
+ # # => ["w-789", "w-790"]
71
74
  def self.children(id)
72
- JSON.parse(connection({}).get(ROUTE + id + '/children')&.body).map { |entry| AtlasRb::Mash.new(entry) }
75
+ JSON.parse(connection({}).get(ROUTE + id + '/children')&.body)
73
76
  end
74
77
 
75
78
  # Replace a Collection's metadata by uploading a MODS XML document.
@@ -66,14 +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 [Array<AtlasRb::Mash>] the child listing from
71
- # `GET /communities/<id>/children`, one entry per child.
74
+ # @return [Array<String>] child noids from `GET /communities/<id>/children`.
72
75
  #
73
76
  # @example
74
- # AtlasRb::Community.children("c-123").each { |child| puts child.noid }
77
+ # AtlasRb::Community.children("c-123")
78
+ # # => ["fn106x926", "kw52j804p"]
75
79
  def self.children(id)
76
- JSON.parse(connection({}).get(ROUTE + id + '/children')&.body).map { |entry| AtlasRb::Mash.new(entry) }
80
+ JSON.parse(connection({}).get(ROUTE + id + '/children')&.body)
77
81
  end
78
82
 
79
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.87
4
+ version: 0.0.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff