middleman-livereload 3.4.2 → 3.4.3

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
2
  SHA1:
3
- metadata.gz: 217907b3c501015710ffe9d761d85be9c911ea25
4
- data.tar.gz: 0dfa34929cb855664d4c850615c481471900abab
3
+ metadata.gz: 1ece19ba9427a4425ead19caeebdc025089a0859
4
+ data.tar.gz: 8e820627aa497df57edecaf1b92c9e5c960eb147
5
5
  SHA512:
6
- metadata.gz: 482e8d1846e95ca2bbc92d0478550b91eec7b322c4dda2452252052373a829dd5f28fe73224ac442e36f21f49cb17ed1ed1a2e2fa9b7491ef8eb748474d059b9
7
- data.tar.gz: 65da27476b7bddae0b62673047c89f078c86ed6e180759224005512e30cc2ef0c5704276fef6e3c00378a19b40e42ee8d2ecfe5ac8874e836d507d4de5b97578
6
+ metadata.gz: f05277bb6eb3b65054be15cc6f1735412a223252575f2648b871478ff8564ff7569da26a3d5040b3260267d35e64ee337f02a7004166cd8ce9c0f2255f73de39
7
+ data.tar.gz: ce46f5b7287f3ca87240d1613ba21b36e0b628fd5dec114d1362df111c14d1a10d1a9dbdf6a23c06904e9284c028aa006870cf82b7b9f2fd3fa04ed05bd8b2e4
data/README.md CHANGED
@@ -22,7 +22,7 @@ activate :livereload
22
22
  The extension supports a number of options that can be given to the `activate` statement. Eg:
23
23
 
24
24
  ```
25
- activate :livereload, :apply_js_live => false
25
+ activate :livereload, apply_js_live: false
26
26
  ```
27
27
 
28
28
  #### `:host` and `:port`
@@ -39,6 +39,10 @@ Whether live reload should attempt to reload javascript / css 'in-place', withou
39
39
 
40
40
  Disable Flash polyfil for browsers that support native WebSockets.
41
41
 
42
+ #### `:ignore`
43
+
44
+ Array of patterns for paths that must be ignored. These files will not be injected with the LiveReload script.
45
+
42
46
  ## Build & Dependency Status
43
47
 
44
48
  [![Gem Version](https://badge.fury.io/rb/middleman-livereload.png)][gem]
@@ -8,6 +8,7 @@ module Middleman
8
8
  option :apply_css_live, true, 'Apply CSS changes live, without reloading'
9
9
  option :no_swf, false, 'Disable Flash WebSocket polyfill for browsers that support native WebSockets'
10
10
  option :host, Socket.ip_address_list.find(->{ Addrinfo.ip 'localhost' }, &:ipv4_private?).ip_address, 'Host to bind LiveReload API server to'
11
+ option :ignore, [], 'Array of patterns for paths that must be ignored'
11
12
 
12
13
  def initialize(app, options_hash={}, &block)
13
14
  super
@@ -23,6 +24,7 @@ module Middleman
23
24
  port = options.port.to_i
24
25
  host = options.host
25
26
  no_swf = options.no_swf
27
+ ignore = options.ignore
26
28
  options_hash = options.to_h
27
29
 
28
30
  app.ready do
@@ -60,7 +62,7 @@ module Middleman
60
62
 
61
63
  # Use the vendored livereload.js source rather than trying to get it from Middleman
62
64
  # https://github.com/johnbintz/rack-livereload#which-livereload-script-does-it-use
63
- use ::Rack::LiveReload, :port => port, :host => host, :no_swf => no_swf, :source => :vendored
65
+ use ::Rack::LiveReload, port: port, host: host, no_swf: no_swf, source: :vendored, ignore: ignore
64
66
  end
65
67
  end
66
68
  end
@@ -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]}:#{options[:port]}"
45
+ logger.info "== LiveReload accepting connections from ws://#{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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module LiveReload
3
- VERSION = "3.4.2"
3
+ VERSION = "3.4.3"
4
4
  end
5
5
  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.2
4
+ version: 3.4.3
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-12-26 00:00:00.000000000 Z
13
+ date: 2015-07-24 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
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
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,17 +89,17 @@ 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: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.2.2
102
+ rubygems_version: 2.4.6
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: LiveReload support for Middleman