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.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +31 -0
  3. data/Rakefile +51 -73
  4. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  5. data/doc/_config.yml +2 -2
  6. data/doc/en/how-to-make/markdown.md +28 -2
  7. data/doc/en/how-to-make/rd.rd +28 -2
  8. data/doc/en/install/homebrew.rd +0 -15
  9. data/doc/en/news.rd +83 -0
  10. data/doc/en/sample/hiki/rabbit.hiki +1 -1
  11. data/doc/en/sample/markdown/rabbit.md +1 -1
  12. data/doc/en/sample/rd/rabbit.rd +1 -1
  13. data/doc/en/usage/rabbit-slide.rd +1 -1
  14. data/doc/en/usage/rabbit.rd +1 -1
  15. data/doc/ja/how-to-make/markdown.md +25 -5
  16. data/doc/ja/how-to-make/rd.rd +25 -5
  17. data/doc/ja/install/homebrew.rd +0 -15
  18. data/doc/ja/news.rd +83 -0
  19. data/doc/ja/usage/rabbit.rd +1 -1
  20. data/lib/rabbit/action.rb +1 -23
  21. data/lib/rabbit/canvas.rb +2 -10
  22. data/lib/rabbit/command/rabbit-slide.rb +1 -1
  23. data/lib/rabbit/command/rabbit.rb +6 -4
  24. data/lib/rabbit/cursor-manager.rb +5 -5
  25. data/lib/rabbit/element/text.rb +66 -0
  26. data/lib/rabbit/error.rb +9 -1
  27. data/lib/rabbit/frame.rb +22 -2
  28. data/lib/rabbit/front.rb +1 -1
  29. data/lib/rabbit/gesture/handler.rb +5 -8
  30. data/lib/rabbit/gtk.rb +44 -2
  31. data/lib/rabbit/image/mermaid.rb +3 -2
  32. data/lib/rabbit/info-window.rb +16 -2
  33. data/lib/rabbit/menu.rb +1 -3
  34. data/lib/rabbit/parser/ext/charty.rb +9 -0
  35. data/lib/rabbit/parser/markdown/converter.rb +3 -3
  36. data/lib/rabbit/parser/rd/ext/block-verbatim.rb +0 -12
  37. data/lib/rabbit/parser/rd/ext/inline-verbatim.rb +23 -0
  38. data/lib/rabbit/parser/wiki/output.rb +0 -6
  39. data/lib/rabbit/renderer/base.rb +1 -9
  40. data/lib/rabbit/renderer/display/base.rb +7 -5
  41. data/lib/rabbit/renderer/display/button-handler.rb +25 -10
  42. data/lib/rabbit/renderer/display/cursor.rb +18 -2
  43. data/lib/rabbit/renderer/display/drawing-area-base.rb +23 -7
  44. data/lib/rabbit/renderer/display/drawing-area-primitive.rb +35 -20
  45. data/lib/rabbit/renderer/display/gesture.rb +17 -1
  46. data/lib/rabbit/renderer/engine/cairo.rb +27 -13
  47. data/lib/rabbit/renderer/gl.rb +0 -81
  48. data/lib/rabbit/renderer/kernel.rb +0 -50
  49. data/lib/rabbit/renderer/offscreen.rb +1 -6
  50. data/lib/rabbit/renderer/printer.rb +2 -8
  51. data/lib/rabbit/renderer/screen.rb +6 -7
  52. data/lib/rabbit/source/argf.rb +17 -1
  53. data/lib/rabbit/source/base.rb +35 -10
  54. data/lib/rabbit/source/file.rb +17 -1
  55. data/lib/rabbit/source/uri.rb +17 -1
  56. data/lib/rabbit/theme/dark-gradation/dark-gradation.rb +2 -2
  57. data/lib/rabbit/theme/default-comment/default-comment.rb +1 -5
  58. data/lib/rabbit/theme/image-slide-number/property.rb +1 -1
  59. data/lib/rabbit/theme/title-background-image/title-background-image.rb +2 -2
  60. data/lib/rabbit/trackball.rb +21 -21
  61. data/lib/rabbit/utils.rb +5 -45
  62. data/lib/rabbit/version.rb +2 -2
  63. data/lib/rabbit/video-window.rb +6 -2
  64. data/po/en/rabbit.edit.po +27 -45
  65. data/po/en/rabbit.po +9 -24
  66. data/po/fr/rabbit.edit.po +27 -45
  67. data/po/fr/rabbit.po +9 -24
  68. data/po/ja/rabbit.edit.po +59 -71
  69. data/po/ja/rabbit.po +12 -24
  70. data/rabbit.gemspec +11 -14
  71. data/sample/gl-sample.rd +2 -4
  72. data/sample/rabbit/theme/gl-sample/gl-sample.rb +1 -1
  73. data/sample/rabbit-en.hiki +1 -1
  74. data/sample/rabbit-en.md +1 -1
  75. data/sample/rabbit-en.rd +1 -13
  76. data/sample/rabbit.rd +1 -13
  77. data/test/helper.rb +1 -2
  78. data/test/parser/test-markdown.rb +4 -3
  79. data/test/parser/test-rd.rb +3 -3
  80. data/test/parser/test-wiki.rb +2 -2
  81. data/test/test-readme-parser.rb +15 -12
  82. data/test/test-source.rb +2 -2
  83. metadata +35 -122
  84. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  85. data/doc/images/screenshots/en/blue-circle.png +0 -0
  86. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  87. data/doc/images/screenshots/en/clear-blue.png +0 -0
  88. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  89. data/doc/images/screenshots/en/cozmixng.png +0 -0
  90. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  91. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  92. data/doc/images/screenshots/en/day-white-raw.png +0 -0
  93. data/doc/images/screenshots/en/day-white.png +0 -0
  94. data/doc/images/screenshots/en/debian-raw.png +0 -0
  95. data/doc/images/screenshots/en/debian.png +0 -0
  96. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  97. data/doc/images/screenshots/en/green-circle.png +0 -0
  98. data/doc/images/screenshots/en/night-black-raw.png +0 -0
  99. data/doc/images/screenshots/en/night-black.png +0 -0
  100. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  101. data/doc/images/screenshots/en/rabbit.png +0 -0
  102. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  103. data/doc/images/screenshots/en/ranguba.png +0 -0
  104. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  105. data/doc/images/screenshots/en/red-frame.png +0 -0
  106. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  107. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  108. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  109. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  110. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  111. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  112. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  113. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  114. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  115. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  116. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  117. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  118. data/doc/images/screenshots/ja/day-white-raw.png +0 -0
  119. data/doc/images/screenshots/ja/day-white.png +0 -0
  120. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  121. data/doc/images/screenshots/ja/debian.png +0 -0
  122. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  123. data/doc/images/screenshots/ja/green-circle.png +0 -0
  124. data/doc/images/screenshots/ja/night-black-raw.png +0 -0
  125. data/doc/images/screenshots/ja/night-black.png +0 -0
  126. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  127. data/doc/images/screenshots/ja/rabbit.png +0 -0
  128. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  129. data/doc/images/screenshots/ja/ranguba.png +0 -0
  130. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  131. data/doc/images/screenshots/ja/red-frame.png +0 -0
  132. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  133. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  134. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  135. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  136. data/lib/rabbit/parser/ext/emacs.rb +0 -121
  137. data/lib/rabbit/renderer/display/clutter-embed.rb +0 -606
  138. data/lib/rabbit/theme/clutter-comment/clutter-comment.rb +0 -76
  139. 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 presentaion"
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. Avaiable forms are (({'triangle'})) and (({'"
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
- msgid ""
1679
- "Convenience '\n"
1680
- "' newline notation."
1672
+ #, fuzzy
1673
+ msgid "Convenience '\\n' newline notation."
1681
1674
  msgstr ""
1682
1675
  "便利な'\n"
1683
1676
  "'改行記法。"
1684
1677
 
1685
- msgid ""
1686
- "Enable '\n"
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
- msgid ""
1696
- "Enable '\n"
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-2019 Kouhei Sutou <kou@cozmixng.org>
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.add_development_dependency("test-unit")
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
@@ -1,9 +1,7 @@
1
- = GLサンプル
1
+ = GL sample
2
2
 
3
- : subtitle
4
- GLのテスト
5
3
  : author
6
- 須藤功平
4
+ Sutou Kouhei
7
5
  : theme
8
6
  gl-sample
9
7
 
@@ -5,7 +5,7 @@ proc_name = "gl-sample"
5
5
  match(Slide) do |slides|
6
6
 
7
7
  slides.delete_post_draw_proc_by_name(proc_name)
8
-
8
+
9
9
  list_id = nil
10
10
 
11
11
  slides.each do |slide|
@@ -158,7 +158,7 @@ A presentation tool
158
158
  :relative_margin_right => -5,
159
159
  })}}
160
160
 
161
- * Right justified backgorund image
161
+ * Right justified background image
162
162
  * Specify in slide
163
163
  ** :align => "right"
164
164
 
data/sample/rabbit-en.md CHANGED
@@ -143,7 +143,7 @@ background-image-relative-margin-right
143
143
 
144
144
  ![](lavie.png){:relative_width="30" align="right" relative_margin_right="-5"}
145
145
 
146
- * Right justified backgorund image
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 backgorund image
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-2019 Kouhei Sutou <kou@cozmixng.org>
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-2022 Sutou Kouhei <kou@cozmixng.org>
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
- message = _("![alt]{image} and other contents in a paragraph isn't supported: [:text, :img]")
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 ![](#{image_path})
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2019 Kouhei Sutou <kou@cozmixng.org>
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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2015-2019 Kouhei Sutou <kou@cozmixng.org>
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 = <<-WIKI
37
+ wiki_text = +<<-WIKI
38
38
  ! Title
39
39
 
40
40
  ! Slide
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2013 Kouhei Sutou <kou@cozmixng.org>
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
- readme_path = "README#{extension}"
34
- stub(File).read(readme_path) {content}
35
- @parser.parse(readme_path)
36
- assert_equal({
37
- :title => @title,
38
- :description => @description,
39
- },
40
- {
41
- :title => @parser.title,
42
- :description => @parser.description,
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-2019 Kouhei Sutou <kou@cozmixng.org>
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