atlas_rb 0.0.31 → 0.0.32

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: be19ada72faae69b0e4b88b714a7a1fdedc6724d8b09d0649a188355254d5f06
4
- data.tar.gz: 16cb1d986c7d864a43df016afae657a7b2c98baad341a8474f27fe9d458574bb
3
+ metadata.gz: 9c56784f70e18564619d443f6d96cb3dbf825c7d238d67f40fed883d4670122d
4
+ data.tar.gz: ec6e95cd19aa8a573a92f87aeb85cc429393a900f92ca9118a511c7f222ce0b8
5
5
  SHA512:
6
- metadata.gz: eb186b9725dc7bd135b3a52d834c13010d66a40850621568713531b0a8b27a7624b4f5745f6490e5dce5a18a1199fdd9043fd4c2a26c31acb7e8b1aa1a294131
7
- data.tar.gz: 5971b19076f8a5fc545f467e5871e9270a66167c81a1a9628067bb65d83b46691a3727c3806220745cb43815ed348f8a0b98c3cba19f92c46e33ced4366cd21b
6
+ metadata.gz: '0913e61225fd475bfb126e1366cbaac709acbff9cf528953a1069779c386a4e27a592ccaa4c844557ac7c4574ba0f7d74cbfe3c56d46e48f6ee61e681771bc5d'
7
+ data.tar.gz: d5cde201121607a933d6afc694ca5c0f36616fd317b6c65d0362f396aaf8f63527b418ed384384a4a21fc980ae723db1128360c0d0c524ef77931ac0e0725a2a
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.31
1
+ 0.0.32
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.31)
4
+ atlas_rb (0.0.32)
5
5
  faraday (~> 2.7)
6
6
  faraday-multipart (~> 1)
7
7
 
@@ -10,7 +10,7 @@ module AtlasRb
10
10
 
11
11
  def self.create(id)
12
12
  # params[:parent_id]
13
- JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)
13
+ JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)["collection"]
14
14
  end
15
15
 
16
16
  def self.destroy(id)
@@ -9,7 +9,7 @@ module AtlasRb
9
9
  end
10
10
 
11
11
  def self.create(id = nil)
12
- JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)
12
+ JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)["community"]
13
13
  end
14
14
 
15
15
  def self.destroy(id)
data/lib/atlas_rb/work.rb CHANGED
@@ -5,12 +5,12 @@ module AtlasRb
5
5
  ROUTE = "/works/"
6
6
 
7
7
  def self.find(id)
8
- JSON.parse(connection({}).get(ROUTE + id)&.body)
8
+ JSON.parse(connection({}).get(ROUTE + id)&.body)["work"]
9
9
  end
10
10
 
11
11
  def self.create(id)
12
12
  # params[:collection_id]
13
- JSON.parse(connection({ collection_id: id }).post(ROUTE)&.body)
13
+ JSON.parse(connection({ collection_id: id }).post(ROUTE)&.body)["work"]
14
14
  end
15
15
 
16
16
  def self.destroy(id)
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.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff