nanoc 4.11.15 → 4.11.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
@@ -4,7 +4,7 @@ module Nanoc::Filters::ColorizeSyntax::Colorizers
4
4
  class Abstract
5
5
  extend DDPlugin::Plugin
6
6
 
7
- def process(_code, _language, params = {}) # rubocop:disable Lint/UnusedMethodArgument
7
+ def process(_code, _language, params = {})
8
8
  raise NotImplementedError
9
9
  end
10
10
 
@@ -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.15'
5
+ VERSION = '4.11.20'
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.15
4
+ version: 4.11.20
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-03-07 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.15
61
+ version: 4.11.20
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.15
68
+ version: 4.11.20
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.15
75
+ version: 4.11.20
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.15
82
+ version: 4.11.20
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.