atlas_rb 0.0.99 → 0.0.100
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 +4 -4
- data/.version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/atlas_rb/collection.rb +2 -2
- data/lib/atlas_rb/community.rb +2 -2
- data/lib/atlas_rb/work.rb +2 -2
- data/lib/atlas_rb.rb +8 -3
- 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: a6446cf5f1b041885d75f8d42740e5e865b0bb6db3569ed1926c93c78893862a
|
|
4
|
+
data.tar.gz: dc02805c46b618cc9b2ed2c28e4679eb537ff3467e0b0a974977c1799e2c7056
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df30f4678e31a4de0ca0ef7d2ea4967fe4b4c56d77aec8f133bba36399ce4838ca0b86ff715b4fa7d3e7c40fb9682feed00ff6f2e6c39aebd907605e5d1150d4
|
|
7
|
+
data.tar.gz: dff59d92028e8f5b15ef7b270ffd6b53771dcd20c64406706e0e4367c520bff1f7854e087b7da152247bec514aa542ba438c1848149cfd257d2085a9d637d769
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.100
|
data/Gemfile.lock
CHANGED
data/lib/atlas_rb/collection.rb
CHANGED
|
@@ -51,8 +51,8 @@ module AtlasRb
|
|
|
51
51
|
result = AtlasRb::Mash.new(JSON.parse(connection({ parent_id: id }, nuid).post(ROUTE)&.body))["collection"]
|
|
52
52
|
return result unless xml_path.present?
|
|
53
53
|
|
|
54
|
-
update(result["id"], xml_path)
|
|
55
|
-
find(result["id"])
|
|
54
|
+
update(result["id"], xml_path, nuid: nuid)
|
|
55
|
+
find(result["id"], nuid: nuid)
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# Delete a Collection.
|
data/lib/atlas_rb/community.rb
CHANGED
|
@@ -55,8 +55,8 @@ module AtlasRb
|
|
|
55
55
|
result = AtlasRb::Mash.new(JSON.parse(connection({ parent_id: id }, nuid).post(ROUTE)&.body))["community"]
|
|
56
56
|
return result unless xml_path.present?
|
|
57
57
|
|
|
58
|
-
update(result["id"], xml_path)
|
|
59
|
-
find(result["id"])
|
|
58
|
+
update(result["id"], xml_path, nuid: nuid)
|
|
59
|
+
find(result["id"], nuid: nuid)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
# Delete a Community.
|
data/lib/atlas_rb/work.rb
CHANGED
data/lib/atlas_rb.rb
CHANGED
|
@@ -79,12 +79,17 @@ module AtlasRb
|
|
|
79
79
|
|
|
80
80
|
# Reset the connected Atlas instance to a clean state.
|
|
81
81
|
#
|
|
82
|
+
# @param nuid [String, nil] optional acting user's NUID, forwarded as the
|
|
83
|
+
# `User:` header. Required for cerberus-token requests; legacy bearer
|
|
84
|
+
# tokens still resolve without it. Atlas's `MaintenanceController#reset`
|
|
85
|
+
# runs through the standard `require_auth` filter, so under Atlas
|
|
86
|
+
# 0.6.12+ the header is needed for any cerberus-token caller.
|
|
82
87
|
# @return [String, nil] the raw response body from `GET /reset`.
|
|
83
88
|
#
|
|
84
89
|
# @example
|
|
85
|
-
# AtlasRb::Reset.clean
|
|
86
|
-
def self.clean
|
|
87
|
-
connection({}).get("/reset")&.body
|
|
90
|
+
# AtlasRb::Reset.clean(nuid: "000000000")
|
|
91
|
+
def self.clean(nuid: nil)
|
|
92
|
+
connection({}, nuid).get("/reset")&.body
|
|
88
93
|
end
|
|
89
94
|
end
|
|
90
95
|
end
|