atlas_rb 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43adf4082b6fe70e6bdef70c3abbd715509f9e7aa95297966c7ae2234e9a4fa3
4
- data.tar.gz: ab5d4b31d526bd69cc7a3e5826424a558a8432e1a861570d7cae174ea902660d
3
+ metadata.gz: 35f567609ed20e3a203019f4301de45d5fb32f7a7e1491761e96fa7077793a8a
4
+ data.tar.gz: 0b85662128d992b5a577259d8924edb139215ae6e8f06ffb76a78409b444a54c
5
5
  SHA512:
6
- metadata.gz: a7a46eb1e158feac4a4e04f6771a9bbf3a14507b10b0ecff94b85e773753112208d5244e154e758935660da437de942381c50c4a261353a4fb39ca47bf01125c
7
- data.tar.gz: d11ee7d111288c6f06ff66f991e8f1047398effc93c3f570806ad387bc6dc225f010c5319e70eed84ea95866e1361c81bfb951972708db2ba9ff8121b3c0a1cf
6
+ metadata.gz: 4262d921a5793b497ba276cc807831d9aaab085fb990b4733a29049fd876ea81c40c5e11072d446f06572f1d24c8044885abac9a590e6f7f0aa3069e6e140eb5
7
+ data.tar.gz: 584a33a8ea5073cf9085bdb5b89e915719866483e84600fcbeea8b2f218c458eec098dec6544a771fc50add3d9a894279593d783ce5ba1df416f364c1f27ec33
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.29
1
+ 0.0.30
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.29)
4
+ atlas_rb (0.0.30)
5
5
  faraday (~> 2.7)
6
6
  faraday-multipart (~> 1)
7
7
 
data/lib/atlas_rb/work.rb CHANGED
@@ -23,5 +23,10 @@ module AtlasRb
23
23
  File.basename(xml_path)) }
24
24
  JSON.parse(multipart({}).patch(ROUTE + id, payload)&.body)
25
25
  end
26
+
27
+ def self.mods(id)
28
+ # optional second argument for pure json response?
29
+ JSON.parse(connection({}).get(ROUTE + id + '/mods.html')&.body)
30
+ end
26
31
  end
27
32
  end
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.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff