atlas_rb 0.0.41 → 0.0.42

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: 7924179dc613023b3134ba0a3bb0e0c96df3368023983a094d2221453e9727f3
4
- data.tar.gz: 1308b7e9adeab96789ed6cf7a3e308148059260727fd0873bec8450b3b7fa9e5
3
+ metadata.gz: e6f6199b7026fa946e01db62a9d2f0c9600800877de4ee97a39eca1a8133fcc4
4
+ data.tar.gz: b250384d0267b3830cd3c7e220694614e6d6dd661e79934b63e7032333a10e6a
5
5
  SHA512:
6
- metadata.gz: c06fd14aab90f75c196c9e16b95392d154388a7b7983cce8293ce6affdae1fb0b96261e0b2f7896ca481c6d1477f3853b35fcb39de02e8822e68c0e44c404a5f
7
- data.tar.gz: 63fda40ce6688119fdfffa9069e8a7e3166f26afe189d93bbc29d3c5626aa797ec123c34d998e4048505d1584934084b35e1dcd9b6e59b4ddefadaddad9c4008
6
+ metadata.gz: 0a9e9d05e2d9cd770ae0a1cb872dba6cc52e79213bdc4e8fe1ebe67b78e98ead718d10553ea2353f84e10cff6c9bbe5bc90f4f05d37afc122157f1c6a42c7e42
7
+ data.tar.gz: f1520621f0f6425f448e9633cf27d8310696a9c81e183388103d43ac8943d7b570479a14afedea9729b4e332f9efb948f37ec9d89d79211d6323bcb0c7a86d76
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.41
1
+ 0.0.42
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.41)
4
+ atlas_rb (0.0.42)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -31,5 +31,13 @@ module AtlasRb
31
31
  def self.metadata(id, values)
32
32
  JSON.parse(connection({ metadata: values }).patch(ROUTE + id)&.body)
33
33
  end
34
+
35
+ def self.mods(id)
36
+ connection({}).get(ROUTE + id + '/mods.html')&.body
37
+ end
38
+
39
+ def self.xml(id)
40
+ connection({}).get(ROUTE + id + '/mods')&.body
41
+ end
34
42
  end
35
43
  end
@@ -30,5 +30,13 @@ module AtlasRb
30
30
  def self.metadata(id, values)
31
31
  JSON.parse(connection({ metadata: values }).patch(ROUTE + id)&.body)
32
32
  end
33
+
34
+ def self.mods(id)
35
+ connection({}).get(ROUTE + id + '/mods.html')&.body
36
+ end
37
+
38
+ def self.xml(id)
39
+ connection({}).get(ROUTE + id + '/mods')&.body
40
+ end
33
41
  end
34
42
  end
data/lib/atlas_rb/work.rb CHANGED
@@ -25,8 +25,11 @@ module AtlasRb
25
25
  end
26
26
 
27
27
  def self.mods(id)
28
- # optional second argument for pure json response?
29
28
  connection({}).get(ROUTE + id + '/mods.html')&.body
30
29
  end
30
+
31
+ def self.xml(id)
32
+ connection({}).get(ROUTE + id + '/mods')&.body
33
+ end
31
34
  end
32
35
  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.41
4
+ version: 0.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff