guard-nanoc 2.1.8 → 2.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6679df87e78b79d78396ad0c002b41b882625a4a83415d37b114783e2ea98c4
4
- data.tar.gz: 96120c4ef6548b7f3b0efa7a3899a6c9dcaa2fa165cb3450cdcfc678bcb89522
3
+ metadata.gz: 72939e1ebc1529a4c5d8a6c5a4cb8f6ac66ce0851ceef5c0219a48ad0be66d80
4
+ data.tar.gz: b6980e497646e70458d9896c7ddf7d0b1976253f690536731e7c1fd11db5aa3b
5
5
  SHA512:
6
- metadata.gz: ad13e7ec7bc29796e34c330472a09f1ac35d7bd90076c8b48de8796866e0fdc2c26affe39847ac1dfca35fea771e07ade9e36e2785b636cd400e61e001b9f92c
7
- data.tar.gz: 13674f766409963d3a59348fbb98aa16361caa7e95d341959503d3932eed33e47db00088434abf11c9081f9ae56c7691ac5900ff3a04917792f2f269e6528e57
6
+ metadata.gz: 1447d6422f85c53c1c9cddc4736fef574b8d7c91f484458590b33c4ac45208d35b4348ddb11dc03e9671d58f7d354589b3472578d1bd3281bea852e6cff71b2c
7
+ data.tar.gz: 878ef1e65d17145b6420676f0acc28c69431e64666f646a81cccb1864ba6ed74daaaf60bd62b7179ba76c7648fac093b4168be193d69b2b69d709a78d44a8417
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013–… Denis Defreyne
1
+ Copyright (c) 2013–… Denis Defreyne and contributors
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/NEWS.md CHANGED
@@ -1,41 +1,49 @@
1
1
  # guard-nanoc Release Notes
2
2
 
3
+ ## 2.1.10 (2025-11-01)
4
+
5
+ - Fixed compatibility with Nanoc 4.14.1.
6
+
7
+ ## 2.1.9 (2020-03-08)
8
+
9
+ - Fixed an incompatibility with Nanoc 4.11.15.
10
+
3
11
  ## 2.1.8 (2020-03-07)
4
12
 
5
- * Fixed an incompatibility with Nanoc 4.11.14.
13
+ - Fixed an incompatibility with Nanoc 4.11.14.
6
14
 
7
15
  ## 2.1.7 (2019-11-16)
8
16
 
9
- * Fixed an incompatibility with Nanoc 4.11.13.
17
+ - Fixed an incompatibility with Nanoc 4.11.13.
10
18
 
11
19
  ## 2.1.6 (2019-02-16)
12
20
 
13
- * Fixed another incompatibility with Nanoc 4.11.1.
21
+ - Fixed another incompatibility with Nanoc 4.11.1.
14
22
 
15
23
  ## 2.1.5 (2019-02-14)
16
24
 
17
- * Fixed an incompatibility with Nanoc 4.11.1.
25
+ - Fixed an incompatibility with Nanoc 4.11.1.
18
26
 
19
27
  ## 2.1.4 (2018-09-15)
20
28
 
21
- * Fixed issue which caused `--host` and `--port` options to be mandatory.
29
+ - Fixed issue which caused `--host` and `--port` options to be mandatory.
22
30
 
23
31
  ## 2.1.3 (2018-07-28)
24
32
 
25
- * Added missing --live-reload option, passed through to `nanoc view` (#38, #39)
33
+ - Added missing --live-reload option, passed through to `nanoc view` (#38, #39)
26
34
 
27
35
  ## 2.1.2 (2017-03-19)
28
36
 
29
- * Fixed compatibility with Nanoc 4.7.1
37
+ - Fixed compatibility with Nanoc 4.7.1
30
38
 
31
39
  ## 2.1.1 (2016-11-18)
32
40
 
33
- * Fixed compatibility with Nanoc 4.3.8 (#32)
34
- * Fixed issue which would cause “constants redefined” warnings to be printed (#26, #34)
41
+ - Fixed compatibility with Nanoc 4.3.8 (#32)
42
+ - Fixed issue which would cause “constants redefined” warnings to be printed (#26, #34)
35
43
 
36
44
  ## 2.1.0 (2016-08-21)
37
45
 
38
- * Add `nanoc live` command, combining guard-nanoc with `nanoc view` [whitequark]
46
+ - Add `nanoc live` command, combining guard-nanoc with `nanoc view` [whitequark]
39
47
 
40
48
  ## 2.0.0 (2015-11-07)
41
49
 
@@ -43,19 +51,19 @@
43
51
 
44
52
  ## 2.0.0b1 (2015-06-21)
45
53
 
46
- * Added nanoc 4 compatibility
54
+ - Added nanoc 4 compatibility
47
55
 
48
56
  ## 1.0.3 (2014-11-16)
49
57
 
50
- * Fix guard 2.8 deprecation warning (guard/guard-nanoc#16)
58
+ - Fix guard 2.8 deprecation warning (guard/guard-nanoc#16)
51
59
 
52
60
  ## 1.0.2 (2013-11-27)
53
61
 
54
- * Made guard-nanoc honor autoprune settings
62
+ - Made guard-nanoc honor autoprune settings
55
63
 
56
64
  ## 1.0.1 (2013-05-15)
57
65
 
58
- * Added dependencies on `guard` and `nanoc`
66
+ - Added dependencies on `guard` and `nanoc`
59
67
 
60
68
  ## 1.0.0 (2013-04-28)
61
69
 
data/README.md CHANGED
@@ -1,46 +1,3 @@
1
1
  # Guard::Nanoc
2
2
 
3
- This is a guard for [nanoc](https://nanoc.ws/).
4
-
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
-
7
- ## Installation
8
-
9
- Add the `guard-nanoc` gem inside the `nanoc` group to your application's Gemfile:
10
-
11
- group :nanoc do
12
- gem 'guard-nanoc'
13
- end
14
-
15
- Unless your Gemfile already specifies a web server, you'll need one as well:
16
-
17
- gem 'adsf'
18
-
19
- Lastly, ensure that Nanoc is at least version 4.3:
20
-
21
- gem 'nanoc', '~> 4.3'
22
-
23
- And then execute:
24
-
25
- $ bundle
26
-
27
- ## Usage
28
-
29
- Enter the Nanoc site directory for which you want to use guard-nanoc. Create a Guardfile using `guard init`:
30
-
31
- $ bundle exec guard init nanoc
32
-
33
- Then run:
34
-
35
- $ bundle exec nanoc live
36
-
37
- This will start a web server, like `nanoc view` would, and watch for changes
38
- to the site in the background, like `guard start` would. Whenever you change
39
- a file in the Nanoc site directory now, the site will be recompiled!
40
- Visit `http://localhost:3000` in browser to see it. (In some cases, the port
41
- number might not be `3000`; check what `nanoc live` prints to find out
42
- the actual port number.)
43
-
44
- After editing and saving a file, `nanoc live` will recompile the site, but it
45
- is necessary to reload the page in the browser in order to see the new content
46
- that is served by `nanoc live`.
3
+ This project is deprecated in favor of [Nanoc’s built-in live recompilation](https://nanoc.app/doc/sites/#live-recompilation).
data/guard-nanoc.gemspec CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './lib/guard/nanoc/version'
3
+ require_relative 'lib/guard/nanoc/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'guard-nanoc'
7
7
  s.version = Guard::GUARD_NANOC_VERSION
8
- s.homepage = 'https://nanoc.ws/'
8
+ s.homepage = 'https://nanoc.app/'
9
9
  s.summary = 'guard gem for Nanoc'
10
10
  s.description = 'Automatically rebuilds Nanoc sites'
11
11
  s.license = 'MIT'
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.author = 'Denis Defreyne'
14
14
  s.email = 'denis.defreyne@stoneship.org'
15
15
 
16
+ s.required_ruby_version = '>= 3.2'
17
+
16
18
  s.add_dependency 'guard', '~> 2.8'
17
19
  s.add_dependency 'guard-compat', '~> 1.0'
18
20
  s.add_dependency 'nanoc-cli', '~> 4.11', '>= 4.11.14'
@@ -20,4 +22,8 @@ Gem::Specification.new do |s|
20
22
 
21
23
  s.files = Dir['[A-Z]*'] + Dir['lib/**/*'] + ['guard-nanoc.gemspec']
22
24
  s.require_paths = ['lib']
25
+ s.metadata = {
26
+ 'rubygems_mfa_required' => 'true',
27
+ 'source_code_uri' => "https://github.com/nanoc/nanoc/tree/#{s.name}-v#{s.version}/#{s.name}",
28
+ }
23
29
  end
@@ -8,10 +8,10 @@ description <<~EOS
8
8
  two commands for details. The options are forwarded to `nanoc view` only.
9
9
  EOS
10
10
 
11
- required :H, :handler, 'specify the handler to use (webrick/mongrel/...)'
12
- required :o, :host, 'specify the host to listen on (default: 0.0.0.0)', default: '127.0.0.1'
13
- required :p, :port, 'specify the port to listen on (default: 3000)', transform: Nanoc::CLI::Transform::Port, default: 3000
14
- flag :L, :'live-reload', 'reload on changes'
11
+ option :H, :handler, 'specify the handler to use (webrick/puma/...)', argument: :required
12
+ option :o, :host, 'specify the host to listen on', default: '127.0.0.1', argument: :required
13
+ option :p, :port, 'specify the port to listen on', transform: Nanoc::CLI::Transform::Port, default: 3000, argument: :required
14
+ flag :L, :'live-reload', 'reload on changes'
15
15
 
16
16
  module Guard
17
17
  class Nanoc
@@ -33,13 +33,15 @@ module Guard
33
33
  end
34
34
 
35
35
  Thread.new do
36
+ break if ENV['__NANOC_DEV_LIVE_DISABLE_VIEW']
37
+
36
38
  # Crash the entire process if the viewer dies for some reason (e.g.
37
39
  # the port is already bound).
38
40
  Thread.current.abort_on_exception = true
39
- Nanoc::CLI::Commands::View.new(options, arguments, command).run
41
+ ::Nanoc::CLI::Commands::View.new(options, arguments, command).run
40
42
  end
41
43
 
42
- Guard.start(no_interactions: true)
44
+ ::Guard.start(no_interactions: true)
43
45
  end
44
46
  end
45
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Guard
4
- GUARD_NANOC_VERSION = '2.1.8'
4
+ GUARD_NANOC_VERSION = '2.1.10'
5
5
  end
data/lib/guard/nanoc.rb CHANGED
@@ -57,7 +57,7 @@ module Guard
57
57
 
58
58
  def recompile
59
59
  # Necessary, because forking and threading don’t work together.
60
- ::Nanoc::Core::NotificationCenter.force_reset
60
+ ::Nanoc::Core::NotificationCenter.reset
61
61
 
62
62
  Dir.chdir(@dir) do
63
63
  site = ::Nanoc::Core::SiteLoader.new.new_from_cwd
@@ -81,6 +81,6 @@ module Guard
81
81
  end
82
82
  end
83
83
 
84
- ::Nanoc::CLI.after_setup do
85
- ::Nanoc::CLI.add_command(Guard::Nanoc.live_cmd)
84
+ Nanoc::CLI.after_setup do
85
+ Nanoc::CLI.add_command(Guard::Nanoc.live_cmd)
86
86
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-nanoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-03-07 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: guard
@@ -94,11 +93,12 @@ files:
94
93
  - lib/guard/nanoc/live_command.rb
95
94
  - lib/guard/nanoc/templates/Guardfile
96
95
  - lib/guard/nanoc/version.rb
97
- homepage: https://nanoc.ws/
96
+ homepage: https://nanoc.app/
98
97
  licenses:
99
98
  - MIT
100
- metadata: {}
101
- post_install_message:
99
+ metadata:
100
+ rubygems_mfa_required: 'true'
101
+ source_code_uri: https://github.com/nanoc/nanoc/tree/guard-nanoc-v2.1.10/guard-nanoc
102
102
  rdoc_options: []
103
103
  require_paths:
104
104
  - lib
@@ -106,15 +106,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: '3.2'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.1.2
117
- signing_key:
116
+ rubygems_version: 3.7.2
118
117
  specification_version: 4
119
118
  summary: guard gem for Nanoc
120
119
  test_files: []