atlas_rb 0.0.79 → 0.0.81

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: ac14d54e230aed537011b33107f5925794831d604c51c78bded36b80e14c9d9e
4
- data.tar.gz: 8239b686c39660bf837e8e9933877c6504527e228bde85faaa2214dec0557433
3
+ metadata.gz: 4041d1c545afb6a983fbedda8d91fd2f36abdc15480d551e0156e34b23828ec3
4
+ data.tar.gz: 0317b9b4967fed169c969196d9fa6dc35a83b081a58bfb03ad8ff72239c73cfa
5
5
  SHA512:
6
- metadata.gz: bd013b76726ab212be087b12662b068cf2421d09a46326c57688e252942eb278524650c88d0f89ea2a77ac2b6967ce7e4ddbc1c30c56d976900365bd167130c8
7
- data.tar.gz: e0f076a444c3ddc7f5f6e009663c427690d6444608dfdb099cc54d24c5c4e05e87e429c2bdd4824af46cfff8787e1c7dfb30ec86680c104f64f251bad8bbe037
6
+ metadata.gz: 76227a82a7a1d1afd5b99cbbf258f3376780fb43993008e513a85b898f0b9699b89c8512256bb7d10ded352de295669439ad09fdbf1fc672cf6c041e6dafdbe8
7
+ data.tar.gz: 97222b89cf90ac7fcf8132c7a380baa569d6a8ce908b9bd041c36b2fb6bfb66cbcb9e81c018613316d6088bd967fc5c6f0201c6959440283981d3622faff8c7f
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.79
1
+ 0.0.81
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.79)
4
+ atlas_rb (0.0.81)
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,8 +8,9 @@ module AtlasRb
8
8
  JSON.parse(connection({}).get(ROUTE + id)&.body)['blob']
9
9
  end
10
10
 
11
- def self.create(id, blob_path)
11
+ def self.create(id, blob_path, original_filename)
12
12
  payload = { work_id: id,
13
+ original_filename: original_filename,
13
14
  binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
14
15
  "application/octet-stream",
15
16
  File.basename(blob_path)) }
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.79
4
+ version: 0.0.81
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-01 00:00:00.000000000 Z
11
+ date: 2026-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday