kramdown-man 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +7 -5
- data/ChangeLog.md +5 -0
- data/Gemfile +4 -1
- data/LICENSE.txt +1 -1
- data/README.md +2 -3
- data/gemspec.yml +1 -4
- data/lib/kramdown/converter/man.rb +2 -2
- data/lib/kramdown/man.rb +3 -2
- data/lib/kramdown/man/task.rb +1 -1
- data/lib/kramdown/man/version.rb +1 -1
- data/man/kramdown-man.1 +1 -1
- data/spec/kramdown/converter/man_spec.rb +4 -2
- data/spec/kramdown/document_spec.rb +19 -0
- data/spec/kramdown/man_spec.rb +1 -1
- metadata +6 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 880a3d1dd1e58aa950685bf312a66797f2d39d33c436eb9d67525289ce8abf45
|
4
|
+
data.tar.gz: e2f259869cb035f4868dab9ac584da53eafacbccc76b3323c3c32deb3133163c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2b3f3a3fa1d58fc40e980fe8a6193746c2d6b4b38ddbbe4682b7c209128df67cc30090d08deaad0c2e59d62bec6fa3226ab7670d8d13c499c431a21a2feec9
|
7
|
+
data.tar.gz: 14630b3b4ba02083266fc248b7179d409c79937f20fb81bb2feb0bf61c657b88999a8ec95e6912e1bd0bd7d0c012927d3cc58386f5cb95e4246745b698ccf0bc
|
data/.travis.yml
CHANGED
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,7 @@ A [Kramdown][kramdown] convert for converting Markdown files into man pages.
|
|
22
22
|
* Supports converting `[bash](man:bash(1))` links into man page references.
|
23
23
|
* Provides Rake task for converting `man/*.md` into man pages.
|
24
24
|
* Uses the pure-Ruby [Kramdown][kramdown] markdown parser.
|
25
|
-
* Supports [Ruby]
|
25
|
+
* Supports [Ruby] 2.0 and [JRuby].
|
26
26
|
|
27
27
|
## Synopsis
|
28
28
|
|
@@ -170,7 +170,7 @@ Email
|
|
170
170
|
|
171
171
|
## Copyright
|
172
172
|
|
173
|
-
Copyright (c) 2013-
|
173
|
+
Copyright (c) 2013-2020 Hal Brodigan
|
174
174
|
|
175
175
|
See {file:LICENSE.txt} for details.
|
176
176
|
|
@@ -179,4 +179,3 @@ See {file:LICENSE.txt} for details.
|
|
179
179
|
|
180
180
|
[Ruby]: http://www.ruby-lang.org/
|
181
181
|
[JRuby]: http://jruby.org/
|
182
|
-
[Rubinius]: http://rubini.us/
|
data/gemspec.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
|
2
|
+
require_relative '../man/version'
|
3
3
|
|
4
4
|
require 'kramdown/converter/base'
|
5
5
|
|
@@ -8,7 +8,7 @@ module Kramdown
|
|
8
8
|
#
|
9
9
|
# Converts markdown into a roff man-page.
|
10
10
|
#
|
11
|
-
class Man < Base
|
11
|
+
class Man < ::Kramdown::Converter::Base
|
12
12
|
|
13
13
|
# Comment header
|
14
14
|
HEADER = [
|
data/lib/kramdown/man.rb
CHANGED
data/lib/kramdown/man/task.rb
CHANGED
data/lib/kramdown/man/version.rb
CHANGED
data/man/kramdown-man.1
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
|
3
|
-
|
2
|
+
require_relative '../../spec_helper'
|
3
|
+
|
4
|
+
# HACK: load our version of kramdown/converter/man.rb and not kramdown's
|
5
|
+
require_relative '../../../lib/kramdown/converter/man'
|
4
6
|
|
5
7
|
describe Kramdown::Converter::Man do
|
6
8
|
let(:markdown) { File.read('man/kramdown-man.1.md') }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
|
3
|
+
require 'kramdown/man'
|
4
|
+
|
5
|
+
describe Kramdown::Document, :integration do
|
6
|
+
let(:man_dir) { File.expand_path('../../../man',__FILE__) }
|
7
|
+
let(:markdown_path) { File.join(man_dir,'kramdown-man.1.md') }
|
8
|
+
let(:markdown) { File.read(markdown_path) }
|
9
|
+
|
10
|
+
subject { described_class.new(markdown) }
|
11
|
+
|
12
|
+
describe "#to_man" do
|
13
|
+
it "must return the same output as Kramdown::Converter::Man" do
|
14
|
+
output, warnings = Kramdown::Converter::Man.convert(subject.root)
|
15
|
+
|
16
|
+
expect(subject.to_man).to be == output
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/spec/kramdown/man_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown-man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -30,56 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '3.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubygems-tasks
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.2'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.2'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: yard
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0.8'
|
33
|
+
version: '2.0'
|
76
34
|
type: :development
|
77
35
|
prerelease: false
|
78
36
|
version_requirements: !ruby/object:Gem::Requirement
|
79
37
|
requirements:
|
80
38
|
- - "~>"
|
81
39
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
40
|
+
version: '2.0'
|
83
41
|
description: A Kramdown converter for converting Markdown files into man pages.
|
84
42
|
email: postmodern.mod3@gmail.com
|
85
43
|
executables:
|
@@ -110,6 +68,7 @@ files:
|
|
110
68
|
- man/kramdown-man.1
|
111
69
|
- man/kramdown-man.1.md
|
112
70
|
- spec/kramdown/converter/man_spec.rb
|
71
|
+
- spec/kramdown/document_spec.rb
|
113
72
|
- spec/kramdown/man_spec.rb
|
114
73
|
- spec/spec_helper.rb
|
115
74
|
homepage: https://github.com/postmodern/kramdown-man#readme
|
@@ -131,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
90
|
- !ruby/object:Gem::Version
|
132
91
|
version: '0'
|
133
92
|
requirements: []
|
134
|
-
|
135
|
-
rubygems_version: 2.4.7
|
93
|
+
rubygems_version: 3.1.2
|
136
94
|
signing_key:
|
137
95
|
specification_version: 4
|
138
96
|
summary: Converts markdown to man pages
|