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.
@@ -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
@@ -1,8 +1,8 @@
1
- require 'spec_helper'
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').should_not be_empty
6
+ expect(subject.const_get('VERSION')).not_to be_empty
7
7
  end
8
8
  end
@@ -1,3 +1,2 @@
1
- gem 'rspec', '~> 2.4'
2
1
  require 'rspec'
3
2
  require 'kramdown'
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.3
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: 2013-05-06 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
26
+ version: '2.0'
30
27
  - !ruby/object:Gem::Dependency
31
- name: rspec
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.4'
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.4'
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
- - .gitignore
90
- - .rspec
91
- - .travis.yml
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
- rubyforge_project:
130
- rubygems_version: 1.8.25
93
+ rubygems_version: 3.2.3
131
94
  signing_key:
132
- specification_version: 3
95
+ specification_version: 4
133
96
  summary: Converts markdown to man pages
134
97
  test_files: []
@@ -1,11 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - gem install ffi rubygems-tasks rspec yard kramdown
4
- rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - jruby-18mode
8
- - jruby-19mode
9
- - rbx-18mode
10
- - rbx-19mode
11
- script: rake spec