github-markup 0.7.0 → 0.7.1
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/github-markup.gemspec +3 -3
- data/lib/github-markup.rb +1 -1
- data/lib/github/markup.rb +9 -0
- metadata +8 -8
data/github-markup.gemspec
CHANGED
|
@@ -13,9 +13,9 @@ 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 = '
|
|
18
|
-
s.
|
|
16
|
+
s.version = '0.7.1'
|
|
17
|
+
s.date = '2012-02-13'
|
|
18
|
+
s.executables = ['github-markup']
|
|
19
19
|
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
|
21
21
|
## as you like.
|
data/lib/github-markup.rb
CHANGED
data/lib/github/markup.rb
CHANGED
|
@@ -69,6 +69,15 @@ module GitHub
|
|
|
69
69
|
nil
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
def renderer_name(filename)
|
|
73
|
+
@@markups.each do |key, value|
|
|
74
|
+
if Regexp.compile("\\.(#{key})$") =~ filename
|
|
75
|
+
return key
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
nil
|
|
79
|
+
end
|
|
80
|
+
|
|
72
81
|
def execute(command, target)
|
|
73
82
|
out = ''
|
|
74
83
|
Open3.popen3(command) do |stdin, stdout, _|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github-markup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
|
-
-
|
|
10
|
-
version: 0.7.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.7.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Chris Wanstrath
|
|
@@ -15,13 +15,13 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2012-02-13 00:00:00 Z
|
|
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"
|
|
22
22
|
email: chris@ozmm.org
|
|
23
|
-
executables:
|
|
24
|
-
|
|
23
|
+
executables:
|
|
24
|
+
- github-markup
|
|
25
25
|
extensions: []
|
|
26
26
|
|
|
27
27
|
extra_rdoc_files:
|
|
@@ -95,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
95
95
|
version: "0"
|
|
96
96
|
requirements: []
|
|
97
97
|
|
|
98
|
-
rubyforge_project:
|
|
99
|
-
rubygems_version: 1.8.
|
|
98
|
+
rubyforge_project:
|
|
99
|
+
rubygems_version: 1.8.11
|
|
100
100
|
signing_key:
|
|
101
101
|
specification_version: 2
|
|
102
102
|
summary: The code GitHub uses to render README.markup
|