middleman-livereload 3.1.1 → 3.2.1

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: 89eb8672ae3cc09dd8707914e4d855fb41aaef79
4
- data.tar.gz: f4908de103b2b813abed91e8c31ee8cb37381cde
3
+ metadata.gz: d2d7f2b2d80a0bd438ad35d13181634ca78a1c3c
4
+ data.tar.gz: 5288c9a6786e10676266cdaf5b200531faa6b805
5
5
  SHA512:
6
- metadata.gz: fb869df5d3020e4e8a7bd6a1632b3f8dd2c0c0804687d30fa09e3b506b0a481008b507b035fc2d79fbe57b560db7334c18661c9cc559ab3f0ca799699fa9dbc0
7
- data.tar.gz: ceff57c98085f13a0dba54d9bada015a580dd0120b7e6083450e07223d6ea8f8f3111d6dd7e2dc78bc09f92cf6ac2d12f16c10e346e7acec8a904aaeca092127
6
+ metadata.gz: 58b1015a0b4f213d216aa4cbc4b3eb9cd4891d37e73df780de3bfbfbc2ffa722d5c1de84bf43ef275f63a1102afd35ac5df04243f0d2429b397e98c0e6ba5230
7
+ data.tar.gz: cc60944983102e433c1068996e82db87bbc47107603d326a3b86ef7054c43ecb7124d1be37229172d92a20be94a22ea4bb6c5be3f7c95b8cf1d0d84a7eab40a6
@@ -1,13 +1,10 @@
1
1
  rvm:
2
- - 1.8.7
3
2
  - 1.9.3
4
3
  - 2.0.0
5
- - jruby-18mode
6
4
  - jruby-19mode
7
5
 
8
6
  gemfile:
9
7
  - Gemfile
10
- - Gemfile-3.0
11
8
 
12
9
  script: "bundle exec rake test"
13
10
 
@@ -2,11 +2,6 @@ require "middleman-core"
2
2
  require "middleman-livereload/version"
3
3
 
4
4
  ::Middleman::Extensions.register(:livereload) do
5
- if defined?(::Middleman::Extension)
6
- require "middleman-livereload/extension_3_1"
7
- ::Middleman::LiveReloadExtension
8
- else
9
- require "middleman-livereload/extension_3_0"
10
- ::Middleman::LiveReload
11
- end
5
+ require "middleman-livereload/extension_3_1"
6
+ ::Middleman::LiveReloadExtension
12
7
  end
@@ -13,8 +13,7 @@ module Middleman
13
13
  def initialize(app, options_hash={}, &block)
14
14
  super
15
15
 
16
- # Doesn't make sense in build
17
- return if app.environment == :build
16
+ return if app.environment != :development
18
17
 
19
18
  @reactor = nil
20
19
 
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module LiveReload
3
- VERSION = "3.1.1"
3
+ VERSION = "3.2.1"
4
4
  end
5
5
  end
@@ -15,8 +15,8 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files -z`.split("\0")
16
16
  s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
17
17
  s.require_paths = ["lib"]
18
- s.add_dependency("middleman-core", [">= 3.0.2"])
19
- s.add_runtime_dependency('rack-livereload')
20
- s.add_runtime_dependency('em-websocket', ['>= 0.2.0'])
21
- s.add_runtime_dependency('multi_json', ['~> 1.0'])
18
+ s.add_dependency("middleman-core", ["~> 3.2"])
19
+ s.add_runtime_dependency('rack-livereload', ['~> 0.3.15'])
20
+ s.add_runtime_dependency('em-websocket', ['~> 0.5.0'])
21
+ s.add_runtime_dependency('multi_json', ['~> 1.8.4'])
22
22
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-livereload
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-26 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.2
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.2
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack-livereload
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.3.15
34
34
  type: :runtime
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: 0.3.15
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: em-websocket
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.2.0
47
+ version: 0.5.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.2.0
54
+ version: 0.5.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: multi_json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: 1.8.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: 1.8.4
69
69
  description: LiveReload support for Middleman
70
70
  email:
71
71
  - me@tdreyno.com
@@ -77,14 +77,12 @@ files:
77
77
  - .travis.yml
78
78
  - CONTRIBUTING.md
79
79
  - Gemfile
80
- - Gemfile-3.0
81
80
  - LICENSE.md
82
81
  - README.md
83
82
  - Rakefile
84
83
  - features/.gitkeep
85
84
  - fixtures/.gitkeep
86
85
  - lib/middleman-livereload.rb
87
- - lib/middleman-livereload/extension_3_0.rb
88
86
  - lib/middleman-livereload/extension_3_1.rb
89
87
  - lib/middleman-livereload/reactor.rb
90
88
  - lib/middleman-livereload/version.rb
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "middleman", "~> 3.0.0"
4
-
5
- # Specify your gem's dependencies in middleman-blog.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 10.0.3"
9
- gem "rdoc", "~> 3.9"
10
- gem "yard", "~> 0.8.0"
11
-
12
- gem "cucumber", "~> 1.2.0"
13
- gem "fivemat"
14
- gem "aruba", "~> 0.5"
15
- gem "rspec", "~> 2.7"
@@ -1,60 +0,0 @@
1
- require 'rack/livereload'
2
- require 'middleman-livereload/reactor'
3
-
4
- module Middleman
5
- module LiveReload
6
- class << self
7
- @@reactor = nil
8
-
9
- def registered(app, options={})
10
- options = {
11
- :api_version => '1.6',
12
- :host => '0.0.0.0',
13
- :port => '35729',
14
- :apply_js_live => true,
15
- :apply_css_live => true,
16
- :grace_period => 0,
17
- :no_swf => false
18
- }.merge(options)
19
-
20
- app.ready do
21
- # Doesn't make sense in build
22
- if environment != :build
23
- if @@reactor
24
- @@reactor.app = self
25
- else
26
- @@reactor = Reactor.new(options, self)
27
- end
28
-
29
- files.changed do |file|
30
- next if ignore_manager.ignored?(file)
31
-
32
- sleep options[:grace_period]
33
- sitemap.ensure_resource_list_updated!
34
-
35
- begin
36
- file_url = sitemap.file_to_path(file)
37
- file_resource = sitemap.find_resource_by_path(file_url)
38
- reload_path = file_resource.destination_path
39
- rescue
40
- reload_path = "#{Dir.pwd}/#{file}"
41
- end
42
- @@reactor.reload_browser(reload_path)
43
- end
44
-
45
- files.deleted do |file|
46
- next if ignore_manager.ignored?(file)
47
-
48
- sleep options[:grace_period]
49
- sitemap.ensure_resource_list_updated!
50
- @@reactor.reload_browser("#{Dir.pwd}/#{file}")
51
- end
52
-
53
- use ::Rack::LiveReload, :port => options[:port].to_i, :host => options[:host], :no_swf => options[:no_swf]
54
- end
55
- end
56
- end
57
- alias :included :registered
58
- end
59
- end
60
- end