kramdown-man 0.1.3 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +32 -0
- data/.gitignore +1 -0
- data/ChangeLog.md +29 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +1 -1
- data/README.md +9 -8
- data/Rakefile +12 -34
- data/gemspec.yml +2 -4
- data/lib/kramdown/converter/man.rb +399 -27
- 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 +43 -36
- data/man/kramdown-man.1.md +6 -2
- data/spec/kramdown/converter/man_spec.rb +180 -97
- data/spec/kramdown/document_spec.rb +19 -0
- data/spec/kramdown/man_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -1
- metadata +23 -60
- data/.travis.yml +0 -11
@@ -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
@@ -1,8 +1,8 @@
|
|
1
|
-
|
1
|
+
require_relative '../spec_helper'
|
2
2
|
require 'kramdown/man'
|
3
3
|
|
4
4
|
describe Kramdown::Man do
|
5
5
|
it "should have a VERSION constant" do
|
6
|
-
subject.const_get('VERSION').
|
6
|
+
expect(subject.const_get('VERSION')).not_to be_empty
|
7
7
|
end
|
8
8
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,80 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown-man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.8
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Postmodern
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2020-12-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: kramdown
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '2.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '2.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '2.
|
33
|
+
version: '2.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '2.
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rubygems-tasks
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0.2'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.2'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: yard
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.8'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0.8'
|
40
|
+
version: '2.0'
|
78
41
|
description: A Kramdown converter for converting Markdown files into man pages.
|
79
42
|
email: postmodern.mod3@gmail.com
|
80
43
|
executables:
|
@@ -85,12 +48,13 @@ extra_rdoc_files:
|
|
85
48
|
- LICENSE.txt
|
86
49
|
- README.md
|
87
50
|
files:
|
88
|
-
- .document
|
89
|
-
- .
|
90
|
-
- .
|
91
|
-
- .
|
92
|
-
- .yardopts
|
51
|
+
- ".document"
|
52
|
+
- ".github/workflows/ruby.yml"
|
53
|
+
- ".gitignore"
|
54
|
+
- ".rspec"
|
55
|
+
- ".yardopts"
|
93
56
|
- ChangeLog.md
|
57
|
+
- Gemfile
|
94
58
|
- LICENSE.txt
|
95
59
|
- README.md
|
96
60
|
- Rakefile
|
@@ -104,31 +68,30 @@ files:
|
|
104
68
|
- man/kramdown-man.1
|
105
69
|
- man/kramdown-man.1.md
|
106
70
|
- spec/kramdown/converter/man_spec.rb
|
71
|
+
- spec/kramdown/document_spec.rb
|
107
72
|
- spec/kramdown/man_spec.rb
|
108
73
|
- spec/spec_helper.rb
|
109
74
|
homepage: https://github.com/postmodern/kramdown-man#readme
|
110
75
|
licenses:
|
111
76
|
- MIT
|
77
|
+
metadata: {}
|
112
78
|
post_install_message:
|
113
79
|
rdoc_options: []
|
114
80
|
require_paths:
|
115
81
|
- lib
|
116
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
83
|
requirements:
|
119
|
-
- -
|
84
|
+
- - ">="
|
120
85
|
- !ruby/object:Gem::Version
|
121
86
|
version: '0'
|
122
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
88
|
requirements:
|
125
|
-
- -
|
89
|
+
- - ">="
|
126
90
|
- !ruby/object:Gem::Version
|
127
91
|
version: '0'
|
128
92
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 1.8.25
|
93
|
+
rubygems_version: 3.2.3
|
131
94
|
signing_key:
|
132
|
-
specification_version:
|
95
|
+
specification_version: 4
|
133
96
|
summary: Converts markdown to man pages
|
134
97
|
test_files: []
|