atlas_rb 0.0.80 → 0.0.82

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: 1db8be9b665ae03e9310c584c6173976fe82990508ebd71d2318dcb1acc89c2a
4
- data.tar.gz: 31f6677c7938bcd73da3483337486513ea2426bae804f730a0df3feb87a2f77a
3
+ metadata.gz: 5ad885d6789fc9faf83360feb257ef35c73138eb51873735117ae51c9273b3b1
4
+ data.tar.gz: 14bae7546c9ccb4605097c2a0b5fe4ec11dbeec49a582f3163b167fa9b4b8c5a
5
5
  SHA512:
6
- metadata.gz: 4710eb11d13c548e1dc0f6676428c9e42e09ff14cde81356030cca18edb089547c751a496a7c2d82ce8bb032e057d986f18cbc802ff40515888d2514d37e479a
7
- data.tar.gz: 4326ebcf90fa38cb0b87dc6a88d68a0246de882cdc08576b776b0f077fba06c7849449a2f8b5a8ee487a4e2809336ab3da82fed3614251fa36af4da24b7bc349
6
+ metadata.gz: fc8a1f22fc579ce662f52ddb731f10012155c0d824040dec64174c1b124d6660a7e8432542906b94d152b0df9651a1790c95a7b0eac10726d432a8fd6659680b
7
+ data.tar.gz: c7dbc256db6ca9cc149b36a574c3c5942720a304e1015e1cb45c8465a702d89b071a14c7fee6aaf01a831ee9c78c29371f61210204ad31184bbc3dd4c9d5cbd4
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.80
1
+ 0.0.82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.80)
4
+ atlas_rb (0.0.82)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -20,7 +20,7 @@ GEM
20
20
  multipart-post (~> 2.0)
21
21
  faraday-net_http (3.4.2)
22
22
  net-http (~> 0.5)
23
- json (2.19.3)
23
+ json (2.19.4)
24
24
  logger (1.7.0)
25
25
  multipart-post (2.4.1)
26
26
  net-http (0.9.1)
data/lib/atlas_rb/blob.rb CHANGED
@@ -8,6 +8,17 @@ module AtlasRb
8
8
  JSON.parse(connection({}).get(ROUTE + id)&.body)['blob']
9
9
  end
10
10
 
11
+ def self.content(id, &chunk_handler)
12
+ headers = {}
13
+ connection({}).get("#{ROUTE}#{id}/content") do |req|
14
+ req.options.on_data = proc do |chunk, _bytes_received, env|
15
+ headers = env.response_headers if headers.empty? && env
16
+ chunk_handler.call(chunk)
17
+ end
18
+ end
19
+ headers
20
+ end
21
+
11
22
  def self.create(id, blob_path, original_filename)
12
23
  payload = { work_id: id,
13
24
  original_filename: original_filename,
data/lib/atlas_rb/work.rb CHANGED
@@ -31,6 +31,10 @@ module AtlasRb
31
31
  JSON.parse(connection({ metadata: values }).patch(ROUTE + id)&.body)
32
32
  end
33
33
 
34
+ def self.files(id)
35
+ JSON.parse(connection({}).get(ROUTE + id + '/files')&.body)
36
+ end
37
+
34
38
  def self.mods(id, kind = nil)
35
39
  # json default, html, xml
36
40
  connection({}).get(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.80
4
+ version: 0.0.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-04-07 00:00:00.000000000 Z
11
+ date: 2026-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday