jekyll-watch 2.1.1 → 2.1.2

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
  SHA256:
3
- metadata.gz: e09dbd6263ca0a5fd831d6bf235aa7a9d7182c010d0b1f0e2e13bee79bed66d2
4
- data.tar.gz: 14b1913a545be988a43a2789fed7b385e72ddf96414346c333fc65a4d0a1dd43
3
+ metadata.gz: dda724abafdf9fc5f34aac080d4c6e77319f4dae189ef0a28ca3bce7faf2d655
4
+ data.tar.gz: 6af86020a15252b2116ed64b8c93b7d75f9293a32c78a4c7f2bbc2989052bdf2
5
5
  SHA512:
6
- metadata.gz: 5ca936b387d38d281a455c13376989025cc7cffdc6d24a5685937c7b24c179299d2978793f9b26fb69b013cf072ca86576d2f9f8fd93f11fa05df0e945bd8ea6
7
- data.tar.gz: af53940f4535a45f184de85e80b5da2247f560d134511b3efac38b81c5fe16c9b3dadb94303a5ee8c8a16f00b47efeaf3df7ed63b83baf9b2d73e9054a14f606
6
+ metadata.gz: fb27525b7571140af739402ad8d4dd1178d07a2574a813e0afd3368d4f46c139c2e3b57576526a9931b4a989d4022fee551283cd190d565fea9e9d50d99b30f1
7
+ data.tar.gz: 80f9cefcf191d4bd4f9bbe7a7b1365c52a029d90fe7475cbc61de04f61698c90126d1b8f23700efcc090d49aad521cf358d49b8748d00c8b516029dd83718bce
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Watch
5
- VERSION = "2.1.1"
5
+ VERSION = "2.1.2"
6
6
  end
7
7
  end
@@ -54,21 +54,17 @@ module Jekyll
54
54
  def listen_handler(site)
55
55
  proc do |modified, added, removed|
56
56
  t = Time.now
57
- c = normalize_encoding(modified + added + removed, site.source.encoding)
57
+ c = modified + added + removed
58
58
  n = c.length
59
59
 
60
60
  Jekyll.logger.info "Regenerating:",
61
61
  "#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")}"
62
62
 
63
- c.each { |path| Jekyll.logger.info "", path.sub("#{site.source}/", "") }
63
+ c.each { |path| Jekyll.logger.info "", path["#{site.source}/".length..-1] }
64
64
  process(site, t)
65
65
  end
66
66
  end
67
67
 
68
- def normalize_encoding(list, desired_encoding)
69
- list.map { |entry| entry.encode!(desired_encoding, entry.encoding) }
70
- end
71
-
72
68
  def custom_excludes(options)
73
69
  Array(options["exclude"]).map { |e| Jekyll.sanitized_path(options["source"], e) }
74
70
  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: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-10 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen