rabbit 1.0.9 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/GPL +19 -20
  2. data/Rakefile +25 -10
  3. data/bin/rabbit +20 -844
  4. data/bin/rabbit-command +25 -36
  5. data/bin/rabbit-slide +22 -0
  6. data/bin/rabbit-theme +22 -0
  7. data/bin/rabbit-theme-manager +30 -30
  8. data/data/account.kou.gpg +0 -0
  9. data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
  10. data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
  11. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  12. data/doc/_config.yml +8 -0
  13. data/doc/_includes/en.menu.html +8 -0
  14. data/doc/_includes/ja.menu.html +8 -0
  15. data/doc/_layouts/en.html +19 -16
  16. data/doc/_layouts/ja.html +19 -16
  17. data/doc/_plugins/converters/rd.rb +1 -1
  18. data/doc/_plugins/support_symlink.rb +11 -0
  19. data/doc/en/development.rd +2 -2
  20. data/doc/en/how-to-make/index.rd +5 -5
  21. data/doc/en/how-to-make/rd.rd +1 -1
  22. data/doc/en/index.rd +6 -12
  23. data/doc/en/sample/index.rd +3 -3
  24. data/doc/en/slides.rd +2 -0
  25. data/doc/en/usage.rd +14 -356
  26. data/doc/en/usage/rabbit.rd +360 -0
  27. data/doc/en/users.rd +3 -1
  28. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  29. data/doc/images/screenshots/en/blue-circle.png +0 -0
  30. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  31. data/doc/images/screenshots/en/clear-blue.png +0 -0
  32. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  33. data/doc/images/screenshots/en/cozmixng.png +0 -0
  34. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  35. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  36. data/doc/images/screenshots/en/day-white.png +0 -0
  37. data/doc/images/screenshots/en/debian-raw.png +0 -0
  38. data/doc/images/screenshots/en/debian.png +0 -0
  39. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  40. data/doc/images/screenshots/en/green-circle.png +0 -0
  41. data/doc/images/screenshots/en/night-black.png +0 -0
  42. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  43. data/doc/images/screenshots/en/rabbit.png +0 -0
  44. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  45. data/doc/images/screenshots/en/ranguba.png +0 -0
  46. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  47. data/doc/images/screenshots/en/red-frame.png +0 -0
  48. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  49. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  50. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  51. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  52. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  53. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  54. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  55. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  56. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  57. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  58. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  59. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  60. data/doc/images/screenshots/ja/day-white.png +0 -0
  61. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  62. data/doc/images/screenshots/ja/debian.png +0 -0
  63. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  64. data/doc/images/screenshots/ja/green-circle.png +0 -0
  65. data/doc/images/screenshots/ja/night-black.png +0 -0
  66. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  67. data/doc/images/screenshots/ja/rabbit.png +0 -0
  68. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  69. data/doc/images/screenshots/ja/ranguba.png +0 -0
  70. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  71. data/doc/images/screenshots/ja/red-frame.png +0 -0
  72. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  73. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  74. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  75. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  76. data/doc/index.html.en +1 -1
  77. data/doc/index.html.ja +1 -1
  78. data/doc/ja/about.rd +3 -3
  79. data/doc/ja/development.rd +2 -2
  80. data/doc/ja/how-to-make/index.rd +5 -5
  81. data/doc/ja/index.rd +10 -16
  82. data/doc/ja/install/macports.rd +1 -1
  83. data/doc/ja/news.rd +4 -4
  84. data/doc/ja/sample/index.rd +3 -3
  85. data/doc/ja/usage.rd +13 -358
  86. data/doc/ja/usage/rabbit.rd +362 -0
  87. data/doc/ja/users.rd +1 -1
  88. data/lib/rabbit/action.rb +2 -2
  89. data/lib/rabbit/author-configuration.rb +73 -0
  90. data/lib/rabbit/canvas.rb +0 -14
  91. data/lib/rabbit/command/rabbit-slide.rb +571 -0
  92. data/lib/rabbit/command/rabbit-theme.rb +381 -0
  93. data/lib/rabbit/command/rabbit.rb +898 -0
  94. data/lib/rabbit/config.rb +40 -0
  95. data/lib/rabbit/console.rb +124 -55
  96. data/lib/rabbit/gem-finder.rb +61 -0
  97. data/lib/rabbit/gettext.rb +6 -79
  98. data/lib/rabbit/html/generator.rb +1 -0
  99. data/lib/rabbit/image.rb +1 -1
  100. data/lib/rabbit/logger.rb +12 -2
  101. data/lib/rabbit/logger/base.rb +33 -32
  102. data/lib/rabbit/logger/stderr.rb +1 -1
  103. data/lib/rabbit/menu.rb +1 -1
  104. data/lib/rabbit/parser.rb +2 -0
  105. data/lib/rabbit/parser/ext/image.rb +14 -20
  106. data/lib/rabbit/path-manipulatable.rb +40 -0
  107. data/lib/rabbit/rabbit.rb +18 -8
  108. data/lib/rabbit/renderer/base.rb +3 -4
  109. data/lib/rabbit/renderer/color.rb +0 -1
  110. data/lib/rabbit/slideshare.rb +116 -0
  111. data/lib/rabbit/source/base.rb +1 -1
  112. data/lib/rabbit/stock.rb +1 -1
  113. data/lib/rabbit/task.rb +18 -0
  114. data/lib/rabbit/task/slide.rb +162 -0
  115. data/lib/rabbit/task/theme.rb +122 -0
  116. data/lib/rabbit/theme-browser/tree.rb +1 -1
  117. data/lib/rabbit/theme/applier.rb +9 -0
  118. data/lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb +1 -2
  119. data/lib/rabbit/theme/blue-bar/blue-bar.rb +0 -11
  120. data/lib/rabbit/theme/clear-blue/clear-blue.rb +0 -11
  121. data/lib/rabbit/theme/cozmixng/cozmixng.rb +0 -11
  122. data/lib/rabbit/theme/day-white/day-white.rb +0 -6
  123. data/lib/rabbit/theme/default/default.rb +7 -1
  124. data/lib/rabbit/theme/enishi-green/property.rb +2 -2
  125. data/lib/rabbit/theme/entry.rb +85 -27
  126. data/lib/rabbit/theme/image-slide-number/image-slide-number.rb +4 -1
  127. data/lib/rabbit/theme/lightning-monochrome/lightning-monochrome.rb +0 -1
  128. data/lib/rabbit/theme/lightning-simple/lightning-simple.rb +0 -1
  129. data/lib/rabbit/theme/nari/nari.rb +6 -16
  130. data/lib/rabbit/theme/nari/property.rb +3 -0
  131. data/lib/rabbit/theme/night-black/night-black.rb +0 -6
  132. data/lib/rabbit/theme/pdf/pdf.rb +0 -4
  133. data/lib/rabbit/theme/rabbit/rabbit.rb +0 -6
  134. data/lib/rabbit/theme/ranguba/ranguba.rb +0 -12
  135. data/lib/rabbit/theme/ruby-gnome2/ruby-gnome2.rb +7 -4
  136. data/lib/rabbit/theme/rubykaigi2011/rubykaigi2011.rb +2 -9
  137. data/lib/rabbit/theme/searcher.rb +38 -16
  138. data/lib/rabbit/theme/syntax-highlighting/property.rb +2 -2
  139. data/lib/rabbit/version.rb +19 -0
  140. data/po/en/rabbit.po +1605 -1425
  141. data/po/fr/rabbit.po +1756 -1684
  142. data/po/ja/rabbit.po +2198 -2097
  143. data/po/rabbit.pot +1556 -1419
  144. metadata +34 -100
  145. data/bin/rabbirack +0 -99
  146. data/bin/rabbiter +0 -108
  147. data/bin/rabrick +0 -95
  148. data/bin/rabwii +0 -77
  149. data/lib/rabbit/default-config.rb +0 -24
  150. data/lib/rabbit/div/comment-i.erb +0 -7
  151. data/lib/rabbit/div/comment.erb +0 -45
  152. data/lib/rabbit/div/css.erb +0 -1
  153. data/lib/rabbit/div/js.erb +0 -1
  154. data/lib/rabbit/div/log.erb +0 -5
  155. data/lib/rabbit/div/main-i.erb +0 -24
  156. data/lib/rabbit/div/main.css +0 -40
  157. data/lib/rabbit/div/main.erb +0 -33
  158. data/lib/rabbit/div/navi-i.erb +0 -6
  159. data/lib/rabbit/div/navi.erb +0 -6
  160. data/lib/rabbit/div/prototype.js +0 -4320
  161. data/lib/rabbit/div/slide-i.erb +0 -2
  162. data/lib/rabbit/div/slide.erb +0 -5
  163. data/lib/rabbit/div/tofu.rb +0 -309
  164. data/lib/rabbit/middleware/config.ru +0 -42
  165. data/lib/rabbit/middleware/controller.rb +0 -63
  166. data/lib/rabbit/middleware/public/stylesheets/rabbirack.css +0 -12
  167. data/lib/rabbit/middleware/views/index.haml +0 -13
  168. data/lib/rabbit/middleware/views/layout.haml +0 -8
  169. data/lib/rabbit/post-setup.rb +0 -8
  170. data/lib/rabbit/pre-clean.rb +0 -2
  171. data/lib/rabbit/pre-distclean.rb +0 -2
  172. data/lib/rabbit/theme/twitter-comment/property.rb +0 -4
  173. data/lib/rabbit/theme/twitter-comment/twitter-comment.rb +0 -15
  174. data/lib/rabbit/twitter.rb +0 -239
  175. data/sample/theme-bench-en.hiki +0 -100
  176. data/sample/theme-bench-en.rab +0 -127
  177. data/sample/theme-bench.hiki +0 -101
  178. data/sample/theme-bench.rab +0 -128
  179. data/setup.rb +0 -1585
  180. data/update-mo.rb +0 -20
  181. data/update-po.rb +0 -57
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: 1.0.9
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-21 00:00:00.000000000 Z
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: gio2
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 1.1.4
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 1.1.4
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: gtk2
32
16
  requirement: !ruby/object:Gem::Requirement
@@ -108,23 +92,7 @@ dependencies:
108
92
  - !ruby/object:Gem::Version
109
93
  version: '0'
110
94
  - !ruby/object:Gem::Dependency
111
- name: sinatra
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: haml
95
+ name: rdtool
128
96
  requirement: !ruby/object:Gem::Requirement
129
97
  none: false
130
98
  requirements:
@@ -140,7 +108,7 @@ dependencies:
140
108
  - !ruby/object:Gem::Version
141
109
  version: '0'
142
110
  - !ruby/object:Gem::Dependency
143
- name: rdtool
111
+ name: rttool
144
112
  requirement: !ruby/object:Gem::Requirement
145
113
  none: false
146
114
  requirements:
@@ -188,14 +156,14 @@ dependencies:
188
156
  - !ruby/object:Gem::Version
189
157
  version: '0'
190
158
  - !ruby/object:Gem::Dependency
191
- name: test-unit
159
+ name: gettext
192
160
  requirement: !ruby/object:Gem::Requirement
193
161
  none: false
194
162
  requirements:
195
163
  - - ! '>='
196
164
  - !ruby/object:Gem::Version
197
165
  version: '0'
198
- type: :development
166
+ type: :runtime
199
167
  prerelease: false
200
168
  version_requirements: !ruby/object:Gem::Requirement
201
169
  none: false
@@ -204,23 +172,23 @@ dependencies:
204
172
  - !ruby/object:Gem::Version
205
173
  version: '0'
206
174
  - !ruby/object:Gem::Dependency
207
- name: twitter-stream
175
+ name: faraday
208
176
  requirement: !ruby/object:Gem::Requirement
209
177
  none: false
210
178
  requirements:
211
179
  - - ! '>='
212
180
  - !ruby/object:Gem::Version
213
- version: 0.1.16
214
- type: :development
181
+ version: '0'
182
+ type: :runtime
215
183
  prerelease: false
216
184
  version_requirements: !ruby/object:Gem::Requirement
217
185
  none: false
218
186
  requirements:
219
187
  - - ! '>='
220
188
  - !ruby/object:Gem::Version
221
- version: 0.1.16
189
+ version: '0'
222
190
  - !ruby/object:Gem::Dependency
223
- name: twitter_oauth
191
+ name: test-unit
224
192
  requirement: !ruby/object:Gem::Requirement
225
193
  none: false
226
194
  requirements:
@@ -283,33 +251,15 @@ dependencies:
283
251
  - - ! '>='
284
252
  - !ruby/object:Gem::Version
285
253
  version: '0'
286
- - !ruby/object:Gem::Dependency
287
- name: gettext
288
- requirement: !ruby/object:Gem::Requirement
289
- none: false
290
- requirements:
291
- - - ! '>='
292
- - !ruby/object:Gem::Version
293
- version: '0'
294
- type: :development
295
- prerelease: false
296
- version_requirements: !ruby/object:Gem::Requirement
297
- none: false
298
- requirements:
299
- - - ! '>='
300
- - !ruby/object:Gem::Version
301
- version: '0'
302
254
  description: Rabbit is an RD-document-based presentation application.
303
255
  email:
304
256
  - kou@cozmixng.org
305
257
  executables:
306
- - rabbiter
258
+ - rabbit-slide
307
259
  - rabbit
260
+ - rabbit-theme
308
261
  - rabbit-command
309
- - rabrick
310
- - rabwii
311
262
  - rabbit-theme-manager
312
- - rabbirack
313
263
  - rabbirc
314
264
  extensions: []
315
265
  extra_rdoc_files: []
@@ -321,11 +271,15 @@ files:
321
271
  - Gemfile
322
272
  - lib/rabbit/info-window.rb
323
273
  - lib/rabbit/searcher.rb
324
- - lib/rabbit/pre-distclean.rb
274
+ - lib/rabbit/version.rb
325
275
  - lib/rabbit/logger.rb
276
+ - lib/rabbit/slideshare.rb
326
277
  - lib/rabbit/logger/gui.rb
327
278
  - lib/rabbit/logger/base.rb
328
279
  - lib/rabbit/logger/stderr.rb
280
+ - lib/rabbit/command/rabbit-slide.rb
281
+ - lib/rabbit/command/rabbit.rb
282
+ - lib/rabbit/command/rabbit-theme.rb
329
283
  - lib/rabbit/gettext.rb
330
284
  - lib/rabbit/action.rb
331
285
  - lib/rabbit/image/svg.rb
@@ -341,40 +295,20 @@ files:
341
295
  - lib/rabbit/element.rb
342
296
  - lib/rabbit/utils.rb
343
297
  - lib/rabbit/keys.rb
344
- - lib/rabbit/pre-clean.rb
345
298
  - lib/rabbit/source.rb
346
- - lib/rabbit/div/main-i.erb
347
- - lib/rabbit/div/comment-i.erb
348
- - lib/rabbit/div/main.erb
349
- - lib/rabbit/div/comment.erb
350
- - lib/rabbit/div/prototype.js
351
- - lib/rabbit/div/tofu.rb
352
- - lib/rabbit/div/js.erb
353
- - lib/rabbit/div/log.erb
354
- - lib/rabbit/div/navi-i.erb
355
- - lib/rabbit/div/navi.erb
356
- - lib/rabbit/div/main.css
357
- - lib/rabbit/div/css.erb
358
- - lib/rabbit/div/slide-i.erb
359
- - lib/rabbit/div/slide.erb
360
299
  - lib/rabbit/image.rb
361
300
  - lib/rabbit/soap/driver.rb
362
301
  - lib/rabbit/soap/server.rb
363
302
  - lib/rabbit/soap/base.rb
364
- - lib/rabbit/post-setup.rb
365
303
  - lib/rabbit/parser.rb
366
304
  - lib/rabbit/action/basic.rb
367
305
  - lib/rabbit/action/toggle.rb
368
306
  - lib/rabbit/action/radio.rb
307
+ - lib/rabbit/config.rb
369
308
  - lib/rabbit/gesture/processor.rb
370
309
  - lib/rabbit/gesture/handler.rb
371
310
  - lib/rabbit/frame.rb
372
- - lib/rabbit/middleware/config.ru
373
- - lib/rabbit/middleware/controller.rb
374
- - lib/rabbit/middleware/views/layout.haml
375
- - lib/rabbit/middleware/views/index.haml
376
- - lib/rabbit/middleware/public/stylesheets/rabbirack.css
377
- - lib/rabbit/default-config.rb
311
+ - lib/rabbit/gem-finder.rb
378
312
  - lib/rabbit/cursor-manager.rb
379
313
  - lib/rabbit/stock.rb
380
314
  - lib/rabbit/theme-browser/ext/block-verbatim.rb
@@ -385,7 +319,6 @@ files:
385
319
  - lib/rabbit/theme-browser/document.rb
386
320
  - lib/rabbit/theme-browser/default-tag.yaml
387
321
  - lib/rabbit/menu.rb
388
- - lib/rabbit/twitter.rb
389
322
  - lib/rabbit/console.rb
390
323
  - lib/rabbit/theme/slide-show/slide-show.rb
391
324
  - lib/rabbit/theme/slide-show/property.rb
@@ -451,8 +384,6 @@ files:
451
384
  - lib/rabbit/theme/ranguba/property.rb
452
385
  - lib/rabbit/theme/ruby-gnome2-item-mark/ruby-gnome2-item-mark.rb
453
386
  - lib/rabbit/theme/ruby-gnome2-item-mark/property.rb
454
- - lib/rabbit/theme/twitter-comment/twitter-comment.rb
455
- - lib/rabbit/theme/twitter-comment/property.rb
456
387
  - lib/rabbit/theme/default-block-quote/default-block-quote.rb
457
388
  - lib/rabbit/theme/default-block-quote/property.rb
458
389
  - lib/rabbit/theme/day-white/day-white.rb
@@ -541,6 +472,7 @@ files:
541
472
  - lib/rabbit/theme/slide-header-info/slide-header-info.rb
542
473
  - lib/rabbit/theme/slide-header-info/property.rb
543
474
  - lib/rabbit/theme/nari/nari.rb
475
+ - lib/rabbit/theme/nari/property.rb
544
476
  - lib/rabbit/theme/document.erb
545
477
  - lib/rabbit/theme/title-background-color/title-background-color.rb
546
478
  - lib/rabbit/theme/title-background-color/property.rb
@@ -607,8 +539,10 @@ files:
607
539
  - lib/rabbit/theme/footer-comment/property.rb
608
540
  - lib/rabbit/theme/headline-logo/headline-logo.rb
609
541
  - lib/rabbit/theme/headline-logo/property.rb
542
+ - lib/rabbit/author-configuration.rb
610
543
  - lib/rabbit/search-window.rb
611
544
  - lib/rabbit/renderer.rb
545
+ - lib/rabbit/path-manipulatable.rb
612
546
  - lib/rabbit/formatter.rb
613
547
  - lib/rabbit/renderer/color.rb
614
548
  - lib/rabbit/renderer/pixmap.rb
@@ -649,6 +583,8 @@ files:
649
583
  - lib/rabbit/renderer/engine/gdk.rb
650
584
  - lib/rabbit/renderer/engine/cairo.rb
651
585
  - lib/rabbit/renderer/base.rb
586
+ - lib/rabbit/task/slide.rb
587
+ - lib/rabbit/task/theme.rb
652
588
  - lib/rabbit/progress.rb
653
589
  - lib/rabbit/console/roff.rb
654
590
  - lib/rabbit/rabbit.rb
@@ -659,6 +595,7 @@ files:
659
595
  - lib/rabbit/source/argf.rb
660
596
  - lib/rabbit/source/base.rb
661
597
  - lib/rabbit/source/slide-share.rb
598
+ - lib/rabbit/task.rb
662
599
  - lib/rabbit/xmlrpc/server.rb
663
600
  - lib/rabbit/xmlrpc/client.rb
664
601
  - lib/rabbit/xmlrpc/base.rb
@@ -813,6 +750,7 @@ files:
813
750
  - data/rabbit/image/debian-images/debian-logo-pink.png
814
751
  - data/rabbit/image/debian-images/debian-images.rb
815
752
  - data/rabbit/image/debian-images/property.rb
753
+ - data/account.kou.gpg
816
754
  - entities/isomopf.ent
817
755
  - entities/isoamso.ent
818
756
  - entities/ent2rb.rb
@@ -840,7 +778,6 @@ files:
840
778
  - sample/equation.eps
841
779
  - sample/rabbit.dia
842
780
  - sample/rabbit-balloon.obj
843
- - sample/theme-bench-en.hiki
844
781
  - sample/cozmixng.rd
845
782
  - sample/table.rd
846
783
  - sample/rabbit-implementation.rd
@@ -854,11 +791,9 @@ files:
854
791
  - sample/lldn/lavie.png
855
792
  - sample/lldn/kame.png
856
793
  - sample/cozmixng_is_field.svg
857
- - sample/theme-bench.rab
858
794
  - sample/info-window.png
859
795
  - sample/slide-property.hiki
860
796
  - sample/rabbit.md
861
- - sample/theme-bench-en.rab
862
797
  - sample/rabbit.xcf
863
798
  - sample/enishi-green.rab
864
799
  - sample/rabbit/theme/stop-auto-slide/stop-auto-slide.rb
@@ -897,7 +832,6 @@ files:
897
832
  - sample/kof2005/ruby-pink-circle-logo.png
898
833
  - sample/kof2005/gtk+-widget.svg
899
834
  - sample/kof2005/skip-up-with-ruby-gnome2.rd
900
- - sample/theme-bench.hiki
901
835
  - sample/kou/horizontal-bar.svg
902
836
  - sample/kou/clear-blue-headline-background.svg
903
837
  - sample/kou/quote.svg
@@ -938,9 +872,12 @@ files:
938
872
  - doc/_plugins/converters/hiki.rb
939
873
  - doc/_plugins/converters/markdown.rb
940
874
  - doc/_plugins/converters/rd.rb
875
+ - doc/_plugins/support_symlink.rb
941
876
  - doc/javascripts/jquery.js
942
877
  - doc/javascripts/jquery-ui.js
943
878
  - doc/screenshot.ja.rab
879
+ - doc/_includes/ja.menu.html
880
+ - doc/_includes/en.menu.html
944
881
  - doc/screenshot.en.rab
945
882
  - doc/images/hare-and-tortoise.svg
946
883
  - doc/images/background-sample.svg
@@ -1026,6 +963,7 @@ files:
1026
963
  - doc/en/how-to-make/rd.rd
1027
964
  - doc/en/how-to-make/index.rd
1028
965
  - doc/en/how-to-make/hiki.hiki
966
+ - doc/en/usage/rabbit.rd
1029
967
  - doc/_layouts/skeleton.html
1030
968
  - doc/_layouts/ja.html
1031
969
  - doc/_layouts/en.html
@@ -1058,6 +996,7 @@ files:
1058
996
  - doc/ja/how-to-make/rd.rd
1059
997
  - doc/ja/how-to-make/index.rd
1060
998
  - doc/ja/how-to-make/hiki.hiki
999
+ - doc/ja/usage/rabbit.rd
1061
1000
  - doc/favicon.ico
1062
1001
  - doc/index.html.en
1063
1002
  - po/fr/rabbit.po
@@ -1067,9 +1006,6 @@ files:
1067
1006
  - po/en/rabbit.po~
1068
1007
  - po/ja/rabbit.po
1069
1008
  - po/ja/rabbit.po~
1070
- - update-mo.rb
1071
- - update-po.rb
1072
- - setup.rb
1073
1009
  - test/rabbit-test-utils.rb
1074
1010
  - test/run-test.rb
1075
1011
  - test/test_utils.rb
@@ -1077,13 +1013,11 @@ files:
1077
1013
  - test/test_source.rb
1078
1014
  - test/test_element.rb
1079
1015
  - test/test_applier.rb
1080
- - bin/rabbiter
1016
+ - bin/rabbit-slide
1081
1017
  - bin/rabbit
1018
+ - bin/rabbit-theme
1082
1019
  - bin/rabbit-command
1083
- - bin/rabrick
1084
- - bin/rabwii
1085
1020
  - bin/rabbit-theme-manager
1086
- - bin/rabbirack
1087
1021
  - bin/rabbirc
1088
1022
  homepage: http://rabbit-shockers.org/
1089
1023
  licenses:
data/bin/rabbirack DELETED
@@ -1,99 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # -*- mode: ruby; coding: utf-8 -*-
3
- #
4
- # Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
5
- #
6
- # This program is free software; you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation; either version 2 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # This program is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with this program; if not, write to the Free Software
18
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
-
20
- require "rabbit/console"
21
-
22
- base_dir = nil
23
- $LOAD_PATH.each do |path|
24
- base_dir = File.join(path, "rabbit", "middleware")
25
- if File.exist?(base_dir)
26
- break
27
- else
28
- base_dir = nil
29
- end
30
- end
31
- public_path = File.join(base_dir, "public")
32
- config_ru_path = File.join(base_dir, "config.ru")
33
-
34
- parse = lambda do
35
- Rabbit::Console.parse!(ARGV) do |opts, options|
36
- options.rabbit_uri = "druby://localhost:10101"
37
- options.filters = []
38
- options.user_languages = []
39
- options.log_status = false
40
-
41
- opts.banner += " [passenger|shotgun|rackup] [-- [RACK_RUNNER_OPTIONS]]"
42
-
43
- opts.separator ""
44
-
45
- opts.on("--rabbit-uri=URI",
46
- "Rabbit's dRuby URI",
47
- "(#{options.rabbit_uri})") do |uri|
48
- options.rabbit_uri = uri
49
- end
50
-
51
- opts.on("-e", "--environment=ENVIRONMENT",
52
- "Use ENVIRONMENT as Rack application environment.") do |environment|
53
- ENV["RACK_ENV"] = environment
54
- end
55
- end
56
- end
57
-
58
- options, logger = parse.call
59
-
60
- ENV["RABBIT_URI"] = options.rabbit_uri
61
-
62
- rack_runner = ARGV.first
63
- case rack_runner
64
- when "passenger"
65
- require 'phusion_passenger'
66
- require 'phusion_passenger/standalone/main'
67
- ENV["HROONGA_PASSENGER_STANDALONE"] = "yes"
68
- ARGV.shift
69
- if ARGV[0] == "start"
70
- ARGV[1, 0] = ["--rackup", config_ru_path]
71
- end
72
- PhusionPassenger::Standalone::Main.run!(ARGV)
73
- when "shotgun"
74
- require "shotgun"
75
- shotgun_rb = nil
76
- $LOAD_PATH.each do |path|
77
- shotgun_rb = File.join(path, "shotgun.rb")
78
- if File.exist?(shotgun_rb)
79
- break
80
- else
81
- shotgun_rb = nil
82
- end
83
- end
84
- shotgun_base_dir = File.dirname(File.dirname(shotgun_rb))
85
- shotgun_bin = File.join(shotgun_base_dir, "bin", "shotgun")
86
- ARGV.shift
87
- ARGV.unshift("--public", public_path)
88
- ARGV << config_ru_path
89
- load shotgun_bin
90
- else
91
- require "rack"
92
- ARGV.shift if rack_runner == "rackup"
93
- if Rack.release >= "1.3"
94
- ARGV.unshift("--option", "config=#{config_ru_path}")
95
- else
96
- ARGV.unshift(config_ru_path)
97
- end
98
- Rack::Server.start
99
- end
data/bin/rabbiter DELETED
@@ -1,108 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # -*- ruby -*-
3
-
4
- require 'drb/drb'
5
-
6
- require 'rabbit/console'
7
- require 'rabbit/twitter'
8
-
9
- def parse(args=ARGV, logger=nil)
10
- Rabbit::Console.parse!(args, logger) do |opts, options|
11
- options.rabbit_uri = "druby://localhost:10101"
12
- options.filters = []
13
- options.user_languages = []
14
- options.log_status = false
15
-
16
- opts.separator ""
17
-
18
- opts.on("--rabbit-uri=URI",
19
- "Rabbit's dRuby URI",
20
- "(#{options.rabbit_uri})") do |uri|
21
- options.rabbit_uri = uri
22
- end
23
-
24
- opts.on("--filter=FILTER",
25
- "Filter word for search Twitter.",
26
- "To use multiple filters, use this option multiple.") do |filter|
27
- options.filters << filter
28
- end
29
-
30
- opts.on("--user-language=LANGUAGE",
31
- "Filter by user language.",
32
- "(e.g.: ja, en)",
33
- "To use multiple language, use this option multiple.") do |language|
34
- options.user_languages << language
35
- end
36
-
37
- opts.separator "Debug"
38
-
39
- opts.on("--[no-]log-status",
40
- "Log target statuses.") do |boolean|
41
- options.log_status = boolean
42
- end
43
-
44
- opts.separator "Deprecated"
45
-
46
- opts.on("--keyword=KEYWORD",
47
- "Deprecated. Use --filter instead.") do |keyword|
48
- options.filters << keyword
49
- end
50
- end
51
- end
52
-
53
- def target?(status, options)
54
- return true if options.user_languages.empty?
55
- options.user_languages.include?(status["user"]["lang"])
56
- end
57
-
58
- def clean_text(text, filters)
59
- remove_ustream_link(remove_hash_tag(text, filters))
60
- end
61
-
62
- def remove_hash_tag(text, filters)
63
- hash_tag_regexps = filters.collect do |filter|
64
- if filter.start_with?("#")
65
- Regexp.escape(filter)
66
- else
67
- Regexp.escape("\##{filter}")
68
- end
69
- end
70
- text.gsub(Regexp.union(*hash_tag_regexps), "")
71
- end
72
-
73
- def remove_ustream_link(text)
74
- text.gsub(/\(.* live at http:\/\/ustre\.am\/.*\)/, "")
75
- end
76
-
77
- def main
78
- options, logger = parse
79
- if options.filters.empty?
80
- logger.error("must specify one or more filters by --filter")
81
- exit(false)
82
- end
83
-
84
- rabbit = DRbObject.new_with_uri(options.rabbit_uri)
85
- twitter = Rabbit::Twitter.new(logger)
86
- twitter.start(*options.filters) do |status|
87
- next unless target?(status, options)
88
- text = status["text"]
89
- next if text.nil?
90
- text = clean_text(status['text'], options.filters)
91
- comment = "@#{status['user']['screen_name']}: #{text}"
92
- logger.info(comment)
93
- begin
94
- rabbit.append_comment(comment)
95
- rescue DRb::DRbConnError
96
- logger.error("Rabbiter: #{$!.class}: #{$!.message}")
97
- end
98
- end
99
-
100
- main_loop = GLib::MainLoop.new
101
- trap("INT") do
102
- twitter.close
103
- main_loop.quit
104
- end
105
- main_loop.run
106
- end
107
-
108
- main