nanoc 3.8.0 → 4.0.0a1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +322 -0
- data/NEWS.md +6 -0
- data/bin/nanoc +0 -18
- data/lib/nanoc.rb +5 -3
- data/lib/nanoc/base.rb +24 -6
- data/lib/nanoc/base/checksummer.rb +6 -4
- data/lib/nanoc/base/compilation/checksum_store.rb +4 -4
- data/lib/nanoc/base/compilation/compiled_content_cache.rb +5 -5
- data/lib/nanoc/base/compilation/compiler.rb +60 -65
- data/lib/nanoc/base/compilation/compiler_dsl.rb +11 -9
- data/lib/nanoc/base/compilation/dependency_tracker.rb +24 -38
- data/lib/nanoc/base/compilation/filter.rb +22 -7
- data/lib/nanoc/base/compilation/item_rep_proxy.rb +14 -12
- data/lib/nanoc/base/compilation/item_rep_recorder_proxy.rb +8 -8
- data/lib/nanoc/base/compilation/outdatedness_checker.rb +32 -32
- data/lib/nanoc/base/compilation/outdatedness_reasons.rb +3 -1
- data/lib/nanoc/base/compilation/rule.rb +9 -7
- data/lib/nanoc/base/compilation/rule_context.rb +15 -15
- data/lib/nanoc/base/compilation/rule_memory_calculator.rb +3 -3
- data/lib/nanoc/base/compilation/rule_memory_store.rb +7 -7
- data/lib/nanoc/base/compilation/rules_collection.rb +28 -30
- data/lib/nanoc/base/context.rb +2 -2
- data/lib/nanoc/base/core_ext/array.rb +17 -25
- data/lib/nanoc/base/core_ext/hash.rb +17 -25
- data/lib/nanoc/base/core_ext/pathname.rb +4 -2
- data/lib/nanoc/base/core_ext/string.rb +5 -3
- data/lib/nanoc/base/directed_graph.rb +4 -9
- data/lib/nanoc/base/error.rb +7 -0
- data/lib/nanoc/base/errors.rb +16 -23
- data/lib/nanoc/base/memoization.rb +4 -2
- data/lib/nanoc/base/notification_center.rb +3 -1
- data/lib/nanoc/base/plugin_registry.rb +14 -21
- data/lib/nanoc/base/result_data/item_rep.rb +43 -88
- data/lib/nanoc/base/source_data/code_snippet.rb +6 -4
- data/lib/nanoc/base/source_data/configuration.rb +3 -1
- data/lib/nanoc/base/source_data/data_source.rb +12 -94
- data/lib/nanoc/base/source_data/identifier.rb +50 -0
- data/lib/nanoc/base/source_data/item.rb +24 -67
- data/lib/nanoc/base/source_data/item_array.rb +6 -4
- data/lib/nanoc/base/source_data/layout.rb +17 -28
- data/lib/nanoc/base/source_data/site.rb +33 -44
- data/lib/nanoc/base/store.rb +3 -5
- data/lib/nanoc/base/temp_filename_factory.rb +3 -2
- data/lib/nanoc/base/views/config.rb +19 -0
- data/lib/nanoc/base/views/item.rb +77 -0
- data/lib/nanoc/base/views/item_collection.rb +43 -0
- data/lib/nanoc/base/views/item_rep.rb +125 -0
- data/lib/nanoc/base/views/layout.rb +42 -0
- data/lib/nanoc/base/views/layout_collection.rb +26 -0
- data/lib/nanoc/base/views/mutable_config.rb +9 -0
- data/lib/nanoc/base/views/mutable_item.rb +9 -0
- data/lib/nanoc/base/views/mutable_item_collection.rb +18 -0
- data/lib/nanoc/base/views/mutable_layout.rb +9 -0
- data/lib/nanoc/base/views/mutable_layout_collection.rb +18 -0
- data/lib/nanoc/base/views/site.rb +35 -0
- data/lib/nanoc/cli.rb +3 -6
- data/lib/nanoc/cli/ansi_string_colorizer.rb +2 -0
- data/lib/nanoc/cli/cleaning_stream.rb +2 -0
- data/lib/nanoc/cli/command_runner.rb +8 -42
- data/lib/nanoc/cli/commands/check.rb +2 -2
- data/lib/nanoc/cli/commands/compile.rb +19 -34
- data/lib/nanoc/cli/commands/create-site.rb +46 -83
- data/lib/nanoc/cli/commands/deploy.rb +4 -4
- data/lib/nanoc/cli/commands/shell.rb +1 -1
- data/lib/nanoc/cli/commands/show-plugins.rb +4 -6
- data/lib/nanoc/cli/error_handler.rb +4 -14
- data/lib/nanoc/cli/logger.rb +2 -0
- data/lib/nanoc/cli/stream_cleaners.rb +1 -0
- data/lib/nanoc/cli/stream_cleaners/abstract.rb +2 -0
- data/lib/nanoc/cli/stream_cleaners/ansi_colors.rb +2 -0
- data/lib/nanoc/cli/stream_cleaners/utf8.rb +2 -0
- data/lib/nanoc/data_sources.rb +1 -17
- data/lib/nanoc/data_sources/filesystem.rb +6 -37
- data/lib/nanoc/data_sources/filesystem_unified.rb +5 -3
- data/lib/nanoc/data_sources/filesystem_verbose.rb +5 -3
- data/lib/nanoc/data_sources/static.rb +4 -2
- data/lib/nanoc/extra.rb +1 -13
- data/lib/nanoc/extra/checking.rb +1 -0
- data/lib/nanoc/extra/checking/check.rb +4 -2
- data/lib/nanoc/extra/checking/checks.rb +1 -0
- data/lib/nanoc/extra/checking/checks/css.rb +1 -0
- data/lib/nanoc/extra/checking/checks/external_links.rb +2 -0
- data/lib/nanoc/extra/checking/checks/html.rb +1 -0
- data/lib/nanoc/extra/checking/checks/internal_links.rb +2 -0
- data/lib/nanoc/extra/checking/checks/mixed_content.rb +2 -0
- data/lib/nanoc/extra/checking/checks/stale.rb +1 -0
- data/lib/nanoc/extra/checking/dsl.rb +1 -0
- data/lib/nanoc/extra/checking/issue.rb +1 -0
- data/lib/nanoc/extra/checking/runner.rb +3 -3
- data/lib/nanoc/extra/core_ext/pathname.rb +5 -3
- data/lib/nanoc/extra/core_ext/time.rb +4 -2
- data/lib/nanoc/extra/deployer.rb +3 -1
- data/lib/nanoc/extra/deployers.rb +1 -0
- data/lib/nanoc/extra/deployers/fog.rb +2 -0
- data/lib/nanoc/extra/deployers/rsync.rb +2 -0
- data/lib/nanoc/extra/filesystem_tools.rb +3 -7
- data/lib/nanoc/extra/jruby_nokogiri_warner.rb +1 -0
- data/lib/nanoc/extra/link_collector.rb +1 -0
- data/lib/nanoc/extra/piper.rb +2 -1
- data/lib/nanoc/extra/pruner.rb +5 -3
- data/lib/nanoc/filters.rb +1 -2
- data/lib/nanoc/filters/asciidoc.rb +2 -0
- data/lib/nanoc/filters/bluecloth.rb +1 -0
- data/lib/nanoc/filters/coffeescript.rb +2 -0
- data/lib/nanoc/filters/colorize_syntax.rb +1 -12
- data/lib/nanoc/filters/erb.rb +2 -1
- data/lib/nanoc/filters/erubis.rb +2 -1
- data/lib/nanoc/filters/haml.rb +2 -1
- data/lib/nanoc/filters/handlebars.rb +2 -0
- data/lib/nanoc/filters/kramdown.rb +1 -0
- data/lib/nanoc/filters/less.rb +1 -0
- data/lib/nanoc/filters/markaby.rb +1 -0
- data/lib/nanoc/filters/maruku.rb +1 -0
- data/lib/nanoc/filters/mustache.rb +2 -0
- data/lib/nanoc/filters/pandoc.rb +1 -0
- data/lib/nanoc/filters/rainpress.rb +1 -0
- data/lib/nanoc/filters/rdiscount.rb +1 -0
- data/lib/nanoc/filters/rdoc.rb +1 -0
- data/lib/nanoc/filters/redcarpet.rb +2 -0
- data/lib/nanoc/filters/redcloth.rb +1 -0
- data/lib/nanoc/filters/relativize_paths.rb +1 -0
- data/lib/nanoc/filters/rubypants.rb +1 -0
- data/lib/nanoc/filters/sass.rb +1 -0
- data/lib/nanoc/filters/sass/sass_filesystem_importer.rb +2 -0
- data/lib/nanoc/filters/slim.rb +3 -1
- data/lib/nanoc/filters/typogruby.rb +2 -0
- data/lib/nanoc/filters/uglify_js.rb +1 -0
- data/lib/nanoc/filters/xsl.rb +2 -0
- data/lib/nanoc/filters/yui_compressor.rb +2 -0
- data/lib/nanoc/helpers/blogging.rb +30 -30
- data/lib/nanoc/helpers/breadcrumbs.rb +2 -2
- data/lib/nanoc/helpers/capturing.rb +6 -17
- data/lib/nanoc/helpers/filtering.rb +3 -3
- data/lib/nanoc/helpers/link_to.rb +3 -3
- data/lib/nanoc/helpers/rendering.rb +11 -11
- data/lib/nanoc/helpers/xml_sitemap.rb +3 -3
- data/lib/nanoc/tasks.rb +1 -0
- data/lib/nanoc/tasks/clean.rake +1 -1
- data/lib/nanoc/version.rb +1 -1
- data/tasks/doc.rake +2 -1
- data/tasks/test.rake +7 -1
- data/test/base/checksummer_spec.rb +15 -15
- data/test/base/core_ext/array_spec.rb +10 -10
- data/test/base/core_ext/hash_spec.rb +16 -16
- data/test/base/core_ext/pathname_spec.rb +2 -2
- data/test/base/core_ext/string_spec.rb +9 -9
- data/test/base/temp_filename_factory_spec.rb +3 -7
- data/test/base/test_checksum_store.rb +5 -5
- data/test/base/test_code_snippet.rb +3 -3
- data/test/base/test_compiler.rb +29 -29
- data/test/base/test_compiler_dsl.rb +23 -23
- data/test/base/test_context.rb +4 -4
- data/test/base/test_data_source.rb +17 -7
- data/test/base/test_dependency_tracker.rb +29 -29
- data/test/base/test_directed_graph.rb +27 -27
- data/test/base/test_item.rb +23 -21
- data/test/base/test_item_array.rb +18 -18
- data/test/base/test_item_rep.rb +76 -76
- data/test/base/test_item_rep_recorder_proxy.rb +4 -4
- data/test/base/test_layout.rb +8 -16
- data/test/base/test_memoization.rb +4 -4
- data/test/base/test_notification_center.rb +6 -6
- data/test/base/test_outdatedness_checker.rb +18 -18
- data/test/base/test_plugin.rb +1 -1
- data/test/base/test_rule.rb +2 -2
- data/test/base/test_rule_context.rb +5 -5
- data/test/base/test_site.rb +62 -38
- data/test/base/test_store.rb +2 -2
- data/test/cli/commands/test_check.rb +1 -1
- data/test/cli/commands/test_compile.rb +24 -18
- data/test/cli/commands/test_create_site.rb +5 -7
- data/test/cli/commands/test_deploy.rb +1 -1
- data/test/data_sources/test_filesystem.rb +22 -67
- data/test/data_sources/test_filesystem_unified.rb +10 -23
- data/test/data_sources/test_filesystem_verbose.rb +8 -53
- data/test/data_sources/test_static.rb +9 -9
- data/test/extra/checking/checks/test_stale.rb +1 -1
- data/test/extra/core_ext/test_pathname.rb +3 -3
- data/test/extra/core_ext/test_time.rb +4 -4
- data/test/extra/test_filesystem_tools.rb +1 -1
- data/test/filters/test_handlebars.rb +3 -3
- data/test/filters/test_less.rb +6 -6
- data/test/filters/test_mustache.rb +2 -2
- data/test/filters/test_relativize_paths.rb +81 -81
- data/test/filters/test_sass.rb +7 -7
- data/test/filters/test_xsl.rb +6 -6
- data/test/helper.rb +1 -1
- data/test/helpers/test_blogging.rb +78 -99
- data/test/helpers/test_breadcrumbs.rb +12 -12
- data/test/helpers/test_capturing.rb +10 -11
- data/test/helpers/test_filtering.rb +6 -6
- data/test/helpers/test_rendering.rb +3 -3
- data/test/helpers/test_tagging.rb +7 -7
- data/test/helpers/test_xml_sitemap.rb +34 -33
- metadata +19 -43
- data/lib/nanoc/cli/commands/autocompile.rb +0 -69
- data/lib/nanoc/cli/commands/create-item.rb +0 -55
- data/lib/nanoc/cli/commands/create-layout.rb +0 -68
- data/lib/nanoc/cli/commands/sync.rb +0 -32
- data/lib/nanoc/cli/commands/update.rb +0 -63
- data/lib/nanoc/cli/commands/validate-css.rb +0 -20
- data/lib/nanoc/cli/commands/validate-html.rb +0 -20
- data/lib/nanoc/cli/commands/validate-links.rb +0 -27
- data/lib/nanoc/cli/commands/watch.rb +0 -176
- data/lib/nanoc/data_sources/deprecated/delicious.rb +0 -38
- data/lib/nanoc/data_sources/deprecated/last_fm.rb +0 -85
- data/lib/nanoc/data_sources/deprecated/twitter.rb +0 -34
- data/lib/nanoc/extra/auto_compiler.rb +0 -99
- data/lib/nanoc/extra/chick.rb +0 -117
- data/lib/nanoc/extra/file_proxy.rb +0 -36
- data/lib/nanoc/extra/validators.rb +0 -8
- data/lib/nanoc/extra/validators/links.rb +0 -18
- data/lib/nanoc/extra/validators/w3c.rb +0 -23
- data/lib/nanoc/extra/vcs.rb +0 -62
- data/lib/nanoc/extra/vcses.rb +0 -15
- data/lib/nanoc/extra/vcses/bazaar.rb +0 -21
- data/lib/nanoc/extra/vcses/dummy.rb +0 -20
- data/lib/nanoc/extra/vcses/git.rb +0 -21
- data/lib/nanoc/extra/vcses/mercurial.rb +0 -21
- data/lib/nanoc/extra/vcses/subversion.rb +0 -21
- data/lib/nanoc/filters/coderay.rb +0 -19
- data/lib/nanoc3.rb +0 -3
- data/lib/nanoc3/cli.rb +0 -3
- data/lib/nanoc3/tasks.rb +0 -3
- data/test/cli/commands/test_create_item.rb +0 -10
- data/test/cli/commands/test_create_layout.rb +0 -24
- data/test/cli/commands/test_sync.rb +0 -27
- data/test/cli/commands/test_update.rb +0 -6
- data/test/cli/commands/test_watch.rb +0 -74
- data/test/extra/test_auto_compiler.rb +0 -437
- data/test/extra/test_vcs.rb +0 -18
- data/test/extra/validators/test_links.rb +0 -4
- data/test/extra/validators/test_w3c.rb +0 -37
- data/test/filters/test_coderay.rb +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a0053b307bb6f25cce2645c58960d5f3be1060e
|
4
|
+
data.tar.gz: 27db68426f384c4e3af20088852300637fa545af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b78eb40b40e8b19f5c7f208f6266823c60f01fd9d4490a24f8fc4e2e843229d37ce36a42e4b2d91034d63782518c0f8debab9f5635a21b6f27b94b9ab71e57
|
7
|
+
data.tar.gz: af28723ee5ea196858ffd429fd84aa215515a9248fb912167df8efaeae32522b0628910b4565904ccb0b4610dbf4b71125cdb5319bcc838b02fd8fbf812b185a
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,322 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
nanoc (4.0.0a1)
|
5
|
+
cri (~> 2.3)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
CFPropertyList (2.3.1)
|
11
|
+
RedCloth (4.2.9)
|
12
|
+
addressable (2.3.8)
|
13
|
+
adsf (1.2.0)
|
14
|
+
rack (>= 1.0.0)
|
15
|
+
ast (2.0.0)
|
16
|
+
astrolabe (1.3.0)
|
17
|
+
parser (>= 2.2.0.pre.3, < 3.0)
|
18
|
+
bluecloth (2.2.0)
|
19
|
+
builder (3.2.2)
|
20
|
+
celluloid (0.16.0)
|
21
|
+
timers (~> 4.0.0)
|
22
|
+
chunky_png (1.3.4)
|
23
|
+
coderay (1.1.0)
|
24
|
+
coffee-script (2.4.1)
|
25
|
+
coffee-script-source
|
26
|
+
execjs
|
27
|
+
coffee-script-source (1.9.1.1)
|
28
|
+
colored (1.2)
|
29
|
+
commonjs (0.2.7)
|
30
|
+
compass (0.12.7)
|
31
|
+
chunky_png (~> 1.2)
|
32
|
+
fssm (>= 0.2.7)
|
33
|
+
sass (~> 3.2.19)
|
34
|
+
coveralls (0.8.1)
|
35
|
+
json (~> 1.8)
|
36
|
+
rest-client (>= 1.6.8, < 2)
|
37
|
+
simplecov (~> 0.10.0)
|
38
|
+
term-ansicolor (~> 1.3)
|
39
|
+
thor (~> 0.19.1)
|
40
|
+
crack (0.4.2)
|
41
|
+
safe_yaml (~> 1.0.0)
|
42
|
+
cri (2.7.0)
|
43
|
+
colored (~> 1.2)
|
44
|
+
diff-lcs (1.2.5)
|
45
|
+
docile (1.1.5)
|
46
|
+
domain_name (0.5.24)
|
47
|
+
unf (>= 0.0.5, < 1.0.0)
|
48
|
+
erubis (2.7.0)
|
49
|
+
excon (0.45.3)
|
50
|
+
execjs (2.5.2)
|
51
|
+
ffi (1.9.8)
|
52
|
+
fission (0.5.0)
|
53
|
+
CFPropertyList (~> 2.2)
|
54
|
+
fog (1.29.0)
|
55
|
+
fog-atmos
|
56
|
+
fog-aws (~> 0.0)
|
57
|
+
fog-brightbox (~> 0.4)
|
58
|
+
fog-core (~> 1.27, >= 1.27.4)
|
59
|
+
fog-ecloud
|
60
|
+
fog-json
|
61
|
+
fog-local
|
62
|
+
fog-powerdns (>= 0.1.1)
|
63
|
+
fog-profitbricks
|
64
|
+
fog-radosgw (>= 0.0.2)
|
65
|
+
fog-riakcs
|
66
|
+
fog-sakuracloud (>= 0.0.4)
|
67
|
+
fog-serverlove
|
68
|
+
fog-softlayer
|
69
|
+
fog-storm_on_demand
|
70
|
+
fog-terremark
|
71
|
+
fog-vmfusion
|
72
|
+
fog-voxel
|
73
|
+
fog-xml (~> 0.1.1)
|
74
|
+
ipaddress (~> 0.5)
|
75
|
+
nokogiri (~> 1.5, >= 1.5.11)
|
76
|
+
fog-atmos (0.1.0)
|
77
|
+
fog-core
|
78
|
+
fog-xml
|
79
|
+
fog-aws (0.1.2)
|
80
|
+
fog-core (~> 1.27)
|
81
|
+
fog-json (~> 1.0)
|
82
|
+
fog-xml (~> 0.1)
|
83
|
+
ipaddress (~> 0.8)
|
84
|
+
fog-brightbox (0.7.1)
|
85
|
+
fog-core (~> 1.22)
|
86
|
+
fog-json
|
87
|
+
inflecto (~> 0.0.2)
|
88
|
+
fog-core (1.30.0)
|
89
|
+
builder
|
90
|
+
excon (~> 0.45)
|
91
|
+
formatador (~> 0.2)
|
92
|
+
mime-types
|
93
|
+
net-scp (~> 1.1)
|
94
|
+
net-ssh (>= 2.1.3)
|
95
|
+
fog-ecloud (0.1.1)
|
96
|
+
fog-core
|
97
|
+
fog-xml
|
98
|
+
fog-json (1.0.1)
|
99
|
+
fog-core (~> 1.0)
|
100
|
+
multi_json (~> 1.0)
|
101
|
+
fog-local (0.2.1)
|
102
|
+
fog-core (~> 1.27)
|
103
|
+
fog-powerdns (0.1.1)
|
104
|
+
fog-core (~> 1.27)
|
105
|
+
fog-json (~> 1.0)
|
106
|
+
fog-xml (~> 0.1)
|
107
|
+
fog-profitbricks (0.0.2)
|
108
|
+
fog-core
|
109
|
+
fog-xml
|
110
|
+
nokogiri
|
111
|
+
fog-radosgw (0.0.4)
|
112
|
+
fog-core (>= 1.21.0)
|
113
|
+
fog-json
|
114
|
+
fog-xml (>= 0.0.1)
|
115
|
+
fog-riakcs (0.1.0)
|
116
|
+
fog-core
|
117
|
+
fog-json
|
118
|
+
fog-xml
|
119
|
+
fog-sakuracloud (1.0.1)
|
120
|
+
fog-core
|
121
|
+
fog-json
|
122
|
+
fog-serverlove (0.1.2)
|
123
|
+
fog-core
|
124
|
+
fog-json
|
125
|
+
fog-softlayer (0.4.5)
|
126
|
+
fog-core
|
127
|
+
fog-json
|
128
|
+
fog-storm_on_demand (0.1.1)
|
129
|
+
fog-core
|
130
|
+
fog-json
|
131
|
+
fog-terremark (0.1.0)
|
132
|
+
fog-core
|
133
|
+
fog-xml
|
134
|
+
fog-vmfusion (0.1.0)
|
135
|
+
fission
|
136
|
+
fog-core
|
137
|
+
fog-voxel (0.1.0)
|
138
|
+
fog-core
|
139
|
+
fog-xml
|
140
|
+
fog-xml (0.1.2)
|
141
|
+
fog-core
|
142
|
+
nokogiri (~> 1.5, >= 1.5.11)
|
143
|
+
formatador (0.2.5)
|
144
|
+
fssm (0.2.10)
|
145
|
+
haml (4.0.6)
|
146
|
+
tilt
|
147
|
+
handlebars (0.7.0)
|
148
|
+
handlebars-source (~> 3.0.0)
|
149
|
+
therubyracer (~> 0.12.1)
|
150
|
+
handlebars-source (3.0.3)
|
151
|
+
hitimes (1.2.2)
|
152
|
+
http-cookie (1.0.2)
|
153
|
+
domain_name (~> 0.5)
|
154
|
+
inflecto (0.0.2)
|
155
|
+
ipaddress (0.8.0)
|
156
|
+
json (1.8.2)
|
157
|
+
kramdown (1.7.0)
|
158
|
+
less (2.6.0)
|
159
|
+
commonjs (~> 0.2.7)
|
160
|
+
libv8 (3.16.14.7)
|
161
|
+
listen (2.10.0)
|
162
|
+
celluloid (~> 0.16.0)
|
163
|
+
rb-fsevent (>= 0.9.3)
|
164
|
+
rb-inotify (>= 0.9)
|
165
|
+
markaby (0.8.0)
|
166
|
+
builder
|
167
|
+
maruku (0.7.2)
|
168
|
+
metaclass (0.0.4)
|
169
|
+
method_source (0.8.2)
|
170
|
+
mime-types (2.5)
|
171
|
+
mini_portile (0.6.2)
|
172
|
+
minitest (5.6.1)
|
173
|
+
mocha (1.1.0)
|
174
|
+
metaclass (~> 0.0.1)
|
175
|
+
multi_json (1.11.0)
|
176
|
+
mustache (1.0.1)
|
177
|
+
net-scp (1.2.1)
|
178
|
+
net-ssh (>= 2.6.5)
|
179
|
+
net-ssh (2.9.2)
|
180
|
+
netrc (0.10.3)
|
181
|
+
nokogiri (1.6.6.2)
|
182
|
+
mini_portile (~> 0.6.0)
|
183
|
+
pandoc-ruby (1.0.0)
|
184
|
+
parser (2.2.2.2)
|
185
|
+
ast (>= 1.1, < 3.0)
|
186
|
+
posix-spawn (0.3.11)
|
187
|
+
powerpack (0.1.0)
|
188
|
+
pry (0.10.1)
|
189
|
+
coderay (~> 1.1.0)
|
190
|
+
method_source (~> 0.8.1)
|
191
|
+
slop (~> 3.4)
|
192
|
+
pygments.rb (0.6.3)
|
193
|
+
posix-spawn (~> 0.3.6)
|
194
|
+
yajl-ruby (~> 1.2.0)
|
195
|
+
rack (1.6.1)
|
196
|
+
rainbow (2.0.0)
|
197
|
+
rainpress (1.0)
|
198
|
+
rake (10.4.2)
|
199
|
+
rb-fsevent (0.9.4)
|
200
|
+
rb-inotify (0.9.5)
|
201
|
+
ffi (>= 0.5.0)
|
202
|
+
rdiscount (2.1.8)
|
203
|
+
rdoc (4.2.0)
|
204
|
+
redcarpet (3.2.3)
|
205
|
+
ref (1.0.5)
|
206
|
+
rest-client (1.8.0)
|
207
|
+
http-cookie (>= 1.0.2, < 2.0)
|
208
|
+
mime-types (>= 1.16, < 3.0)
|
209
|
+
netrc (~> 0.7)
|
210
|
+
rouge (1.8.0)
|
211
|
+
rspec (3.2.0)
|
212
|
+
rspec-core (~> 3.2.0)
|
213
|
+
rspec-expectations (~> 3.2.0)
|
214
|
+
rspec-mocks (~> 3.2.0)
|
215
|
+
rspec-core (3.2.3)
|
216
|
+
rspec-support (~> 3.2.0)
|
217
|
+
rspec-expectations (3.2.1)
|
218
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
219
|
+
rspec-support (~> 3.2.0)
|
220
|
+
rspec-mocks (3.2.1)
|
221
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
222
|
+
rspec-support (~> 3.2.0)
|
223
|
+
rspec-support (3.2.2)
|
224
|
+
rubocop (0.30.1)
|
225
|
+
astrolabe (~> 1.3)
|
226
|
+
parser (>= 2.2.2.1, < 3.0)
|
227
|
+
powerpack (~> 0.1)
|
228
|
+
rainbow (>= 1.99.1, < 3.0)
|
229
|
+
ruby-progressbar (~> 1.4)
|
230
|
+
ruby-progressbar (1.7.5)
|
231
|
+
rubypants (0.2.0)
|
232
|
+
safe_yaml (1.0.4)
|
233
|
+
sass (3.2.19)
|
234
|
+
simplecov (0.10.0)
|
235
|
+
docile (~> 1.1.0)
|
236
|
+
json (~> 1.8)
|
237
|
+
simplecov-html (~> 0.10.0)
|
238
|
+
simplecov-html (0.10.0)
|
239
|
+
slim (3.0.3)
|
240
|
+
temple (~> 0.7.3)
|
241
|
+
tilt (>= 1.3.3, < 2.1)
|
242
|
+
slop (3.6.0)
|
243
|
+
temple (0.7.5)
|
244
|
+
term-ansicolor (1.3.0)
|
245
|
+
tins (~> 1.0)
|
246
|
+
therubyracer (0.12.2)
|
247
|
+
libv8 (~> 3.16.14.0)
|
248
|
+
ref
|
249
|
+
thor (0.19.1)
|
250
|
+
tilt (2.0.1)
|
251
|
+
timers (4.0.1)
|
252
|
+
hitimes
|
253
|
+
tins (1.5.1)
|
254
|
+
typogruby (1.0.18)
|
255
|
+
rubypants
|
256
|
+
uglifier (2.7.1)
|
257
|
+
execjs (>= 0.3.0)
|
258
|
+
json (>= 1.8.0)
|
259
|
+
unf (0.1.4)
|
260
|
+
unf_ext
|
261
|
+
unf_ext (0.0.7.1)
|
262
|
+
vcr (2.9.3)
|
263
|
+
w3c_validators (1.2)
|
264
|
+
json
|
265
|
+
nokogiri
|
266
|
+
webmock (1.21.0)
|
267
|
+
addressable (>= 2.3.6)
|
268
|
+
crack (>= 0.3.2)
|
269
|
+
yajl-ruby (1.2.1)
|
270
|
+
yard (0.8.7.6)
|
271
|
+
yuicompressor (1.3.3)
|
272
|
+
|
273
|
+
PLATFORMS
|
274
|
+
ruby
|
275
|
+
|
276
|
+
DEPENDENCIES
|
277
|
+
RedCloth
|
278
|
+
adsf
|
279
|
+
bluecloth
|
280
|
+
builder
|
281
|
+
bundler (>= 1.7.10, < 2.0)
|
282
|
+
coderay
|
283
|
+
coffee-script
|
284
|
+
compass
|
285
|
+
coveralls
|
286
|
+
erubis
|
287
|
+
fog
|
288
|
+
haml
|
289
|
+
handlebars
|
290
|
+
kramdown
|
291
|
+
less (~> 2.0)
|
292
|
+
listen
|
293
|
+
markaby
|
294
|
+
maruku
|
295
|
+
mime-types
|
296
|
+
minitest (~> 5.0)
|
297
|
+
mocha
|
298
|
+
mustache (~> 1.0)
|
299
|
+
nanoc!
|
300
|
+
nokogiri (~> 1.6)
|
301
|
+
pandoc-ruby
|
302
|
+
pry
|
303
|
+
pygments.rb
|
304
|
+
rack
|
305
|
+
rainpress
|
306
|
+
rake
|
307
|
+
rdiscount
|
308
|
+
rdoc
|
309
|
+
redcarpet
|
310
|
+
rouge
|
311
|
+
rspec
|
312
|
+
rubocop
|
313
|
+
rubypants
|
314
|
+
sass (~> 3.2.2)
|
315
|
+
slim
|
316
|
+
typogruby
|
317
|
+
uglifier
|
318
|
+
vcr
|
319
|
+
w3c_validators
|
320
|
+
webmock
|
321
|
+
yard
|
322
|
+
yuicompressor
|
data/NEWS.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# nanoc news
|
2
2
|
|
3
|
+
## 4.0.0a1 (2015-05-09)
|
4
|
+
|
5
|
+
This is a major upgrade. For details on upgrading, see the [nanoc 4 upgrade guide](http://nanoc.ws/docs/nanoc-4-upgrade-guide/).
|
6
|
+
|
7
|
+
This release provides no new features, but streamlines the API and functionality, in order to easen future development, both for features and for optimisations.
|
8
|
+
|
3
9
|
## 3.8.0 (2015-05-04)
|
4
10
|
|
5
11
|
Features:
|
data/bin/nanoc
CHANGED
@@ -1,25 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
-
# Try loading bundler if it's possible
|
5
|
-
begin
|
6
|
-
require 'bundler'
|
7
|
-
require 'bundler/setup'
|
8
|
-
begin
|
9
|
-
Bundler.require(:default)
|
10
|
-
rescue Bundler::GemfileNotFound
|
11
|
-
# no problem
|
12
|
-
end
|
13
|
-
rescue LoadError
|
14
|
-
# no problem
|
15
|
-
end if File.file?('Gemfile')
|
16
|
-
|
17
|
-
# Add lib to load path
|
18
|
-
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
|
19
|
-
|
20
|
-
# Load nanoc
|
21
4
|
require 'nanoc'
|
22
5
|
require 'nanoc/cli'
|
23
6
|
|
24
|
-
# Run base
|
25
7
|
Nanoc::CLI.run(ARGV)
|
data/lib/nanoc.rb
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
module Nanoc
|
4
4
|
# @return [String] A string containing information about this nanoc version
|
5
5
|
# and its environment (Ruby engine and version, Rubygems version if any).
|
6
|
+
#
|
7
|
+
# @api private
|
6
8
|
def self.version_information
|
7
9
|
gem_info = defined?(Gem) ? "with RubyGems #{Gem::VERSION}" : 'without RubyGems'
|
8
10
|
engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
@@ -12,14 +14,14 @@ module Nanoc
|
|
12
14
|
res
|
13
15
|
end
|
14
16
|
|
15
|
-
# @return [Boolean] True if the current platform is Windows,
|
17
|
+
# @return [Boolean] True if the current platform is Windows, false otherwise.
|
18
|
+
#
|
19
|
+
# @api private
|
16
20
|
def self.on_windows?
|
17
21
|
RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i
|
18
22
|
end
|
19
23
|
end
|
20
24
|
|
21
|
-
Nanoc3 = Nanoc
|
22
|
-
|
23
25
|
# Load general requirements
|
24
26
|
require 'digest'
|
25
27
|
require 'enumerator'
|
data/lib/nanoc/base.rb
CHANGED
@@ -3,6 +3,30 @@
|
|
3
3
|
module Nanoc
|
4
4
|
require 'nanoc/base/core_ext'
|
5
5
|
|
6
|
+
autoload 'Error', 'nanoc/base/error'
|
7
|
+
|
8
|
+
autoload 'DataSource', 'nanoc/base/source_data/data_source'
|
9
|
+
autoload 'Identifier', 'nanoc/base/source_data/identifier'
|
10
|
+
|
11
|
+
autoload 'ConfigView', 'nanoc/base/views/config'
|
12
|
+
autoload 'ItemView', 'nanoc/base/views/item'
|
13
|
+
autoload 'ItemRepView', 'nanoc/base/views/item_rep'
|
14
|
+
autoload 'ItemCollectionView', 'nanoc/base/views/item_collection'
|
15
|
+
autoload 'LayoutView', 'nanoc/base/views/layout'
|
16
|
+
autoload 'LayoutCollectionView', 'nanoc/base/views/layout_collection'
|
17
|
+
autoload 'SiteView', 'nanoc/base/views/site'
|
18
|
+
|
19
|
+
autoload 'MutableConfigView', 'nanoc/base/views/mutable_config'
|
20
|
+
autoload 'MutableItemView', 'nanoc/base/views/mutable_item'
|
21
|
+
autoload 'MutableItemCollectionView', 'nanoc/base/views/mutable_item_collection'
|
22
|
+
autoload 'MutableLayoutView', 'nanoc/base/views/mutable_layout'
|
23
|
+
autoload 'MutableLayoutCollectionView', 'nanoc/base/views/mutable_layout_collection'
|
24
|
+
|
25
|
+
autoload 'Filter', 'nanoc/base/compilation/filter'
|
26
|
+
end
|
27
|
+
|
28
|
+
# @api private
|
29
|
+
module Nanoc::Int
|
6
30
|
# Load helper classes
|
7
31
|
autoload 'Context', 'nanoc/base/context'
|
8
32
|
autoload 'Checksummer', 'nanoc/base/checksummer'
|
@@ -17,7 +41,6 @@ module Nanoc
|
|
17
41
|
# Load source data classes
|
18
42
|
autoload 'CodeSnippet', 'nanoc/base/source_data/code_snippet'
|
19
43
|
autoload 'Configuration', 'nanoc/base/source_data/configuration'
|
20
|
-
autoload 'DataSource', 'nanoc/base/source_data/data_source'
|
21
44
|
autoload 'Item', 'nanoc/base/source_data/item'
|
22
45
|
autoload 'ItemArray', 'nanoc/base/source_data/item_array'
|
23
46
|
autoload 'Layout', 'nanoc/base/source_data/layout'
|
@@ -32,7 +55,6 @@ module Nanoc
|
|
32
55
|
autoload 'Compiler', 'nanoc/base/compilation/compiler'
|
33
56
|
autoload 'CompilerDSL', 'nanoc/base/compilation/compiler_dsl'
|
34
57
|
autoload 'DependencyTracker', 'nanoc/base/compilation/dependency_tracker'
|
35
|
-
autoload 'Filter', 'nanoc/base/compilation/filter'
|
36
58
|
autoload 'ItemRepProxy', 'nanoc/base/compilation/item_rep_proxy'
|
37
59
|
autoload 'ItemRepRecorderProxy', 'nanoc/base/compilation/item_rep_recorder_proxy'
|
38
60
|
autoload 'OutdatednessChecker', 'nanoc/base/compilation/outdatedness_checker'
|
@@ -42,8 +64,4 @@ module Nanoc
|
|
42
64
|
autoload 'RuleMemoryCalculator', 'nanoc/base/compilation/rule_memory_calculator'
|
43
65
|
autoload 'RuleMemoryStore', 'nanoc/base/compilation/rule_memory_store'
|
44
66
|
autoload 'RulesCollection', 'nanoc/base/compilation/rules_collection'
|
45
|
-
|
46
|
-
# Deprecated; use PluginRepository instead
|
47
|
-
# TODO: [in nanoc 4.0] remove me
|
48
|
-
autoload 'Plugin', 'nanoc/base/plugin_registry'
|
49
67
|
end
|