rabbit 3.0.2 → 3.0.4
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.
- checksums.yaml +4 -4
- data/Gemfile +31 -0
- data/Rakefile +51 -73
- data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
- data/doc/_config.yml +2 -2
- data/doc/en/how-to-make/markdown.md +28 -2
- data/doc/en/how-to-make/rd.rd +28 -2
- data/doc/en/install/homebrew.rd +0 -15
- data/doc/en/news.rd +83 -0
- data/doc/en/sample/hiki/rabbit.hiki +1 -1
- data/doc/en/sample/markdown/rabbit.md +1 -1
- data/doc/en/sample/rd/rabbit.rd +1 -1
- data/doc/en/usage/rabbit-slide.rd +1 -1
- data/doc/en/usage/rabbit.rd +1 -1
- data/doc/ja/how-to-make/markdown.md +25 -5
- data/doc/ja/how-to-make/rd.rd +25 -5
- data/doc/ja/install/homebrew.rd +0 -15
- data/doc/ja/news.rd +83 -0
- data/doc/ja/usage/rabbit.rd +1 -1
- data/lib/rabbit/action.rb +1 -23
- data/lib/rabbit/canvas.rb +2 -10
- data/lib/rabbit/command/rabbit-slide.rb +1 -1
- data/lib/rabbit/command/rabbit.rb +6 -4
- data/lib/rabbit/cursor-manager.rb +5 -5
- data/lib/rabbit/element/text.rb +66 -0
- data/lib/rabbit/error.rb +9 -1
- data/lib/rabbit/frame.rb +22 -2
- data/lib/rabbit/front.rb +1 -1
- data/lib/rabbit/gesture/handler.rb +5 -8
- data/lib/rabbit/gtk.rb +44 -2
- data/lib/rabbit/image/mermaid.rb +3 -2
- data/lib/rabbit/info-window.rb +16 -2
- data/lib/rabbit/menu.rb +1 -3
- data/lib/rabbit/parser/ext/charty.rb +9 -0
- data/lib/rabbit/parser/markdown/converter.rb +3 -3
- data/lib/rabbit/parser/rd/ext/block-verbatim.rb +0 -12
- data/lib/rabbit/parser/rd/ext/inline-verbatim.rb +23 -0
- data/lib/rabbit/parser/wiki/output.rb +0 -6
- data/lib/rabbit/renderer/base.rb +1 -9
- data/lib/rabbit/renderer/display/base.rb +7 -5
- data/lib/rabbit/renderer/display/button-handler.rb +25 -10
- data/lib/rabbit/renderer/display/cursor.rb +18 -2
- data/lib/rabbit/renderer/display/drawing-area-base.rb +23 -7
- data/lib/rabbit/renderer/display/drawing-area-primitive.rb +35 -20
- data/lib/rabbit/renderer/display/gesture.rb +17 -1
- data/lib/rabbit/renderer/engine/cairo.rb +27 -13
- data/lib/rabbit/renderer/gl.rb +0 -81
- data/lib/rabbit/renderer/kernel.rb +0 -50
- data/lib/rabbit/renderer/offscreen.rb +1 -6
- data/lib/rabbit/renderer/printer.rb +2 -8
- data/lib/rabbit/renderer/screen.rb +6 -7
- data/lib/rabbit/source/argf.rb +17 -1
- data/lib/rabbit/source/base.rb +35 -10
- data/lib/rabbit/source/file.rb +17 -1
- data/lib/rabbit/source/uri.rb +17 -1
- data/lib/rabbit/theme/dark-gradation/dark-gradation.rb +2 -2
- data/lib/rabbit/theme/default-comment/default-comment.rb +1 -5
- data/lib/rabbit/theme/image-slide-number/property.rb +1 -1
- data/lib/rabbit/theme/title-background-image/title-background-image.rb +2 -2
- data/lib/rabbit/trackball.rb +21 -21
- data/lib/rabbit/utils.rb +5 -45
- data/lib/rabbit/version.rb +2 -2
- data/lib/rabbit/video-window.rb +6 -2
- data/po/en/rabbit.edit.po +27 -45
- data/po/en/rabbit.po +9 -24
- data/po/fr/rabbit.edit.po +27 -45
- data/po/fr/rabbit.po +9 -24
- data/po/ja/rabbit.edit.po +59 -71
- data/po/ja/rabbit.po +12 -24
- data/rabbit.gemspec +11 -14
- data/sample/gl-sample.rd +2 -4
- data/sample/rabbit/theme/gl-sample/gl-sample.rb +1 -1
- data/sample/rabbit-en.hiki +1 -1
- data/sample/rabbit-en.md +1 -1
- data/sample/rabbit-en.rd +1 -13
- data/sample/rabbit.rd +1 -13
- data/test/helper.rb +1 -2
- data/test/parser/test-markdown.rb +4 -3
- data/test/parser/test-rd.rb +3 -3
- data/test/parser/test-wiki.rb +2 -2
- data/test/test-readme-parser.rb +15 -12
- data/test/test-source.rb +2 -2
- metadata +35 -122
- data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
- data/doc/images/screenshots/en/blue-circle.png +0 -0
- data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
- data/doc/images/screenshots/en/clear-blue.png +0 -0
- data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
- data/doc/images/screenshots/en/cozmixng.png +0 -0
- data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
- data/doc/images/screenshots/en/dark-gradation.png +0 -0
- data/doc/images/screenshots/en/day-white-raw.png +0 -0
- data/doc/images/screenshots/en/day-white.png +0 -0
- data/doc/images/screenshots/en/debian-raw.png +0 -0
- data/doc/images/screenshots/en/debian.png +0 -0
- data/doc/images/screenshots/en/green-circle-raw.png +0 -0
- data/doc/images/screenshots/en/green-circle.png +0 -0
- data/doc/images/screenshots/en/night-black-raw.png +0 -0
- data/doc/images/screenshots/en/night-black.png +0 -0
- data/doc/images/screenshots/en/rabbit-raw.png +0 -0
- data/doc/images/screenshots/en/rabbit.png +0 -0
- data/doc/images/screenshots/en/ranguba-raw.png +0 -0
- data/doc/images/screenshots/en/ranguba.png +0 -0
- data/doc/images/screenshots/en/red-frame-raw.png +0 -0
- data/doc/images/screenshots/en/red-frame.png +0 -0
- data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
- data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
- data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
- data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
- data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
- data/doc/images/screenshots/ja/blue-circle.png +0 -0
- data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
- data/doc/images/screenshots/ja/clear-blue.png +0 -0
- data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
- data/doc/images/screenshots/ja/cozmixng.png +0 -0
- data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
- data/doc/images/screenshots/ja/dark-gradation.png +0 -0
- data/doc/images/screenshots/ja/day-white-raw.png +0 -0
- data/doc/images/screenshots/ja/day-white.png +0 -0
- data/doc/images/screenshots/ja/debian-raw.png +0 -0
- data/doc/images/screenshots/ja/debian.png +0 -0
- data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
- data/doc/images/screenshots/ja/green-circle.png +0 -0
- data/doc/images/screenshots/ja/night-black-raw.png +0 -0
- data/doc/images/screenshots/ja/night-black.png +0 -0
- data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
- data/doc/images/screenshots/ja/rabbit.png +0 -0
- data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
- data/doc/images/screenshots/ja/ranguba.png +0 -0
- data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
- data/doc/images/screenshots/ja/red-frame.png +0 -0
- data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
- data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
- data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
- data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
- data/lib/rabbit/parser/ext/emacs.rb +0 -121
- data/lib/rabbit/renderer/display/clutter-embed.rb +0 -606
- data/lib/rabbit/theme/clutter-comment/clutter-comment.rb +0 -76
- data/lib/rabbit/theme/clutter-comment/property.rb +0 -3
data/po/ja/rabbit.po
CHANGED
@@ -388,7 +388,7 @@ msgstr "新しいスライドのライセンス"
|
|
388
388
|
msgid "Tags of the new slide"
|
389
389
|
msgstr "新しいスライドのタグ"
|
390
390
|
|
391
|
-
msgid "Allotted time in
|
391
|
+
msgid "Allotted time in presentation"
|
392
392
|
msgstr "プレゼンの持ち時間"
|
393
393
|
|
394
394
|
msgid "Presentation date with the new slide"
|
@@ -888,6 +888,9 @@ msgstr "未知のカーソルタイプ: %s"
|
|
888
888
|
msgid "print isn't supported"
|
889
889
|
msgstr "印刷をサポートしていません"
|
890
890
|
|
891
|
+
msgid "unknown Font Awesome name: %s"
|
892
|
+
msgstr ""
|
893
|
+
|
891
894
|
msgid "Installing gem: %s"
|
892
895
|
msgstr "gemをインストール中: %s"
|
893
896
|
|
@@ -966,9 +969,6 @@ msgstr "実行したaafigureコマンド名: %s"
|
|
966
969
|
msgid "tried blockdiag command: %s"
|
967
970
|
msgstr "実行したblockdiagコマンド名: %s"
|
968
971
|
|
969
|
-
msgid "emacs: unsupported element name: %s"
|
970
|
-
msgstr "emacs: サポートしていない要素名です: %s"
|
971
|
-
|
972
972
|
msgid "enscript: unsupported language: %s"
|
973
973
|
msgstr "enscript: サポートしていない言語です: %s"
|
974
974
|
|
@@ -1156,12 +1156,6 @@ msgid ""
|
|
1156
1156
|
"do not want to make the toolkit work for certain slides."
|
1157
1157
|
msgstr "このツールキットをアンインストールするか否か。このオプションは、特定のスライドでツールキットを動かなくしたいときに便利です。"
|
1158
1158
|
|
1159
|
-
msgid "Clutter Comment"
|
1160
|
-
msgstr "Clutterコメント"
|
1161
|
-
|
1162
|
-
msgid "Show comment as a rolling Clutter actor."
|
1163
|
-
msgstr "コメントを回転するClutterのアクターとして表示します。"
|
1164
|
-
|
1165
1159
|
msgid "Color Circle block quote"
|
1166
1160
|
msgstr "色付きの円: 引用ブロック"
|
1167
1161
|
|
@@ -1557,8 +1551,8 @@ msgid "Color of numbers displayed on the start and goal flags."
|
|
1557
1551
|
msgstr "スタートとゴールの旗に表示される数字の色。"
|
1558
1552
|
|
1559
1553
|
msgid ""
|
1560
|
-
"Form of the start and goal flags.
|
1561
|
-
"rectangle'}))."
|
1554
|
+
"Form of the start and goal flags. Available forms are (({'triangle'})) and (({"
|
1555
|
+
"'rectangle'}))."
|
1562
1556
|
msgstr "スタートとゴールの旗の形。(({'triangle'})) (三角) と (({'rectangle'})) (四角) が指定可能です。"
|
1563
1557
|
|
1564
1558
|
msgid "File name of an image used as the start flag."
|
@@ -1675,16 +1669,14 @@ msgstr "便利"
|
|
1675
1669
|
msgid "Newline in Slides"
|
1676
1670
|
msgstr "スライド内での改行"
|
1677
1671
|
|
1678
|
-
|
1679
|
-
"Convenience '
|
1680
|
-
"' newline notation."
|
1672
|
+
#, fuzzy
|
1673
|
+
msgid "Convenience '\\n' newline notation."
|
1681
1674
|
msgstr ""
|
1682
1675
|
"便利な'\n"
|
1683
1676
|
"'改行記法。"
|
1684
1677
|
|
1685
|
-
|
1686
|
-
"Enable '
|
1687
|
-
"' notation to insert newline in all slides."
|
1678
|
+
#, fuzzy
|
1679
|
+
msgid "Enable '\\n' notation to insert newline in all slides."
|
1688
1680
|
msgstr ""
|
1689
1681
|
"タイトルで改行を挿入する'\n"
|
1690
1682
|
"'記法を有効にする。"
|
@@ -1692,9 +1684,8 @@ msgstr ""
|
|
1692
1684
|
msgid "Newline in Title"
|
1693
1685
|
msgstr "タイトル内での改行"
|
1694
1686
|
|
1695
|
-
|
1696
|
-
"Enable '
|
1697
|
-
"' notation to insert newline in title."
|
1687
|
+
#, fuzzy
|
1688
|
+
msgid "Enable '\\n' notation to insert newline in title."
|
1698
1689
|
msgstr ""
|
1699
1690
|
"タイトルで改行を挿入する'\n"
|
1700
1691
|
"'記法を有効にする。"
|
@@ -2177,6 +2168,3 @@ msgstr "影の色。"
|
|
2177
2168
|
|
2178
2169
|
msgid "TitleSlideBackgroundImage"
|
2179
2170
|
msgstr "タイトルスライド背景画像"
|
2180
|
-
|
2181
|
-
msgid "![alt]{image} and other contents in a paragraph isn't supported: [:text, :img]"
|
2182
|
-
msgstr "ひとつの段落中で「![alt]{image}」と他の内容を一緒に使うことはできません: [:text, :img]"
|
data/rabbit.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
1
|
+
# Copyright (C) 2012-2024 Kouhei Sutou <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -66,23 +66,20 @@ can see your slide at https://slide.rabbit-shocker.org/ .
|
|
66
66
|
|
67
67
|
spec.required_ruby_version = ">= 2.4.0"
|
68
68
|
|
69
|
+
spec.add_runtime_dependency("coderay", ">= 1.0.0")
|
70
|
+
spec.add_runtime_dependency("csv")
|
71
|
+
spec.add_runtime_dependency("drb")
|
69
72
|
spec.add_runtime_dependency("gdk_pixbuf2", ">= 3.0.9")
|
73
|
+
spec.add_runtime_dependency("gettext", ">= 3.0.1")
|
74
|
+
# spec.add_runtime_dependency("gstreamer")
|
70
75
|
spec.add_runtime_dependency("gtk3")
|
71
|
-
spec.add_runtime_dependency("rsvg2", ">= 3.1.4")
|
72
|
-
spec.add_runtime_dependency("poppler", ">= 3.2.5")
|
73
76
|
spec.add_runtime_dependency("hikidoc")
|
77
|
+
spec.add_runtime_dependency("kramdown-parser-gfm")
|
74
78
|
spec.add_runtime_dependency("nokogiri")
|
79
|
+
spec.add_runtime_dependency("ostruct")
|
80
|
+
spec.add_runtime_dependency("poppler", ">= 3.2.5")
|
75
81
|
spec.add_runtime_dependency("rdtool")
|
76
|
-
spec.add_runtime_dependency("rttool")
|
77
|
-
spec.add_runtime_dependency("coderay", ">= 1.0.0")
|
78
|
-
spec.add_runtime_dependency("kramdown-parser-gfm")
|
79
|
-
spec.add_runtime_dependency("gettext", ">= 3.0.1")
|
80
|
-
# spec.add_runtime_dependency("gstreamer")
|
81
82
|
spec.add_runtime_dependency("rouge")
|
82
|
-
|
83
|
-
spec.
|
84
|
-
spec.add_development_dependency("test-unit-rr")
|
85
|
-
spec.add_development_dependency("rake")
|
86
|
-
spec.add_development_dependency("bundler")
|
87
|
-
spec.add_development_dependency("jekyll")
|
83
|
+
spec.add_runtime_dependency("rsvg2", ">= 3.1.4")
|
84
|
+
spec.add_runtime_dependency("rttool")
|
88
85
|
end
|
data/sample/gl-sample.rd
CHANGED
data/sample/rabbit-en.hiki
CHANGED
data/sample/rabbit-en.md
CHANGED
@@ -143,7 +143,7 @@ background-image-relative-margin-right
|
|
143
143
|
|
144
144
|
{:relative_width="30" align="right" relative_margin_right="-5"}
|
145
145
|
|
146
|
-
* Right justified
|
146
|
+
* Right justified background image
|
147
147
|
* Specify in slide
|
148
148
|
* \{:align="right"\}
|
149
149
|
|
data/sample/rabbit-en.rd
CHANGED
@@ -170,7 +170,7 @@ A presentation tool
|
|
170
170
|
# # vertical-align = top
|
171
171
|
# relative-margin-right = -5
|
172
172
|
|
173
|
-
* Right justified
|
173
|
+
* Right justified background image
|
174
174
|
* Specify in slide
|
175
175
|
* align = right
|
176
176
|
|
@@ -328,18 +328,6 @@ The following is source code:
|
|
328
328
|
|
329
329
|
End of source code.
|
330
330
|
|
331
|
-
= Source: Emacs
|
332
|
-
|
333
|
-
The following is source code:
|
334
|
-
|
335
|
-
# emacs # -*- ruby -*-
|
336
|
-
# comment
|
337
|
-
def method_name
|
338
|
-
body
|
339
|
-
end
|
340
|
-
|
341
|
-
End of source code.
|
342
|
-
|
343
331
|
= Source: Rouge
|
344
332
|
|
345
333
|
The following is source code:
|
data/sample/rabbit.rd
CHANGED
@@ -180,7 +180,7 @@
|
|
180
180
|
# src = lavie.png
|
181
181
|
# relative_height = 80
|
182
182
|
# draw0 = [rectangle, false, 0.05, 0.1, 0.1, 0.2, {color: red, line_width: 3}]
|
183
|
-
# draw1 = [line, 0.2, 0.1, 0.3, 0.2, {color: blue, line_width: 5}]
|
183
|
+
# draw1 = [line, 0.2, 0.1, 0.3, 0.2, {color: blue, line_width: 5, dash: [[1, 6], 0]}]
|
184
184
|
# draw2 = [text, Cute!, 0.05, 0.4, {color: Green, size: 25}]
|
185
185
|
# draw10 = [line, 0.0, 0.0, 0.5, 0.5, 0.25, 0.5, {line_width: 10, line_cap: butt, line_join: miter}]
|
186
186
|
|
@@ -337,18 +337,6 @@ URL先の画像をダウンロード
|
|
337
337
|
|
338
338
|
以上がソース
|
339
339
|
|
340
|
-
= ソース: Emacs
|
341
|
-
|
342
|
-
以下がソース
|
343
|
-
|
344
|
-
# emacs # -*- ruby -*-
|
345
|
-
# comment
|
346
|
-
def method_name
|
347
|
-
body
|
348
|
-
end
|
349
|
-
|
350
|
-
以上がソース
|
351
|
-
|
352
340
|
= ソース: Rouge
|
353
341
|
|
354
342
|
以下がソース
|
data/test/helper.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2004-
|
1
|
+
# Copyright (C) 2004-2024 Sutou Kouhei <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -19,7 +19,6 @@ require "rbconfig"
|
|
19
19
|
require "tmpdir"
|
20
20
|
|
21
21
|
require "test-unit"
|
22
|
-
require "test/unit/rr"
|
23
22
|
|
24
23
|
require "helper/fixture"
|
25
24
|
require "helper/parser"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014-
|
1
|
+
# Copyright (C) 2014-2024 Sutou Kouhei <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -44,7 +44,7 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
|
|
44
44
|
],
|
45
45
|
],
|
46
46
|
],
|
47
|
-
parse("# Title"))
|
47
|
+
parse(+"# Title"))
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -287,7 +287,8 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
|
|
287
287
|
|
288
288
|
def test_unsupported
|
289
289
|
image_path = fixture_path("image/png/lavie.png")
|
290
|
-
|
290
|
+
format = _("![alt]{image} and other contents in a paragraph isn't supported: %{types}")
|
291
|
+
message = format % {types: [:text, :img]}
|
291
292
|
assert_raise(Rabbit::ParseError.new(message)) do
|
292
293
|
parse(<<-MARKDOWN)
|
293
294
|
a 
|
data/test/parser/test-rd.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014-
|
1
|
+
# Copyright (C) 2014-2024 Sutou Kouhei <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -32,11 +32,11 @@ class RabbitParserRDTest < Test::Unit::TestCase
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def test_with_space
|
35
|
-
assert_true(match?("= Hello"))
|
35
|
+
assert_true(match?(+"= Hello"))
|
36
36
|
end
|
37
37
|
|
38
38
|
def test_no_space
|
39
|
-
assert_true(match?("=Hello"))
|
39
|
+
assert_true(match?(+"=Hello"))
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
data/test/parser/test-wiki.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2015-
|
1
|
+
# Copyright (C) 2015-2024 Sutou Kouhei <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -34,7 +34,7 @@ class RabbitParserWikiTest < Test::Unit::TestCase
|
|
34
34
|
class InlineTest < self
|
35
35
|
test "unsupported" do
|
36
36
|
image_path = fixture_path("image/png/lavie.png")
|
37
|
-
wiki_text =
|
37
|
+
wiki_text = +<<-WIKI
|
38
38
|
! Title
|
39
39
|
|
40
40
|
! Slide
|
data/test/test-readme-parser.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
1
|
+
# Copyright (C) 2012-2024 Sutou Kouhei <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -30,17 +30,20 @@ Please try to create your original theme!
|
|
30
30
|
|
31
31
|
private
|
32
32
|
def assert_parse(content, extension=nil)
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
33
|
+
Tempfile.create(["README", extension]) do |readme_file|
|
34
|
+
readme_file.print(content)
|
35
|
+
readme_file.close
|
36
|
+
|
37
|
+
@parser.parse(readme_file.path)
|
38
|
+
assert_equal({
|
39
|
+
:title => @title,
|
40
|
+
:description => @description,
|
41
|
+
},
|
42
|
+
{
|
43
|
+
:title => @parser.title,
|
44
|
+
:description => @parser.description,
|
45
|
+
})
|
46
|
+
end
|
44
47
|
end
|
45
48
|
|
46
49
|
class TestRD < self
|
data/test/test-source.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2004-
|
1
|
+
# Copyright (C) 2004-2024 Kouhei Sutou <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -35,7 +35,7 @@ class RabbitSourceTest < Test::Unit::TestCase
|
|
35
35
|
|
36
36
|
class ReadTest < self
|
37
37
|
def test_binary
|
38
|
-
pdf_header = "%PDF-1.5\n%\xb5\xed\xae\xfb\n"
|
38
|
+
pdf_header = +"%PDF-1.5\n%\xb5\xed\xae\xfb\n"
|
39
39
|
pdf_header.force_encoding("ASCII-8BIT")
|
40
40
|
assert_equal(pdf_header, read(pdf_header))
|
41
41
|
end
|