smashing 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/dashing/app.rb +5 -1
- data/lib/dashing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '058b11a398a65314e3f1be01b288a294b5ea529135bd249f05a73664cf1670c8'
|
4
|
+
data.tar.gz: 36752e8f83da914912df2a9ac83c27b9f82a6f3c2d19fabe1647916d2ff5bfff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00a26dbd1912da56c8cf19e9a2a0898ec3d2c50d8b0891a582ec0f89b3d864db153b6828311b6ec62466f3cee919a71ee4f7682a9eb4069c6b065067aa9880b5
|
7
|
+
data.tar.gz: '090f77812bb062f28130fa5e0fdd073c37f5eabb8f123f4eeb609d2c9a6dc90b014379957061d6974c3e08faba27656e40e7da2be0050bad1e4a511b90a5394c'
|
data/README.md
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
|
6
6
|
Smashing, the spiritual successor to [Dashing](https://github.com/Shopify/dashing), is a Sinatra based framework that lets you build excellent dashboards. It looks especially great on TVs.
|
7
7
|
|
8
|
+
![Smashing logo](./.github/docs/assets/screenshot.png)
|
9
|
+
|
8
10
|
## Community
|
9
11
|
|
10
12
|
Feel free to submit issues for bugs, new features, and enhancements in [GitHub](https://github.com/Smashing/smashing/issues). For more general questions, or help with widgets, please use the [gitter chatroom](https://gitter.im/Smashing).
|
data/lib/dashing/app.rb
CHANGED
@@ -25,6 +25,10 @@ helpers do
|
|
25
25
|
# override with auth logic
|
26
26
|
end
|
27
27
|
|
28
|
+
def h(text)
|
29
|
+
Rack::Utils.escape_html(text)
|
30
|
+
end
|
31
|
+
|
28
32
|
def authenticated?(token)
|
29
33
|
return true unless settings.auth_token
|
30
34
|
token && Rack::Utils.secure_compare(settings.auth_token, token)
|
@@ -129,7 +133,7 @@ get '/views/:widget?.html' do
|
|
129
133
|
return Tilt[language].new(file).render if File.exist?(file)
|
130
134
|
end
|
131
135
|
|
132
|
-
"Drats! Unable to find a widget file named: #{params[:widget]} to render."
|
136
|
+
"Drats! Unable to find a widget file named: #{h(params[:widget])} to render."
|
133
137
|
end
|
134
138
|
|
135
139
|
Thin::Server.class_eval do
|
data/lib/dashing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smashing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Beauchamp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
371
|
- !ruby/object:Gem::Version
|
372
372
|
version: '0'
|
373
373
|
requirements: []
|
374
|
-
rubygems_version: 3.
|
374
|
+
rubygems_version: 3.2.3
|
375
375
|
signing_key:
|
376
376
|
specification_version: 4
|
377
377
|
summary: The wonderfully excellent dashboard framework.
|