atlas_rb 0.0.49 → 0.0.52
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 +6 -4
- data/lib/atlas_rb/community.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae8bf67d4dd9fe248752287c0e9e5c1f8fa4bf5ba2d58f1d14e548b8db58deb2
|
4
|
+
data.tar.gz: 6f13b61d2fed2849c684215b26d9d89415f89af36a482de358f84ba8daeaf998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd8689e06a59fa123f4b6230a024ac72db29a4f6d6084f3bed6e8371d322af3bbda463f1614a56398280faf1966f479ff702ed0b8e1e896ac1bd8bfe1efef475
|
7
|
+
data.tar.gz: d2901be08a1327ff92afba81d64ce80d803b987ebca00b21d8c9bf8b53576d2121826c6b251c97f0ae7ce0f070fbfe35c4ae461ba3c6566b0222becc2859bf61
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.52
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
atlas_rb (0.0.
|
4
|
+
atlas_rb (0.0.52)
|
5
5
|
faraday (~> 2.7)
|
6
6
|
faraday-follow_redirects (~> 0.3.0)
|
7
7
|
faraday-multipart (~> 1)
|
@@ -10,15 +10,17 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
diff-lcs (1.5.0)
|
13
|
-
faraday (2.
|
13
|
+
faraday (2.10.0)
|
14
14
|
faraday-net_http (>= 2.0, < 3.2)
|
15
|
+
logger
|
15
16
|
faraday-follow_redirects (0.3.0)
|
16
17
|
faraday (>= 1, < 3)
|
17
18
|
faraday-multipart (1.0.4)
|
18
19
|
multipart-post (~> 2)
|
19
|
-
faraday-net_http (3.1.
|
20
|
+
faraday-net_http (3.1.1)
|
20
21
|
net-http
|
21
|
-
|
22
|
+
logger (1.6.0)
|
23
|
+
multipart-post (2.4.1)
|
22
24
|
net-http (0.4.1)
|
23
25
|
uri
|
24
26
|
rake (13.0.6)
|
data/lib/atlas_rb/community.rb
CHANGED
@@ -8,8 +8,12 @@ module AtlasRb
|
|
8
8
|
JSON.parse(connection({}).get(ROUTE + id)&.body)["community"]
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.create(id = nil)
|
12
|
-
JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)["community"]
|
11
|
+
def self.create(id = nil, xml_path = nil)
|
12
|
+
result = JSON.parse(connection({ parent_id: id }).post(ROUTE)&.body)["community"]
|
13
|
+
return unless xml_path.present?
|
14
|
+
|
15
|
+
update(result["id"], xml_path)
|
16
|
+
find(result["id"])
|
13
17
|
end
|
14
18
|
|
15
19
|
def self.destroy(id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atlas_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.52
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cliff
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|