github-markup 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.0'
17
- s.date = '2011-12-07'
18
- s.rubyforge_project = 'github-markup'
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.
@@ -1,6 +1,6 @@
1
1
  module GitHub
2
2
  module Markup
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
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: 2011-12-07 00:00:00 Z
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: github-markup
99
- rubygems_version: 1.8.10
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