rail0-sdk 1.8.0 → 1.8.1
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/lib/rail0/resources/auth.rb +1 -1
- data/lib/rail0/resources/query.rb +1 -1
- data/lib/rail0/version.rb +1 -1
- 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: eaaadaf08346573c426e649979548088c8cbbb1a2b037e63026c5512fa44feb8
|
|
4
|
+
data.tar.gz: b4eea2d0cd8cb675f2d31e5fbddee08f62fd3421f2cb969db246fc8e4d4338fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9433218dbe34e8d9a6cf7c200aca99d15695940fc099e5347b85e14c9612dbef6d824c303b3cd52e81e00787c25a0c2459cc40aa5e62bd0adb4555294f984816
|
|
7
|
+
data.tar.gz: 5e185810e4e78e7282ceda6760e5c2ee2857bf7c5469806fbb48fdc92fed12592fd8367aa1707bdafc76a52d4d7e65251d3dce36222174434bce9c53125398ff
|
data/lib/rail0/resources/auth.rb
CHANGED
|
@@ -58,7 +58,7 @@ module Rail0
|
|
|
58
58
|
#
|
|
59
59
|
# +admin+ is true only for an account holding the operator (administrators)
|
|
60
60
|
# grant: the gateway adds the field on an admin's session alone, and it is
|
|
61
|
-
#
|
|
61
|
+
# normalized here to a boolean so a standard login reads false rather than nil.
|
|
62
62
|
# Visibility only — every gated route re-checks the grant per request.
|
|
63
63
|
def verify(message:, signature:)
|
|
64
64
|
session = http.post("/auth", { message: message, signature: signature })
|
|
@@ -11,7 +11,7 @@ module Rail0
|
|
|
11
11
|
# segment the same way ({#segment}).
|
|
12
12
|
module Query
|
|
13
13
|
# Segments that would not stay put once interpolated: "." and ".." are dot
|
|
14
|
-
# segments that a URL
|
|
14
|
+
# segments that a URL normalizer (a proxy, a CDN, the server's router) may
|
|
15
15
|
# resolve away, and an empty one collapses the path onto its parent.
|
|
16
16
|
UNSAFE_SEGMENTS = ["", ".", ".."].freeze
|
|
17
17
|
private_constant :UNSAFE_SEGMENTS
|
data/lib/rail0/version.rb
CHANGED
|
@@ -5,5 +5,5 @@ module Rail0
|
|
|
5
5
|
# consumed by path from a sibling checkout, where the number bought nothing: no registry
|
|
6
6
|
# ever served a 1.x, no tag was ever cut, and the one consumer resolves the working tree.
|
|
7
7
|
# Publishing from 1.2.0 would have implied two releases nobody can install.
|
|
8
|
-
VERSION = "1.8.
|
|
8
|
+
VERSION = "1.8.1"
|
|
9
9
|
end
|