guard-nanoc 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/NEWS.md +4 -0
- data/README.md +2 -2
- data/guard-nanoc.gemspec +4 -4
- data/lib/guard/nanoc.rb +6 -6
- data/lib/guard/nanoc/version.rb +1 -1
- data/lib/nanoc/{cli → orig_cli}/commands/live.rb +0 -0
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63b4e13d1627f430ef6774ee933a056e4593f8ceedf4746193496f0ff9c3aeae
|
|
4
|
+
data.tar.gz: e79fb40f05dff6b3707fb8b7797c8da7223c79d5e9252e86fdca0acfadbf66e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3073b4c344cd7710af4416a559876d14e8afb133e22a9889aac7f3fb19d1c4945e864e5932e6e0ef8c2c3e8fd9040b082df934c1bc93e6274f2499014bec76a
|
|
7
|
+
data.tar.gz: a3ea5d577fbbf0c1989fbca574811d21584cb49bc259595ea11191da876d048e95d5e723bd063cfa8f9846858a415741589184abe4b0193f36e5abaa6e9b01eb
|
data/LICENSE
CHANGED
data/NEWS.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Guard::Nanoc
|
|
2
2
|
|
|
3
|
-
This is a guard for [nanoc](
|
|
3
|
+
This is a guard for [nanoc](https://nanoc.ws/).
|
|
4
4
|
|
|
5
5
|
`Guard` is a framework for listening to filesystem changes and acting upon them. `Guard::Nanoc` is a plugin for Guard that recompiles Nanoc sites on changes.
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ And then execute:
|
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
|
-
Enter the
|
|
29
|
+
Enter the Nanoc site directory for which you want to use guard-nanoc. Create a Guardfile using `guard init`:
|
|
30
30
|
|
|
31
31
|
$ bundle exec guard init nanoc
|
|
32
32
|
|
data/guard-nanoc.gemspec
CHANGED
|
@@ -5,9 +5,9 @@ require_relative './lib/guard/nanoc/version'
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'guard-nanoc'
|
|
7
7
|
s.version = Guard::GUARD_NANOC_VERSION
|
|
8
|
-
s.homepage = '
|
|
9
|
-
s.summary = 'guard gem for
|
|
10
|
-
s.description = 'Automatically rebuilds
|
|
8
|
+
s.homepage = 'https://nanoc.ws/'
|
|
9
|
+
s.summary = 'guard gem for Nanoc'
|
|
10
|
+
s.description = 'Automatically rebuilds Nanoc sites'
|
|
11
11
|
s.license = 'MIT'
|
|
12
12
|
|
|
13
13
|
s.author = 'Denis Defreyne'
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
|
15
15
|
|
|
16
16
|
s.add_dependency 'guard', '~> 2.8'
|
|
17
17
|
s.add_dependency 'guard-compat', '~> 1.0'
|
|
18
|
-
s.add_dependency 'nanoc', '>= 4.
|
|
18
|
+
s.add_dependency 'nanoc', '>= 4.11.13', '< 5.0'
|
|
19
19
|
|
|
20
20
|
s.files = Dir['[A-Z]*'] + Dir['lib/**/*'] + ['guard-nanoc.gemspec']
|
|
21
21
|
s.require_paths = ['lib']
|
data/lib/guard/nanoc.rb
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
require 'guard/compat/plugin'
|
|
4
4
|
|
|
5
5
|
require 'nanoc'
|
|
6
|
-
require 'nanoc/
|
|
6
|
+
require 'nanoc/orig_cli'
|
|
7
7
|
|
|
8
8
|
module Guard
|
|
9
9
|
class Nanoc < Plugin
|
|
10
10
|
def self.live_cmd
|
|
11
11
|
@_live_cmd ||= begin
|
|
12
|
-
path = File.join(File.dirname(__FILE__), '..', 'nanoc', '
|
|
13
|
-
::
|
|
12
|
+
path = File.join(File.dirname(__FILE__), '..', 'nanoc', 'orig_cli', 'commands', 'live.rb')
|
|
13
|
+
Cri::Command.load_file(path, infer_name: true)
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
|
|
@@ -41,7 +41,7 @@ module Guard
|
|
|
41
41
|
def setup_listeners
|
|
42
42
|
::Nanoc::CLI.setup
|
|
43
43
|
|
|
44
|
-
::Nanoc::CLI::
|
|
44
|
+
::Nanoc::CLI::CompileListeners::FileActionPrinter
|
|
45
45
|
.new(reps: [])
|
|
46
46
|
.start_safely
|
|
47
47
|
end
|
|
@@ -60,8 +60,8 @@ module Guard
|
|
|
60
60
|
::Nanoc::Core::NotificationCenter.force_reset
|
|
61
61
|
|
|
62
62
|
Dir.chdir(@dir) do
|
|
63
|
-
site = ::Nanoc::
|
|
64
|
-
::Nanoc::
|
|
63
|
+
site = ::Nanoc::Core::SiteLoader.new.new_from_cwd
|
|
64
|
+
::Nanoc::Core::Compiler.compile(site)
|
|
65
65
|
end
|
|
66
66
|
notify_success
|
|
67
67
|
rescue => e
|
data/lib/guard/nanoc/version.rb
CHANGED
|
File without changes
|
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.
|
|
4
|
+
version: 2.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Defreyne
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: guard
|
|
@@ -44,7 +44,7 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 4.
|
|
47
|
+
version: 4.11.13
|
|
48
48
|
- - "<"
|
|
49
49
|
- !ruby/object:Gem::Version
|
|
50
50
|
version: '5.0'
|
|
@@ -54,11 +54,11 @@ dependencies:
|
|
|
54
54
|
requirements:
|
|
55
55
|
- - ">="
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
|
-
version: 4.
|
|
57
|
+
version: 4.11.13
|
|
58
58
|
- - "<"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '5.0'
|
|
61
|
-
description: Automatically rebuilds
|
|
61
|
+
description: Automatically rebuilds Nanoc sites
|
|
62
62
|
email: denis.defreyne@stoneship.org
|
|
63
63
|
executables: []
|
|
64
64
|
extensions: []
|
|
@@ -73,8 +73,8 @@ files:
|
|
|
73
73
|
- lib/guard/nanoc.rb
|
|
74
74
|
- lib/guard/nanoc/templates/Guardfile
|
|
75
75
|
- lib/guard/nanoc/version.rb
|
|
76
|
-
- lib/nanoc/
|
|
77
|
-
homepage:
|
|
76
|
+
- lib/nanoc/orig_cli/commands/live.rb
|
|
77
|
+
homepage: https://nanoc.ws/
|
|
78
78
|
licenses:
|
|
79
79
|
- MIT
|
|
80
80
|
metadata: {}
|
|
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
94
|
version: '0'
|
|
95
95
|
requirements: []
|
|
96
|
-
rubygems_version: 3.0.
|
|
96
|
+
rubygems_version: 3.0.6
|
|
97
97
|
signing_key:
|
|
98
98
|
specification_version: 4
|
|
99
|
-
summary: guard gem for
|
|
99
|
+
summary: guard gem for Nanoc
|
|
100
100
|
test_files: []
|