rabbit 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -159,6 +159,7 @@ EOC
159
159
  "--exclude", "*.svg",
160
160
  "--exclude", "*.rab",
161
161
  "--exclude", "/download/",
162
+ "--exclude", "/samples/",
162
163
  "doc/_site/",
163
164
  rsync_base_path)
164
165
  end
@@ -0,0 +1,4 @@
1
+ @category = N_("Image")
2
+ @title = N_("RubyKaigi2011Image")
3
+ @abstract = N_("Images related to RubyKaigi2011")
4
+ @description = N_("Provides images related to RubyKaigi2011.")
@@ -0,0 +1,2 @@
1
+ # empty theme to add load path to images in the directory.
2
+
data/doc/_layouts/en.html CHANGED
@@ -22,7 +22,7 @@ country: US
22
22
  {{ content }}
23
23
  <nav id="sidebar">
24
24
  <h3>The Latest Release</h3>
25
- <p><a href="en/news.html">1.0.1</a> is the latest release. It had been released at 2011-07-15.</p>
25
+ <p><a href="en/news.html">1.0.2</a> is the latest release. It had been released at 2011-07-15.</p>
26
26
  <h3>Links</h3>
27
27
  <ul>
28
28
  <li><a href="/en/">README</a></li>
data/doc/_layouts/ja.html CHANGED
@@ -22,7 +22,7 @@ country: JP
22
22
  {{ content }}
23
23
  <nav id="sidebar">
24
24
  <h3>最新リリース</h3>
25
- <p>2011-07-15にリリースされた<a href="/ja/news.html">1.0.1</a>が最新リリースです。</p>
25
+ <p>2011-07-15にリリースされた<a href="/ja/news.html">1.0.2</a>が最新リリースです。</p>
26
26
  <h3>リンク</h3>
27
27
  <ul>
28
28
  <li><a href="/ja/">はじめに</a></li>
data/doc/en/news.rd CHANGED
@@ -3,6 +3,37 @@ layout: en
3
3
  title: News
4
4
  apply_data: false
5
5
  ---
6
+ == 1.0.2: 2011-07-15
7
+
8
+ RubyKaigi2011 release.
9
+
10
+ === Improvements
11
+
12
+ ==== Core
13
+
14
+ * Re-supported GTK+ 2.20. (For Debian GNU/Linux squeeze)
15
+ [Reported by akira yamada]
16
+
17
+ ==== Theme
18
+
19
+ * title-slide-background-image: Added. It shows background
20
+ image with title slide slide.
21
+ * table: Supported font color customize.
22
+ * rubykaigi2011: Added. It's for RubyKaigi2011.
23
+
24
+ === Fixes
25
+
26
+ ==== Theme
27
+
28
+ * default-item-mark-setup: Fixed duplicated font name
29
+ specified error.
30
+ * edge-info-toolkit: Fixed duplicated font name
31
+ specified error.
32
+
33
+ === Thanks
34
+
35
+ * yamada akira
36
+
6
37
  == 1.0.1: 2011-07-15
7
38
 
8
39
  A bug fix release of 1.0.0.
@@ -124,8 +155,8 @@ The first major release! We spent seven years for it!
124
155
 
125
156
  === Thanks
126
157
 
127
- * おばたさん
128
- * znzさん
158
+ * OBATA Akio
159
+ * znz
129
160
 
130
161
  == 0.9.3: 2011-06-25
131
162
 
data/doc/index.html.en CHANGED
@@ -5,7 +5,7 @@ lang_suffix: true
5
5
  no_sidebar: true
6
6
  ---
7
7
  <div class="latest-release">
8
- <p><a href="/en/news.html">1.0.1</a> is the latest release. It had been released at 2011-07-15.</p>
8
+ <p><a href="/en/news.html">1.0.2</a> is the latest release. It had been released at 2011-07-15.</p>
9
9
  </div>
10
10
 
11
11
  <section class="screenshots">
data/doc/index.html.ja CHANGED
@@ -5,7 +5,7 @@ lang_suffix: true
5
5
  no_sidebar: true
6
6
  ---
7
7
  <div class="latest-release">
8
- <p>2011-07-15にリリースされた<a href="/ja/news.html">1.0.1</a>が最新リリースです。</p>
8
+ <p>2011-07-15にリリースされた<a href="/ja/news.html">1.0.2</a>が最新リリースです。</p>
9
9
  </div>
10
10
 
11
11
  <section class="screenshots">
data/doc/ja/news.rd CHANGED
@@ -3,6 +3,35 @@ layout: ja
3
3
  title: お知らせ
4
4
  apply_data: false
5
5
  ---
6
+ == 1.0.2: 2011-07-15
7
+
8
+ 日本Ruby会議2011リリース。
9
+
10
+ === 改良
11
+
12
+ ==== 本体
13
+
14
+ * GTK+ 2.20を再サポート。(Debian GNU/Linux squeezeのため)
15
+ [やまだあきらさんが報告]
16
+
17
+ ==== テーマ
18
+
19
+ * title-slide-background-image: 追加。タイトルスライドのス
20
+ ライドいっぱいに背景画像を表示する。
21
+ * table: 文字の色のカスタマイズに対応。
22
+ * rubykaigi2011: 追加。日本Ruby会議2011用テーマ。
23
+
24
+ === 修正
25
+
26
+ ==== テーマ
27
+
28
+ * default-item-mark-setup: フォント名の重複指定エラーを修正。
29
+ * edge-info-toolkit: フォント名の重複指定エラーを修正。
30
+
31
+ === 感謝
32
+
33
+ * やまだあきらさん
34
+
6
35
  == 1.0.1: 2011-07-15
7
36
 
8
37
  1.0.0のバグフィックスバージョン。
data/lib/rabbit/keys.rb CHANGED
@@ -1,6 +1,14 @@
1
1
  require "gtk2"
2
2
  require "rabbit/utils"
3
3
 
4
+ # For GTK+ < 2.22
5
+ unless Gdk::Keyval.const_defined?(:GDK_KEY_Escape)
6
+ Gdk::Keyval.constants.each do |name|
7
+ Gdk::Keyval.const_set(name.to_s.sub(/\AGDK_/, "GDK_KEY_"),
8
+ Gdk::Keyval.const_get(name))
9
+ end
10
+ end
11
+
4
12
  module Rabbit
5
13
  module Keys
6
14
 
data/lib/rabbit/rabbit.rb CHANGED
@@ -8,7 +8,7 @@ require "rabbit/gettext"
8
8
 
9
9
  module Rabbit
10
10
 
11
- VERSION = "1.0.1"
11
+ VERSION = "1.0.2"
12
12
 
13
13
  TMP_DIR_NAME = ".tmp"
14
14
 
@@ -44,11 +44,13 @@ set_background(@background)
44
44
  @table_cell_padding_right = screen_x(2)
45
45
  @table_cell_padding_top = screen_y(0.5)
46
46
  @table_cell_padding_bottom = screen_y(0.5)
47
+ @table_cell_font_props = {}
47
48
 
48
49
  @table_header_padding_left = screen_x(2) * 0
49
50
  @table_header_padding_right = screen_x(2) * 0
50
51
  @table_header_padding_top = screen_y(0.5)
51
52
  @table_header_padding_bottom = screen_y(0.5)
53
+ @table_header_font_props = {}
52
54
 
53
55
  @table_caption_space = screen_y(2)
54
56
  @table_caption_color = "black"
@@ -93,7 +93,7 @@ def setup_default_enum_item_mark(items, name, indent, space_ratio, props,
93
93
  indent_width = screen_x(indent)
94
94
  indent_width = option_value.call("indent_width", indent_width) || indent_width
95
95
  default_props = {
96
- "font_family" => @font_family,
96
+ "font-family" => @font_family,
97
97
  }.merge(props)
98
98
 
99
99
  delete_pre_draw_proc_by_name(name)
@@ -32,7 +32,7 @@ match(SlideElement) do |slides|
32
32
  line_color, line_params.merge(line_width_params))
33
33
 
34
34
  props = {
35
- "font_family" => applier[:font_family],
35
+ "font-family" => applier[:font_family],
36
36
  "size" => text_size,
37
37
  "color" => text_color,
38
38
  }
@@ -0,0 +1,3 @@
1
+ @category = N_("Theme")
2
+ @title = N_("RubyKaigi2011")
3
+ @description = N_("RubyKaigi2011 theme")
@@ -0,0 +1,47 @@
1
+ add_image_path("rubykaigi2011-images")
2
+
3
+ line_color = "#999999"
4
+ dark_color = "#160F0D"
5
+ fill_color = "#ffffff4d"
6
+
7
+ @foreground = dark_color
8
+
9
+ @default_headline_line_color ||= line_color
10
+ @description_term_line_color ||= line_color
11
+
12
+ @default_description_item1_mark_color ||= dark_color
13
+ @default_block_quote_item1_mark_color ||= dark_color
14
+
15
+ @preformatted_frame_color ||= line_color
16
+ @preformatted_fill_color ||= fill_color
17
+
18
+ @block_quote_frame_color ||= line_color
19
+ @block_quote_fill_color ||= fill_color
20
+
21
+ @table_frame_color = line_color
22
+ @table_fill_color = fill_color
23
+ @table_head_frame_color = line_color
24
+ @table_head_fill_color = dark_color
25
+ @table_header_font_props[:color] = "white"
26
+
27
+ @slide_number_uninstall = true
28
+
29
+ include_theme("default")
30
+
31
+ @lightning_talk_proc_name = "lightning-rabbit"
32
+ @lightning_talk_as_large_as_possible = true
33
+ include_theme("lightning-talk-toolkit")
34
+
35
+ match(Slide) do |slides|
36
+ slides.each do |slide|
37
+ if slide.lightning_talk?
38
+ slide.lightning_talk
39
+ end
40
+ end
41
+ end
42
+
43
+ background_image = "rubykaigi2011-background-white.jpg"
44
+ @title_slide_background_image = background_image
45
+ @slide_background_image = background_image
46
+ include_theme("title-slide-background-image")
47
+ include_theme("slide-background-image")
@@ -75,6 +75,7 @@ match(*(all_table + [TableHead, TableRow, TableHeader])) do |headers|
75
75
  headers.delete_post_draw_proc_by_name(name)
76
76
 
77
77
  headers.prop_set("size", @normal_font_size)
78
+ headers.font(@table_header_font_props)
78
79
  set_font_family(headers)
79
80
 
80
81
  draw_frame(headers, params) do |header, canvas, x, y, w, h|
@@ -116,6 +117,7 @@ match(*(all_table + [TableBody, TableRow, TableCell])) do |cells|
116
117
 
117
118
  cells.prop_set("size", @normal_font_size)
118
119
  set_font_family(cells)
120
+ cells.font(@table_cell_font_props)
119
121
 
120
122
  cells.padding_left = @table_cell_padding_left
121
123
  cells.padding_right = @table_cell_padding_right
@@ -0,0 +1,10 @@
1
+ @category = N_("Toolkit")
2
+ @title = N_("TitleSlideBackgroundImage")
3
+ @abstract = N_("Toolkit to display an image as a background of the title slide")
4
+ @description = N_("Displays an image as a background of the title slide.")
5
+ @parameters = {
6
+ "@title_slide_background_image" => {
7
+ :default => N_("(Must be specified.)"),
8
+ :description => N_("Image file name."),
9
+ },
10
+ }
@@ -0,0 +1,25 @@
1
+ proc_name = "title-slide-background-image"
2
+
3
+ if @title_slide_background_image.nil?
4
+ theme_exit("must specify @title_slide_background_image!!")
5
+ end
6
+
7
+ match(TitleSlide) do |slides|
8
+ loader = ImageLoader.new(find_file(@title_slide_background_image))
9
+ resized = false
10
+
11
+ slides.delete_pre_draw_proc_by_name(proc_name)
12
+
13
+ slides.add_pre_draw_proc(proc_name) do |slide, canvas, x, y, w, h, simulation|
14
+ unless simulation
15
+ unless loader.nil?
16
+ unless resized
17
+ loader.resize(canvas.width, canvas.height)
18
+ resized = true
19
+ end
20
+ loader.draw(canvas, 0, 0)
21
+ end
22
+ end
23
+ [x, y, w, h]
24
+ end
25
+ end
@@ -84,7 +84,7 @@ For benchmarking a theme
84
84
 
85
85
  = Source
86
86
 
87
- # enscript ruby
87
+ # coderay ruby
88
88
  class You
89
89
  def love?(it)
90
90
  it == "Rabbit"
@@ -84,7 +84,7 @@
84
84
 
85
85
  = ソース
86
86
 
87
- # enscript ruby
87
+ # coderay ruby
88
88
  class You
89
89
  def love?(it)
90
90
  it == "Rabbit"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kouhei Sutou
@@ -337,6 +337,10 @@ files:
337
337
  - data/rabbit/image/ruby-images/ruby-pink-polygon-logo.png
338
338
  - data/rabbit/image/ruby-images/ruby-pink-polygon-small-icon.png
339
339
  - data/rabbit/image/ruby-images/ruby-pink-polygon.png
340
+ - data/rabbit/image/rubykaigi2011-images/property.rb
341
+ - data/rabbit/image/rubykaigi2011-images/rubykaigi2011-background-black.jpg
342
+ - data/rabbit/image/rubykaigi2011-images/rubykaigi2011-background-white.jpg
343
+ - data/rabbit/image/rubykaigi2011-images/rubykaigi2011-images.rb
340
344
  - doc/_config.yml
341
345
  - doc/_layouts/en.html
342
346
  - doc/_layouts/ja.html
@@ -823,6 +827,8 @@ files:
823
827
  - lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
824
828
  - lib/rabbit/theme/ruby-gnome2/property.rb
825
829
  - lib/rabbit/theme/ruby-gnome2/ruby-gnome2.rb
830
+ - lib/rabbit/theme/rubykaigi2011/property.rb
831
+ - lib/rabbit/theme/rubykaigi2011/rubykaigi2011.rb
826
832
  - lib/rabbit/theme/scroll-effect/property.rb
827
833
  - lib/rabbit/theme/scroll-effect/scroll-effect.rb
828
834
  - lib/rabbit/theme/searcher.rb
@@ -864,6 +870,8 @@ files:
864
870
  - lib/rabbit/theme/title-on-image-toolkit/title-on-image-toolkit.rb
865
871
  - lib/rabbit/theme/title-shadow/property.rb
866
872
  - lib/rabbit/theme/title-shadow/title-shadow.rb
873
+ - lib/rabbit/theme/title-slide-background-image/property.rb
874
+ - lib/rabbit/theme/title-slide-background-image/title-slide-background-image.rb
867
875
  - lib/rabbit/theme/twitter-comment/property.rb
868
876
  - lib/rabbit/theme/twitter-comment/twitter-comment.rb
869
877
  - lib/rabbit/trackball.rb