Permalink
Browse files

capitalize the "man" in Md2Man for great honor

  • Loading branch information...
1 parent 24ef16c commit 04d3feb8d5d62553bd6468ba58e75d90adf49aa3 @sunaku committed Dec 7, 2011
Showing with 12 additions and 12 deletions.
  1. +4 −4 README.markdown
  2. +1 −1 bin/md2man
  3. +2 −2 lib/md2man/engine.rb
  4. +1 −1 lib/md2man/roff.rb
  5. +1 −1 lib/md2man/version.rb
  6. +1 −1 md2man.gemspec
  7. +2 −2 test/md2man/roff_test.rb
View
@@ -37,19 +37,19 @@ Library Usage
Use the default renderer:
require 'md2man'
- your_roff_output = Md2man::ENGINE.render(your_markdown_input)
+ your_roff_output = Md2Man::ENGINE.render(your_markdown_input)
Build your own renderer:
require 'md2man'
- engine = Redcarpet::Markdown.new(Md2man::Engine, your_options_hash)
+ engine = Redcarpet::Markdown.new(Md2Man::Engine, your_options_hash)
your_roff_output = engine.render(your_markdown_input)
Define your own renderer:
require 'md2man'
- class YourManpageRenderer < Md2man::Engine
+ class YourManpageRenderer < Md2Man::Engine
# ... your stuff here ...
end
@@ -61,7 +61,7 @@ Mix-in your own renderer:
require 'md2man'
class YourManpageRenderer < Redcarpet::Render::Base
- include Md2man::Roff
+ include Md2Man::Roff
# ... your stuff here ...
end
View
@@ -60,4 +60,4 @@ require 'binman'
BinMan.help
require 'md2man'
-puts Md2man::ENGINE.render(ARGF.read)
+puts Md2Man::ENGINE.render(ARGF.read)
View
@@ -1,13 +1,13 @@
require 'redcarpet'
require 'md2man/roff'
-module Md2man
+module Md2Man
class Engine < Redcarpet::Render::Base
include Roff
end
ENGINE = Redcarpet::Markdown.new(
- Md2man::Engine,
+ Md2Man::Engine,
:tables => true,
:autolink => true,
:superscript => true,
View
@@ -1,4 +1,4 @@
-module Md2man
+module Md2Man
module Roff
#---------------------------------------------------------------------------
View
@@ -1,3 +1,3 @@
-module Md2man
+module Md2Man
VERSION = "1.0.0"
end
View
@@ -5,7 +5,7 @@ require "binman/gemspec"
Gem::Specification.new do |s|
s.name = "md2man"
- s.version = Md2man::VERSION
+ s.version = Md2Man::VERSION
s.authors,
s.email = File.read('LICENSE').scan(/Copyright \d+ (.+) <(.+?)>/).transpose
s.homepage = "http://github.com/sunaku/md2man"
View
@@ -9,10 +9,10 @@
require 'test_helper'
require 'md2man/engine'
-describe Md2man::Roff do
+describe Md2Man::Roff do
before do
@markdown = Redcarpet::Markdown.new(
- Md2man::Engine,
+ Md2Man::Engine,
:tables => true,
:autolink => true,
)

0 comments on commit 04d3feb

Please sign in to comment.