nanoc 3.6.7 → 3.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CONTRIBUTING.md +9 -13
- data/Gemfile +5 -1
- data/Gemfile.lock +70 -45
- data/NEWS.md +15 -1
- data/README.md +12 -119
- data/doc/yardoc_handlers/identifier.rb +34 -0
- data/lib/nanoc/base/compilation/checksum_store.rb +2 -2
- data/lib/nanoc/base/compilation/compiler.rb +3 -3
- data/lib/nanoc/base/compilation/compiler_dsl.rb +20 -15
- data/lib/nanoc/base/compilation/dependency_tracker.rb +4 -4
- data/lib/nanoc/base/compilation/filter.rb +5 -5
- data/lib/nanoc/base/compilation/item_rep_proxy.rb +2 -2
- data/lib/nanoc/base/compilation/item_rep_recorder_proxy.rb +3 -3
- data/lib/nanoc/base/compilation/outdatedness_checker.rb +49 -46
- data/lib/nanoc/base/compilation/rule.rb +6 -4
- data/lib/nanoc/base/compilation/rule_context.rb +10 -4
- data/lib/nanoc/base/compilation/rule_memory_calculator.rb +8 -7
- data/lib/nanoc/base/compilation/rule_memory_store.rb +2 -2
- data/lib/nanoc/base/compilation/rules_collection.rb +2 -2
- data/lib/nanoc/base/core_ext/array.rb +2 -2
- data/lib/nanoc/base/core_ext/date.rb +4 -2
- data/lib/nanoc/base/core_ext/hash.rb +3 -3
- data/lib/nanoc/base/core_ext/pathname.rb +1 -1
- data/lib/nanoc/base/directed_graph.rb +6 -6
- data/lib/nanoc/base/errors.rb +1 -1
- data/lib/nanoc/base/memoization.rb +4 -4
- data/lib/nanoc/base/notification_center.rb +1 -1
- data/lib/nanoc/base/ordered_hash.rb +207 -179
- data/lib/nanoc/base/plugin_registry.rb +7 -7
- data/lib/nanoc/base/result_data/item_rep.rb +25 -26
- data/lib/nanoc/base/source_data/code_snippet.rb +2 -2
- data/lib/nanoc/base/source_data/configuration.rb +1 -1
- data/lib/nanoc/base/source_data/data_source.rb +2 -2
- data/lib/nanoc/base/source_data/item.rb +16 -15
- data/lib/nanoc/base/source_data/item_array.rb +4 -4
- data/lib/nanoc/base/source_data/layout.rb +5 -5
- data/lib/nanoc/base/source_data/site.rb +6 -6
- data/lib/nanoc/base/store.rb +8 -8
- data/lib/nanoc/cli/cleaning_stream.rb +11 -12
- data/lib/nanoc/cli/command_runner.rb +8 -8
- data/lib/nanoc/cli/commands/autocompile.rb +5 -4
- data/lib/nanoc/cli/commands/check.rb +12 -11
- data/lib/nanoc/cli/commands/compile.rb +50 -52
- data/lib/nanoc/cli/commands/create-item.rb +6 -6
- data/lib/nanoc/cli/commands/create-layout.rb +6 -6
- data/lib/nanoc/cli/commands/create-site.rb +10 -13
- data/lib/nanoc/cli/commands/deploy.rb +11 -11
- data/lib/nanoc/cli/commands/prune.rb +10 -10
- data/lib/nanoc/cli/commands/shell.rb +7 -7
- data/lib/nanoc/cli/commands/show-data.rb +22 -23
- data/lib/nanoc/cli/commands/show-plugins.rb +3 -3
- data/lib/nanoc/cli/commands/show-rules.rb +8 -8
- data/lib/nanoc/cli/commands/sync.rb +4 -2
- data/lib/nanoc/cli/commands/update.rb +4 -4
- data/lib/nanoc/cli/commands/validate-css.rb +3 -3
- data/lib/nanoc/cli/commands/validate-html.rb +3 -3
- data/lib/nanoc/cli/commands/validate-links.rb +3 -3
- data/lib/nanoc/cli/commands/view.rb +5 -3
- data/lib/nanoc/cli/commands/watch.rb +12 -12
- data/lib/nanoc/cli/error_handler.rb +58 -58
- data/lib/nanoc/cli/logger.rb +6 -6
- data/lib/nanoc/cli/stream_cleaners/abstract.rb +1 -1
- data/lib/nanoc/cli/stream_cleaners.rb +0 -1
- data/lib/nanoc/cli.rb +24 -22
- data/lib/nanoc/data_sources/deprecated/delicious.rb +1 -1
- data/lib/nanoc/data_sources/deprecated/last_fm.rb +16 -14
- data/lib/nanoc/data_sources/deprecated/twitter.rb +1 -1
- data/lib/nanoc/data_sources/filesystem.rb +22 -20
- data/lib/nanoc/data_sources/filesystem_unified.rb +4 -5
- data/lib/nanoc/data_sources/filesystem_verbose.rb +2 -3
- data/lib/nanoc/data_sources/static.rb +2 -2
- data/lib/nanoc/extra/auto_compiler.rb +3 -3
- data/lib/nanoc/extra/checking/check.rb +3 -3
- data/lib/nanoc/extra/checking/checks/css.rb +2 -2
- data/lib/nanoc/extra/checking/checks/external_links.rb +9 -9
- data/lib/nanoc/extra/checking/checks/html.rb +2 -3
- data/lib/nanoc/extra/checking/checks/internal_links.rb +6 -7
- data/lib/nanoc/extra/checking/checks/stale.rb +6 -6
- data/lib/nanoc/extra/checking/dsl.rb +1 -1
- data/lib/nanoc/extra/checking/runner.rb +19 -19
- data/lib/nanoc/extra/chick.rb +11 -9
- data/lib/nanoc/extra/core_ext/pathname.rb +1 -2
- data/lib/nanoc/extra/core_ext/time.rb +2 -2
- data/lib/nanoc/extra/core_ext.rb +0 -1
- data/lib/nanoc/extra/deployer.rb +2 -2
- data/lib/nanoc/extra/deployers/fog.rb +12 -12
- data/lib/nanoc/extra/deployers/rsync.rb +6 -6
- data/lib/nanoc/extra/file_proxy.rb +1 -1
- data/lib/nanoc/extra/filesystem_tools.rb +5 -5
- data/lib/nanoc/extra/link_collector.rb +4 -3
- data/lib/nanoc/extra/pruner.rb +5 -5
- data/lib/nanoc/extra/validators/links.rb +3 -3
- data/lib/nanoc/extra/vcs.rb +1 -1
- data/lib/nanoc/filters/asciidoc.rb +3 -3
- data/lib/nanoc/filters/bluecloth.rb +1 -1
- data/lib/nanoc/filters/coderay.rb +2 -2
- data/lib/nanoc/filters/coffeescript.rb +2 -0
- data/lib/nanoc/filters/colorize_syntax.rb +16 -16
- data/lib/nanoc/filters/erb.rb +5 -5
- data/lib/nanoc/filters/erubis.rb +1 -1
- data/lib/nanoc/filters/haml.rb +1 -1
- data/lib/nanoc/filters/handlebars.rb +2 -2
- data/lib/nanoc/filters/kramdown.rb +1 -1
- data/lib/nanoc/filters/less.rb +1 -1
- data/lib/nanoc/filters/markaby.rb +1 -1
- data/lib/nanoc/filters/maruku.rb +1 -1
- data/lib/nanoc/filters/mustache.rb +1 -1
- data/lib/nanoc/filters/pandoc.rb +1 -1
- data/lib/nanoc/filters/rainpress.rb +1 -1
- data/lib/nanoc/filters/rdiscount.rb +1 -1
- data/lib/nanoc/filters/rdoc.rb +1 -1
- data/lib/nanoc/filters/redcarpet.rb +2 -2
- data/lib/nanoc/filters/redcloth.rb +9 -9
- data/lib/nanoc/filters/relativize_paths.rb +7 -8
- data/lib/nanoc/filters/rubypants.rb +1 -1
- data/lib/nanoc/filters/sass/sass_filesystem_importer.rb +1 -1
- data/lib/nanoc/filters/sass.rb +1 -1
- data/lib/nanoc/filters/slim.rb +1 -1
- data/lib/nanoc/filters/typogruby.rb +1 -1
- data/lib/nanoc/filters/uglify_js.rb +1 -1
- data/lib/nanoc/filters/xsl.rb +9 -7
- data/lib/nanoc/filters/yui_compressor.rb +2 -0
- data/lib/nanoc/helpers/blogging.rb +6 -6
- data/lib/nanoc/helpers/breadcrumbs.rb +1 -1
- data/lib/nanoc/helpers/capturing.rb +2 -2
- data/lib/nanoc/helpers/filtering.rb +1 -1
- data/lib/nanoc/helpers/html_escape.rb +3 -3
- data/lib/nanoc/helpers/link_to.rb +6 -6
- data/lib/nanoc/helpers/rendering.rb +2 -2
- data/lib/nanoc/helpers/tagging.rb +2 -2
- data/lib/nanoc/helpers/text.rb +1 -1
- data/lib/nanoc/helpers/xml_sitemap.rb +2 -2
- data/lib/nanoc/version.rb +1 -1
- data/lib/nanoc.rb +3 -2
- data/nanoc.gemspec +2 -6
- data/tasks/rubocop.rake +5 -0
- data/test/base/test_compiler_dsl.rb +20 -1
- data/test/cli/commands/test_compile.rb +4 -3
- data/test/cli/test_error_handler.rb +32 -0
- data/test/filters/test_erb.rb +1 -1
- data/test/filters/test_less.rb +1 -1
- data/test/filters/test_xsl.rb +95 -8
- metadata +30 -84
@@ -14,6 +14,25 @@ class Nanoc::CompilerDSLTest < Nanoc::TestCase
|
|
14
14
|
# TODO implement
|
15
15
|
end
|
16
16
|
|
17
|
+
def test_preprocess_twice
|
18
|
+
rules_collection = Nanoc::RulesCollection.new(nil)
|
19
|
+
compiler_dsl = Nanoc::CompilerDSL.new(rules_collection, {})
|
20
|
+
|
21
|
+
# first time
|
22
|
+
io = capturing_stdio do
|
23
|
+
compiler_dsl.preprocess {}
|
24
|
+
end
|
25
|
+
assert_empty io[:stdout]
|
26
|
+
assert_empty io[:stderr]
|
27
|
+
|
28
|
+
# second time
|
29
|
+
io = capturing_stdio do
|
30
|
+
compiler_dsl.preprocess {}
|
31
|
+
end
|
32
|
+
assert_empty io[:stdout]
|
33
|
+
assert_match(/WARNING: A preprocess block is already defined./, io[:stderr])
|
34
|
+
end
|
35
|
+
|
17
36
|
def test_include_rules
|
18
37
|
# Create site
|
19
38
|
Nanoc::CLI.run %w( create_site with_bonus_rules )
|
@@ -44,7 +63,7 @@ class Nanoc::CompilerDSLTest < Nanoc::TestCase
|
|
44
63
|
File.open('Rules', 'w') do |io|
|
45
64
|
io.write <<EOS
|
46
65
|
passthrough "/robots/"
|
47
|
-
|
66
|
+
|
48
67
|
compile '*' do ; end
|
49
68
|
route '*' do ; item.identifier.chop + '-xyz' + item[:extension] ; end
|
50
69
|
EOS
|
@@ -145,18 +145,19 @@ class Nanoc::CLI::Commands::CompileTest < Nanoc::TestCase
|
|
145
145
|
item = Nanoc::Item.new('content', {}, '/')
|
146
146
|
rep = Nanoc::ItemRep.new(item, :default)
|
147
147
|
rep.raw_path = 'output/foo.txt'
|
148
|
+
rep.compiled = true
|
148
149
|
|
149
150
|
# Listen
|
150
151
|
listener = new_file_action_printer([ rep ])
|
151
152
|
listener.start
|
152
153
|
Nanoc::NotificationCenter.post(:compilation_started, rep)
|
153
|
-
Nanoc::NotificationCenter.post(:
|
154
|
+
Nanoc::NotificationCenter.post(:rep_written, rep, rep.raw_path, false, true)
|
154
155
|
listener.stop
|
155
156
|
|
156
157
|
# Check
|
157
158
|
assert_equal 1, listener.events.size
|
158
|
-
assert_equal :
|
159
|
-
assert_equal :
|
159
|
+
assert_equal :high, listener.events[0][:level]
|
160
|
+
assert_equal :update, listener.events[0][:action]
|
160
161
|
assert_equal 'output/foo.txt', listener.events[0][:path]
|
161
162
|
assert_in_delta 0.0, listener.events[0][:duration], 1.0
|
162
163
|
end
|
@@ -29,4 +29,36 @@ class Nanoc::CLI::ErrorHandlerTest < Nanoc::TestCase
|
|
29
29
|
assert_nil @handler.send(:resolution_for, error)
|
30
30
|
end
|
31
31
|
|
32
|
+
def test_write_stack_trace_verbose
|
33
|
+
error = new_error(20)
|
34
|
+
|
35
|
+
stream = StringIO.new
|
36
|
+
@handler.send(:write_stack_trace, stream, error, :verbose => false)
|
37
|
+
assert_match(/See full crash log for details./, stream.string)
|
38
|
+
|
39
|
+
stream = StringIO.new
|
40
|
+
@handler.send(:write_stack_trace, stream, error, :verbose => false)
|
41
|
+
assert_match(/See full crash log for details./, stream.string)
|
42
|
+
|
43
|
+
stream = StringIO.new
|
44
|
+
@handler.send(:write_stack_trace, stream, error, :verbose => true)
|
45
|
+
refute_match(/See full crash log for details./, stream.string)
|
46
|
+
end
|
47
|
+
|
48
|
+
def new_error(amount_factor)
|
49
|
+
backtrace_generator = lambda do |af|
|
50
|
+
if af == 0
|
51
|
+
raise "finally!"
|
52
|
+
else
|
53
|
+
backtrace_generator.call(af - 1)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
begin
|
58
|
+
backtrace_generator.call(amount_factor)
|
59
|
+
rescue => e
|
60
|
+
return e
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
32
64
|
end
|
data/test/filters/test_erb.rb
CHANGED
@@ -76,7 +76,7 @@ class Nanoc::Filters::ERBTest < Nanoc::TestCase
|
|
76
76
|
|
77
77
|
# With
|
78
78
|
assert_raises(SecurityError) do
|
79
|
-
res = filter.setup_and_run('<%= File.read("moo") %>', :safe_level =>
|
79
|
+
res = filter.setup_and_run('<%= File.read("moo") %>', :safe_level => 3)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
data/test/filters/test_less.rb
CHANGED
@@ -118,7 +118,7 @@ class Nanoc::Filters::LessTest < Nanoc::TestCase
|
|
118
118
|
|
119
119
|
# Run filter with compress option
|
120
120
|
result = filter.setup_and_run('.foo { bar: a; } .bar { foo: b; }', :compress => true)
|
121
|
-
assert_match(/^\.foo\{bar:a\}\n
|
121
|
+
assert_match(/^\.foo\{bar:a\}\n?\.bar\{foo:b\}/, result)
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
data/test/filters/test_xsl.rb
CHANGED
@@ -47,7 +47,7 @@ EOS
|
|
47
47
|
<xsl:template match="/">
|
48
48
|
<html>
|
49
49
|
<head>
|
50
|
-
<title><xsl:value-of select="
|
50
|
+
<title><xsl:value-of select="report/title"/></title>
|
51
51
|
</head>
|
52
52
|
<body>
|
53
53
|
<h1><xsl:value-of select="$foo"/></h1>
|
@@ -68,34 +68,121 @@ EOS
|
|
68
68
|
<?xml version="1.0" encoding="utf-8"?>
|
69
69
|
<html>
|
70
70
|
<head>
|
71
|
-
<title>
|
71
|
+
<title>My Report</title>
|
72
72
|
</head>
|
73
73
|
<body>
|
74
74
|
<h1>bar</h1>
|
75
75
|
</body>
|
76
76
|
</html>
|
77
|
+
EOS
|
78
|
+
|
79
|
+
SAMPLE_XSL_WITH_OMIT_XML_DECL = <<-EOS
|
80
|
+
<?xml version="1.0" encoding="utf-8"?>
|
81
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
82
|
+
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"
|
83
|
+
omit-xml-declaration="yes"/>
|
84
|
+
<xsl:template match="/">
|
85
|
+
<html>
|
86
|
+
<head>
|
87
|
+
<title><xsl:value-of select="report/title"/></title>
|
88
|
+
</head>
|
89
|
+
<body>
|
90
|
+
<h1><xsl:value-of select="report/title"/></h1>
|
91
|
+
</body>
|
92
|
+
</html>
|
93
|
+
</xsl:template>
|
94
|
+
</xsl:stylesheet>
|
95
|
+
EOS
|
96
|
+
|
97
|
+
SAMPLE_XML_IN_WITH_OMIT_XML_DECL = <<-EOS
|
98
|
+
<?xml version="1.0" encoding="utf-8"?>
|
99
|
+
<report>
|
100
|
+
<title>My Report</title>
|
101
|
+
</report>
|
102
|
+
EOS
|
103
|
+
|
104
|
+
SAMPLE_XML_OUT_WITH_OMIT_XML_DECL = <<-EOS
|
105
|
+
<html>
|
106
|
+
<head>
|
107
|
+
<title>My Report</title>
|
108
|
+
</head>
|
109
|
+
<body>
|
110
|
+
<h1>My Report</h1>
|
111
|
+
</body>
|
112
|
+
</html>
|
77
113
|
EOS
|
78
114
|
|
79
115
|
def test_filter_as_layout
|
80
116
|
if_have 'nokogiri' do
|
81
|
-
|
117
|
+
# Create our data objects
|
118
|
+
item = Nanoc::Item.new(SAMPLE_XML_IN,
|
119
|
+
{ },
|
120
|
+
'/content/')
|
121
|
+
layout = Nanoc::Layout.new(SAMPLE_XSL,
|
122
|
+
{ },
|
123
|
+
'/layout/')
|
82
124
|
|
83
|
-
|
84
|
-
|
125
|
+
# Create an instance of the filter
|
126
|
+
assigns = {
|
127
|
+
:item => item,
|
128
|
+
:layout => layout,
|
129
|
+
:content => item.raw_content
|
130
|
+
}
|
131
|
+
filter = ::Nanoc::Filters::XSL.new(assigns)
|
85
132
|
|
133
|
+
# Run the filter and validate the results
|
134
|
+
result = filter.setup_and_run(layout.raw_content)
|
86
135
|
assert_equal SAMPLE_XML_OUT, result
|
87
136
|
end
|
88
137
|
end
|
89
138
|
|
90
139
|
def test_filter_with_params
|
91
140
|
if_have 'nokogiri' do
|
92
|
-
|
141
|
+
# Create our data objects
|
142
|
+
item = Nanoc::Item.new(SAMPLE_XML_IN_WITH_PARAMS,
|
143
|
+
{ },
|
144
|
+
'/content/')
|
145
|
+
layout = Nanoc::Layout.new(SAMPLE_XSL_WITH_PARAMS,
|
146
|
+
{ },
|
147
|
+
'/layout/')
|
93
148
|
|
94
|
-
|
95
|
-
|
149
|
+
# Create an instance of the filter
|
150
|
+
assigns = {
|
151
|
+
:item => item,
|
152
|
+
:layout => layout,
|
153
|
+
:content => item.raw_content
|
154
|
+
}
|
155
|
+
filter = ::Nanoc::Filters::XSL.new(assigns)
|
96
156
|
|
157
|
+
# Run the filter and validate the results
|
158
|
+
result = filter.setup_and_run(layout.raw_content,
|
159
|
+
:foo => 'bar')
|
97
160
|
assert_equal SAMPLE_XML_OUT_WITH_PARAMS, result
|
98
161
|
end
|
99
162
|
end
|
100
163
|
|
164
|
+
def test_filter_with_omit_xml_decl
|
165
|
+
if_have 'nokogiri' do
|
166
|
+
# Create our data objects
|
167
|
+
item = Nanoc::Item.new(SAMPLE_XML_IN_WITH_OMIT_XML_DECL,
|
168
|
+
{ },
|
169
|
+
'/content/')
|
170
|
+
layout = Nanoc::Layout.new(SAMPLE_XSL_WITH_OMIT_XML_DECL,
|
171
|
+
{ },
|
172
|
+
'/layout/')
|
173
|
+
|
174
|
+
# Create an instance of the filter
|
175
|
+
assigns = {
|
176
|
+
:item => item,
|
177
|
+
:layout => layout,
|
178
|
+
:content => item.raw_content
|
179
|
+
}
|
180
|
+
filter = ::Nanoc::Filters::XSL.new(assigns)
|
181
|
+
|
182
|
+
# Run the filter and validate the results
|
183
|
+
result = filter.setup_and_run(layout.raw_content)
|
184
|
+
assert_equal SAMPLE_XML_OUT_WITH_OMIT_XML_DECL, result
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
101
188
|
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: 3.6.
|
4
|
+
version: 3.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|
@@ -25,75 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.5'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: mocha
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ! '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ! '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rdiscount
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ! '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ! '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: yard
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ! '>='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ! '>='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
40
|
+
version: '1.5'
|
97
41
|
description: nanoc is a simple but very flexible static site generator written in
|
98
42
|
Ruby. It operates on local files, and therefore does not run on the server. nanoc
|
99
43
|
“compiles” the local source files into HTML (usually), by evaluating eRuby, Markdown,
|
@@ -108,16 +52,19 @@ extra_rdoc_files:
|
|
108
52
|
- README.md
|
109
53
|
- NEWS.md
|
110
54
|
files:
|
111
|
-
- ChangeLog
|
112
55
|
- CONTRIBUTING.md
|
56
|
+
- ChangeLog
|
113
57
|
- Gemfile
|
114
58
|
- Gemfile.lock
|
115
59
|
- LICENSE
|
116
60
|
- NEWS.md
|
117
|
-
- Rakefile
|
118
61
|
- README.md
|
119
|
-
-
|
62
|
+
- Rakefile
|
120
63
|
- bin/nanoc
|
64
|
+
- doc/yardoc_handlers/identifier.rb
|
65
|
+
- doc/yardoc_templates/default/layout/html/footer.erb
|
66
|
+
- lib/nanoc.rb
|
67
|
+
- lib/nanoc/base.rb
|
121
68
|
- lib/nanoc/base/compilation/checksum_store.rb
|
122
69
|
- lib/nanoc/base/compilation/compiled_content_cache.rb
|
123
70
|
- lib/nanoc/base/compilation/compiler.rb
|
@@ -134,12 +81,12 @@ files:
|
|
134
81
|
- lib/nanoc/base/compilation/rule_memory_store.rb
|
135
82
|
- lib/nanoc/base/compilation/rules_collection.rb
|
136
83
|
- lib/nanoc/base/context.rb
|
84
|
+
- lib/nanoc/base/core_ext.rb
|
137
85
|
- lib/nanoc/base/core_ext/array.rb
|
138
86
|
- lib/nanoc/base/core_ext/date.rb
|
139
87
|
- lib/nanoc/base/core_ext/hash.rb
|
140
88
|
- lib/nanoc/base/core_ext/pathname.rb
|
141
89
|
- lib/nanoc/base/core_ext/string.rb
|
142
|
-
- lib/nanoc/base/core_ext.rb
|
143
90
|
- lib/nanoc/base/directed_graph.rb
|
144
91
|
- lib/nanoc/base/errors.rb
|
145
92
|
- lib/nanoc/base/memoization.rb
|
@@ -155,7 +102,7 @@ files:
|
|
155
102
|
- lib/nanoc/base/source_data/layout.rb
|
156
103
|
- lib/nanoc/base/source_data/site.rb
|
157
104
|
- lib/nanoc/base/store.rb
|
158
|
-
- lib/nanoc/
|
105
|
+
- lib/nanoc/cli.rb
|
159
106
|
- lib/nanoc/cli/ansi_string_colorizer.rb
|
160
107
|
- lib/nanoc/cli/cleaning_stream.rb
|
161
108
|
- lib/nanoc/cli/command_runner.rb
|
@@ -181,11 +128,11 @@ files:
|
|
181
128
|
- lib/nanoc/cli/commands/watch.rb
|
182
129
|
- lib/nanoc/cli/error_handler.rb
|
183
130
|
- lib/nanoc/cli/logger.rb
|
131
|
+
- lib/nanoc/cli/stream_cleaners.rb
|
184
132
|
- lib/nanoc/cli/stream_cleaners/abstract.rb
|
185
133
|
- lib/nanoc/cli/stream_cleaners/ansi_colors.rb
|
186
134
|
- lib/nanoc/cli/stream_cleaners/utf8.rb
|
187
|
-
- lib/nanoc/
|
188
|
-
- lib/nanoc/cli.rb
|
135
|
+
- lib/nanoc/data_sources.rb
|
189
136
|
- lib/nanoc/data_sources/deprecated/delicious.rb
|
190
137
|
- lib/nanoc/data_sources/deprecated/last_fm.rb
|
191
138
|
- lib/nanoc/data_sources/deprecated/twitter.rb
|
@@ -193,43 +140,43 @@ files:
|
|
193
140
|
- lib/nanoc/data_sources/filesystem_unified.rb
|
194
141
|
- lib/nanoc/data_sources/filesystem_verbose.rb
|
195
142
|
- lib/nanoc/data_sources/static.rb
|
196
|
-
- lib/nanoc/
|
143
|
+
- lib/nanoc/extra.rb
|
197
144
|
- lib/nanoc/extra/auto_compiler.rb
|
145
|
+
- lib/nanoc/extra/checking.rb
|
198
146
|
- lib/nanoc/extra/checking/check.rb
|
147
|
+
- lib/nanoc/extra/checking/checks.rb
|
199
148
|
- lib/nanoc/extra/checking/checks/css.rb
|
200
149
|
- lib/nanoc/extra/checking/checks/external_links.rb
|
201
150
|
- lib/nanoc/extra/checking/checks/html.rb
|
202
151
|
- lib/nanoc/extra/checking/checks/internal_links.rb
|
203
152
|
- lib/nanoc/extra/checking/checks/stale.rb
|
204
|
-
- lib/nanoc/extra/checking/checks.rb
|
205
153
|
- lib/nanoc/extra/checking/dsl.rb
|
206
154
|
- lib/nanoc/extra/checking/issue.rb
|
207
155
|
- lib/nanoc/extra/checking/runner.rb
|
208
|
-
- lib/nanoc/extra/checking.rb
|
209
156
|
- lib/nanoc/extra/chick.rb
|
157
|
+
- lib/nanoc/extra/core_ext.rb
|
210
158
|
- lib/nanoc/extra/core_ext/enumerable.rb
|
211
159
|
- lib/nanoc/extra/core_ext/pathname.rb
|
212
160
|
- lib/nanoc/extra/core_ext/time.rb
|
213
|
-
- lib/nanoc/extra/core_ext.rb
|
214
161
|
- lib/nanoc/extra/deployer.rb
|
162
|
+
- lib/nanoc/extra/deployers.rb
|
215
163
|
- lib/nanoc/extra/deployers/fog.rb
|
216
164
|
- lib/nanoc/extra/deployers/rsync.rb
|
217
|
-
- lib/nanoc/extra/deployers.rb
|
218
165
|
- lib/nanoc/extra/file_proxy.rb
|
219
166
|
- lib/nanoc/extra/filesystem_tools.rb
|
220
167
|
- lib/nanoc/extra/link_collector.rb
|
221
168
|
- lib/nanoc/extra/pruner.rb
|
169
|
+
- lib/nanoc/extra/validators.rb
|
222
170
|
- lib/nanoc/extra/validators/links.rb
|
223
171
|
- lib/nanoc/extra/validators/w3c.rb
|
224
|
-
- lib/nanoc/extra/validators.rb
|
225
172
|
- lib/nanoc/extra/vcs.rb
|
173
|
+
- lib/nanoc/extra/vcses.rb
|
226
174
|
- lib/nanoc/extra/vcses/bazaar.rb
|
227
175
|
- lib/nanoc/extra/vcses/dummy.rb
|
228
176
|
- lib/nanoc/extra/vcses/git.rb
|
229
177
|
- lib/nanoc/extra/vcses/mercurial.rb
|
230
178
|
- lib/nanoc/extra/vcses/subversion.rb
|
231
|
-
- lib/nanoc/
|
232
|
-
- lib/nanoc/extra.rb
|
179
|
+
- lib/nanoc/filters.rb
|
233
180
|
- lib/nanoc/filters/asciidoc.rb
|
234
181
|
- lib/nanoc/filters/bluecloth.rb
|
235
182
|
- lib/nanoc/filters/coderay.rb
|
@@ -252,14 +199,14 @@ files:
|
|
252
199
|
- lib/nanoc/filters/redcloth.rb
|
253
200
|
- lib/nanoc/filters/relativize_paths.rb
|
254
201
|
- lib/nanoc/filters/rubypants.rb
|
255
|
-
- lib/nanoc/filters/sass/sass_filesystem_importer.rb
|
256
202
|
- lib/nanoc/filters/sass.rb
|
203
|
+
- lib/nanoc/filters/sass/sass_filesystem_importer.rb
|
257
204
|
- lib/nanoc/filters/slim.rb
|
258
205
|
- lib/nanoc/filters/typogruby.rb
|
259
206
|
- lib/nanoc/filters/uglify_js.rb
|
260
207
|
- lib/nanoc/filters/xsl.rb
|
261
208
|
- lib/nanoc/filters/yui_compressor.rb
|
262
|
-
- lib/nanoc/
|
209
|
+
- lib/nanoc/helpers.rb
|
263
210
|
- lib/nanoc/helpers/blogging.rb
|
264
211
|
- lib/nanoc/helpers/breadcrumbs.rb
|
265
212
|
- lib/nanoc/helpers/capturing.rb
|
@@ -270,18 +217,18 @@ files:
|
|
270
217
|
- lib/nanoc/helpers/tagging.rb
|
271
218
|
- lib/nanoc/helpers/text.rb
|
272
219
|
- lib/nanoc/helpers/xml_sitemap.rb
|
273
|
-
- lib/nanoc/
|
220
|
+
- lib/nanoc/tasks.rb
|
274
221
|
- lib/nanoc/tasks/clean.rake
|
275
222
|
- lib/nanoc/tasks/clean.rb
|
276
223
|
- lib/nanoc/tasks/deploy/rsync.rake
|
277
224
|
- lib/nanoc/tasks/validate.rake
|
278
|
-
- lib/nanoc/tasks.rb
|
279
225
|
- lib/nanoc/version.rb
|
280
|
-
- lib/
|
226
|
+
- lib/nanoc3.rb
|
281
227
|
- lib/nanoc3/cli.rb
|
282
228
|
- lib/nanoc3/tasks.rb
|
283
|
-
-
|
229
|
+
- nanoc.gemspec
|
284
230
|
- tasks/doc.rake
|
231
|
+
- tasks/rubocop.rake
|
285
232
|
- tasks/test.rake
|
286
233
|
- test/base/core_ext/array_spec.rb
|
287
234
|
- test/base/core_ext/date_spec.rb
|
@@ -390,7 +337,6 @@ files:
|
|
390
337
|
- test/helpers/test_xml_sitemap.rb
|
391
338
|
- test/tasks/test_clean.rb
|
392
339
|
- test/test_gem.rb
|
393
|
-
- nanoc.gemspec
|
394
340
|
homepage: http://nanoc.ws/
|
395
341
|
licenses:
|
396
342
|
- MIT
|
@@ -413,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
413
359
|
version: '0'
|
414
360
|
requirements: []
|
415
361
|
rubyforge_project:
|
416
|
-
rubygems_version: 2.
|
362
|
+
rubygems_version: 2.2.2
|
417
363
|
signing_key:
|
418
364
|
specification_version: 4
|
419
365
|
summary: a web publishing system written in Ruby for building small to medium-sized
|