atlas_rb 0.0.49 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69c5bc4893e9a3682b5ad976d20c4419fdae719fde5a99bc6322ba3e022032d9
4
- data.tar.gz: 3f43ad987bb88350a2973f2f911e91c73b560e2bd51cd1e113497f26f015d66d
3
+ metadata.gz: f78863fef4432801dba4cb1de1c2b967f762a6d9bbba10f2b3d91a2a920fa81b
4
+ data.tar.gz: 6cb431659461f91c839db650f424ac11d528cd004ac2b6367d6f9c4bd0aed4d1
5
5
  SHA512:
6
- metadata.gz: 0011aa8eedbfe65f641a179f9ec81eba3237d551f1ef9cd6738d740c1689b842f98de04838ae9c8770ecbf4737371337b989dd0d9bff137ad1a0e58865586b86
7
- data.tar.gz: 2966c6f81303fd7758036e9acb3dd70b8debc3716539cc012cf20b9cb62fb29428ed03f329841098a2fb71617498399739d6bc57381f175e23bd1805624db88d
6
+ metadata.gz: 4431eb55db66fedc0284694e98da88d3bd21a5dc1deb18232e7e0dc9ff492705b5081aba1d5dd35fcd7e67bc4bebbe6b8bb6a894f8a0b2502e93efc36968e86d
7
+ data.tar.gz: 2185bad0936ea1d94cea570c06817408318a34697e100ec996dfda9d5ed2c540447c85c42f3062e3b22216e5a9c3c2f7400f0b80b3e2a0a4fa1cce4abe1a41d1
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.49
1
+ 0.0.51
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.49)
4
+ atlas_rb (0.0.51)
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.9.0)
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.0)
20
+ faraday-net_http (3.1.1)
20
21
  net-http
21
- multipart-post (2.4.0)
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)
@@ -8,8 +8,10 @@ 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
+ update(result["id"], xml_path) if xml_path.present?
14
+ result
13
15
  end
14
16
 
15
17
  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.49
4
+ version: 0.0.51
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-03-28 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday