github-markup 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module GitHub
10
10
 
11
11
  def to_html
12
12
  simple_markup = SM::SimpleMarkup.new
13
- generator = Generators::HyperlinkHtml.new(nil, OpenStruct.new)
13
+ generator = Generators::HyperlinkHtml.new('', OpenStruct.new)
14
14
  simple_markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK)
15
15
  simple_markup.add_special(/(((\{.*?\})|\b\S+?)\[\S+?\.\S+?\])/, :TIDYLINK)
16
16
  simple_markup.convert(@content, generator)
@@ -1,5 +1,5 @@
1
1
  module GitHub
2
2
  module Markup
3
- Version = VERSION = '0.5.0'
3
+ Version = VERSION = '0.5.1'
4
4
  end
5
5
  end
@@ -1,2 +1,6 @@
1
1
  * One
2
2
  * Two
3
+
4
+ This is an {absolute link}[http://github.com]. So is this: http://github.com
5
+
6
+ This is a {relative link}[link:rawr.html]. So is this: link:rawr.html
@@ -6,3 +6,11 @@
6
6
 
7
7
  </li>
8
8
  </ul>
9
+ <p>
10
+ This is an <a href="http://github.com">absolute link</a>. So is this: <a
11
+ href="http://github.com">github.com</a>
12
+ </p>
13
+ <p>
14
+ This is a <a href="rawr.html">relative link</a>. So is this: <a
15
+ href="rawr.html">rawr.html</a>
16
+ </p>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 0
9
- version: 0.5.0
8
+ - 1
9
+ version: 0.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Wanstrath
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-07 00:00:00 -05:00
17
+ date: 2010-12-10 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -32,7 +32,6 @@ files:
32
32
  - LICENSE
33
33
  - lib/github/commands/asciidoc2html
34
34
  - lib/github/commands/asciidocapi.py
35
- - lib/github/commands/asciidocapi.pyc
36
35
  - lib/github/commands/rest2html
37
36
  - lib/github/markup/rdoc.rb
38
37
  - lib/github/markup/version.rb
Binary file