jekyll-watch 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/watcher.rb +7 -2
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 311eb876e0a6ddf716fc8c8300e1cec3394034ef
4
- data.tar.gz: 33f760375b07b353282d3c54075ae7575de2b503
3
+ metadata.gz: 64cb80b9afc5e464e42ccd20658f001f71856e4f
4
+ data.tar.gz: 49d4d3a313e6b1fac58a94739eb007cf821022a7
5
5
  SHA512:
6
- metadata.gz: 366d84486a4b3e553b69d289a331af1dd7321749dfb230a7bb331456a01c6bb20b28f70efa3beffbf61d91c9f01445302a946a529841d26e882a7bf689e2b0da
7
- data.tar.gz: 937d8cbf5c133c2c63e51ed932f59ac5e5c3f12b650a463371f41ae1acf9381f3839de4bf7ac0b752348f19d4674774b7f5aa813c4db829bfd6ed03a5dd976fa
6
+ metadata.gz: cbb2274b9ae797df7da042d6a6c3e6510cceb9cfe30ee3e48072e4e0d6fdf1a9d759168e7cd04901f86586b8659d1b354b6a29e42ac2c88843e404000a517a00
7
+ data.tar.gz: ced5380e200c75092858a34e5d3296eeaa44dc520aad41cfceb2f132cca36893787278db8d30e7444387facb434c32e926e8a0232a9d277aecb5cfeb81736a0f
@@ -1,3 +1,5 @@
1
+ require 'listen'
2
+
1
3
  module Jekyll
2
4
  module Watcher
3
5
  extend self
@@ -16,14 +18,14 @@ module Jekyll
16
18
  exit 0
17
19
  end
18
20
 
19
- loop { sleep 1000 }
21
+ sleep_forever
20
22
  end
21
23
  rescue ThreadError => e
22
24
  # You pressed Ctrl-C, oh my!
23
25
  end
24
26
 
27
+ # TODO: shouldn't be public API
25
28
  def build_listener(site, options)
26
- require 'listen'
27
29
  Listen.to(
28
30
  options['source'],
29
31
  :ignore => listen_ignore_paths(options),
@@ -93,5 +95,8 @@ module Jekyll
93
95
  end.compact + [/\.jekyll\-metadata/]
94
96
  end
95
97
 
98
+ def sleep_forever
99
+ loop { sleep 1000 }
100
+ end
96
101
  end
97
102
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-watch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-24 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.7'
19
+ version: '3.0'
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: '2.7'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: jekyll
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.0'
83
83
  description:
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.2.2
113
+ rubygems_version: 2.2.3
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Rebuild your Jekyll site when a file changes with the `--watch` switch.