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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 386f6adb2d234cffd25b37f8cc2fbce4657c3430
4
- data.tar.gz: 3bb5849572fe71fe5e620307d083ddfdf17eabc5
2
+ SHA256:
3
+ metadata.gz: 880a3d1dd1e58aa950685bf312a66797f2d39d33c436eb9d67525289ce8abf45
4
+ data.tar.gz: e2f259869cb035f4868dab9ac584da53eafacbccc76b3323c3c32deb3133163c
5
5
  SHA512:
6
- metadata.gz: de7aef0dff59e658cc861d0e1e8c30847db607a3f5744c8059fae8be07dde75c71aec72549a3b6b1e1ec9b0c993e47c9e5734e78c19cc07973b88149ee724a14
7
- data.tar.gz: 384cc17a480668ccf3e938acfa400d8d5fb6a3c56172f46c4fab609c7033a18cde19a20f2d0b51624238ac656e0f783d3274607fcab89234e3ce902b11a7f77f
6
+ metadata.gz: 7d2b3f3a3fa1d58fc40e980fe8a6193746c2d6b4b38ddbbe4682b7c209128df67cc30090d08deaad0c2e59d62bec6fa3226ab7670d8d13c499c431a21a2feec9
7
+ data.tar.gz: 14630b3b4ba02083266fc248b7179d409c79937f20fb81bb2feb0bf61c657b88999a8ec95e6912e1bd0bd7d0c012927d3cc58386f5cb95e4246745b698ccf0bc
@@ -1,9 +1,11 @@
1
+ ---
2
+ before_install:
3
+ - gem update --system
4
+ - gem install bundler -v "~> 2.0"
1
5
  language: ruby
2
6
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
6
- - 2.2.0
7
+ - 2.5
8
+ - 2.6
9
+ - 2.7
7
10
  - jruby
8
- - rbx-2
9
11
  script: bundle exec rake spec
@@ -1,3 +1,8 @@
1
+ ### 0.1.7 / 2020-07-22
2
+
3
+ * Fixed a bug where kramdown's version of `kramdown/converter/man` was being
4
+ loaded instead of kramdown-man's version.
5
+
1
6
  ### 0.1.6 / 2015-12-25
2
7
 
3
8
  * Commented out duplicate Hash entries that were causing warnings.
data/Gemfile CHANGED
@@ -3,5 +3,8 @@ source 'https://rubygems.org/'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem 'rake', '~> 10.0'
6
+ gem 'rake'
7
+ gem 'rubygems-tasks', '~> 0.2'
8
+ gem 'rspec', '~> 3.0'
9
+ gem 'yard', '~> 0.9'
7
10
  end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2015 Hal Brodigan
1
+ Copyright (c) 2013-2020 Hal Brodigan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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] 1.9.x, 2.0.x, 2.1.x, 2.2.x, [JRuby], [Rubinius].
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-2015 Hal Brodigan
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/
@@ -10,7 +10,4 @@ dependencies:
10
10
  kramdown: ~> 1.0
11
11
 
12
12
  development_dependencies:
13
- bundler: ~> 1.0
14
- rspec: ~> 3.0
15
- rubygems-tasks: ~> 0.2
16
- yard: ~> 0.8
13
+ bundler: ~> 2.0
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- require 'kramdown/man/version'
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 = [
@@ -1,4 +1,5 @@
1
1
  require 'kramdown'
2
2
 
3
- require 'kramdown/converter/man'
4
- require 'kramdown/man/version'
3
+ # HACK: load our version of kramdown/converter/man.rb and not kramdown's
4
+ require_relative './converter/man'
5
+ require_relative './man/version'
@@ -1,5 +1,5 @@
1
1
  require 'kramdown'
2
- require 'kramdown/converter/man'
2
+ require_relative '../converter/man'
3
3
 
4
4
  require 'rake/tasklib'
5
5
 
@@ -1,6 +1,6 @@
1
1
  module Kramdown
2
2
  module Man
3
3
  # kramdown-man version
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- .\" Generated by kramdown-man 0.1.5
1
+ .\" Generated by kramdown-man 0.1.7
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
3
  .TH kramdown-man.1 "April 2013" kramdown-man "User Manuals"
4
4
  .LP
@@ -1,6 +1,8 @@
1
1
  # encoding: utf-8
2
- require 'spec_helper'
3
- require 'kramdown/converter/man'
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
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require_relative '../spec_helper'
2
2
  require 'kramdown/man'
3
3
 
4
4
  describe Kramdown::Man do
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.6
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: 2015-12-26 00:00:00.000000000 Z
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: '1.0'
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.8'
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
- rubyforge_project:
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