bluefeather 0.21 → 0.22

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.
@@ -166,3 +166,4 @@ namespace :specd do
166
166
  end
167
167
  end
168
168
 
169
+ task 'test-all' => [:spec, 'original-test']
@@ -18,7 +18,7 @@
18
18
  <li><a href="http://ja.wikipedia.org/wiki/GNU_General_Public_License">Wikipedia - GNU General Public License</a></li>
19
19
  </ul>
20
20
 
21
- <p>BlueFeather への要望、ご意見、バグ報告などがありましたら、<a href="http://ruby.morphball.net/bluefeather/">BlueFeather 配布サイト</a>よりメッセージを送信していただくか、もしくは Dice(<a href="&#109;&#x61;&#105;&#108;&#116;&#x6F;:&#x74;&#x65;&#116;&#x72;&#097;&#x64;i&#x63;&#101;&#064;&#103;&#x6D;&#097;&#105;&#x6C;&#x2E;&#099;&#x6F;&#109;">&#x74;&#x65;&#116;&#x72;&#097;&#x64;i&#x63;&#101;&#064;&#103;&#x6D;&#097;&#105;&#x6C;&#x2E;&#099;&#x6F;&#109;</a>)までメールでご連絡していただけるよう、よろしくお願いします。</p>
21
+ <p>BlueFeather への要望、ご意見、バグ報告などがありましたら、<a href="http://ruby.morphball.net/bluefeather/">BlueFeather 配布サイト</a>よりメッセージを送信していただくか、もしくは Dice(<a href="&#109;&#x61;&#105;&#x6C;&#116;&#111;:&#x74;&#x65;&#116;&#x72;&#x61;&#100;i&#x63;&#101;&#064;&#x67;&#x6D;a&#105;l&#x2E;&#x63;&#x6F;&#109;">&#x74;&#x65;&#116;&#x72;&#x61;&#100;i&#x63;&#101;&#064;&#x67;&#x6D;a&#105;l&#x2E;&#x63;&#x6F;&#109;</a>)までメールでご連絡していただけるよう、よろしくお願いします。</p>
22
22
 
23
23
  </body>
24
24
  </html>
@@ -24,7 +24,7 @@
24
24
  <p>If you want to send requests, comments, or bug reports to BlueFeather, please
25
25
  feel free to post messages from
26
26
  <a href="http://ruby.morphball.net/bluefeather/index_en.html">http://ruby.morphball.net/bluefeather/index_en.html</a> or to send mail to Dice.
27
- (<a href="&#109;&#097;&#105;&#108;&#x74;&#x6F;:&#x74;e&#116;&#x72;&#097;&#x64;&#x69;&#x63;e&#064;&#103;&#x6D;&#097;&#105;&#108;&#046;&#x63;&#x6F;&#109;">&#x74;e&#116;&#x72;&#097;&#x64;&#x69;&#x63;e&#064;&#103;&#x6D;&#097;&#105;&#108;&#046;&#x63;&#x6F;&#109;</a>)</p>
27
+ (<a href="m&#097;&#x69;&#108;&#116;&#111;:&#x74;&#101;&#116;r&#097;&#100;&#105;&#099;&#101;&#064;g&#109;&#097;&#105;&#108;&#046;&#x63;&#111;&#x6D;">&#x74;&#101;&#116;r&#097;&#100;&#105;&#099;&#101;&#064;g&#109;&#097;&#105;&#108;&#046;&#x63;&#111;&#x6D;</a>)</p>
28
28
 
29
29
  </body>
30
30
  </html>
@@ -10,7 +10,7 @@ BlueFeather Manual
10
10
 
11
11
  -> [Japanese version (original)](../index.html)
12
12
 
13
- (2009-05-15: this document based on version 0.21)
13
+ (2009-06-15: this document based on version 0.22)
14
14
 
15
15
  BlueFeather is software for converting text written by extended Markdown like
16
16
  [PHP Markdown Extra][] to html. It is pair of command-line tool and pure Ruby
@@ -12,7 +12,7 @@
12
12
 
13
13
  <p>-> <a href="../index.html">Japanese version (original)</a></p>
14
14
 
15
- <p>(2009-05-15: this document based on version 0.21)</p>
15
+ <p>(2009-06-15: this document based on version 0.22)</p>
16
16
 
17
17
  <p>BlueFeather is software for converting text written by extended Markdown like
18
18
  <a href="http://michelf.com/projects/php-markdown/extra/">PHP Markdown Extra</a> to html. It is pair of command-line tool and pure Ruby
@@ -9,7 +9,7 @@ BlueFeather マニュアル
9
9
  → [English version](en/index.html)
10
10
 
11
11
 
12
- (2009-05-15 バージョン 0.21 準拠)
12
+ (2009-06-15 バージョン 0.22 準拠)
13
13
 
14
14
  BlueFeather は、拡張 Markdown 記法で書かれたテキストを html に変換するソフトウェアです。
15
15
  コマンドラインツールと、Ruby スクリプト内で変換を行うためのライブラリがセットになっています。
@@ -13,7 +13,7 @@
13
13
 
14
14
  <p>→ <a href="en/index.html">English version</a></p>
15
15
 
16
- <p>(2009-05-15 バージョン 0.21 準拠)</p>
16
+ <p>(2009-06-15 バージョン 0.22 準拠)</p>
17
17
 
18
18
  <p>BlueFeather は、拡張 Markdown 記法で書かれたテキストを html に変換するソフトウェアです。
19
19
  コマンドラインツールと、Ruby スクリプト内で変換を行うためのライブラリがセットになっています。</p>
@@ -42,8 +42,8 @@ require 'uri'
42
42
 
43
43
 
44
44
  module BlueFeather
45
- VERSION = '0.21'
46
- VERSION_NUMBER = 0.21
45
+ VERSION = '0.22'
46
+ VERSION_NUMBER = 0.22
47
47
  RELEASE_DATE = '2009-05-16'
48
48
  VERSION_LABEL = "#{VERSION} (#{RELEASE_DATE})"
49
49
 
@@ -507,7 +507,7 @@ module BlueFeather
507
507
 
508
508
 
509
509
  def parse_document(source, default_enc = EncodingType::UTF8)
510
- doc = Document.parse_io(source, default_enc)
510
+ doc = Document.parse(source, default_enc)
511
511
 
512
512
  return document_to_html(doc)
513
513
  end
@@ -646,7 +646,6 @@ module BlueFeather
646
646
  text = transform_definition_lists( text, rs ) # BlueFeather Extension
647
647
  text = transform_code_blocks( text, rs )
648
648
  text = transform_block_quotes( text, rs )
649
- text = transform_auto_links( text, rs )
650
649
  text = hide_html_blocks( text, rs )
651
650
 
652
651
  text = transform_tables(text, rs)
@@ -664,6 +663,7 @@ module BlueFeather
664
663
  @log.debug "Applying span transforms to:\n %p" % str
665
664
 
666
665
  str = transform_code_spans( str, rs )
666
+ str = transform_auto_links( str, rs )
667
667
  str = encode_html( str )
668
668
  str = transform_images( str, rs )
669
669
  str = transform_anchors( str, rs )
@@ -12,7 +12,10 @@ describe 'Escape Characters:' do
12
12
  @bf.parse_text("\\#{c}").should == "<p>#{c}</p>"
13
13
  end
14
14
  end
15
-
16
-
15
+ end
17
16
 
17
+ describe 'Backquote Escape:' do
18
+ specify do
19
+ BlueFeather.parse_text('`<http://example.net/>`').should == "<p><code>&lt;http://example.net/&gt;</code></p>"
20
+ end
18
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluefeather
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.21"
4
+ version: "0.22"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dice
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-16 00:00:00 +09:00
12
+ date: 2009-06-15 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -36,7 +36,7 @@ files:
36
36
  - spec/cui.rb
37
37
  - spec/dl.rb
38
38
  - spec/encoding.rb
39
- - spec/escape-char.rb
39
+ - spec/escape.rb
40
40
  - spec/footnote.rb
41
41
  - spec/header-id.rb
42
42
  - spec/lib/common.rb