nanoc 4.4.7 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -7
- data/NEWS.md +6 -0
- data/lib/nanoc.rb +1 -0
- data/lib/nanoc/base.rb +0 -1
- data/lib/nanoc/base/feature.rb +1 -1
- data/lib/nanoc/base/repos/data_source.rb +1 -1
- data/lib/nanoc/base/repos/site_loader.rb +1 -1
- data/lib/nanoc/base/services/action_provider.rb +1 -1
- data/lib/nanoc/base/services/filter.rb +1 -1
- data/lib/nanoc/checking.rb +7 -9
- data/lib/nanoc/checking/check.rb +1 -1
- data/lib/nanoc/checking/checks.rb +9 -17
- data/lib/nanoc/checking/checks/internal_links.rb +2 -0
- data/lib/nanoc/checking/checks/mixed_content.rb +2 -0
- data/lib/nanoc/checking/checks/stale.rb +2 -0
- data/lib/nanoc/checking/runner.rb +2 -2
- data/lib/nanoc/cli.rb +9 -6
- data/lib/nanoc/cli/commands/deploy.rb +4 -4
- data/lib/nanoc/cli/commands/show-plugins.rb +12 -12
- data/lib/nanoc/cli/stream_cleaners.rb +7 -7
- data/lib/nanoc/data_sources.rb +0 -3
- data/lib/nanoc/data_sources/filesystem.rb +2 -0
- data/lib/nanoc/deploying/deployer.rb +1 -1
- data/lib/nanoc/deploying/deployers.rb +6 -9
- data/lib/nanoc/deploying/deployers/fog.rb +2 -0
- data/lib/nanoc/deploying/deployers/git.rb +118 -0
- data/lib/nanoc/deploying/deployers/rsync.rb +2 -0
- data/lib/nanoc/extra.rb +5 -6
- data/lib/nanoc/filters.rb +28 -55
- data/lib/nanoc/filters/asciidoc.rb +2 -0
- data/lib/nanoc/filters/bluecloth.rb +2 -0
- data/lib/nanoc/filters/coffeescript.rb +2 -0
- data/lib/nanoc/filters/colorize_syntax.rb +2 -0
- data/lib/nanoc/filters/erb.rb +2 -0
- data/lib/nanoc/filters/erubis.rb +9 -8
- data/lib/nanoc/filters/haml.rb +2 -0
- data/lib/nanoc/filters/handlebars.rb +2 -0
- data/lib/nanoc/filters/kramdown.rb +2 -0
- data/lib/nanoc/filters/less.rb +2 -0
- data/lib/nanoc/filters/markaby.rb +2 -0
- data/lib/nanoc/filters/maruku.rb +2 -0
- data/lib/nanoc/filters/mustache.rb +2 -0
- data/lib/nanoc/filters/pandoc.rb +2 -0
- data/lib/nanoc/filters/rainpress.rb +2 -0
- data/lib/nanoc/filters/rdiscount.rb +2 -0
- data/lib/nanoc/filters/rdoc.rb +2 -0
- data/lib/nanoc/filters/redcarpet.rb +2 -0
- data/lib/nanoc/filters/redcloth.rb +2 -0
- data/lib/nanoc/filters/relativize_paths.rb +2 -0
- data/lib/nanoc/filters/rubypants.rb +2 -0
- data/lib/nanoc/filters/sass.rb +2 -0
- data/lib/nanoc/filters/slim.rb +2 -0
- data/lib/nanoc/filters/typogruby.rb +2 -0
- data/lib/nanoc/filters/uglify_js.rb +2 -0
- data/lib/nanoc/filters/xsl.rb +2 -0
- data/lib/nanoc/filters/yui_compressor.rb +2 -0
- data/lib/nanoc/helpers.rb +12 -11
- data/lib/nanoc/version.rb +1 -1
- data/nanoc.gemspec +1 -0
- data/spec/nanoc/base/filter_spec.rb +2 -2
- data/spec/nanoc/cli/commands/deploy_spec.rb +2 -2
- data/spec/nanoc/cli/commands/show_plugins_spec.rb +18 -0
- data/spec/nanoc/deploying/git_spec.rb +302 -0
- data/spec/spec_helper.rb +2 -0
- data/test/deploying/test_git.rb +261 -0
- metadata +20 -5
- data/lib/nanoc/base/plugin_registry.rb +0 -219
- data/spec/nanoc/base/plugin_registry_spec.rb +0 -29
- data/test/base/test_plugin.rb +0 -26
@@ -1,29 +0,0 @@
|
|
1
|
-
describe Nanoc::Int::PluginRegistry do
|
2
|
-
describe '.identifier(s)' do
|
3
|
-
let(:identifier) { :ce79f6b8ddb22233e9aaf7d8f011689492acf02f }
|
4
|
-
|
5
|
-
context 'direct subclass' do
|
6
|
-
example do
|
7
|
-
klass =
|
8
|
-
Class.new(Nanoc::Filter) do
|
9
|
-
identifier :plugin_registry_spec
|
10
|
-
end
|
11
|
-
|
12
|
-
expect(klass.identifier).to eql(:plugin_registry_spec)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
context 'indirect subclass' do
|
17
|
-
example do
|
18
|
-
superclass = Class.new(Nanoc::Filter)
|
19
|
-
|
20
|
-
klass =
|
21
|
-
Class.new(superclass) do
|
22
|
-
identifier :plugin_registry_spec
|
23
|
-
end
|
24
|
-
|
25
|
-
expect(klass.identifier).to eql(:plugin_registry_spec)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
data/test/base/test_plugin.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
class Nanoc::PluginTest < Nanoc::TestCase
|
4
|
-
class SampleFilter < Nanoc::Filter
|
5
|
-
identifier :_plugin_test_sample_filter
|
6
|
-
end
|
7
|
-
|
8
|
-
def test_named
|
9
|
-
# Find existant filter
|
10
|
-
filter = Nanoc::Filter.named(:erb)
|
11
|
-
assert(!filter.nil?)
|
12
|
-
|
13
|
-
# Find non-existant filter
|
14
|
-
filter = Nanoc::Filter.named(:lksdaffhdlkashlgkskahf)
|
15
|
-
assert(filter.nil?)
|
16
|
-
end
|
17
|
-
|
18
|
-
def test_register
|
19
|
-
SampleFilter.send(:identifier, :_plugin_test_sample_filter)
|
20
|
-
|
21
|
-
registry = Nanoc::Int::PluginRegistry.instance
|
22
|
-
filter = registry.find(Nanoc::Filter, :_plugin_test_sample_filter)
|
23
|
-
|
24
|
-
refute_nil filter
|
25
|
-
end
|
26
|
-
end
|