atlas_rb 0.0.45 → 0.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/atlas_rb/resource.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a58db66df13b924f3a1c214d8dc11ebc5ba89de64b9297ac1842cb8873775ee7
|
4
|
+
data.tar.gz: 8607022bf4eac96bebbca8675501cf8e297be788b41f250268dce8cc23480c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0fa89ad342eda5011408aafdfb44864e513be40ae33ab8594a01f7b0eaa8ae3c788559212324937621d9743004632ae23d92fb1e612d1fc8e7da302744be659
|
7
|
+
data.tar.gz: 6723acf337b872da3b86af939faf52b28be1668cfc0ff6c2ac0dd95df70f25d489eeb88f55a66f77f2f5cae5fd8b604ba1bceb17b5fedb88f6f64e69c4714571
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.46
|
data/Gemfile.lock
CHANGED
data/lib/atlas_rb/resource.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2024-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|