rabbit 2.0.2 → 2.0.3

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 (104) hide show
  1. data/README +1 -1
  2. data/Rakefile +1 -1
  3. data/data/account.kou.gpg +0 -0
  4. data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
  5. data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
  6. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  7. data/doc/_config.yml +2 -2
  8. data/doc/_includes/en.menu.html +1 -1
  9. data/doc/_includes/ja.menu.html +1 -1
  10. data/doc/_layouts/skeleton.html +2 -2
  11. data/doc/en/development.rd +2 -2
  12. data/doc/en/install/homebrew.rd +11 -158
  13. data/doc/en/install/index.rd +1 -16
  14. data/doc/en/install/windows.rd +1 -1
  15. data/doc/en/news.rd +70 -1
  16. data/doc/en/usage/rabbit.rd +1 -1
  17. data/doc/en/users.rd +8 -8
  18. data/doc/images/screenshots/en/blue-circle.png +0 -0
  19. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  20. data/doc/images/screenshots/en/clear-blue.png +0 -0
  21. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  22. data/doc/images/screenshots/en/cozmixng.png +0 -0
  23. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  24. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  25. data/doc/images/screenshots/en/day-white.png +0 -0
  26. data/doc/images/screenshots/en/debian-raw.png +0 -0
  27. data/doc/images/screenshots/en/debian.png +0 -0
  28. data/doc/images/screenshots/en/green-circle.png +0 -0
  29. data/doc/images/screenshots/en/night-black.png +0 -0
  30. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  31. data/doc/images/screenshots/en/rabbit.png +0 -0
  32. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  33. data/doc/images/screenshots/en/ranguba.png +0 -0
  34. data/doc/images/screenshots/en/red-frame.png +0 -0
  35. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  36. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  37. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  38. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  39. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  40. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  41. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  42. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  43. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  44. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  45. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  46. data/doc/images/screenshots/ja/day-white.png +0 -0
  47. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  48. data/doc/images/screenshots/ja/debian.png +0 -0
  49. data/doc/images/screenshots/ja/green-circle.png +0 -0
  50. data/doc/images/screenshots/ja/night-black.png +0 -0
  51. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  52. data/doc/images/screenshots/ja/rabbit.png +0 -0
  53. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  54. data/doc/images/screenshots/ja/ranguba.png +0 -0
  55. data/doc/images/screenshots/ja/red-frame.png +0 -0
  56. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  57. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  58. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  59. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  60. data/doc/index.html.en +1 -1
  61. data/doc/index.html.ja +1 -1
  62. data/doc/ja/development.rd +6 -7
  63. data/doc/ja/install/homebrew.rd +10 -156
  64. data/doc/ja/install/index.rd +1 -15
  65. data/doc/ja/install/macports.rd +1 -1
  66. data/doc/ja/news.rd +69 -1
  67. data/doc/ja/usage/rabbit-slide.rd +5 -5
  68. data/doc/ja/usage/rabbit-theme.rd +2 -2
  69. data/doc/ja/usage/rabbit.rd +1 -1
  70. data/doc/ja/users.rd +10 -10
  71. data/lib/rabbit/author-configuration.rb +18 -12
  72. data/lib/rabbit/command/rabbit-slide.rb +1 -1
  73. data/lib/rabbit/command/rabbit.rb +3 -3
  74. data/lib/rabbit/element/block.rb +2 -2
  75. data/lib/rabbit/element/text-renderer.rb +3 -1
  76. data/lib/rabbit/html/template.erb +1 -1
  77. data/lib/rabbit/image/dia.rb +19 -20
  78. data/lib/rabbit/image/eps.rb +1 -1
  79. data/lib/rabbit/parser/image.rb +14 -6
  80. data/lib/rabbit/renderer/engine/cairo.rb +27 -12
  81. data/lib/rabbit/renderer/print/cairo.rb +10 -2
  82. data/lib/rabbit/slide-configuration.rb +27 -14
  83. data/lib/rabbit/soap/base.rb +1 -1
  84. data/lib/rabbit/task/slide.rb +71 -33
  85. data/lib/rabbit/task/theme.rb +61 -19
  86. data/lib/rabbit/theme/clear-blue/clear-blue.rb +17 -0
  87. data/lib/rabbit/theme/color-circle-block-quote/color-circle-block-quote.rb +2 -0
  88. data/lib/rabbit/theme/default-block-quote/default-block-quote.rb +162 -75
  89. data/lib/rabbit/theme/image/image.rb +3 -1
  90. data/lib/rabbit/theme/rabbit-block-quote/rabbit-block-quote.rb +2 -0
  91. data/lib/rabbit/theme/title-on-image-toolkit/title-on-image-toolkit.rb +25 -13
  92. data/lib/rabbit/utils.rb +16 -3
  93. data/lib/rabbit/version.rb +1 -1
  94. data/po/en/rabbit.po +182 -180
  95. data/po/fr/rabbit.po +182 -180
  96. data/po/ja/rabbit.po +184 -169
  97. data/po/rabbit.pot +176 -164
  98. data/rabbit.gemspec +63 -0
  99. data/test/image/test-dia.rb +54 -0
  100. data/test/image/test-eps.rb +41 -0
  101. data/test/rabbit-test-utils.rb +22 -20
  102. data/test/run-test.rb +20 -6
  103. data/test/test-slide-configuration.rb +2 -0
  104. metadata +8 -3
data/rabbit.gemspec ADDED
@@ -0,0 +1,63 @@
1
+ # Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
2
+ #
3
+ # This program is free software; you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation; either version 2 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License along
14
+ # with this program; if not, write to the Free Software Foundation, Inc.,
15
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
+
17
+ base_dir = File.expand_path(File.dirname(__FILE__))
18
+ $LOAD_PATH.unshift(File.join(base_dir, 'lib'))
19
+ require "rabbit/version"
20
+
21
+ Gem::Specification.new do |spec|
22
+ spec.name = "rabbit"
23
+ spec.version = Rabbit::VERSION.dup
24
+ spec.rubyforge_project = "rabbit"
25
+ spec.homepage = "http://rabbit-shocker.org/"
26
+ spec.authors = ["Kouhei Sutou"]
27
+ spec.email = ["kou@cozmixng.org"]
28
+ spec.summary = 'Rabbit is an RD-document-based presentation application.'
29
+ spec.description = spec.summary # FIXME
30
+ spec.license = "GPLv2+"
31
+
32
+ spec.files = ["Rakefile", "COPYING", "GPL", "README", "Gemfile"]
33
+ spec.files += ["#{spec.name}.gemspec"]
34
+ spec.files += Dir.glob("{lib,data,entities,sample,misc,doc,po}/**/*")
35
+ spec.files -= Dir.glob("doc/_site/**/*")
36
+ spec.files += Dir.glob("*.rb")
37
+ spec.files.reject! do |file|
38
+ not File.file?(file)
39
+ end
40
+ spec.test_files = Dir.glob("test/**/*.rb")
41
+ Dir.chdir("bin") do
42
+ spec.executables = Dir.glob("*")
43
+ end
44
+
45
+ spec.add_runtime_dependency("gtk2")
46
+ spec.add_runtime_dependency("rsvg2")
47
+ spec.add_runtime_dependency("poppler")
48
+ spec.add_runtime_dependency("hikidoc")
49
+ spec.add_runtime_dependency("nokogiri")
50
+ spec.add_runtime_dependency("rdtool")
51
+ spec.add_runtime_dependency("rttool")
52
+ spec.add_runtime_dependency("coderay", ">= 1.0.0")
53
+ spec.add_runtime_dependency("kramdown")
54
+ spec.add_runtime_dependency("gettext")
55
+ spec.add_runtime_dependency("faraday")
56
+
57
+ spec.add_development_dependency("test-unit")
58
+ spec.add_development_dependency("test-unit-notify")
59
+ spec.add_development_dependency("test-unit-rr")
60
+ spec.add_development_dependency("rake")
61
+ spec.add_development_dependency("bundler")
62
+ spec.add_development_dependency("jekyll")
63
+ end
@@ -0,0 +1,54 @@
1
+ # Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
2
+ #
3
+ # This program is free software; you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation; either version 2 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License along
14
+ # with this program; if not, write to the Free Software Foundation, Inc.,
15
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
+
17
+ require "rabbit/image/dia"
18
+
19
+ class TestImageDia < Test::Unit::TestCase
20
+ include RabbitTestUtils
21
+
22
+ private
23
+ def fixture_path(base_name)
24
+ super("image", "dia", base_name)
25
+ end
26
+
27
+ class TestMatch < self
28
+ private
29
+ def match?(base_name)
30
+ Rabbit::ImageManipulable::Dia.match?(fixture_path(base_name))
31
+ end
32
+
33
+ class TestWithExtension < self
34
+ def test_not_compressed
35
+ assert_true(match?("not-compressed.dia"))
36
+ end
37
+
38
+ def test_compressed
39
+ assert_true(match?("compressed.dia"))
40
+ end
41
+ end
42
+
43
+ class TestWithoutExtension < self
44
+ def test_not_compressed
45
+ assert_true(match?("not-compressed"))
46
+ end
47
+
48
+ def test_compressed
49
+ # Not supported yet.
50
+ assert_false(match?("compressed"))
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,41 @@
1
+ # Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
2
+ #
3
+ # This program is free software; you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation; either version 2 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License along
14
+ # with this program; if not, write to the Free Software Foundation, Inc.,
15
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
+
17
+ require "rabbit/image/eps"
18
+
19
+ class TestImageEPS < Test::Unit::TestCase
20
+ include RabbitTestUtils
21
+
22
+ private
23
+ def fixture_path(base_name)
24
+ super("image", "eps", base_name)
25
+ end
26
+
27
+ class TestMatch < self
28
+ private
29
+ def match?(base_name)
30
+ Rabbit::ImageManipulable::EPS.match?(fixture_path(base_name))
31
+ end
32
+
33
+ def test_have_extension
34
+ assert_true(match?("rabbit.eps"))
35
+ end
36
+
37
+ def test_no_extension
38
+ assert_true(match?("rabbit"))
39
+ end
40
+ end
41
+ end
@@ -1,24 +1,26 @@
1
- require "test/unit"
1
+ # Copyright (C) 2004-2012 Kouhei Sutou <kou@cozmixng.org>
2
+ #
3
+ # This program is free software; you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation; either version 2 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License along
14
+ # with this program; if not, write to the Free Software Foundation, Inc.,
15
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2
16
 
3
- module Test
4
- module Unit
5
- class Failure
6
- def long_display
7
- first, *others = location
8
- others.unshift("") unless others.empty?
9
- others = others.join("\n ")
10
- "Failure:\n#{@test_name}\n#{first}\n#{@message}#{others}"
11
- end
12
- end
17
+ require "test-unit"
18
+ require "test/unit/notify"
19
+ require "test/unit/rr"
13
20
 
14
- class Error
15
- def long_display
16
- backtrace = filter_backtrace(@exception.backtrace)
17
- first, *others = backtrace
18
- others.unshift("") unless others.empty?
19
- others = others.join("\n ")
20
- "Error:\n#{@test_name}:\n#{first}\n#{message}#{others}"
21
- end
22
- end
21
+ module RabbitTestUtils
22
+ private
23
+ def fixture_path(*components)
24
+ File.join(File.dirname(__FILE__), "fixtures", *components)
23
25
  end
24
26
  end
data/test/run-test.rb CHANGED
@@ -1,14 +1,28 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- require "test-unit"
4
- require "test/unit/notify"
5
- require "test/unit/rr"
6
-
7
- test_file = "test/**/test-*.rb"
2
+ #
3
+ # Copyright (C) 2004-2012 Kouhei Sutou <kou@cozmixng.org>
4
+ #
5
+ # This program is free software; you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License along
16
+ # with this program; if not, write to the Free Software Foundation, Inc.,
17
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
8
18
 
9
19
  $LOAD_PATH.unshift(File.join(File.expand_path("."), "lib"))
10
20
  $LOAD_PATH.unshift(File.join(File.expand_path("."), "test"))
11
21
 
22
+ require "rabbit-test-utils"
23
+
24
+ test_file = "test/**/test-*.rb"
25
+
12
26
  Dir.glob(test_file) do |file|
13
27
  require file.gsub(/\.rb$/, '')
14
28
  end
@@ -37,6 +37,8 @@ class TestSlideConfiguration < Test::Unit::TestCase
37
37
  "presentation_date" => ["2012/09/16"],
38
38
  "version" => "2012.09.16",
39
39
  "licenses" => ["GPLv3+", "GFDL", "CC BY-SA 3.0"],
40
+ "slideshare_id" => "rabbit-14073776",
41
+ "speaker_deck_id" => "rabbit-debian",
40
42
  "author" => author_conf,
41
43
  }
42
44
  @slide.merge!(conf)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-02 00:00:00.000000000 Z
12
+ date: 2012-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk2
@@ -301,6 +301,7 @@ files:
301
301
  - GPL
302
302
  - README
303
303
  - Gemfile
304
+ - rabbit.gemspec
304
305
  - lib/rabbit/info-window.rb
305
306
  - lib/rabbit/searcher.rb
306
307
  - lib/rabbit/version.rb
@@ -1053,6 +1054,8 @@ files:
1053
1054
  - test/test-readme-parser.rb
1054
1055
  - test/test-theme-configuration.rb
1055
1056
  - test/test-utils.rb
1057
+ - test/image/test-eps.rb
1058
+ - test/image/test-dia.rb
1056
1059
  - test/test-slide-configuration.rb
1057
1060
  - test/rabbit-test-utils.rb
1058
1061
  - test/run-test.rb
@@ -1069,7 +1072,7 @@ files:
1069
1072
  - bin/rabbit-command
1070
1073
  - bin/rabbit-theme-manager
1071
1074
  - bin/rabbirc
1072
- homepage: http://rabbit-shockers.org/
1075
+ homepage: http://rabbit-shocker.org/
1073
1076
  licenses:
1074
1077
  - GPLv2+
1075
1078
  post_install_message:
@@ -1099,6 +1102,8 @@ test_files:
1099
1102
  - test/test-readme-parser.rb
1100
1103
  - test/test-theme-configuration.rb
1101
1104
  - test/test-utils.rb
1105
+ - test/image/test-eps.rb
1106
+ - test/image/test-dia.rb
1102
1107
  - test/test-slide-configuration.rb
1103
1108
  - test/rabbit-test-utils.rb
1104
1109
  - test/run-test.rb