jekyll-reload 1.0.0 → 1.0.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: d1ece306b70d9a5cb176d28b52b28fea40c5476c
4
- data.tar.gz: 669013b1cd22be3ad54222f96628fc9cde28156d
3
+ metadata.gz: 6677955037d734109e6959359e3485ecc78afe85
4
+ data.tar.gz: 1a17f869389188c64e98a53da6d243e3b891b2f3
5
5
  SHA512:
6
- metadata.gz: c9d465a1861a0f42cd43d73eeb3a16378c62fa33ee004af67a1e8328b2548ba04554ba9429fb13217309f0b852b874ecb1aad884e0e11e439a05ea044aa9a146
7
- data.tar.gz: 674f22f17d89e28eb5c12429ee72312d96390f0534a339a07f38e7dc09f24b73d38f383306cd75f62fd849baeb417e0884210a9c27e771b51040c19387d90bee
6
+ metadata.gz: 772167df149b11864e81c2b30ac790b2953cb8d6ce326eeef4a6f5a85713e94a2101229b1f3ab3cf30a0c477c08815ed388f322b135da803e2cfd8f72a450547
7
+ data.tar.gz: de20f9c27d49365ef9e5dcc07424fab11b179b5671c6bf92dfc4f8b5d706367b2464b3e5b42db98736858ccf354ea965cb3744c0df468a9929ac93010d33dcc4
@@ -7,8 +7,11 @@ require_relative "../reactor"
7
7
  require "jekyll"
8
8
 
9
9
  Jekyll::Hooks.register :site, :post_write, priority: :high do |s|
10
- next if s.reloader; s.reloader = Jekyll::Reload::Reactor.new(s)
11
- .tap do |o|
10
+ next if s.reloader
11
+
12
+ if s.config["serving"]
13
+ s.reloader = Jekyll::Reload::Reactor.new(s).tap do |o|
12
14
  o.start
13
15
  end
16
+ end
14
17
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  module Reload
7
- VERSION = "1.0.0"
7
+ VERSION = "1.0.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-reload
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-05 00:00:00.000000000 Z
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em-websocket