smashing 1.3.0 → 1.3.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.
Potentially problematic release.
This version of smashing might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/dashing/app.rb +7 -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: 4c59b437150919f87aefb45f09ac83918998b93c25ca990ded9eecb2caa3a470
|
4
|
+
data.tar.gz: 1ac9b3afdab97a5f6c78cce4e5842e9c1b7c73d3653d4a53796bfc92cc9ef70c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91a4232c232a25460bfafd8ae6d51b555b2cef15bf88c7638d1dc67523367cf729d5327e0843c17011b9ba6e26cb0718fd59d9533e9da26d1abbd28323ae20f
|
7
|
+
data.tar.gz: c3c3a0cf1a2435d5c1be9c0fba647a8dc92372d0fb8c087038269ad71b36f4c225258632aeeebfa19d014af4e7a82956177f7cd8407938916f57a5a36029669e
|
data/lib/dashing/app.rb
CHANGED
@@ -144,7 +144,13 @@ def send_event(id, body, target=nil)
|
|
144
144
|
body[:updatedAt] ||= (Time.now.to_f * 1000.0).to_i
|
145
145
|
event = format_event(body.to_json, target)
|
146
146
|
Sinatra::Application.settings.history[id] = event unless target == 'dashboards'
|
147
|
-
Sinatra::Application.settings.connections.each { |out|
|
147
|
+
Sinatra::Application.settings.connections.each { |out|
|
148
|
+
begin
|
149
|
+
out << event
|
150
|
+
rescue IOError => e # if the socket is closed an IOError is thrown
|
151
|
+
Sinatra::Application.settings.connections.delete(out)
|
152
|
+
end
|
153
|
+
}
|
148
154
|
end
|
149
155
|
|
150
156
|
def format_event(body, name=nil)
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Beauchamp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-30 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.
|