atlas_rb 0.0.56 → 0.0.58

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: 6d09fc403b8281ec42ebad4f21674e70673810f6e81cf55f918ff1693143c729
4
- data.tar.gz: 1e8d34c7168dfca1d9c809f43a462cd5d000f82efc0b66a2df6ba4d4f345e78b
3
+ metadata.gz: 56ac243a40d2f9485e3c4db56804be15e91ee084d23ebdebbe548d196109f651
4
+ data.tar.gz: cdd7f5af8a54bf16bcd80a79f07e9b6df9dcd0b48fcb1b41e6ec19954986b901
5
5
  SHA512:
6
- metadata.gz: '08da4ce03037241ff606caeb91d57fabedccda34fd639b787c08efde40119ce8650a8d1d9c4b3d961e2485d585f14616725b7b3e22897e1bbf40049906778088'
7
- data.tar.gz: 80412e19adeb9309bf7f6c9946a10cef0557a9207b57d1d4d7da14c4a972c24f5e8ab89bf7d87e29fb4bb302f7e11713355530ed1c794a078bfa1b382f86289f
6
+ metadata.gz: e0a620f4071cf468c860dd84d3b4b578547913e24d81181aea67e614b9258652de01c6f6ad590b8e98538d846d29520102f7855cdbc56e13bbc4c0e98b73f489
7
+ data.tar.gz: 622e412cfac7c6ff9db5916fdacb144b77d030961950a0d58c2631c8410e1ab682836404eecb8b767f73607aaf82ddfb77f18bddc32b10e874399e8460a0ba53
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.56
1
+ 0.0.58
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.56)
4
+ atlas_rb (0.0.58)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -10,7 +10,7 @@ module AtlasRb
10
10
 
11
11
  def self.create(id, xml_path = nil)
12
12
  result = JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)["collection"]
13
- return unless xml_path.present?
13
+ return result unless xml_path.present?
14
14
 
15
15
  update(result["id"], xml_path)
16
16
  find(result["id"])
data/lib/atlas_rb/work.rb CHANGED
@@ -10,7 +10,7 @@ module AtlasRb
10
10
 
11
11
  def self.create(id, xml_path = nil)
12
12
  result = JSON.parse(connection({ collection_id: id }).post(ROUTE)&.body)["work"]
13
- return unless xml_path.present?
13
+ return result unless xml_path.present?
14
14
 
15
15
  update(result["id"], xml_path)
16
16
  find(result["id"])
data/lib/atlas_rb.rb CHANGED
@@ -9,6 +9,8 @@ require_relative "atlas_rb/resource"
9
9
  require_relative "atlas_rb/community"
10
10
  require_relative "atlas_rb/collection"
11
11
  require_relative "atlas_rb/work"
12
+ require_relative "atlas_rb/file_set"
13
+ require_relative "atlas_rb/file"
12
14
 
13
15
  module AtlasRb
14
16
  class Error < StandardError; 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.56
4
+ version: 0.0.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff