rack-livereload 0.3.16 → 0.3.17

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: 45e7c6041deae2a58061f897768f0ae2663ddc57
4
- data.tar.gz: 44a14af6a1f3c44ca02aff9d00ceb7f6124db258
2
+ SHA256:
3
+ metadata.gz: 9d7123144df9a852f48e7d4874cd4e2fa0d23657ecf61de34d8606d2b3c1c62d
4
+ data.tar.gz: a3cad0cf894c0f73b49d0e158d03d46c4677bee5fe7cccb5b6b037aabf48980d
5
5
  SHA512:
6
- metadata.gz: e69c85c54378bfdecdecf54afc9c7abb12b6ac6695c1950f3554e76d778dc5047dc00fbdb1e569be51ab074b8fc33c58aa4fa2c768f53a1cf792c03bc01a1172
7
- data.tar.gz: e2787341175b92c70c6cc91adbd18d2da4afadf9002d13d0ce31e06176cf34683802493a844103c365fa6caffb62f45272ad25e42012b771f0080febe0c0dc20
6
+ metadata.gz: 1b13c7bebc5da0079b56885f66e81260673fa6a343581e383e9e5904bc3bd9af3c6058869d2885f9d457c21294c24fb00d6133faf7b3789fce1f2d21ffa2e4a5
7
+ data.tar.gz: 4da3c3b25cacc908d99e169a902b4002bfb3ba737edbb58f695b4d9eb42d054609eacd027bfa0c1e579d085068a5352de62c47dcbf714f72c33a4c1e27da4d3c
@@ -0,0 +1 @@
1
+ 2.5.1
@@ -1,10 +1,17 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
+ - 2.5.1
4
5
  branches:
5
6
  only:
6
7
  - master
7
8
  gemfile:
8
9
  - gemfiles/rails32.gemfile
9
10
  - gemfiles/rails40.gemfile
10
-
11
+ - gemfiles/rails51.gemfile
12
+ matrix:
13
+ exclude:
14
+ - rvm: 1.9.3
15
+ gemfile: gemfiles/rails51.gemfile
16
+ - rvm: 2.0.0
17
+ gemfile: gemfiles/rails51.gemfile
data/Guardfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
3
 
4
- guard 'rspec', :cli => '-c' do
4
+ guard 'rspec', :cmd => 'rspec -c' do
5
5
  watch(%r{^spec/.+_spec\.rb$})
6
6
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
7
  watch('spec/spec_helper.rb') { "spec" }
@@ -15,3 +15,15 @@ guard 'cucumber' do
15
15
  watch(%r{^features/.+\.feature$})
16
16
  watch(%r{^features/support/.+$}) { 'features' }
17
17
  end
18
+
19
+ guard :bundler do
20
+ require 'guard/bundler'
21
+ require 'guard/bundler/verify'
22
+ helper = Guard::Bundler::Verify.new
23
+
24
+ files = ['Gemfile']
25
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
26
+
27
+ # Assume files are symlinked from somewhere
28
+ files.each { |file| watch(helper.real_path(file)) }
29
+ end
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Rack::LiveReload
2
2
 
3
- <a href="http://travis-ci.org/johnbintz/rack-livereload"><img src="https://secure.travis-ci.org/johnbintz/rack-livereload.png" /></a>
4
- [![Code Climate](https://codeclimate.com/github/johnbintz/rack-livereload.png)](https://codeclimate.com/github/johnbintz/rack-livereload)
3
+ <a href="http://travis-ci.org/onesupercoder/rack-livereload"><img src="https://secure.travis-ci.org/onesupercoder/rack-livereload.png" /></a>
4
+ [![Code Climate](https://codeclimate.com/github/onesupercoder/rack-livereload.png)](https://codeclimate.com/github/onesupercoder/rack-livereload)
5
5
 
6
6
  Hey, you've got [LiveReload](http://livereload.com/) in my [Rack](http://rack.rubyforge.org/)!
7
7
  No need for browser extensions anymore! Just plug it in your middleware stack and go!
@@ -16,7 +16,7 @@ Use this with [guard-livereload](http://github.com/guard/guard-livereload) for m
16
16
  Add the gem to your Gemfile.
17
17
 
18
18
  ```ruby
19
- gem "rack-livereload", :group => :development
19
+ gem "rack-livereload", group: :development
20
20
  ```
21
21
 
22
22
  Then add the middleware to your Rails middleware stack by editing your `config/environments/development.rb`.
@@ -25,9 +25,12 @@ Then add the middleware to your Rails middleware stack by editing your `config/e
25
25
  # config/environments/development.rb
26
26
 
27
27
  MyApp::Application.configure do
28
- # Add Rack::LiveReload to the bottom of the middleware stack with the default options.
28
+ # Add Rack::LiveReload to the bottom of the middleware stack with the default options:
29
29
  config.middleware.insert_after ActionDispatch::Static, Rack::LiveReload
30
-
30
+
31
+ # or, if you're using better_errors:
32
+ config.middleware.insert_before Rack::Lock, Rack::LiveReload
33
+
31
34
  # ...
32
35
  end
33
36
  ```
@@ -37,15 +40,19 @@ end
37
40
  ```ruby
38
41
  # Specifying Rack::LiveReload options.
39
42
  config.middleware.use(Rack::LiveReload,
40
- :min_delay => 500, # default 1000
41
- :max_delay => 10_000, # default 60_000
42
- :live_reload_port => 56789, # default 35729
43
- :host => 'myhost.cool.wow',
44
- :ignore => [ %r{dont/modify\.html$} ]
43
+ min_delay : 500, # default 1000
44
+ max_delay : 10_000, # default 60_000
45
+ live_reload_port : 56789, # default 35729
46
+ host : 'myhost.cool.wow',
47
+ ignore : [ %r{dont/modify\.html$} ]
45
48
  )
46
49
  ```
47
50
 
48
- In addition, Rack::LiveReload's position within middleware stack can be specified by inserting it relative to an exsiting middleware via `insert_before` or `insert_after`. See the [Rails on Rack: Adding a Middleware](http://guides.rubyonrails.org/rails_on_rack.html#adding-a-middleware) section for more detail.
51
+ In addition, Rack::LiveReload's position within middleware stack can be
52
+ specified by inserting it relative to an exsiting middleware via
53
+ `insert_before` or `insert_after`. See the [Rails on Rack: Adding a
54
+ Middleware](http://guides.rubyonrails.org/rails_on_rack.html#adding-a-middleware)
55
+ section for more detail.
49
56
 
50
57
  ### Sinatra / config.ru
51
58
 
@@ -54,7 +61,7 @@ require 'rack-livereload'
54
61
 
55
62
  use Rack::LiveReload
56
63
  # ...or...
57
- use Rack::LiveReload, :min_delay => 500, ...
64
+ use Rack::LiveReload, min_delay: 500, ...
58
65
  ```
59
66
 
60
67
  ## How it works
@@ -82,13 +89,13 @@ your browser doesn't need it. The SWF WebSocket implementor won't be loaded unle
82
89
  WebSockets support or if you force it in the middleware stack:
83
90
 
84
91
  ``` ruby
85
- use Rack::LiveReload, :force_swf => true
92
+ use Rack::LiveReload, force_swf: true
86
93
  ```
87
94
 
88
95
  If you don't want any of the web-sockets-js code included at all, use the `no_swf` option:
89
96
 
90
97
  ``` ruby
91
- use Rack::LiveReload, :no_swf => true
98
+ use Rack::LiveReload, no_swf: true
92
99
  ```
93
100
 
94
101
  Once more browsers support WebSockets than don't, this option will be reversed and you'll have
@@ -1,4 +1,4 @@
1
1
  Then /^I should not have any Rack::LiveReload code$/ do
2
- @response.body.should_not include("rack/livereload.js")
2
+ expect(@response.body).not_to include("rack/livereload.js")
3
3
  end
4
4
 
@@ -0,0 +1,5 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "rails", "~> 5.1.6"
4
+
5
+ gemspec :path=>"../"
@@ -1,6 +1,6 @@
1
1
  require "rack/livereload"
2
2
 
3
3
  class Rack::LiveReload
4
- VERSION = '0.3.16'
4
+ VERSION = '0.3.17'
5
5
  end
6
6
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Rack::LiveReload::VERSION
8
8
  s.authors = ["John Bintz"]
9
9
  s.email = ["john@coswellproductions.com"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/onesupercoder/rack-livereload"
11
11
  s.license = "MIT"
12
12
  s.summary = %q{Insert LiveReload into your app easily as Rack middleware}
13
13
  s.description = %q{Insert LiveReload into your app easily as Rack middleware}
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
 
22
22
  # specify any dependencies here; for example:
23
23
  s.add_development_dependency "rspec"
24
- s.add_development_dependency "cucumber"
24
+ s.add_development_dependency "cucumber", "< 3"
25
25
  s.add_development_dependency "httparty"
26
26
  s.add_development_dependency "sinatra"
27
27
  s.add_development_dependency "shotgun"
@@ -32,9 +32,10 @@ Gem::Specification.new do |s|
32
32
  s.add_development_dependency "guard-rspec"
33
33
  s.add_development_dependency "guard-cucumber"
34
34
  s.add_development_dependency "guard-livereload"
35
+ s.add_development_dependency "guard-bundler"
35
36
  s.add_development_dependency "webmock"
36
37
  s.add_development_dependency "nokogiri", ("< 1.6" if RUBY_VERSION < "1.9") # Nokogiri >= 1.6 requires Ruby >= 1.9
37
- s.add_development_dependency 'appraisal', '~> 0.4'
38
+ s.add_development_dependency 'appraisal', '~> 2.2.0'
38
39
  s.add_runtime_dependency "rack"
39
40
  end
40
41
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-livereload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bintz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-03 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: cucumber
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "<"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: httparty
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: guard-bundler
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: webmock
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +226,14 @@ dependencies:
212
226
  requirements:
213
227
  - - "~>"
214
228
  - !ruby/object:Gem::Version
215
- version: '0.4'
229
+ version: 2.2.0
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
234
  - - "~>"
221
235
  - !ruby/object:Gem::Version
222
- version: '0.4'
236
+ version: 2.2.0
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: rack
225
239
  requirement: !ruby/object:Gem::Requirement
@@ -242,6 +256,7 @@ extensions: []
242
256
  extra_rdoc_files: []
243
257
  files:
244
258
  - ".gitignore"
259
+ - ".ruby-version"
245
260
  - ".travis.yml"
246
261
  - Appraisals
247
262
  - Gemfile
@@ -257,6 +272,7 @@ files:
257
272
  - features/support/env.rb
258
273
  - gemfiles/rails32.gemfile
259
274
  - gemfiles/rails40.gemfile
275
+ - gemfiles/rails51.gemfile
260
276
  - index.html
261
277
  - js/WebSocketMain.swf
262
278
  - js/livereload.js
@@ -272,7 +288,7 @@ files:
272
288
  - spec/rack/livereload/processing_skip_analyzer_spec.rb
273
289
  - spec/rack/livereload_spec.rb
274
290
  - spec/spec_helper.rb
275
- homepage: ''
291
+ homepage: https://github.com/onesupercoder/rack-livereload
276
292
  licenses:
277
293
  - MIT
278
294
  metadata: {}
@@ -292,8 +308,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
308
  version: '0'
293
309
  requirements: []
294
310
  rubyforge_project: rack-livereload
295
- rubygems_version: 2.4.6
311
+ rubygems_version: 2.7.6
296
312
  signing_key:
297
313
  specification_version: 4
298
314
  summary: Insert LiveReload into your app easily as Rack middleware
299
- test_files: []
315
+ test_files:
316
+ - features/skip_certain_browsers.feature
317
+ - features/step_definitions/given/i_have_a_rack_app_with_live_reload.rb
318
+ - features/step_definitions/then/i_should_not_have_livereload_code.rb
319
+ - features/step_definitions/when/i_make_a_request_with_headers.rb
320
+ - features/support/env.rb
321
+ - spec/rack/livereload/body_processor_spec.rb
322
+ - spec/rack/livereload/processing_skip_analyzer_spec.rb
323
+ - spec/rack/livereload_spec.rb
324
+ - spec/spec_helper.rb