middleman-livereload 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f101f08f0b1e678d0dd74aa11e93d1ea2272abc
|
4
|
+
data.tar.gz: 2f0c2393c62c1fc6e02152486959b001012c3f11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44382aa17cc815b2f4d1271370d69f411b8dd516746469e5477e995b1396491c40f2fba8708de6ba53e2bbe1ccc8acede30af5d60437916c381853cb5a4228b
|
7
|
+
data.tar.gz: 458c3cda242889687f33dd24198cd93698c4f3639578a900dee8e80ebddbe7a362d2767610094fb8fe46659a8688e889160ea614d8e8497d1d9ae27f8fa46d9c
|
data/README.md
CHANGED
@@ -15,7 +15,6 @@ If you already have a Middleman project: Add `gem "middleman-livereload", "~> 3.
|
|
15
15
|
|
16
16
|
#### Windows users:
|
17
17
|
You currently need to add `gem "em-websocket", github: "igrigorik/em-websocket"` to your `Gemfile` and run `bundle install`
|
18
|
-
Also be sure to specify the correct hostname `activate :livereload, :host => 'localhost'`
|
19
18
|
|
20
19
|
## Configuration
|
21
20
|
|
@@ -3,11 +3,11 @@ require 'middleman-livereload/reactor'
|
|
3
3
|
|
4
4
|
module Middleman
|
5
5
|
class LiveReloadExtension < Extension
|
6
|
-
option :host, '0.0.0.0', 'Host to bind LiveReload API server to'
|
7
6
|
option :port, '35729', 'Port to bind the LiveReload API server to'
|
8
7
|
option :apply_js_live, true, 'Apply JS changes live, without reloading'
|
9
8
|
option :apply_css_live, true, 'Apply CSS changes live, without reloading'
|
10
9
|
option :no_swf, false, 'Disable Flash WebSocket polyfill for browsers that support native WebSockets'
|
10
|
+
option :host, Socket.ip_address_list.find(&:ipv4_private?).ip_address, 'Host to bind LiveReload API server to'
|
11
11
|
|
12
12
|
def initialize(app, options_hash={}, &block)
|
13
13
|
super
|
@@ -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
|
45
|
+
logger.info "== LiveReload accepting connections from http://#{options[:host]}:4567 (localhost)"
|
46
46
|
EventMachine.start_server(options[:host], options[:port], EventMachine::WebSocket::Connection, {}) do |ws|
|
47
47
|
ws.onopen do
|
48
48
|
begin
|
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "middleman-livereload"
|
7
7
|
s.version = Middleman::LiveReload::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors
|
10
|
-
s.email
|
9
|
+
s.authors = ["Thomas Reynolds", "Ben Hollis", "Karl Freeman"]
|
10
|
+
s.email = ["me@tdreyno.com", "ben@benhollis.net", "karlfreeman@gmail.com"]
|
11
11
|
s.homepage = "https://github.com/middleman/middleman-livereload"
|
12
12
|
s.summary = %q{LiveReload support for Middleman}
|
13
13
|
s.description = %q{LiveReload support for Middleman}
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-livereload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
8
|
+
- Ben Hollis
|
9
|
+
- Karl Freeman
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date: 2014-
|
13
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: middleman-core
|
@@ -55,6 +57,8 @@ dependencies:
|
|
55
57
|
description: LiveReload support for Middleman
|
56
58
|
email:
|
57
59
|
- me@tdreyno.com
|
60
|
+
- ben@benhollis.net
|
61
|
+
- karlfreeman@gmail.com
|
58
62
|
executables: []
|
59
63
|
extensions: []
|
60
64
|
extra_rdoc_files: []
|