nanoc 4.11.16 → 4.11.21

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: 618b49ed618ca603097654f7a624bda64a239303bc708d702ae4e5870ccf5e33
4
- data.tar.gz: 39c04516afa7d5ba5ad078e62a4522888e03857faf0e8b0edc88d3e4f835035a
3
+ metadata.gz: 929e8bcc6da40902741c981887eaea68f71d183e8d2d14fe4ab35b3eb00d2bf9
4
+ data.tar.gz: 9a2834a886ae2c37c0cf79c334d27e293ae47f234a7e387bcea7a96a5c171e61
5
5
  SHA512:
6
- metadata.gz: c8e1a1ecdf6268f762a7a1893ab6cf623370caf14dba7d4ceacc737176b2341e3a446968bbc3cc649aeaaf7042153f67eb00dbc1df232f5ecc3eb44df0189877
7
- data.tar.gz: a00995d7994ace4908bffbc37f0da119d742c1ca1cc81133b055be52856bd5c0b1a4e68fbed46bc5f1a4f2e5f215b46ad1365a600fb8f5e7803f0c4ac531e266
6
+ metadata.gz: 1bd48c74e3a9af02ec5a7efb9d737463aa60e0d64599f80684588c37ec630a5e6bc955ceebdf143a5637e1603258e3140e053b93f75427acf031514bc6f4f377
7
+ data.tar.gz: 8b4e231ebb7524fcdbb5e6e56f23aaf41d6ac4360eddb3796b0b74525096dc82cb3cb1436ab61c2c9e076f3c13010b402b2f92bcc80e1391ec05cedaf3b66201
data/NEWS.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.11.21 (2020-12-18)
4
+
5
+ Fixes:
6
+
7
+ - Made clonefile usage optional
8
+
9
+ You can add `clonefile` to your Gemfile to let Nanoc make use of your filesystem’s copy-on-write functionality (if available), which is not only faster but also more space-efficient. In the previous release, 4.11.20, clonefile was mandatory, even though it won’t properly compile on older operating systems.
10
+
11
+ ## 4.11.20 (2020-12-18)
12
+
13
+ Enhancements:
14
+
15
+ - Made Nanoc use copy-on-write when available (preferred over hardlinking/copying) (#1509, #1511) [Daniel Aleksandersen]
16
+
17
+ ## 4.11.19 (2020-10-16)
18
+
19
+ Fixes:
20
+
21
+ - Fixed an issue which could cause compiled pages to contain the content of another page (#1501, #1510)
22
+
23
+ ## 4.11.18 (2020-06-17)
24
+
25
+ Fixes:
26
+
27
+ - Fixed a `Encoding::CompatibilityError` that would be thrown e.g. when using the `contracts` library (#1502, #1505) [Ethan Crawford]
28
+ - Fixed an issue which could cause Nanoc not to compile all items on Ruby 2.7 (#1501, #1507)
29
+
30
+ ## 4.11.17 (2020-06-12)
31
+
32
+ Fixes:
33
+
34
+ - Fixed issue which could cause Nanoc to throw a timeout exception (#1503)
35
+
3
36
  ## 4.11.16 (2020-04-26)
4
37
 
5
38
  Fixes:
@@ -362,9 +362,9 @@ module Nanoc::DataSources
362
362
 
363
363
  regex =
364
364
  if /(^|\/)index(\.[^\/]+)?$/.match?(filename)
365
- allow_periods_in_identifiers? ? /\/?(index)?(\.[^\/\.]+)?$/ : /\/?index(\.[^\/]+)?$/
365
+ allow_periods_in_identifiers? ? /\/?(index)?(\.[^\/.]+)?$/ : /\/?index(\.[^\/]+)?$/
366
366
  else
367
- allow_periods_in_identifiers? ? /\.[^\/\.]+$/ : /\.[^\/]+$/
367
+ allow_periods_in_identifiers? ? /\.[^\/.]+$/ : /\.[^\/]+$/
368
368
  end
369
369
  Nanoc::Core::Identifier.new(filename.sub(regex, ''), type: :legacy)
370
370
  end
@@ -390,7 +390,7 @@ module Nanoc::DataSources
390
390
  # @return [Regex]
391
391
  def extension_regex
392
392
  if allow_periods_in_identifiers?
393
- /(\.[^\/\.]+$)/
393
+ /(\.[^\/.]+$)/
394
394
  else
395
395
  /(\.[^\/]+$)/
396
396
  end
@@ -50,7 +50,7 @@ module ::Nanoc::Extra
50
50
  def external_href?(href)
51
51
  return false if internal_href?(href)
52
52
 
53
- href =~ %r{^(\/\/|[a-z\-]+:)}
53
+ href =~ %r{^(//|[a-z\-]+:)}
54
54
  end
55
55
 
56
56
  def internal_href?(href)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ::Sass::Script::Functions
4
- def nanoc(string, params)
4
+ def nanoc(string, params = {})
5
5
  assert_type string, :String
6
6
  assert_type params, :Hash
7
7
  result = options[:importer].filter.instance_eval(string.value)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.11.16'
5
+ VERSION = '4.11.21'
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.11.16
4
+ version: 4.11.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-26 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 4.11.16
61
+ version: 4.11.21
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 4.11.16
68
+ version: 4.11.21
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nanoc-core
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 4.11.16
75
+ version: 4.11.21
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 4.11.16
82
+ version: 4.11.21
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: nanoc-deploying
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubygems_version: 3.1.2
246
+ rubygems_version: 3.2.2
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: A static-site generator with a focus on flexibility.