guard-nanoc 2.1.2 → 2.1.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
- SHA1:
3
- metadata.gz: e5e6714f53f71741446439dbfa55a7ce74e9e795
4
- data.tar.gz: 561eb218a446b2dc762439344f48b26a556b315c
2
+ SHA256:
3
+ metadata.gz: 1700f4953605169e5117c3e5778ba964ed98335d03607f2a47c397819e8df27c
4
+ data.tar.gz: 9d39a305c667bca2b9d94c6239222a0fcd12642ec33e5111ec546256327d3e79
5
5
  SHA512:
6
- metadata.gz: a50367eb18212fabe9def611fa75aaa774d16dea5d8d69219751378e8260ddd1af3703603f3b46b3789c78696c0a255259497bdd7e2cb1e80e06924f177bee86
7
- data.tar.gz: 9cc44e45118be53ed3a6bb9f83011cf8bc846bde5455fcca1b7e415c21116db3ef2797abe0318a00977c8786d5d42247fbdacf9322f4689a4e7a8691a3a23bc8
6
+ metadata.gz: e57cd0f405bf39c11199674c43c951280349f63a56b83790b7757a29069a9a822b962b382a367d8742659c0d66da65fcbf3e4c348c49d48b1501fd3e4215f7ea
7
+ data.tar.gz: 23827d41bcbba41b41101b9877990f34cafed69a5732d5af5738ded6411f76f7ada1a724fa7b98563bd9ff333b3bf6d674aee8e880b1d1f02299c527fa2272c1
data/Gemfile.lock CHANGED
@@ -1,12 +1,18 @@
1
1
  GIT
2
- remote: https://github.com/nanoc/nanoc.git
3
- revision: 18ac1feceafaa05269f166816f7e5fcff245c6e9
2
+ remote: git://github.com/nanoc/nanoc.git
3
+ revision: b122d9d7e21bb48af1ea91354717c01d6c45445a
4
4
  specs:
5
- nanoc (4.7.0)
6
- cri (~> 2.3)
5
+ nanoc (4.9.3)
6
+ addressable (~> 2.5)
7
+ cri (~> 2.8)
8
+ ddmemoize (~> 1.0)
9
+ ddmetrics (~> 1.0)
7
10
  ddplugin (~> 1.0)
8
11
  hamster (~> 3.0)
12
+ parallel (~> 1.12)
9
13
  ref (~> 2.0)
14
+ slow_enumerator_tools (~> 1.0)
15
+ tomlrb (~> 1.2)
10
16
 
11
17
  PATH
12
18
  remote: .
@@ -19,19 +25,25 @@ PATH
19
25
  GEM
20
26
  remote: https://rubygems.org/
21
27
  specs:
22
- coderay (1.1.1)
28
+ addressable (2.5.2)
29
+ public_suffix (>= 2.0.2, < 4.0)
30
+ coderay (1.1.2)
23
31
  colored (1.2)
24
32
  concurrent-ruby (1.0.5)
25
- cri (2.7.1)
33
+ cri (2.10.1)
26
34
  colored (~> 1.2)
27
- ddplugin (1.0.1)
35
+ ddmemoize (1.0.0)
36
+ ddmetrics (~> 1.0)
37
+ ref (~> 2.0)
38
+ ddmetrics (1.0.1)
39
+ ddplugin (1.0.2)
28
40
  diff-lcs (1.3)
29
- ffi (1.9.18)
41
+ ffi (1.9.25)
30
42
  formatador (0.2.5)
31
- guard (2.14.1)
43
+ guard (2.14.2)
32
44
  formatador (>= 0.2.4)
33
45
  listen (>= 2.7, < 4.0)
34
- lumberjack (~> 1.0)
46
+ lumberjack (>= 1.0.12, < 2.0)
35
47
  nenv (~> 0.1)
36
48
  notiffany (~> 0.0)
37
49
  pry (>= 0.9.12)
@@ -44,38 +56,40 @@ GEM
44
56
  rb-fsevent (~> 0.9, >= 0.9.4)
45
57
  rb-inotify (~> 0.9, >= 0.9.7)
46
58
  ruby_dep (~> 1.2)
47
- lumberjack (1.0.11)
48
- method_source (0.8.2)
59
+ lumberjack (1.0.13)
60
+ method_source (0.9.0)
49
61
  nenv (0.3.0)
50
62
  notiffany (0.1.1)
51
63
  nenv (~> 0.1)
52
64
  shellany (~> 0.0)
53
- pry (0.10.4)
65
+ parallel (1.12.1)
66
+ pry (0.11.3)
54
67
  coderay (~> 1.1.0)
55
- method_source (~> 0.8.1)
56
- slop (~> 3.4)
57
- rake (12.0.0)
58
- rb-fsevent (0.9.8)
59
- rb-inotify (0.9.8)
60
- ffi (>= 0.5.0)
68
+ method_source (~> 0.9.0)
69
+ public_suffix (3.0.2)
70
+ rake (12.3.1)
71
+ rb-fsevent (0.10.3)
72
+ rb-inotify (0.9.10)
73
+ ffi (>= 0.5.0, < 2)
61
74
  ref (2.0.0)
62
- rspec (3.5.0)
63
- rspec-core (~> 3.5.0)
64
- rspec-expectations (~> 3.5.0)
65
- rspec-mocks (~> 3.5.0)
66
- rspec-core (3.5.4)
67
- rspec-support (~> 3.5.0)
68
- rspec-expectations (3.5.0)
75
+ rspec (3.7.0)
76
+ rspec-core (~> 3.7.0)
77
+ rspec-expectations (~> 3.7.0)
78
+ rspec-mocks (~> 3.7.0)
79
+ rspec-core (3.7.1)
80
+ rspec-support (~> 3.7.0)
81
+ rspec-expectations (3.7.0)
69
82
  diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.5.0)
71
- rspec-mocks (3.5.0)
83
+ rspec-support (~> 3.7.0)
84
+ rspec-mocks (3.7.0)
72
85
  diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.5.0)
74
- rspec-support (3.5.0)
86
+ rspec-support (~> 3.7.0)
87
+ rspec-support (3.7.1)
75
88
  ruby_dep (1.5.0)
76
89
  shellany (0.0.1)
77
- slop (3.6.0)
78
- thor (0.19.4)
90
+ slow_enumerator_tools (1.1.0)
91
+ thor (0.20.0)
92
+ tomlrb (1.2.7)
79
93
 
80
94
  PLATFORMS
81
95
  ruby
@@ -87,4 +101,4 @@ DEPENDENCIES
87
101
  rspec (~> 3.1)
88
102
 
89
103
  BUNDLED WITH
90
- 1.14.6
104
+ 1.16.3
data/NEWS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # guard-nanoc Release Notes
2
2
 
3
+ ## 2.1.3 (2018-07-28)
4
+
5
+ * Added missing --live-reload option, passed through to `nanoc view` (#38, #39)
6
+
3
7
  ## 2.1.2 (2017-03-19)
4
8
 
5
9
  * Fixed compatibility with Nanoc 4.7.1
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Guard
4
- GUARD_NANOC_VERSION = '2.1.2'
4
+ GUARD_NANOC_VERSION = '2.1.3'
5
5
  end
data/lib/guard/nanoc.rb CHANGED
@@ -7,6 +7,13 @@ require 'nanoc/cli'
7
7
 
8
8
  module Guard
9
9
  class Nanoc < Plugin
10
+ def self.live_cmd
11
+ @_live_cmd ||= begin
12
+ path = File.join(File.dirname(__FILE__), '..', 'nanoc', 'cli', 'commands', 'live.rb')
13
+ ::Nanoc::CLI.load_command_at(path)
14
+ end
15
+ end
16
+
10
17
  def initialize(options={})
11
18
  @dir = options[:dir] || '.'
12
19
  super
@@ -70,3 +77,7 @@ module Guard
70
77
  end
71
78
  end
72
79
  end
80
+
81
+ ::Nanoc::CLI.after_setup do
82
+ ::Nanoc::CLI.add_command(Guard::Nanoc.live_cmd)
83
+ end
data/lib/guard-nanoc.rb CHANGED
@@ -1,8 +1 @@
1
- require 'nanoc'
2
- require 'nanoc/cli'
3
-
4
- Nanoc::CLI.after_setup do
5
- live_command_path =
6
- File.join(File.dirname(__FILE__), 'nanoc', 'cli', 'commands', 'live.rb')
7
- Nanoc::CLI.add_command(Nanoc::CLI.load_command_at(live_command_path))
8
- end
1
+ require 'guard/nanoc'
@@ -6,9 +6,10 @@ in the background (like `guard start` would). See the documentation of those
6
6
  two commands for details. The options are forwarded to `nanoc view` only.
7
7
  EOS
8
8
 
9
- required :H, :handler, 'specify the handler to use (webrick/mongrel/...)'
10
- required :o, :host, 'specify the host to listen on (default: 0.0.0.0)'
11
- required :p, :port, 'specify the port to listen on (default: 3000)'
9
+ required :H, :handler, 'specify the handler to use (webrick/mongrel/...)'
10
+ required :o, :host, 'specify the host to listen on (default: 0.0.0.0)'
11
+ required :p, :port, 'specify the port to listen on (default: 3000)'
12
+ flag :L, :'live-reload', 'reload on changes'
12
13
 
13
14
  module Nanoc::CLI::Commands
14
15
  class Live < ::Nanoc::CLI::CommandRunner
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-nanoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2018-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.6.11
99
+ rubygems_version: 2.7.7
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: guard gem for nanoc