redrug 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +15 -1
- data/lib/red_rug.rb +7 -8
- metadata +10 -6
data/README
CHANGED
@@ -1,3 +1,17 @@
|
|
1
1
|
# redrug
|
2
2
|
|
3
|
-
The redcarpet library can be a bit cumbersome to use, and redrug aims to
|
3
|
+
The redcarpet library can be a bit cumbersome to use, and redrug aims to
|
4
|
+
rectify this problem by wrapping it with simpler interfaces for common use
|
5
|
+
cases.
|
6
|
+
|
7
|
+
## Command Line Usage
|
8
|
+
|
9
|
+
The redrug gem provides a `redrug` command line utility that takes a Markdown
|
10
|
+
formatted file as input and translates it into HTML, dumping the results to
|
11
|
+
standard output. The usual approach would be to use a redirect to send the
|
12
|
+
output to a persistent file instead:
|
13
|
+
|
14
|
+
$ redrug filename.md > filename.html
|
15
|
+
|
16
|
+
This translates the contents of a Markdown formatted file, `filename.md`, into
|
17
|
+
HTML, then writes that HTML into a file called `filename.html`.
|
data/lib/red_rug.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'redcarpet'
|
2
|
+
require 'versionize'
|
2
3
|
|
3
4
|
=begin rdoc
|
4
5
|
|
@@ -9,14 +10,12 @@ common tasks. At present, only HTML output is supported.
|
|
9
10
|
=end
|
10
11
|
|
11
12
|
module RedRug
|
12
|
-
|
13
|
-
=
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
def self.version; '0.2.4'; end
|
13
|
+
include Versionize
|
14
|
+
@version = {
|
15
|
+
:major => 0,
|
16
|
+
:minor => 2,
|
17
|
+
:revision => 5
|
18
|
+
}
|
20
19
|
|
21
20
|
=begin rdoc
|
22
21
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redrug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redcarpet
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description: ! " RedRug is a wrapper for Redcarpet, intended to provide more convenient\n
|
26
31
|
\ interfaces for common Markdown parsing use cases.\n"
|
27
32
|
email: code@apotheon.net
|
@@ -59,9 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
64
|
version: '0'
|
60
65
|
requirements: []
|
61
66
|
rubyforge_project:
|
62
|
-
rubygems_version: 1.8.
|
67
|
+
rubygems_version: 1.8.25
|
63
68
|
signing_key:
|
64
69
|
specification_version: 3
|
65
70
|
summary: RedRug - Simple Markdown Interface
|
66
71
|
test_files: []
|
67
|
-
has_rdoc: true
|