nanoc 4.12.12 → 4.12.13

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: 8d784425d3333d0b8354e8909ba82685f7897f116762f9afc2b06a8c57c7806b
4
- data.tar.gz: 82ed84b2f93cff85a340a8caf3cc0cd58d2990aaacf3e877308402284855075c
3
+ metadata.gz: c54cc9af24e7f4350afe25d5f8b758d1730185996281473ed0191773237370bf
4
+ data.tar.gz: 58c7f45196d412cd2f33ee6b08b7a81f654c01d62b9f6c97281f9b2e14666b4e
5
5
  SHA512:
6
- metadata.gz: ee3a85d5463c7aa2ba03f41ebd99a9ccb525fb60fefcd3c916f9b1902b4bacb83b5486a203cfbe5c33306b67eaa7dde3bee4b7a08e92dafdf936718a50bcbc24
7
- data.tar.gz: 5415a8bff2a825775f323cd2bce3bc0cc2f2bdc4be7137b8418596492a3a4df853ff0cb1cfcf38c3fe1ebd61986242c32ee6aa8a69052b8b8a025e417dad4f26
6
+ metadata.gz: 57071824176e0733290e8966ffd0b6d64f91d0f68d23f4781ccdcb05c27f1a27fe067f56ea29630a928c443b2aaa6e4eabcf84060a4df7afd8748212926d11c4
7
+ data.tar.gz: 07c696a63925bddcbed3461ea201fd82351b9481b697eba2f17f2a92fd42494d13f32ce309857bf3c295816a04990657fb98502adbfe5792b343bb6c3419563e
data/NEWS.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.12.13 (2022-11-30)
4
+
5
+ Fixes:
6
+
7
+ - Prevented an issue where items could have two leading slashes in their identifier when using the `filesystem` data source’s `extra_files` option (#1622)
8
+ - Fixed an issue which would make `nanoc compile --watch` or `nanoc live` crash if the layouts directory does not exist (#1625, #1626)
9
+ - Fixed the usage of the `show-rules` command (it takes no arguments) (#1628)
10
+ - Fixed an issue which could make Nanoc crash with `Stopwatch::AlreadyRunningError` (#1631, #1633)
11
+
3
12
  ## 4.12.12 (2022-11-15)
4
13
 
5
14
  Fixes:
@@ -111,9 +111,9 @@ class Nanoc::DataSources::Filesystem < Nanoc::DataSource
111
111
  when nil
112
112
  []
113
113
  when String
114
- ["#{dir_name}/#{extra_files}"]
114
+ ["#{dir_name}/#{extra_files.dup.delete_prefix('/')}"]
115
115
  when Array
116
- extra_files.map { |extra_file| "#{dir_name}/#{extra_file}" }
116
+ extra_files.map { |extra_file| "#{dir_name}/#{extra_file.dup.delete_prefix('/')}" }
117
117
  else
118
118
  raise(
119
119
  Nanoc::Core::TrivialError,
@@ -94,9 +94,11 @@ module Nanoc::DataSources
94
94
  require 'listen'
95
95
 
96
96
  Nanoc::Core::ChangesStream.new do |cl|
97
- if dir
97
+ full_dir = dir ? File.expand_path(dir) : nil
98
+
99
+ if full_dir && File.directory?(full_dir)
98
100
  listener =
99
- Listen.to(File.expand_path(dir)) do |_modifieds, _addeds, _deleteds|
101
+ Listen.to(full_dir) do |_modifieds, _addeds, _deleteds|
100
102
  cl.unknown
101
103
  end
102
104
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- usage 'show-rules [thing]'
3
+ usage 'show-rules'
4
4
  aliases :explain
5
5
  summary 'describe the rules for each item'
6
6
  description "
data/lib/nanoc/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.12.12'
5
+ VERSION = '4.12.13'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.12
4
+ version: 4.12.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -64,28 +64,28 @@ dependencies:
64
64
  requirements:
65
65
  - - '='
66
66
  - !ruby/object:Gem::Version
67
- version: 4.12.12
67
+ version: 4.12.13
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - '='
73
73
  - !ruby/object:Gem::Version
74
- version: 4.12.12
74
+ version: 4.12.13
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: nanoc-core
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 4.12.12
81
+ version: 4.12.13
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 4.12.12
88
+ version: 4.12.13
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: nanoc-deploying
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0'
252
252
  requirements: []
253
- rubygems_version: 3.3.25
253
+ rubygems_version: 3.4.0.dev
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: A static-site generator with a focus on flexibility.