rabbit 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/doc/_layouts/skeleton.html +1 -0
  3. data/doc/css/rabbit.css +2 -1
  4. data/doc/css/syntax.scss +67 -0
  5. data/doc/en/development.rd +31 -0
  6. data/doc/en/index.rd +0 -4
  7. data/doc/en/news.rd +55 -0
  8. data/doc/en/sample/markdown/rabbit.md +250 -246
  9. data/doc/en/usage/rabbit.rd +16 -0
  10. data/doc/ja/development.rd +30 -0
  11. data/doc/ja/index.rd +0 -5
  12. data/doc/ja/news.rd +55 -0
  13. data/doc/ja/sample/markdown/rabbit.md +251 -247
  14. data/doc/ja/usage/rabbit.rd +16 -1
  15. data/lib/rabbit/command/rabbit.rb +5 -1
  16. data/lib/rabbit/element/index-slide.rb +1 -1
  17. data/lib/rabbit/element/text-renderer.rb +7 -7
  18. data/lib/rabbit/gtk.rb +17 -10
  19. data/lib/rabbit/image/svg.rb +25 -23
  20. data/lib/rabbit/info-window.rb +1 -0
  21. data/lib/rabbit/parser/ext/rouge.rb +126 -0
  22. data/lib/rabbit/parser/markdown/converter.rb +4 -4
  23. data/lib/rabbit/parser/rd/ext/block-verbatim.rb +13 -1
  24. data/lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb +3 -3
  25. data/lib/rabbit/parser/wiki/output.rb +9 -3
  26. data/lib/rabbit/progress.rb +16 -8
  27. data/lib/rabbit/renderer/display/drawing-area-base.rb +8 -8
  28. data/lib/rabbit/renderer/display/drawing-area-primitive.rb +3 -3
  29. data/lib/rabbit/renderer/display/graffiti.rb +39 -39
  30. data/lib/rabbit/renderer/display/progress.rb +3 -2
  31. data/lib/rabbit/renderer/display/search.rb +1 -1
  32. data/lib/rabbit/renderer/kernel.rb +1 -1
  33. data/lib/rabbit/search-window.rb +2 -2
  34. data/lib/rabbit/source/memory.rb +4 -0
  35. data/lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb +1 -1
  36. data/lib/rabbit/theme/color-circle-title-slide/color-circle-title-slide.rb +1 -1
  37. data/lib/rabbit/theme/default-block-quote/default-block-quote.rb +1 -1
  38. data/lib/rabbit/theme/image-slide-number/image-slide-number.rb +13 -2
  39. data/lib/rabbit/theme/lightning-talk-toolkit/lightning-talk-toolkit.rb +2 -2
  40. data/lib/rabbit/theme/slide-number/slide-number.rb +1 -1
  41. data/lib/rabbit/theme/syntax-highlighting/syntax-highlighting.rb +3 -0
  42. data/lib/rabbit/theme/table/table.rb +1 -1
  43. data/lib/rabbit/theme/title-on-image-toolkit/title-on-image-toolkit.rb +1 -1
  44. data/lib/rabbit/utils.rb +1 -1
  45. data/lib/rabbit/version.rb +2 -2
  46. data/po/en/rabbit.edit.po +107 -107
  47. data/po/fr/rabbit.edit.po +107 -107
  48. data/po/ja/rabbit.edit.po +107 -107
  49. data/rabbit.gemspec +3 -2
  50. data/sample/rabbit-en.rd +12 -0
  51. data/sample/rabbit.rd +12 -0
  52. data/test/parser/test-markdown.rb +9 -57
  53. metadata +20 -4
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2013 Kouhei Sutou <kou@cozmixng.org>
1
+ # Copyright (C) 2012-2017 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
@@ -48,7 +48,7 @@ Gem::Specification.new do |spec|
48
48
  spec.add_runtime_dependency("gio2")
49
49
  spec.add_runtime_dependency("gdk_pixbuf2", ">= 3.0.9")
50
50
  spec.add_runtime_dependency("gtk2")
51
- spec.add_runtime_dependency("rsvg2")
51
+ spec.add_runtime_dependency("rsvg2", ">= 3.1.4")
52
52
  spec.add_runtime_dependency("poppler")
53
53
  spec.add_runtime_dependency("hikidoc")
54
54
  spec.add_runtime_dependency("nokogiri")
@@ -59,6 +59,7 @@ Gem::Specification.new do |spec|
59
59
  spec.add_runtime_dependency("gettext", ">= 3.0.1")
60
60
  spec.add_runtime_dependency("faraday")
61
61
  # spec.add_runtime_dependency("gstreamer")
62
+ spec.add_runtime_dependency("rouge")
62
63
 
63
64
  spec.add_development_dependency("gtk3")
64
65
  spec.add_development_dependency("test-unit")
@@ -334,6 +334,18 @@ The following is source code:
334
334
 
335
335
  End of source code.
336
336
 
337
+ = Source: Rouge
338
+
339
+ The following is source code:
340
+
341
+ # rouge ruby
342
+ # comment
343
+ def method_name
344
+ body
345
+ end
346
+
347
+ End of source code.
348
+
337
349
  = Quotation
338
350
 
339
351
  # blockquote
@@ -333,6 +333,18 @@ URL先の画像をダウンロード
333
333
 
334
334
  以上がソース
335
335
 
336
+ = ソース: Rouge
337
+
338
+ 以下がソース
339
+
340
+ # rouge ruby
341
+ # comment
342
+ def method_name
343
+ body
344
+ end
345
+
346
+ 以上がソース
347
+
336
348
  = 引用
337
349
 
338
350
  # blockquote
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2016 Kouhei Sutou <kou@cozmixng.org>
1
+ # Copyright (C) 2014-2017 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
@@ -136,22 +136,10 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
136
136
  "Body", [
137
137
  "SyntaxHighlightingBlock", [
138
138
  "TextContainer",
139
- [
140
- "CustomTag",
141
- ],
142
- [
143
- "CustomTag", [
144
- "SyntaxHighlightingText", ["Text", "\""],
145
- ],
146
- ],
147
- [
148
- "CustomTag", [
149
- "SyntaxHighlightingText", ["Text", "Hello World"],
150
- ],
151
- ],
152
139
  [
153
140
  "CustomTag", [
154
- "SyntaxHighlightingText", ["Text", "\""],
141
+ "SyntaxHighlightingText",
142
+ ["Text", "\"Hello World\""],
155
143
  ],
156
144
  ],
157
145
  ],
@@ -168,22 +156,10 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
168
156
  "Body", [
169
157
  "SyntaxHighlightingBlock", [
170
158
  "TextContainer",
171
- [
172
- "CustomTag",
173
- ],
174
- [
175
- "CustomTag", [
176
- "SyntaxHighlightingText", ["Text", "\""],
177
- ],
178
- ],
179
- [
180
- "CustomTag", [
181
- "SyntaxHighlightingText", ["Text", "Hello World"],
182
- ],
183
- ],
184
159
  [
185
160
  "CustomTag", [
186
- "SyntaxHighlightingText", ["Text", "\""],
161
+ "SyntaxHighlightingText",
162
+ ["Text", "\"Hello World\""],
187
163
  ],
188
164
  ],
189
165
  ],
@@ -200,22 +176,10 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
200
176
  "Body", [
201
177
  "SyntaxHighlightingBlock", [
202
178
  "TextContainer",
203
- [
204
- "CustomTag",
205
- ],
206
- [
207
- "CustomTag", [
208
- "SyntaxHighlightingText", ["Text", "\""],
209
- ],
210
- ],
211
- [
212
- "CustomTag", [
213
- "SyntaxHighlightingText", ["Text", "Hello World"],
214
- ],
215
- ],
216
179
  [
217
180
  "CustomTag", [
218
- "SyntaxHighlightingText", ["Text", "\""],
181
+ "SyntaxHighlightingText",
182
+ ["Text", "\"Hello World\""],
219
183
  ],
220
184
  ],
221
185
  ],
@@ -233,22 +197,10 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
233
197
  "Body", [
234
198
  "SyntaxHighlightingBlock", [
235
199
  "TextContainer",
236
- [
237
- "CustomTag",
238
- ],
239
- [
240
- "CustomTag", [
241
- "SyntaxHighlightingText", ["Text", "\""],
242
- ],
243
- ],
244
- [
245
- "CustomTag", [
246
- "SyntaxHighlightingText", ["Text", "Hello World"],
247
- ],
248
- ],
249
200
  [
250
201
  "CustomTag", [
251
- "SyntaxHighlightingText", ["Text", "\""],
202
+ "SyntaxHighlightingText",
203
+ ["Text", "\"Hello World\""],
252
204
  ],
253
205
  ],
254
206
  ],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-21 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gio2
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 3.1.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 3.1.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: poppler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rouge
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
195
209
  - !ruby/object:Gem::Dependency
196
210
  name: gtk3
197
211
  requirement: !ruby/object:Gem::Requirement
@@ -413,6 +427,7 @@ files:
413
427
  - doc/_plugins/support_symlink.rb
414
428
  - doc/css/jquery-ui/themes/ui-lightness.css
415
429
  - doc/css/rabbit.css
430
+ - doc/css/syntax.scss
416
431
  - doc/en/development.rd
417
432
  - doc/en/faq.rd
418
433
  - doc/en/hiki.hiki
@@ -645,6 +660,7 @@ files:
645
660
  - lib/rabbit/parser/ext/escape.rb
646
661
  - lib/rabbit/parser/ext/image.rb
647
662
  - lib/rabbit/parser/ext/inline.rb
663
+ - lib/rabbit/parser/ext/rouge.rb
648
664
  - lib/rabbit/parser/ext/tex.rb
649
665
  - lib/rabbit/parser/ext/video.rb
650
666
  - lib/rabbit/parser/image.rb