sse-rails-engine 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +1 -0
- data/lib/sse_rails_engine/manager.rb +1 -1
- data/lib/sse_rails_engine/version.rb +1 -1
- data/test/lib/sse_rails_engine/manager_test.rb +2 -2
- data/test/test_helper.rb +6 -3
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 80a43e47f2b35aba66c064fba8f23447ad3c537263665175e6c0c9c11173ff37
|
4
|
+
data.tar.gz: 96ba113e3110d280d43bbe31e43ab65a65e09aa744394fe50d795631e85587f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24a9274bb3b93c58d247575587ef1d1c5fd189b064b7356da21bc007058267aae98d035fa722b5c48426a6adf59ca8ccd01ae16e97ca7a9c6fa96ac378deaca4
|
7
|
+
data.tar.gz: 26a0defe0e033a56a29193937731ced5f6fa965340159c8aa39a655cb4791c538914442adc8479336dde2efd3f861ef7b946c52fdc35d21547874934062a220d
|
data/Rakefile
CHANGED
@@ -43,7 +43,7 @@ module SseRailsEngine
|
|
43
43
|
@connections.each_pair do |stream, connection|
|
44
44
|
begin
|
45
45
|
connection.write(name, data)
|
46
|
-
rescue => ex
|
46
|
+
rescue StandardError => ex
|
47
47
|
Rails.logger.debug "SSE Client disconnected: #{stream} - #{ex.message}"
|
48
48
|
close_connection(stream)
|
49
49
|
end
|
@@ -4,8 +4,8 @@ require_relative '../../test_helper'
|
|
4
4
|
|
5
5
|
describe SseRailsEngine::Manager do
|
6
6
|
let(:manager) { SseRailsEngine.manager }
|
7
|
-
let(:env1) { { 'rack.hijack?' => true, 'rack.hijack' => ->
|
8
|
-
let(:env2) { { 'rack.hijack?' => true, 'rack.hijack' => ->
|
7
|
+
let(:env1) { { 'rack.hijack?' => true, 'rack.hijack' => -> {}, 'rack.hijack_io' => StringIO.new } }
|
8
|
+
let(:env2) { { 'rack.hijack?' => true, 'rack.hijack' => -> {}, 'rack.hijack_io' => StringIO.new } }
|
9
9
|
|
10
10
|
before do
|
11
11
|
SseRailsEngine.instance_variable_set(:@manager, nil)
|
data/test/test_helper.rb
CHANGED
@@ -7,10 +7,10 @@ require 'bundler/setup'
|
|
7
7
|
require 'codeclimate-test-reporter'
|
8
8
|
CodeClimate::TestReporter.start if ENV['CODECLIMATE_REPO_TOKEN']
|
9
9
|
|
10
|
-
require File.expand_path('
|
10
|
+
require File.expand_path('../test/dummy/config/environment.rb', __dir__)
|
11
11
|
require 'rails/test_help'
|
12
12
|
require 'minitest/rails'
|
13
|
-
require 'mocha/
|
13
|
+
require 'mocha/setup'
|
14
14
|
|
15
15
|
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
16
16
|
# to be shown.
|
@@ -19,8 +19,11 @@ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
|
19
19
|
# Load support files
|
20
20
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
21
21
|
|
22
|
+
# https://github.com/rails/rails/issues/31324
|
23
|
+
Minitest::Rails::TestUnit = Rails::TestUnit if ActionPack::VERSION::STRING == '5.2.0'
|
24
|
+
|
22
25
|
# Load fixtures from the engine
|
23
26
|
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
24
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path('
|
27
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path('fixtures', __dir__)
|
25
28
|
ActiveSupport::TestCase.fixtures :all
|
26
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sse-rails-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Hender
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.2.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '5.
|
22
|
+
version: '5.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,35 +29,35 @@ dependencies:
|
|
29
29
|
version: 4.2.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '5.
|
32
|
+
version: '5.3'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: minitest-rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '0'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: mocha
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: bump
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
165
|
requirements:
|
166
166
|
- - ">="
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: '2.
|
168
|
+
version: '2.3'
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -173,43 +173,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.7.6
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: Provides SSE connection tracking and broadcasting of events from anywhere
|
180
180
|
in Rails app
|
181
181
|
test_files:
|
182
|
-
- test/dummy/app/assets/javascripts/application.js
|
183
|
-
- test/dummy/app/assets/stylesheets/application.css
|
184
182
|
- test/dummy/app/controllers/application_controller.rb
|
185
183
|
- test/dummy/app/views/layouts/application.html.erb
|
186
|
-
- test/dummy/
|
187
|
-
- test/dummy/
|
184
|
+
- test/dummy/app/assets/javascripts/application.js
|
185
|
+
- test/dummy/app/assets/stylesheets/application.css
|
188
186
|
- test/dummy/bin/rake
|
189
187
|
- test/dummy/bin/setup
|
190
|
-
- test/dummy/
|
191
|
-
- test/dummy/
|
192
|
-
- test/dummy/config/
|
193
|
-
- test/dummy/config/
|
188
|
+
- test/dummy/bin/bundle
|
189
|
+
- test/dummy/bin/rails
|
190
|
+
- test/dummy/config/secrets.yml
|
191
|
+
- test/dummy/config/routes.rb
|
192
|
+
- test/dummy/config/locales/en.yml
|
194
193
|
- test/dummy/config/environments/production.rb
|
194
|
+
- test/dummy/config/environments/development.rb
|
195
195
|
- test/dummy/config/environments/test.rb
|
196
|
-
- test/dummy/config/
|
196
|
+
- test/dummy/config/environment.rb
|
197
|
+
- test/dummy/config/application.rb
|
198
|
+
- test/dummy/config/boot.rb
|
197
199
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
198
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
199
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
200
|
-
- test/dummy/config/initializers/inflections.rb
|
201
200
|
- test/dummy/config/initializers/mime_types.rb
|
201
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
202
202
|
- test/dummy/config/initializers/session_store.rb
|
203
203
|
- test/dummy/config/initializers/wrap_parameters.rb
|
204
|
-
- test/dummy/config/
|
205
|
-
- test/dummy/config/
|
206
|
-
- test/dummy/config/
|
204
|
+
- test/dummy/config/initializers/assets.rb
|
205
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
206
|
+
- test/dummy/config/initializers/inflections.rb
|
207
207
|
- test/dummy/config.ru
|
208
|
-
- test/dummy/
|
208
|
+
- test/dummy/Rakefile
|
209
|
+
- test/dummy/public/favicon.ico
|
209
210
|
- test/dummy/public/422.html
|
210
211
|
- test/dummy/public/500.html
|
211
|
-
- test/dummy/public/
|
212
|
-
- test/dummy/Rakefile
|
212
|
+
- test/dummy/public/404.html
|
213
213
|
- test/lib/sse-rails-engine_test.rb
|
214
214
|
- test/lib/sse_rails_engine/manager_test.rb
|
215
215
|
- test/test_helper.rb
|