nanoc-asciidoctor 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -27
- data/nanoc-asciidoctor.gemspec +7 -19
- metadata +13 -71
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -51
- data/LICENSE +0 -19
- data/NEWS.md +0 -13
- data/Rakefile +0 -10
- data/lib/nanoc-asciidoctor.rb +0 -3
- data/lib/nanoc/asciidoctor.rb +0 -9
- data/lib/nanoc/asciidoctor/filter.rb +0 -18
- data/lib/nanoc/asciidoctor/version.rb +0 -9
- data/nanoc-asciidoctor-1.0.0.gem +0 -0
- data/nanoc-asciidoctor-1.0.1.gem +0 -0
- data/test/filters/test_asciidoctor.rb +0 -16
- data/test/helper.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 631c8007fb21e29c0ebb22039838e849026d93dd
|
4
|
+
data.tar.gz: ba227b3e36dcdb412d888bb8a4eada30bfec0208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342659cf442d9f4eccfb1c77dde8d9f1417c2c00432bf4a46b2b436bae93d86f171292d0e06b105b74dde9841201d121eb0bdda432c738701aa9e0d8a8e26ec5
|
7
|
+
data.tar.gz: c2ae5a66a2f70685efb6074beb99bca3e922893fbbe89748eb79f4fc9ce9cf813c3a9cc31fdfb92ff50b27fbe465b2805f500db90dee5a2765cc57728424196f
|
data/README.md
CHANGED
@@ -1,29 +1,3 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/nanoc/nanoc-asciidoctor.png)](https://travis-ci.org/nanoc/nanoc-asciidoctor)
|
2
|
-
[![Code Climate](https://codeclimate.com/github/nanoc/nanoc-asciidoctor.png)](https://codeclimate.com/github/nanoc/nanoc-asciidoctor)
|
3
|
-
[![Coverage Status](https://coveralls.io/repos/nanoc/nanoc-asciidoctor/badge.png?branch=master)](https://coveralls.io/r/nanoc/nanoc-asciidoctor)
|
4
|
-
|
5
1
|
# nanoc-asciidoctor
|
6
2
|
|
7
|
-
This
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
`gem install nanoc-asciidoctor`
|
12
|
-
|
13
|
-
## Usage
|
14
|
-
|
15
|
-
On the `Rules` file, require the library, and call as you prefer:
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
require 'nanoc-asciidoctor'
|
19
|
-
|
20
|
-
compile '/**/*.adoc' do
|
21
|
-
filter :asciidoctor
|
22
|
-
layout '/default.*'
|
23
|
-
# Or wrap the markup in full HTML through AsciiDoctor
|
24
|
-
# filter :asciidoctor, :header_footer => true
|
25
|
-
end
|
26
|
-
|
27
|
-
```
|
28
|
-
|
29
|
-
Options passed to this filter will be passed on to `Asciidoctor.render`.
|
3
|
+
This repository is obsolete. The Asciidoctor filter is now part of Nanoc.
|
data/nanoc-asciidoctor.gemspec
CHANGED
@@ -1,30 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift(File.expand_path('../lib/', __FILE__))
|
4
|
-
require 'nanoc/asciidoctor/version'
|
5
|
-
|
6
3
|
Gem::Specification.new do |s|
|
7
4
|
s.name = 'nanoc-asciidoctor'
|
8
|
-
s.version =
|
5
|
+
s.version = '2.0.0'
|
9
6
|
s.homepage = 'http://nanoc.ws/'
|
10
|
-
s.summary = '
|
11
|
-
s.description = 'Provides an
|
7
|
+
s.summary = '(Obsolete) Asciidoctor filter for Nanoc'
|
8
|
+
s.description = 'Provides an Asciidoctor filter for Nanoc. Obsolete; merged into Nanoc 4.8.'
|
12
9
|
|
13
10
|
s.author = 'Denis Defreyne'
|
14
|
-
s.email = 'denis
|
11
|
+
s.email = 'denis@stoneship.org'
|
15
12
|
s.license = 'MIT'
|
16
13
|
|
17
|
-
s.
|
18
|
-
|
19
|
-
s.files = Dir['[A-Z]*'] +
|
20
|
-
Dir['{lib,test}/**/*'] +
|
21
|
-
[ 'nanoc-asciidoctor.gemspec' ]
|
22
|
-
s.require_paths = [ 'lib' ]
|
23
|
-
|
24
|
-
s.rdoc_options = [ '--main', 'README.md' ]
|
25
|
-
s.extra_rdoc_files = [ 'LICENSE', 'README.md', 'NEWS.md' ]
|
14
|
+
s.files = Dir['[A-Z]*'] + ['nanoc-asciidoctor.gemspec']
|
15
|
+
s.require_paths = ['lib']
|
26
16
|
|
27
|
-
s.add_runtime_dependency('nanoc', '
|
28
|
-
s.add_runtime_dependency('asciidoctor', '> 0.1', '< 2.0')
|
29
|
-
s.add_development_dependency('bundler', '~> 1.5')
|
17
|
+
s.add_runtime_dependency('nanoc', '~> 4.8')
|
30
18
|
end
|
metadata
CHANGED
@@ -1,108 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-asciidoctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.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:
|
11
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nanoc
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.6.7
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 5.0.0
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.6.7
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 5.0.0
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: asciidoctor
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.1'
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '2.0'
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ">"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0.1'
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2.0'
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: bundler
|
55
15
|
requirement: !ruby/object:Gem::Requirement
|
56
16
|
requirements:
|
57
17
|
- - "~>"
|
58
18
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
60
|
-
type: :
|
19
|
+
version: '4.8'
|
20
|
+
type: :runtime
|
61
21
|
prerelease: false
|
62
22
|
version_requirements: !ruby/object:Gem::Requirement
|
63
23
|
requirements:
|
64
24
|
- - "~>"
|
65
25
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
67
|
-
description: Provides an
|
68
|
-
|
26
|
+
version: '4.8'
|
27
|
+
description: Provides an Asciidoctor filter for Nanoc. Obsolete; merged into Nanoc
|
28
|
+
4.8.
|
29
|
+
email: denis@stoneship.org
|
69
30
|
executables: []
|
70
31
|
extensions: []
|
71
|
-
extra_rdoc_files:
|
72
|
-
- LICENSE
|
73
|
-
- README.md
|
74
|
-
- NEWS.md
|
32
|
+
extra_rdoc_files: []
|
75
33
|
files:
|
76
|
-
- Gemfile
|
77
|
-
- Gemfile.lock
|
78
|
-
- LICENSE
|
79
|
-
- NEWS.md
|
80
34
|
- README.md
|
81
|
-
- Rakefile
|
82
|
-
- lib/nanoc-asciidoctor.rb
|
83
|
-
- lib/nanoc/asciidoctor.rb
|
84
|
-
- lib/nanoc/asciidoctor/filter.rb
|
85
|
-
- lib/nanoc/asciidoctor/version.rb
|
86
|
-
- nanoc-asciidoctor-1.0.0.gem
|
87
|
-
- nanoc-asciidoctor-1.0.1.gem
|
88
35
|
- nanoc-asciidoctor.gemspec
|
89
|
-
- test/filters/test_asciidoctor.rb
|
90
|
-
- test/helper.rb
|
91
36
|
homepage: http://nanoc.ws/
|
92
37
|
licenses:
|
93
38
|
- MIT
|
94
39
|
metadata: {}
|
95
40
|
post_install_message:
|
96
|
-
rdoc_options:
|
97
|
-
- "--main"
|
98
|
-
- README.md
|
41
|
+
rdoc_options: []
|
99
42
|
require_paths:
|
100
43
|
- lib
|
101
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
45
|
requirements:
|
103
46
|
- - ">="
|
104
47
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
48
|
+
version: '0'
|
106
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
50
|
requirements:
|
108
51
|
- - ">="
|
@@ -110,9 +53,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
53
|
version: '0'
|
111
54
|
requirements: []
|
112
55
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.6.12
|
114
57
|
signing_key:
|
115
58
|
specification_version: 4
|
116
|
-
summary:
|
59
|
+
summary: "(Obsolete) Asciidoctor filter for Nanoc"
|
117
60
|
test_files: []
|
118
|
-
has_rdoc:
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
nanoc-asciidoctor (1.0.2)
|
5
|
-
asciidoctor (> 0.1, < 2.0)
|
6
|
-
nanoc (>= 3.6.7, < 5.0.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
asciidoctor (1.5.3)
|
12
|
-
colored (1.2)
|
13
|
-
coveralls (0.7.2)
|
14
|
-
multi_json (~> 1.3)
|
15
|
-
rest-client (= 1.6.7)
|
16
|
-
simplecov (>= 0.7)
|
17
|
-
term-ansicolor (= 1.2.2)
|
18
|
-
thor (= 0.18.1)
|
19
|
-
cri (2.7.0)
|
20
|
-
colored (~> 1.2)
|
21
|
-
docile (1.1.5)
|
22
|
-
mime-types (2.4.3)
|
23
|
-
minitest (5.5.1)
|
24
|
-
multi_json (1.10.1)
|
25
|
-
nanoc (3.8.0)
|
26
|
-
cri (~> 2.3)
|
27
|
-
rake (10.4.2)
|
28
|
-
rest-client (1.6.7)
|
29
|
-
mime-types (>= 1.16)
|
30
|
-
simplecov (0.9.1)
|
31
|
-
docile (~> 1.1.0)
|
32
|
-
multi_json (~> 1.0)
|
33
|
-
simplecov-html (~> 0.8.0)
|
34
|
-
simplecov-html (0.8.0)
|
35
|
-
term-ansicolor (1.2.2)
|
36
|
-
tins (~> 0.8)
|
37
|
-
thor (0.18.1)
|
38
|
-
tins (0.13.2)
|
39
|
-
|
40
|
-
PLATFORMS
|
41
|
-
ruby
|
42
|
-
|
43
|
-
DEPENDENCIES
|
44
|
-
bundler (~> 1.5)
|
45
|
-
coveralls
|
46
|
-
minitest
|
47
|
-
nanoc-asciidoctor!
|
48
|
-
rake
|
49
|
-
|
50
|
-
BUNDLED WITH
|
51
|
-
1.10.6
|
data/LICENSE
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Copyright (c) 2014 Denis Defreyne and contributors
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
5
|
-
in the Software without restriction, including without limitation the rights
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
8
|
-
furnished to do so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
-
SOFTWARE.
|
data/NEWS.md
DELETED
data/Rakefile
DELETED
data/lib/nanoc-asciidoctor.rb
DELETED
data/lib/nanoc/asciidoctor.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'asciidoctor'
|
4
|
-
require 'erb'
|
5
|
-
|
6
|
-
module Nanoc::Asciidoctor
|
7
|
-
|
8
|
-
class Filter < Nanoc::Filter
|
9
|
-
|
10
|
-
identifier :asciidoctor
|
11
|
-
|
12
|
-
def run(content, params={})
|
13
|
-
Asciidoctor.render(content, params)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
data/nanoc-asciidoctor-1.0.0.gem
DELETED
Binary file
|
data/nanoc-asciidoctor-1.0.1.gem
DELETED
Binary file
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'helper'
|
4
|
-
|
5
|
-
class Nanoc::Asciidoctor::FilterTest < Minitest::Test
|
6
|
-
|
7
|
-
def test_filter
|
8
|
-
# Create filter
|
9
|
-
filter = ::Nanoc::Asciidoctor::Filter.new
|
10
|
-
|
11
|
-
# Run filter
|
12
|
-
result = filter.setup_and_run("== Blah blah")
|
13
|
-
assert_match %r{<h2 id="_blah_blah">Blah blah</h2>}, result
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|