rack-livereload 0.3.17 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +7 -7
- data/README.md +13 -9
- data/gemfiles/rails602.gemfile +5 -0
- data/gemfiles/rails7.gemfile +5 -0
- data/js/livereload.js +991 -990
- data/lib/rack/livereload/body_processor.rb +5 -2
- data/lib/rack/livereload/processing_skip_analyzer.rb +1 -1
- data/lib/rack-livereload.rb +1 -1
- data/rack-livereload.gemspec +1 -1
- data/skel/livereload.html.erb +1 -0
- data/spec/rack/livereload/processing_skip_analyzer_spec.rb +6 -0
- metadata +12 -14
- data/.ruby-version +0 -1
- data/gemfiles/rails32.gemfile +0 -7
- data/gemfiles/rails40.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95ceeb1c917edff2b8edb395486a66378d0d7fe86141a24b75460683a602dc47
|
4
|
+
data.tar.gz: ba1ff59e4a7986d3ecdf89ea9e835356d727d6d2b409ae7ba1c7d74263e987b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56a18bf50e1e39b0754e42d8e6eefb0bf4d1e8cd9fd946d41c072b0baa19ac245cda3b3643bc02beab4de5fcb86cb4dcd6a2e786e53ee2bc6e4e9197602bb87a
|
7
|
+
data.tar.gz: f1a6415a7deff8820f5824553e7ccf0155ee5ac6eb61249892a174eba4cc6ebf6328d439fccdbd9e6603e898f73fcf83eeedbd21eded63a2a36b83236cd959ff
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
rvm:
|
2
|
-
- 1.9.3
|
3
|
-
- 2.0.0
|
4
2
|
- 2.5.1
|
3
|
+
- 2.7.1
|
5
4
|
branches:
|
6
5
|
only:
|
7
6
|
- master
|
8
7
|
gemfile:
|
9
|
-
- gemfiles/rails32.gemfile
|
10
|
-
- gemfiles/rails40.gemfile
|
11
8
|
- gemfiles/rails51.gemfile
|
9
|
+
- gemfiles/rails602.gemfile
|
12
10
|
matrix:
|
13
11
|
exclude:
|
14
|
-
- rvm:
|
12
|
+
- rvm: 2.5.1
|
15
13
|
gemfile: gemfiles/rails51.gemfile
|
16
|
-
- rvm: 2.
|
17
|
-
gemfile: gemfiles/
|
14
|
+
- rvm: 2.7.1
|
15
|
+
gemfile: gemfiles/rails602.gemfile
|
16
|
+
- rvm: 3.2.2
|
17
|
+
gemfile: gemfiles/rails7.gemfile
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
** LOOKING FOR MAINTAINER ** Please contact me if interested.
|
2
2
|
|
3
|
-
|
4
|
-
[![
|
3
|
+
|
4
|
+
# Rack::LiveReload [![Build Status](https://travis-ci.org/onesupercoder/rack-livereload.svg?branch=master)](https://travis-ci.org/onesupercoder/rack-livereload) [![Maintainability](https://api.codeclimate.com/v1/badges/6b3cafaf0d8752d0ac55/maintainability)](https://codeclimate.com/github/onesupercoder/rack-livereload/maintainability)
|
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!
|
@@ -30,6 +30,9 @@ MyApp::Application.configure do
|
|
30
30
|
|
31
31
|
# or, if you're using better_errors:
|
32
32
|
config.middleware.insert_before Rack::Lock, Rack::LiveReload
|
33
|
+
|
34
|
+
# or, if you're using better_errors with rails 6.
|
35
|
+
config.middleware.insert_before Rack::Runtime, Rack::LiveReload
|
33
36
|
|
34
37
|
# ...
|
35
38
|
end
|
@@ -40,16 +43,17 @@ end
|
|
40
43
|
```ruby
|
41
44
|
# Specifying Rack::LiveReload options.
|
42
45
|
config.middleware.use(Rack::LiveReload,
|
43
|
-
min_delay
|
44
|
-
max_delay
|
45
|
-
live_reload_port
|
46
|
-
|
47
|
-
|
46
|
+
min_delay: 500, # default 1000
|
47
|
+
max_delay: 10_000, # default 60_000
|
48
|
+
live_reload_port: 56789, # default 35729
|
49
|
+
live_reload_scheme: 'ws', # default ws, use wss for ssl
|
50
|
+
host: 'myhost.cool.wow',
|
51
|
+
ignore: [ %r{dont/modify\.html$} ]
|
48
52
|
)
|
49
53
|
```
|
50
54
|
|
51
55
|
In addition, Rack::LiveReload's position within middleware stack can be
|
52
|
-
specified by inserting it relative to an
|
56
|
+
specified by inserting it relative to an existing middleware via
|
53
57
|
`insert_before` or `insert_after`. See the [Rails on Rack: Adding a
|
54
58
|
Middleware](http://guides.rubyonrails.org/rails_on_rack.html#adding-a-middleware)
|
55
59
|
section for more detail.
|