github-markup 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/github-markup.gemspec +2 -2
- data/lib/github/markups.rb +4 -1
- metadata +7 -10
data/github-markup.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'github-markup'
|
16
|
-
s.version = '0.7.
|
17
|
-
s.date = '2012-
|
16
|
+
s.version = '0.7.2'
|
17
|
+
s.date = '2012-04-05'
|
18
18
|
s.executables = ['github-markup']
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
data/lib/github/markups.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
MD_FILES = /md|mkdn?|mdown|markdown/
|
2
2
|
|
3
|
-
if markup(
|
3
|
+
if markup('github/markdown', MD_FILES) do |content|
|
4
|
+
GitHub::Markdown.render(content)
|
5
|
+
end
|
6
|
+
elsif markup(:redcarpet, MD_FILES) do |content|
|
4
7
|
RedcarpetCompat.new(content).to_html
|
5
8
|
end
|
6
9
|
elsif markup(:rdiscount, MD_FILES) do |content|
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-markup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
8
|
+
- 2
|
9
|
+
version: 0.7.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Chris Wanstrath
|
@@ -15,7 +14,8 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2012-
|
17
|
+
date: 2012-04-05 00:00:00 -07:00
|
18
|
+
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: " This gem is used by GitHub to render any fancy markup such as\n Markdown, Textile, Org-Mode, etc. Fork it and add your own!\n"
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- test/markups/README.textile.html
|
68
68
|
- test/markups/README.txt
|
69
69
|
- test/markups/README.txt.html
|
70
|
+
has_rdoc: true
|
70
71
|
homepage: https://github.com/github/markup
|
71
72
|
licenses: []
|
72
73
|
|
@@ -76,27 +77,23 @@ rdoc_options:
|
|
76
77
|
require_paths:
|
77
78
|
- lib
|
78
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
hash: 3
|
84
83
|
segments:
|
85
84
|
- 0
|
86
85
|
version: "0"
|
87
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
87
|
requirements:
|
90
88
|
- - ">="
|
91
89
|
- !ruby/object:Gem::Version
|
92
|
-
hash: 3
|
93
90
|
segments:
|
94
91
|
- 0
|
95
92
|
version: "0"
|
96
93
|
requirements: []
|
97
94
|
|
98
95
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.
|
96
|
+
rubygems_version: 1.3.6
|
100
97
|
signing_key:
|
101
98
|
specification_version: 2
|
102
99
|
summary: The code GitHub uses to render README.markup
|