nanoc-core 4.12.18 → 4.12.20

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: feba3686286baa1b227829a6cd05785969bcc62049263e96bfcc50486c1d0d16
4
- data.tar.gz: 17bffd3f7fb1b07d1705be8d9e034525612dc086d3d05d459e3b05d6ac61d49e
3
+ metadata.gz: 0bc06b86a25f8666e95d7f4112806c9c9b1ae652071fd89e084544c2f8016665
4
+ data.tar.gz: a85710c5f160f0fa75237ed1ab805f58fde9f3c0f3efbe4b62e7a170e9d18999
5
5
  SHA512:
6
- metadata.gz: e7c0887edf8c734cc0aff3328748162799c04604fea18262fdb91596702c1864f107d5a514dd347827ac7a1035d077e09ccb754d307c6be246304b67a75dcf51
7
- data.tar.gz: d0b05bcd9e6697cbe8bf268ffb50af9cdecd35e4ab83fc079a6dc4e08a03681a9461a7fdf268f5ac2c92d55db4fd3188c91581f6162db17f86b05662d198327a
6
+ metadata.gz: 19b6e09d8ea2115fb38e3493ee45ed9438155d8801be0c72ca501f9bc8e5ad21b56269bf11d2c005a8c5a28ed176b7a483ef4df250359f201adbd8e8f36808b4
7
+ data.tar.gz: 33b554e3eb1312e067925ab295bc020f41f097ebb090cea94e111609dbe66018d0450caf0e54e1f5d4e21581c7feafa0ef99d2d6e4de972789c2461effcfbcb0
@@ -4,8 +4,6 @@ module Nanoc
4
4
  module Core
5
5
  # @api private
6
6
  class ConfigLoader
7
- PERMITTED_YAML_CLASSES = [Symbol, Date, Time].freeze
8
-
9
7
  class NoConfigFileFoundError < ::Nanoc::Core::Error
10
8
  def initialize
11
9
  super('No configuration file found')
@@ -56,7 +54,7 @@ module Nanoc
56
54
  end
57
55
 
58
56
  def load_file(filename)
59
- YAML.safe_load_file(filename, permitted_classes: PERMITTED_YAML_CLASSES)
57
+ YamlLoader.load_file(filename)
60
58
  end
61
59
 
62
60
  # @api private
@@ -21,7 +21,7 @@ module Nanoc
21
21
  # that lacks some options, the default value will be taken from
22
22
  # `DEFAULT_CONFIG`.
23
23
  DEFAULT_CONFIG = {
24
- text_extensions: %w[adoc asciidoc atom css erb haml htm html js less markdown md php rb sass scss tex txt xhtml xml coffee hb handlebars mustache ms slim rdoc].sort,
24
+ text_extensions: %w[adoc asciidoc atom css erb haml htm html js less markdown md org php rb sass scss tex txt xhtml xml coffee hb handlebars mustache ms slim rdoc].sort,
25
25
  lib_dirs: %w[lib],
26
26
  commands_dirs: %w[commands],
27
27
  output_dir: 'output',
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module Core
5
- VERSION = '4.12.18'
5
+ VERSION = '4.12.20'
6
6
  end
7
7
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nanoc
4
+ module Core
5
+ # @api private
6
+ module YamlLoader
7
+ OPTIONS = {
8
+ permitted_classes: [Symbol, Date, Time].freeze,
9
+ aliases: true,
10
+ }.freeze
11
+
12
+ private_constant :OPTIONS
13
+
14
+ def self.load(yaml_string)
15
+ YAML.safe_load(yaml_string, **OPTIONS)
16
+ end
17
+
18
+ def self.load_file(filename)
19
+ YAML.safe_load_file(filename, **OPTIONS)
20
+ end
21
+ end
22
+ end
23
+ end
data/lib/nanoc/core.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Ruby stdlib
4
+ require 'base64'
4
5
  require 'fiber'
5
6
  require 'find'
6
7
  require 'pstore'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.18
4
+ version: 4.12.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: 2023-10-15 00:00:00.000000000 Z
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: base64
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: concurrent-ruby
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +112,22 @@ dependencies:
98
112
  name: psych
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '4.0'
118
+ - - "<"
119
+ - !ruby/object:Gem::Version
120
+ version: '6.0'
104
121
  type: :runtime
105
122
  prerelease: false
106
123
  version_requirements: !ruby/object:Gem::Requirement
107
124
  requirements:
108
- - - "~>"
125
+ - - ">="
109
126
  - !ruby/object:Gem::Version
110
127
  version: '4.0'
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '6.0'
111
131
  - !ruby/object:Gem::Dependency
112
132
  name: slow_enumerator_tools
113
133
  requirement: !ruby/object:Gem::Requirement
@@ -296,11 +316,13 @@ files:
296
316
  - lib/nanoc/core/view_context_for_compilation.rb
297
317
  - lib/nanoc/core/view_context_for_pre_compilation.rb
298
318
  - lib/nanoc/core/view_context_for_shell.rb
299
- homepage: https://nanoc.ws/
319
+ - lib/nanoc/core/yaml_loader.rb
320
+ homepage: https://nanoc.app/
300
321
  licenses:
301
322
  - MIT
302
323
  metadata:
303
324
  rubygems_mfa_required: 'true'
325
+ source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-core-v4.12.20/nanoc-core
304
326
  post_install_message:
305
327
  rdoc_options: []
306
328
  require_paths:
@@ -316,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
338
  - !ruby/object:Gem::Version
317
339
  version: '0'
318
340
  requirements: []
319
- rubygems_version: 3.4.20
341
+ rubygems_version: 3.5.3
320
342
  signing_key:
321
343
  specification_version: 4
322
344
  summary: Core of Nanoc