hud 2.0.5 → 2.1.0
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/hud/version.rb +1 -1
- data/lib/hud.rb +3 -3
- metadata +3 -4
- data/.DS_Store +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 510809be4205ebd4d8af9a8a7f83948bf0040d41ca203a7ef38b27ab8f6f9318
|
|
4
|
+
data.tar.gz: 79af03a89812d9d2b8c20b1a39edb44c5334e5abf7b9bfbac7ca0741e75f3641
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 072c31cc873cb7506d8b6336251469a4f91da953902a08c3bfb6b2932d549850b62d792a62cb292a48dc96b277294c4312bcaee82d9b1c871153059bc51a3e6c
|
|
7
|
+
data.tar.gz: e8f9666535a6597bd940136d89f5338bcd7b1a75c94362d74290925f78f48d785ed674d1cbea5b3443b4cdf0d53e5b46b2f02afe1a83334c6bf7ee27f4fed702
|
data/lib/hud/version.rb
CHANGED
data/lib/hud.rb
CHANGED
|
@@ -21,7 +21,7 @@ module Hud
|
|
|
21
21
|
|
|
22
22
|
def self.included(base)
|
|
23
23
|
base.use Middleware::Version
|
|
24
|
-
base.use Middleware::Environment
|
|
24
|
+
#base.use Middleware::Environment
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
class Version
|
|
@@ -54,12 +54,12 @@ module Hud
|
|
|
54
54
|
status, headers, response = @app.call(env)
|
|
55
55
|
|
|
56
56
|
color = 'green'
|
|
57
|
-
color = 'orange' if ENV['HARBR_ENV'] == "next"
|
|
57
|
+
color = 'orange' if ENV['HARBR_ENV'] == "next" or ENV['RACK_ENV'] == "staging"
|
|
58
58
|
color = 'red' if ENV['HARBR_ENV'] == "live" && env["HTTP_HOST"].include?("harbr.zero2one.ee")
|
|
59
59
|
|
|
60
60
|
response_body = ''
|
|
61
61
|
response.each { |part| response_body << part }
|
|
62
|
-
indicator_div = "<div style='height:30px; width:100%; background-color:#{color}; z-index:9999;'>#{ENV['HARBR_ENV']&.upcase} ENVIRONMENT</div>"
|
|
62
|
+
indicator_div = "<div style='position:fixed; top:0; z-index:9999; height:30px; width:100%; background-color:#{color}; z-index:9999;'>#{ENV['HARBR_ENV']&.upcase} ENVIRONMENT</div>"
|
|
63
63
|
response_body.sub!("<body>", "<body>#{indicator_div}")
|
|
64
64
|
headers["Content-Length"] = response_body.bytesize.to_s
|
|
65
65
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Delaney Kuldvee Burke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -157,7 +157,6 @@ executables: []
|
|
|
157
157
|
extensions: []
|
|
158
158
|
extra_rdoc_files: []
|
|
159
159
|
files:
|
|
160
|
-
- ".DS_Store"
|
|
161
160
|
- ".rspec"
|
|
162
161
|
- ".ruby-version"
|
|
163
162
|
- ".travis.yml"
|
|
@@ -191,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
191
190
|
- !ruby/object:Gem::Version
|
|
192
191
|
version: '0'
|
|
193
192
|
requirements: []
|
|
194
|
-
rubygems_version: 3.
|
|
193
|
+
rubygems_version: 3.5.5
|
|
195
194
|
signing_key:
|
|
196
195
|
specification_version: 4
|
|
197
196
|
summary: Minimalist web framework using HTMX and Rack-app
|
data/.DS_Store
DELETED
|
Binary file
|