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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7793cd5c317e56e1d7ba0099d48b4ffbaf401166
4
- data.tar.gz: bd04618ad62d2cf1645ad6dcb39832abde4ebb2f
2
+ SHA256:
3
+ metadata.gz: 80a43e47f2b35aba66c064fba8f23447ad3c537263665175e6c0c9c11173ff37
4
+ data.tar.gz: 96ba113e3110d280d43bbe31e43ab65a65e09aa744394fe50d795631e85587f1
5
5
  SHA512:
6
- metadata.gz: 3a88b9a69c47446be9b73ae4e1f8944a8a7ee487f92c899a5e2b3842beb7020407b3379e24f871b434f57bf51cc3fa1df51a03c478c7dfbb14395cfe55823eb5
7
- data.tar.gz: aaf940645b4345b30c6ca584c937301101d4bba6caa55256a29919bb048e2a5fed1a0c88740558a34643f7e7f5881c7ab8d2a6ff63af06971cf6a627f0226358
6
+ metadata.gz: 24a9274bb3b93c58d247575587ef1d1c5fd189b064b7356da21bc007058267aae98d035fa722b5c48426a6adf59ca8ccd01ae16e97ca7a9c6fa96ac378deaca4
7
+ data.tar.gz: 26a0defe0e033a56a29193937731ced5f6fa965340159c8aa39a655cb4791c538914442adc8479336dde2efd3f861ef7b946c52fdc35d21547874934062a220d
data/Rakefile CHANGED
@@ -7,6 +7,7 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  require 'rdoc/task'
10
+ require 'bump/tasks'
10
11
 
11
12
  RDoc::Task.new(:rdoc) do |rdoc|
12
13
  rdoc.rdoc_dir = 'rdoc'
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SseRailsEngine
4
- VERSION = '1.6.0'
4
+ VERSION = '1.7.0'
5
5
  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' => ->() {}, 'rack.hijack_io' => StringIO.new } }
8
- let(:env2) { { 'rack.hijack?' => true, 'rack.hijack' => ->() {}, 'rack.hijack_io' => StringIO.new } }
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)
@@ -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('../../test/dummy/config/environment.rb', __FILE__)
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/mini_test'
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('../fixtures', __FILE__)
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.6.0
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: 2017-05-01 00:00:00.000000000 Z
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.2'
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.2'
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: '3.0'
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: '3.0'
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: '1.0'
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: '1.0'
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.0'
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.5.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/bin/bundle
187
- - test/dummy/bin/rails
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/config/application.rb
191
- - test/dummy/config/boot.rb
192
- - test/dummy/config/environment.rb
193
- - test/dummy/config/environments/development.rb
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/initializers/assets.rb
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/locales/en.yml
205
- - test/dummy/config/routes.rb
206
- - test/dummy/config/secrets.yml
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/public/404.html
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/favicon.ico
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