middleman-livereload 3.3.4 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/middleman-livereload/extension_3_1.rb +5 -1
- data/lib/middleman-livereload/reactor.rb +1 -1
- data/lib/middleman-livereload/version.rb +1 -1
- data/middleman-livereload.gemspec +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86b316585213e994802925e3ed13707b3eff035a
|
4
|
+
data.tar.gz: aea68aa5f97504c4a0cfa7cdd3af5f3613d97491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a3054deaf57ecb1fc3d6be43159cb2233e8fa37f636358bc55f01a152b9505f51ce3058e63a71a4b7278a0b38f79ad5dd7d48c43f58b798436e67a561ccfb0
|
7
|
+
data.tar.gz: 8d6018c204db145b07fad81a3f990a8668db2713cc8f75ee207e426aead72415d8f37bc9f4b564188823a0da170afc1391acf604082184268364411cac20784f
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ gem install middleman
|
|
11
11
|
middleman init MY_PROJECT
|
12
12
|
```
|
13
13
|
|
14
|
-
If you already have a Middleman project: Add `gem "middleman-livereload", "~> 3.
|
14
|
+
If you already have a Middleman project: Add `gem "middleman-livereload", "~> 3.3.0"` to your `Gemfile` and run `bundle install`
|
15
15
|
|
16
16
|
## Configuration
|
17
17
|
|
@@ -33,6 +33,8 @@ Livereload's listener host/port, these options get passed to ::Rack::LiveReload
|
|
33
33
|
|
34
34
|
Whether live reload should attempt to reload javascript / css 'in-place', without complete reload of the page. Both default to `true`.
|
35
35
|
|
36
|
+
:warning: It does *not* work with `@import`'ed CSS files or `require`'d JS files (because of LiveReload not providing enough information regarding dependencies). On those kind of files, a full page reload will be triggered.
|
37
|
+
|
36
38
|
#### `:no_swf`
|
37
39
|
|
38
40
|
Disable Flash polyfil for browsers that support native WebSockets.
|
@@ -12,7 +12,11 @@ module Middleman
|
|
12
12
|
def initialize(app, options_hash={}, &block)
|
13
13
|
super
|
14
14
|
|
15
|
-
|
15
|
+
if app.respond_to?(:server?)
|
16
|
+
return unless app.server?
|
17
|
+
else
|
18
|
+
return unless app.environment == :development
|
19
|
+
end
|
16
20
|
|
17
21
|
@reactor = nil
|
18
22
|
|
@@ -42,7 +42,7 @@ module Middleman
|
|
42
42
|
def start_threaded_reactor(options)
|
43
43
|
Thread.new do
|
44
44
|
EventMachine.run do
|
45
|
-
logger.info "== LiveReload accepting connections from http://#{options[:host]}:
|
45
|
+
logger.info "== LiveReload accepting connections from http://#{options[:host]}:#{options[:port]}"
|
46
46
|
EventMachine.start_server(options[:host], options[:port], EventMachine::WebSocket::Connection, {}) do |ws|
|
47
47
|
ws.onopen do
|
48
48
|
begin
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
s.required_ruby_version = '>= 1.9.3'
|
19
|
-
s.add_dependency("middleman-core", ["
|
19
|
+
s.add_dependency("middleman-core", [">= 3.3"])
|
20
20
|
s.add_runtime_dependency('rack-livereload', ['~> 0.3.15'])
|
21
21
|
s.add_runtime_dependency('em-websocket', ['~> 0.5.1'])
|
22
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-livereload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
@@ -10,48 +10,48 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: middleman-core
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
21
|
+
version: '3.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '3.
|
28
|
+
version: '3.3'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rack-livereload
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.3.15
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.3.15
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: em-websocket
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 0.5.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ~>
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 0.5.1
|
57
57
|
description: LiveReload support for Middleman
|
@@ -63,8 +63,8 @@ executables: []
|
|
63
63
|
extensions: []
|
64
64
|
extra_rdoc_files: []
|
65
65
|
files:
|
66
|
-
- .gitignore
|
67
|
-
- .travis.yml
|
66
|
+
- ".gitignore"
|
67
|
+
- ".travis.yml"
|
68
68
|
- CHANGELOG.md
|
69
69
|
- CONTRIBUTING.md
|
70
70
|
- Gemfile
|
@@ -89,12 +89,12 @@ require_paths:
|
|
89
89
|
- lib
|
90
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: 1.9.3
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|