browser_review_gate 0.5.6 → 0.5.7
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/CHANGELOG.md +6 -0
- data/lib/browser_review_gate/status.rb +4 -3
- data/lib/browser_review_gate/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: 0b2af284e2c18316fda05c544c9ac48e449bd2f437889cafb35fc3f87e5d8daf
|
|
4
|
+
data.tar.gz: 446778283b56f4e20414950e2630fc0dac57860e8a73d00ba82feee330fcc5dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea4c28b00ced0d23e6d8da77cbaf81702d4e2a9837f841dec8aa996a667ac18d12378124c8fa90692906c63075863e9bbbb0d1945c5adf263ac7292b8e048008
|
|
7
|
+
data.tar.gz: 920f904ef1cd723082eaf8dcd31eca3e3d0494bfca3a3c84a0be74e3d620cf98e7da8242d07ce3e6a83ceec6fc30d0338923de0735eaf0523327223014bd698d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.7
|
|
4
|
+
|
|
5
|
+
- The revision check before a run reads the header as the trace check does: a short SHA names the
|
|
6
|
+
same commit, and a value that is not a SHA (a version number) is not a revision. 0.5.6 compared the
|
|
7
|
+
value exactly, so an app sending a short SHA or a version was always refused.
|
|
8
|
+
|
|
3
9
|
## 0.5.6
|
|
4
10
|
|
|
5
11
|
- `verify` and `status` read the app's revision header before a run. When the app serves another
|
|
@@ -127,10 +127,11 @@ module BrowserReviewGate
|
|
|
127
127
|
details
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
#
|
|
130
|
+
# Read as TraceCheck reads it: a short SHA counts, and a value that is not a SHA is not a revision.
|
|
131
|
+
# An app that sends none is taken at its word, as before the header existed.
|
|
131
132
|
def other_revision?(result)
|
|
132
|
-
served = result["environment"]["served_revision"].to_s
|
|
133
|
-
|
|
133
|
+
served = result["environment"]["served_revision"].to_s.strip.downcase[/\A\h{7,40}\z/]
|
|
134
|
+
served && !result["local_head"].start_with?(served)
|
|
134
135
|
end
|
|
135
136
|
|
|
136
137
|
def report_instructions
|