smashing 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of smashing might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f8f8fb6bb541b6c3423dbd9a07a5adf9d68c74b1e40631d8adfd9f483bafc71
4
- data.tar.gz: 39043eca7120a94098d95d3e90555d81d2bd80189cc172dce62dad8f3c082b4b
3
+ metadata.gz: 4c59b437150919f87aefb45f09ac83918998b93c25ca990ded9eecb2caa3a470
4
+ data.tar.gz: 1ac9b3afdab97a5f6c78cce4e5842e9c1b7c73d3653d4a53796bfc92cc9ef70c
5
5
  SHA512:
6
- metadata.gz: 8056ec91983755e1d60b80acb8098acc2e4c0cd5bdd568e31bf0d154b44a6c77afaba06dc2e0d447ae2dd84e7f3c2d01aaf254f368b1207fb8d0c91e52b3077c
7
- data.tar.gz: 03e3c4e500e57409d98a7cc316fb3f40d829e271f687d7d4076404c4e0e1dd8706c969b2f1cc5b3dc2ed260110df74b045bb4285a7d909046d04b8ce0cdcbb6d
6
+ metadata.gz: d91a4232c232a25460bfafd8ae6d51b555b2cef15bf88c7638d1dc67523367cf729d5327e0843c17011b9ba6e26cb0718fd59d9533e9da26d1abbd28323ae20f
7
+ data.tar.gz: c3c3a0cf1a2435d5c1be9c0fba647a8dc92372d0fb8c087038269ad71b36f4c225258632aeeebfa19d014af4e7a82956177f7cd8407938916f57a5a36029669e
@@ -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| out << event }
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)
@@ -1,3 +1,3 @@
1
1
  module Dashing
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.3.1".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.0
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: 2020-06-04 00:00:00.000000000 Z
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.1.2
374
+ rubygems_version: 3.2.3
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: The wonderfully excellent dashboard framework.