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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 721d40877762d848822b6bc0de8dfa8597074035af92afc3bea7d4aca9fc4bdc
4
- data.tar.gz: 579de5e911ffeb05986481ed0e41b676856b43fa78e639e1d2b661082c983c9f
3
+ metadata.gz: '058b11a398a65314e3f1be01b288a294b5ea529135bd249f05a73664cf1670c8'
4
+ data.tar.gz: 36752e8f83da914912df2a9ac83c27b9f82a6f3c2d19fabe1647916d2ff5bfff
5
5
  SHA512:
6
- metadata.gz: a338ddf3e7e4fc0c6b630d9e1b710cbfdac91deb711a8a738e5bda229e79310669a035407f0fb5ebe5395e7ee2eec7de9b1dbb41a7204bd91d321644ac1dd3ea
7
- data.tar.gz: f08c1b7bdd36c315e88acee22512c5c2066ed2c55a375726631f7053e35f7ab416b2723691a1e043afcc4a55f32d00684b46730f48814637cf0bbd553c1450a9
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
@@ -1,3 +1,3 @@
1
1
  module Dashing
2
- VERSION = "1.3.4".freeze
2
+ VERSION = "1.3.5".freeze
3
3
  end
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
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-03-06 00:00:00.000000000 Z
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.1.4
374
+ rubygems_version: 3.2.3
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: The wonderfully excellent dashboard framework.