nanoc 4.7.14 → 4.8.0
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 +4 -4
- data/Gemfile +1 -0
- data/NEWS.md +6 -0
- data/lib/nanoc/base/feature.rb +0 -2
- data/lib/nanoc/cli/commands/compile.rb +0 -3
- data/lib/nanoc/filters.rb +1 -0
- data/lib/nanoc/filters/asciidoctor.rb +13 -0
- data/lib/nanoc/version.rb +1 -1
- data/spec/nanoc/filters/asciidoctor_spec.rb +12 -0
- metadata +4 -3
- data/lib/nanoc/cli/commands/compile_listeners/stack_prof_profiler.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab3b0e2a49c31a0e5209b914287d56489eb2e119
|
4
|
+
data.tar.gz: 63ed26c7176937deef06fc01a2c7a831983b96ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7294e06953f7be8c6331578429f229b3ff6ca06ba1ac9339de20eb77788f60f45dc5310ee9e212f2d0d375171cbd9b7ad86950d5f57bdbd4c4b84a2fc1ffd569
|
7
|
+
data.tar.gz: 7dd6820592b64f3e1a84fb655d2e6682d094752c80ac9133bb59aea639379a930d1a72388b9c4038fd414d90fed44058ed1d59f2b61a60bf47304620aa213405
|
data/Gemfile
CHANGED
data/NEWS.md
CHANGED
data/lib/nanoc/base/feature.rb
CHANGED
@@ -5,14 +5,12 @@ summary 'compile items of this site'
|
|
5
5
|
description <<~EOS
|
6
6
|
Compile all items of the current site.
|
7
7
|
EOS
|
8
|
-
flag nil, :profile, 'profile compilation' if Nanoc::Feature.enabled?(Nanoc::Feature::PROFILER)
|
9
8
|
flag nil, :diff, 'generate diff'
|
10
9
|
|
11
10
|
require_relative 'compile_listeners/abstract'
|
12
11
|
require_relative 'compile_listeners/debug_printer'
|
13
12
|
require_relative 'compile_listeners/diff_generator'
|
14
13
|
require_relative 'compile_listeners/file_action_printer'
|
15
|
-
require_relative 'compile_listeners/stack_prof_profiler'
|
16
14
|
require_relative 'compile_listeners/timing_recorder'
|
17
15
|
|
18
16
|
module Nanoc::CLI::Commands
|
@@ -43,7 +41,6 @@ module Nanoc::CLI::Commands
|
|
43
41
|
|
44
42
|
def default_listener_classes
|
45
43
|
[
|
46
|
-
Nanoc::CLI::Commands::CompileListeners::StackProfProfiler,
|
47
44
|
Nanoc::CLI::Commands::CompileListeners::DiffGenerator,
|
48
45
|
Nanoc::CLI::Commands::CompileListeners::DebugPrinter,
|
49
46
|
Nanoc::CLI::Commands::CompileListeners::TimingRecorder,
|
data/lib/nanoc/filters.rb
CHANGED
data/lib/nanoc/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe Nanoc::Filters::Asciidoctor do
|
4
|
+
subject { filter.setup_and_run(input, params) }
|
5
|
+
|
6
|
+
let(:filter) { described_class.new }
|
7
|
+
|
8
|
+
let(:input) { '== Blah blah' }
|
9
|
+
let(:params) { {} }
|
10
|
+
|
11
|
+
it { is_expected.to match(%r{<h2 id="_blah_blah">Blah blah</h2>}) }
|
12
|
+
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.
|
4
|
+
version: 4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|
@@ -281,7 +281,6 @@ files:
|
|
281
281
|
- lib/nanoc/cli/commands/compile_listeners/debug_printer.rb
|
282
282
|
- lib/nanoc/cli/commands/compile_listeners/diff_generator.rb
|
283
283
|
- lib/nanoc/cli/commands/compile_listeners/file_action_printer.rb
|
284
|
-
- lib/nanoc/cli/commands/compile_listeners/stack_prof_profiler.rb
|
285
284
|
- lib/nanoc/cli/commands/compile_listeners/timing_recorder.rb
|
286
285
|
- lib/nanoc/cli/commands/create-site.rb
|
287
286
|
- lib/nanoc/cli/commands/deploy.rb
|
@@ -318,6 +317,7 @@ files:
|
|
318
317
|
- lib/nanoc/extra/piper.rb
|
319
318
|
- lib/nanoc/filters.rb
|
320
319
|
- lib/nanoc/filters/asciidoc.rb
|
320
|
+
- lib/nanoc/filters/asciidoctor.rb
|
321
321
|
- lib/nanoc/filters/bluecloth.rb
|
322
322
|
- lib/nanoc/filters/coffeescript.rb
|
323
323
|
- lib/nanoc/filters/colorize_syntax.rb
|
@@ -468,6 +468,7 @@ files:
|
|
468
468
|
- spec/nanoc/deploying/fog_spec.rb
|
469
469
|
- spec/nanoc/deploying/git_spec.rb
|
470
470
|
- spec/nanoc/extra/parallel_collection_spec.rb
|
471
|
+
- spec/nanoc/filters/asciidoctor_spec.rb
|
471
472
|
- spec/nanoc/filters/colorize_syntax/rouge_spec.rb
|
472
473
|
- spec/nanoc/filters/less_spec.rb
|
473
474
|
- spec/nanoc/helpers/blogging_spec.rb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Nanoc::CLI::Commands::CompileListeners
|
4
|
-
class StackProfProfiler < Abstract
|
5
|
-
PROFILE_FILE = 'tmp/stackprof_profile'
|
6
|
-
|
7
|
-
# @see Listener#enable_for?
|
8
|
-
def self.enable_for?(command_runner)
|
9
|
-
command_runner.options.fetch(:profile, false)
|
10
|
-
end
|
11
|
-
|
12
|
-
# @see Listener#start
|
13
|
-
def start
|
14
|
-
require 'stackprof'
|
15
|
-
StackProf.start(mode: :cpu)
|
16
|
-
end
|
17
|
-
|
18
|
-
# @see Listener#stop
|
19
|
-
def stop
|
20
|
-
StackProf.stop
|
21
|
-
StackProf.results(PROFILE_FILE)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|