atlas_rb 0.0.45 → 0.0.46

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: ac7b9c15a60ec08ad824809d5eca07d9160082538fd0045e64990fa5b170097b
4
- data.tar.gz: 97a019ceea9df8bb871a44d78aeb47ae238460af563ca72426e5ab76a9fcfa26
3
+ metadata.gz: a58db66df13b924f3a1c214d8dc11ebc5ba89de64b9297ac1842cb8873775ee7
4
+ data.tar.gz: 8607022bf4eac96bebbca8675501cf8e297be788b41f250268dce8cc23480c60
5
5
  SHA512:
6
- metadata.gz: 0f7a02a1df142380f9709ab12c15457b75848ef5d466e8ddc6803b3490ad36b754e44c4684df3b72f7234789b66280a9a068821ef22589223029242391a63743
7
- data.tar.gz: 1d6945c542fa66f0d74180fc56c726da1b7b09dfd21eb8be8f35b960808e77949d1983cd5b4db6296b09d6afbfa2ed0b63504ead9490f9d57d70d9af574d2c72
6
+ metadata.gz: b0fa89ad342eda5011408aafdfb44864e513be40ae33ab8594a01f7b0eaa8ae3c788559212324937621d9743004632ae23d92fb1e612d1fc8e7da302744be659
7
+ data.tar.gz: 6723acf337b872da3b86af939faf52b28be1668cfc0ff6c2ac0dd95df70f25d489eeb88f55a66f77f2f5cae5fd8b604ba1bceb17b5fedb88f6f64e69c4714571
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.45
1
+ 0.0.46
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.45)
4
+ atlas_rb (0.0.46)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -9,5 +9,12 @@ module AtlasRb
9
9
  { "klass" => result.first[0].capitalize,
10
10
  "resource" => result.first[1] }
11
11
  end
12
+
13
+ def self.preview(xml_path)
14
+ payload = { binary: Faraday::Multipart::FilePart.new(File.open(xml_path),
15
+ "application/xml",
16
+ File.basename(xml_path)) }
17
+ multipart({ work_id: id }).post('/resources/preview', payload)&.body
18
+ end
12
19
  end
13
20
  end
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.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-30 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday