kramdown-man 0.1.7

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