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 +4 -4
- data/.version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/atlas_rb/collection.rb +1 -1
- data/lib/atlas_rb/community.rb +1 -1
- data/lib/atlas_rb/work.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c56784f70e18564619d443f6d96cb3dbf825c7d238d67f40fed883d4670122d
|
4
|
+
data.tar.gz: ec6e95cd19aa8a573a92f87aeb85cc429393a900f92ca9118a511c7f222ce0b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0913e61225fd475bfb126e1366cbaac709acbff9cf528953a1069779c386a4e27a592ccaa4c844557ac7c4574ba0f7d74cbfe3c56d46e48f6ee61e681771bc5d'
|
7
|
+
data.tar.gz: d5cde201121607a933d6afc694ca5c0f36616fd317b6c65d0362f396aaf8f63527b418ed384384a4a21fc980ae723db1128360c0d0c524ef77931ac0e0725a2a
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.32
|
data/Gemfile.lock
CHANGED
data/lib/atlas_rb/collection.rb
CHANGED
data/lib/atlas_rb/community.rb
CHANGED
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)
|