redcar 0.3.1dev → 0.3.2dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. data/CHANGES +34 -1
  2. data/README.md +2 -1
  3. data/ROADMAP.md +13 -45
  4. data/Rakefile +15 -14
  5. data/bin/redcar +4 -1
  6. data/lib/plugin_manager/README.md +61 -0
  7. data/lib/plugin_manager/Rakefile +55 -0
  8. data/lib/plugin_manager/bin/plugin_manager +4 -0
  9. data/lib/plugin_manager/lib/plugin_manager.rb +107 -0
  10. data/lib/plugin_manager/lib/plugin_manager/definition_builder.rb +37 -0
  11. data/lib/plugin_manager/lib/plugin_manager/plugin.rb +9 -0
  12. data/lib/plugin_manager/lib/plugin_manager/plugin_definition.rb +50 -0
  13. data/lib/plugin_manager/plugin_manager.gemspec +33 -0
  14. data/lib/plugin_manager/spec/fixtures/error_in_definition/core/plugin.rb +2 -0
  15. data/lib/plugin_manager/spec/fixtures/error_in_plugin/core/core.rb +4 -0
  16. data/lib/plugin_manager/spec/fixtures/error_in_plugin/core/plugin.rb +7 -0
  17. data/lib/plugin_manager/spec/fixtures/example/core/core.rb +20 -0
  18. data/lib/plugin_manager/spec/fixtures/example/core/plugin.rb +7 -0
  19. data/lib/plugin_manager/spec/fixtures/example/debug/debug.rb +6 -0
  20. data/lib/plugin_manager/spec/fixtures/example/debug/plugin.rb +8 -0
  21. data/lib/plugin_manager/spec/fixtures/example/extras/extras.rb +6 -0
  22. data/lib/plugin_manager/spec/fixtures/example/extras/plugin.rb +8 -0
  23. data/lib/plugin_manager/spec/fixtures/two_versions1/core/core.rb +20 -0
  24. data/lib/plugin_manager/spec/fixtures/two_versions1/core/plugin.rb +7 -0
  25. data/lib/plugin_manager/spec/fixtures/two_versions1/core2/core.rb +20 -0
  26. data/lib/plugin_manager/spec/fixtures/two_versions1/core2/plugin.rb +7 -0
  27. data/lib/plugin_manager/spec/fixtures/two_versions2/core/core.rb +20 -0
  28. data/lib/plugin_manager/spec/fixtures/two_versions2/core/plugin.rb +7 -0
  29. data/lib/plugin_manager/spec/fixtures/two_versions2/core2/core.rb +20 -0
  30. data/lib/plugin_manager/spec/fixtures/two_versions2/core2/plugin.rb +8 -0
  31. data/lib/plugin_manager/spec/fixtures/unmet_dependencies1/core/core.rb +10 -0
  32. data/lib/plugin_manager/spec/fixtures/unmet_dependencies1/core/plugin.rb +7 -0
  33. data/lib/plugin_manager/spec/fixtures/unmet_dependencies1/debug/debug.rb +6 -0
  34. data/lib/plugin_manager/spec/fixtures/unmet_dependencies1/debug/plugin.rb +8 -0
  35. data/lib/plugin_manager/spec/fixtures/unmet_dependencies2/core/core.rb +10 -0
  36. data/lib/plugin_manager/spec/fixtures/unmet_dependencies2/core/plugin.rb +7 -0
  37. data/lib/plugin_manager/spec/fixtures/unmet_dependencies2/debug/debug.rb +6 -0
  38. data/lib/plugin_manager/spec/fixtures/unmet_dependencies2/debug/plugin.rb +8 -0
  39. data/lib/plugin_manager/spec/plugin_manager_spec.rb +208 -0
  40. data/lib/plugin_manager/spec/spec_helper.rb +3 -0
  41. data/lib/redcar.rb +8 -3
  42. data/lib/redcar/boot.rb +59 -56
  43. data/lib/redcar/installer.rb +1 -1
  44. data/lib/redcar/instance_exec.rb +25 -0
  45. data/lib/redcar/runner.rb +5 -1
  46. data/lib/redcar/usage.rb +5 -1
  47. data/plugins/application/icons/close.png +0 -0
  48. data/plugins/application/lib/application.rb +61 -28
  49. data/plugins/application/lib/application/clipboard.rb +71 -0
  50. data/plugins/application/lib/application/dialog.rb +63 -0
  51. data/plugins/application/lib/application/menu.rb +32 -1
  52. data/plugins/application/lib/application/menu/builder.rb +10 -4
  53. data/plugins/application/lib/application/menu/item.rb +16 -3
  54. data/plugins/application/lib/application/notebook.rb +5 -0
  55. data/plugins/application/lib/application/speedbar.rb +73 -0
  56. data/plugins/application/lib/application/window.rb +25 -0
  57. data/plugins/application/plugin.rb +8 -0
  58. data/plugins/application/spec/application/clipboard_spec.rb +36 -0
  59. data/plugins/application/spec/application/menu_spec.rb +73 -1
  60. data/plugins/application/spec/application/speedbar_spec.rb +46 -0
  61. data/plugins/application/spec/spec_helper.rb +1 -1
  62. data/plugins/application_swt/lib/application_swt.rb +18 -11
  63. data/plugins/application_swt/lib/application_swt/clipboard.rb +42 -0
  64. data/plugins/application_swt/lib/application_swt/dialog_adapter.rb +68 -0
  65. data/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb +1 -1
  66. data/plugins/application_swt/lib/application_swt/html_tab.rb +32 -0
  67. data/plugins/application_swt/lib/application_swt/menu.rb +57 -21
  68. data/plugins/application_swt/lib/application_swt/menu/binding_translator.rb +39 -2
  69. data/plugins/application_swt/lib/application_swt/notebook.rb +5 -0
  70. data/plugins/application_swt/lib/application_swt/speedbar.rb +187 -0
  71. data/plugins/application_swt/lib/application_swt/swt_wrapper.rb +24 -1
  72. data/plugins/application_swt/lib/application_swt/window.rb +33 -3
  73. data/plugins/application_swt/plugin.rb +8 -0
  74. data/plugins/application_swt/spec/spec_helper.rb +1 -1
  75. data/plugins/auto_completer/features/auto_complete.feature +65 -0
  76. data/plugins/auto_completer/features/step_definitions/auto_complete_steps.rb +4 -0
  77. data/plugins/auto_completer/features/support/env.rb +4 -0
  78. data/plugins/auto_completer/lib/auto_completer.rb +99 -0
  79. data/plugins/auto_completer/lib/auto_completer/document_controller.rb +52 -0
  80. data/plugins/auto_completer/lib/auto_completer/word_iterator.rb +48 -0
  81. data/plugins/auto_completer/lib/auto_completer/word_list.rb +40 -0
  82. data/plugins/auto_completer/plugin.rb +10 -0
  83. data/plugins/auto_indenter/lib/auto_indenter.rb +1 -1
  84. data/plugins/auto_indenter/lib/auto_indenter/document_controller.rb +1 -1
  85. data/plugins/auto_indenter/plugin.rb +8 -0
  86. data/plugins/core/lib/core.rb +6 -30
  87. data/plugins/core/lib/core/gui.rb +7 -2
  88. data/plugins/core/lib/core/logger.rb +7 -4
  89. data/plugins/core/lib/core/plugin/storage.rb +15 -5
  90. data/plugins/core/plugin.rb +7 -0
  91. data/plugins/core/spec/core/storage_spec.rb +0 -9
  92. data/plugins/edit_view/features/cut_and_paste.feature +45 -0
  93. data/plugins/edit_view/features/step_definitions/editing_steps.rb +22 -0
  94. data/plugins/edit_view/features/step_definitions/key_steps.rb +1 -1
  95. data/plugins/edit_view/features/step_definitions/notebook_steps.rb +1 -1
  96. data/plugins/edit_view/features/step_definitions/tab_steps.rb +2 -0
  97. data/plugins/edit_view/features/step_definitions/window_steps.rb +1 -1
  98. data/plugins/edit_view/features/support/env.rb +2 -2
  99. data/plugins/edit_view/lib/edit_view.rb +24 -13
  100. data/plugins/edit_view/lib/edit_view/document.rb +233 -15
  101. data/plugins/edit_view/lib/edit_view/edit_tab.rb +2 -2
  102. data/plugins/edit_view/plugin.rb +9 -0
  103. data/plugins/edit_view/spec/spec_helper.rb +1 -1
  104. data/plugins/edit_view_swt/lib/edit_view_swt.rb +37 -8
  105. data/plugins/edit_view_swt/lib/edit_view_swt/document.rb +59 -24
  106. data/plugins/edit_view_swt/lib/edit_view_swt/word_movement.rb +66 -0
  107. data/plugins/edit_view_swt/plugin.rb +9 -0
  108. data/plugins/edit_view_swt/spec/edit_view_swt/word_movement_spec.rb +29 -0
  109. data/plugins/edit_view_swt/spec/spec_helper.rb +6 -0
  110. data/plugins/html_view/assets/blueprint/ie.css +35 -0
  111. data/plugins/html_view/assets/blueprint/print.css +29 -0
  112. data/plugins/html_view/assets/blueprint/screen.css +257 -0
  113. data/plugins/html_view/assets/blueprint/src/forms.css +65 -0
  114. data/plugins/html_view/assets/blueprint/src/grid.css +281 -0
  115. data/plugins/html_view/assets/blueprint/src/grid.png +0 -0
  116. data/plugins/html_view/assets/blueprint/src/ie.css +76 -0
  117. data/plugins/html_view/assets/blueprint/src/print.css +85 -0
  118. data/plugins/html_view/assets/blueprint/src/reset.css +38 -0
  119. data/plugins/html_view/assets/blueprint/src/typography.css +106 -0
  120. data/plugins/html_view/assets/jquery-1.4.min.js +151 -0
  121. data/plugins/html_view/assets/redcar.css +12 -0
  122. data/plugins/html_view/lib/html_controller.rb +5 -0
  123. data/plugins/html_view/lib/html_view.rb +47 -0
  124. data/plugins/html_view/lib/html_view/html_tab.rb +16 -0
  125. data/plugins/html_view/plugin.rb +12 -0
  126. data/plugins/my_plugin/lib/my_plugin.rb +55 -0
  127. data/plugins/my_plugin/plugin.rb +8 -0
  128. data/plugins/plugin_manager_ui/lib/plugin_manager_ui.rb +62 -0
  129. data/plugins/plugin_manager_ui/plugin.rb +12 -0
  130. data/plugins/plugin_manager_ui/views/index.html.erb +31 -0
  131. data/plugins/project/lib/project.rb +27 -13
  132. data/plugins/project/lib/project/find_file_dialog.rb +25 -19
  133. data/plugins/project/plugin.rb +8 -0
  134. data/plugins/project/spec/spec_helper.rb +1 -1
  135. data/plugins/redcar/plugin.rb +13 -0
  136. data/plugins/redcar/redcar.rb +249 -8
  137. data/plugins/repl/lib/repl.rb +22 -14
  138. data/plugins/repl/plugin.rb +8 -0
  139. data/plugins/repl/spec/spec_helper.rb +1 -1
  140. data/plugins/tree/plugin.rb +9 -0
  141. data/plugins/tree/spec/spec_helper.rb +1 -1
  142. data/plugins/tree_view_swt/plugin.rb +9 -0
  143. data/textmate/Bundles/Apache.tmbundle/Syntaxes/Apache.plist +544 -0
  144. data/textmate/Bundles/Apache.tmbundle/Syntaxes/mod_perl.tmLanguage +120 -0
  145. data/textmate/Bundles/Blogging.tmbundle/Syntaxes/Blog___HTML__.plist +88 -0
  146. data/textmate/Bundles/Blogging.tmbundle/Syntaxes/Blog___Markdown__.plist +89 -0
  147. data/textmate/Bundles/Blogging.tmbundle/Syntaxes/Blog___Text__.plist +74 -0
  148. data/textmate/Bundles/Blogging.tmbundle/Syntaxes/Blog___Textile__.plist +74 -0
  149. data/textmate/Bundles/Bundle Development.tmbundle/Syntaxes/LanguageGrammar.tmLanguage +1829 -0
  150. data/textmate/Bundles/C Sharp.tmbundle/Syntaxes/Build.tmLanguage +142 -0
  151. data/textmate/Bundles/C Sharp.tmbundle/Syntaxes/C__.tmLanguage +524 -0
  152. data/textmate/Bundles/C++ Qt.tmbundle/Syntaxes/Qt_C____.tmLanguage +62 -0
  153. data/textmate/Bundles/C++ Qt.tmbundle/Syntaxes/qmake_Project.tmLanguage +308 -0
  154. data/textmate/Bundles/C.tmbundle/Syntaxes/C.plist +90 -48
  155. data/textmate/Bundles/Clojure.tmbundle/Syntaxes/Clojure.tmLanguage +427 -0
  156. data/textmate/Bundles/Cucumber.tmbundle/Syntaxes/Cucumber_Plain_Text_Feature.tmLanguage +106 -13
  157. data/textmate/Bundles/Cucumber.tmbundle/Syntaxes/Cucumber_Steps.tmLanguage +177 -2
  158. data/textmate/Bundles/Cucumber.tmbundle/Syntaxes/plaintext_template.erb +109 -17
  159. data/textmate/Bundles/D.tmbundle/Syntaxes/D.tmLanguage +908 -0
  160. data/textmate/Bundles/Diff.tmbundle/Syntaxes/Diff.plist +229 -0
  161. data/textmate/Bundles/DokuWiki.tmbundle/Syntaxes/DokuWiki.tmLanguage +649 -0
  162. data/textmate/Bundles/F-Script.tmbundle/Syntaxes/F__Script.plist +219 -0
  163. data/textmate/Bundles/Haskell.tmbundle/Syntaxes/Haskell.plist +646 -0
  164. data/textmate/Bundles/Haskell.tmbundle/Syntaxes/Literate_Haskell.plist +90 -0
  165. data/textmate/Bundles/Io.tmbundle/Syntaxes/Io.plist +225 -0
  166. data/textmate/Bundles/JSON.tmbundle/Syntaxes/JSON.tmLanguage +285 -0
  167. data/textmate/Bundles/JavaScript Prototype & Script_aculo_us.tmbundle/Syntaxes/JavaScript____Prototype.tmLanguage +193 -0
  168. data/textmate/Bundles/JavaScript Prototype & Script_aculo_us.tmbundle/Syntaxes/JavaScript____Prototype_Bracketed.tmLanguage +394 -0
  169. data/textmate/Bundles/JavaScript jQuery.tmbundle/Syntaxes/jQuery___JavaScript__.tmLanguage +440 -0
  170. data/textmate/Bundles/JavaScript.tmbundle/Syntaxes/JavaScript.plist +712 -0
  171. data/textmate/Bundles/Latex.tmbundle/Syntaxes/Bibtex.plist +406 -0
  172. data/textmate/Bundles/Latex.tmbundle/Syntaxes/LaTeX.plist +1601 -0
  173. data/textmate/Bundles/Latex.tmbundle/Syntaxes/LaTeX_Beamer.plist +106 -0
  174. data/textmate/Bundles/Latex.tmbundle/Syntaxes/LaTeX_Log.plist +141 -0
  175. data/textmate/Bundles/Latex.tmbundle/Syntaxes/LaTeX_Memoir.tmLanguage +165 -0
  176. data/textmate/Bundles/Latex.tmbundle/Syntaxes/TeX.plist +246 -0
  177. data/textmate/Bundles/Latex.tmbundle/Syntaxes/TeX_Math.plist +132 -0
  178. data/textmate/Bundles/Lisp.tmbundle/Syntaxes/Lisp.plist +160 -0
  179. data/textmate/Bundles/Makefile.tmbundle/Syntaxes/Makefile.plist +103 -0
  180. data/textmate/Bundles/Markdown.tmbundle/Syntaxes/Markdown.plist +1192 -0
  181. data/textmate/Bundles/Markdown.tmbundle/Syntaxes/MultiMarkdown.tmLanguage +80 -0
  182. data/textmate/Bundles/PHP.tmbundle/Syntaxes/PHP.plist +3481 -0
  183. data/textmate/Bundles/Perl HTML-Template.tmbundle/Syntaxes/Perl_HTML__Template.tmLanguage +217 -0
  184. data/textmate/Bundles/Perl Template Toolkit.tmbundle/Syntaxes/HTML___Template_Toolkit__.tmLanguage +339 -0
  185. data/textmate/Bundles/Postscript.tmbundle/Syntaxes/Postscript.tmLanguage +321 -0
  186. data/textmate/Bundles/Processing.tmbundle/Syntaxes/Processing.plist +296 -0
  187. data/textmate/Bundles/Property List.tmbundle/Syntaxes/Property_List.tmLanguage +1650 -0
  188. data/textmate/Bundles/Python Django Templates.tmbundle/Syntaxes/HTML___Django__.tmLanguage +104 -0
  189. data/textmate/Bundles/Python Django.tmbundle/Syntaxes/Python_Django.tmLanguage +57 -0
  190. data/textmate/Bundles/Python.tmbundle/Syntaxes/Python.tmLanguage +3016 -0
  191. data/textmate/Bundles/Python.tmbundle/Syntaxes/Regular_Expressions___Python__.tmLanguage +299 -0
  192. data/textmate/Bundles/Rez.tmbundle/Syntaxes/Rez.plist +219 -0
  193. data/textmate/Bundles/Ruby Haml.tmbundle/Syntaxes/Ruby_Haml.tmLanguage +403 -0
  194. data/textmate/Bundles/Ruby RSpec.tmbundle/Syntaxes/RSpec.tmLanguage +142 -0
  195. data/textmate/Bundles/Ruby.tmbundle/Syntaxes/Ruby.plist +139 -49
  196. data/textmate/Bundles/SQL.tmbundle/Syntaxes/SQL.plist +705 -0
  197. data/textmate/Bundles/SSH-Config.tmbundle/Syntaxes/SSH__Config.tmLanguage +88 -0
  198. data/textmate/Bundles/Scala.tmbundle/Syntaxes/Scala.tmLanguage +609 -0
  199. data/textmate/Bundles/Scala.tmbundle/Syntaxes/Scala_Properties.tmLanguage +54 -0
  200. data/textmate/Bundles/ShellScript.tmbundle/Syntaxes/Shell__Unix__Generic.plist +1855 -0
  201. data/textmate/Bundles/Tabular.tmbundle/Syntaxes/CSV.tmLanguage +178 -0
  202. data/textmate/Bundles/Tabular.tmbundle/Syntaxes/TSV.tmLanguage +135 -0
  203. data/textmate/Bundles/TextMate.tmbundle/Syntaxes/Regular_Expressions___Oniguruma__.tmLanguage +295 -0
  204. data/textmate/Bundles/TextMate.tmbundle/Syntaxes/Release_Notes.tmLanguage +126 -0
  205. data/textmate/Bundles/Textile.tmbundle/Syntaxes/Textile.plist +490 -0
  206. data/textmate/Bundles/Thrift.tmbundle/Syntaxes/Thrift.tmLanguage +1024 -0
  207. data/textmate/Bundles/XML.tmbundle/Syntaxes/XML.plist +576 -0
  208. data/textmate/Bundles/XML.tmbundle/Syntaxes/XSL.plist +157 -0
  209. data/textmate/Bundles/YAML.tmbundle/Syntaxes/YAML.plist +466 -0
  210. data/textmate/Themes/Django.tmTheme +436 -0
  211. metadata +371 -325
  212. data/config/default.yaml +0 -15
  213. data/lib/freebase2/README.txt +0 -47
  214. data/lib/freebase2/bin/default.yaml +0 -15
  215. data/lib/freebase2/bin/install.rb +0 -42
  216. data/lib/freebase2/bin/run.rb +0 -48
  217. data/lib/freebase2/lib/freebase/configuration.rb +0 -535
  218. data/lib/freebase2/lib/freebase/core.rb +0 -197
  219. data/lib/freebase2/lib/freebase/databus.rb +0 -1128
  220. data/lib/freebase2/lib/freebase/freebase.rb +0 -60
  221. data/lib/freebase2/lib/freebase/logger.rb +0 -117
  222. data/lib/freebase2/lib/freebase/plugin.rb +0 -384
  223. data/lib/freebase2/lib/freebase/properties.rb +0 -130
  224. data/lib/freebase2/lib/freebase/readers.rb +0 -328
  225. data/lib/freebase2/notes +0 -61
  226. data/lib/freebase2/plugins/raa_webrick/httpd.rb +0 -125
  227. data/lib/freebase2/plugins/raa_webrick/plugin.yaml +0 -7
  228. data/lib/freebase2/plugins/raa_webrick/web_root/test.html +0 -5
  229. data/lib/freebase2/plugins/raa_webrick/webserver.yaml +0 -6
  230. data/lib/freebase2/plugins/raa_xmlrpc4r/plugin.xml +0 -8
  231. data/lib/freebase2/plugins/raa_xmlrpc4r/rpcd.rb +0 -54
  232. data/lib/freebase2/regress/README +0 -1
  233. data/lib/little_plugger/History.txt +0 -20
  234. data/lib/little_plugger/Rakefile +0 -34
  235. data/lib/little_plugger/lib/little-plugger.rb +0 -323
  236. data/lib/little_plugger/spec/little-plugger_spec.rb +0 -26
  237. data/lib/little_plugger/spec/spec_helper.rb +0 -16
  238. data/lib/logging/History.txt +0 -240
  239. data/lib/logging/Rakefile +0 -37
  240. data/lib/logging/data/bad_logging_1.rb +0 -13
  241. data/lib/logging/data/bad_logging_2.rb +0 -21
  242. data/lib/logging/data/logging.rb +0 -42
  243. data/lib/logging/data/logging.yaml +0 -63
  244. data/lib/logging/data/simple_logging.rb +0 -13
  245. data/lib/logging/examples/appenders.rb +0 -47
  246. data/lib/logging/examples/classes.rb +0 -41
  247. data/lib/logging/examples/consolidation.rb +0 -83
  248. data/lib/logging/examples/formatting.rb +0 -51
  249. data/lib/logging/examples/hierarchies.rb +0 -73
  250. data/lib/logging/examples/layouts.rb +0 -48
  251. data/lib/logging/examples/loggers.rb +0 -29
  252. data/lib/logging/examples/names.rb +0 -43
  253. data/lib/logging/examples/simple.rb +0 -17
  254. data/lib/logging/lib/logging.rb +0 -501
  255. data/lib/logging/lib/logging/appender.rb +0 -251
  256. data/lib/logging/lib/logging/appenders.rb +0 -131
  257. data/lib/logging/lib/logging/appenders/buffering.rb +0 -168
  258. data/lib/logging/lib/logging/appenders/console.rb +0 -60
  259. data/lib/logging/lib/logging/appenders/email.rb +0 -75
  260. data/lib/logging/lib/logging/appenders/file.rb +0 -58
  261. data/lib/logging/lib/logging/appenders/growl.rb +0 -197
  262. data/lib/logging/lib/logging/appenders/io.rb +0 -69
  263. data/lib/logging/lib/logging/appenders/rolling_file.rb +0 -293
  264. data/lib/logging/lib/logging/appenders/string_io.rb +0 -68
  265. data/lib/logging/lib/logging/appenders/syslog.rb +0 -194
  266. data/lib/logging/lib/logging/config/configurator.rb +0 -188
  267. data/lib/logging/lib/logging/config/yaml_configurator.rb +0 -191
  268. data/lib/logging/lib/logging/layout.rb +0 -117
  269. data/lib/logging/lib/logging/layouts.rb +0 -47
  270. data/lib/logging/lib/logging/layouts/basic.rb +0 -32
  271. data/lib/logging/lib/logging/layouts/parseable.rb +0 -211
  272. data/lib/logging/lib/logging/layouts/pattern.rb +0 -311
  273. data/lib/logging/lib/logging/log_event.rb +0 -45
  274. data/lib/logging/lib/logging/logger.rb +0 -503
  275. data/lib/logging/lib/logging/repository.rb +0 -232
  276. data/lib/logging/lib/logging/root_logger.rb +0 -61
  277. data/lib/logging/lib/logging/stats.rb +0 -278
  278. data/lib/logging/lib/logging/utils.rb +0 -153
  279. data/lib/logging/lib/spec/logging_helper.rb +0 -34
  280. data/lib/logging/test/appenders/test_buffered_io.rb +0 -176
  281. data/lib/logging/test/appenders/test_console.rb +0 -66
  282. data/lib/logging/test/appenders/test_email.rb +0 -170
  283. data/lib/logging/test/appenders/test_file.rb +0 -95
  284. data/lib/logging/test/appenders/test_growl.rb +0 -127
  285. data/lib/logging/test/appenders/test_io.rb +0 -129
  286. data/lib/logging/test/appenders/test_rolling_file.rb +0 -200
  287. data/lib/logging/test/appenders/test_syslog.rb +0 -194
  288. data/lib/logging/test/benchmark.rb +0 -86
  289. data/lib/logging/test/config/test_configurator.rb +0 -70
  290. data/lib/logging/test/config/test_yaml_configurator.rb +0 -40
  291. data/lib/logging/test/layouts/test_basic.rb +0 -42
  292. data/lib/logging/test/layouts/test_json.rb +0 -112
  293. data/lib/logging/test/layouts/test_pattern.rb +0 -198
  294. data/lib/logging/test/layouts/test_yaml.rb +0 -121
  295. data/lib/logging/test/setup.rb +0 -44
  296. data/lib/logging/test/test_appender.rb +0 -152
  297. data/lib/logging/test/test_consolidate.rb +0 -46
  298. data/lib/logging/test/test_layout.rb +0 -110
  299. data/lib/logging/test/test_log_event.rb +0 -80
  300. data/lib/logging/test/test_logger.rb +0 -699
  301. data/lib/logging/test/test_logging.rb +0 -267
  302. data/lib/logging/test/test_repository.rb +0 -158
  303. data/lib/logging/test/test_root_logger.rb +0 -81
  304. data/lib/logging/test/test_stats.rb +0 -274
  305. data/lib/logging/test/test_utils.rb +0 -116
  306. data/plugins/application/plugin.yaml +0 -11
  307. data/plugins/application_swt/plugin.yaml +0 -11
  308. data/plugins/auto_indenter/plugin.yaml +0 -12
  309. data/plugins/core/plugin.yaml +0 -7
  310. data/plugins/edit_view/plugin.yaml +0 -14
  311. data/plugins/edit_view_swt/plugin.yaml +0 -14
  312. data/plugins/project/plugin.yaml +0 -12
  313. data/plugins/redcar/plugin.yaml +0 -18
  314. data/plugins/repl/plugin.yaml +0 -12
  315. data/plugins/tree/plugin.yaml +0 -14
  316. data/plugins/tree_view_swt/plugin.yaml +0 -14
@@ -1,13 +0,0 @@
1
-
2
- Logging.configure {
3
-
4
- logger(:root) {
5
- level :info
6
- appenders 'stdout'
7
- }
8
-
9
- appender('stdout') {
10
- type 'Stdout'
11
- }
12
-
13
- } # logging configuration
@@ -1,47 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Appenders are used to output log events to some logging destination. The
4
- # same log event can be sent to multiple desitnations by associating
5
- # multiple appenders with the logger.
6
- #
7
- # The following is a list of all the available appenders and a brief
8
- # description of each. Please refer to the documentation for specific
9
- # configuration options available for each.
10
- #
11
- # Email generates e-mail messages
12
- # File writes to a regular file
13
- # Growl outputs growl notifications (Mac OS X only)
14
- # IO generic IO appender
15
- # RollingFile writes to a file and rolls based on size or age
16
- # Stdout appends to STDOUT
17
- # Stderr appends to STDERR
18
- # StringIo writes to a StringIO instance (useful for testing)
19
- # Syslog outputs to syslogd (not available on all systems)
20
- #
21
- # And you can access these appenders:
22
- #
23
- # Logging.appenders.email
24
- # Logging.appenders.file
25
- # Logging.appenders.growl
26
- # Logging.appenders.io
27
- # Logging.appenders.rolling_file
28
- # Logging.appenders.stdout
29
- # Logging.appenders.stderr
30
- # Logging.appenders.string_io
31
- # Logging.appenders.syslog
32
- #
33
-
34
- require 'logging'
35
-
36
- log = Logging.logger['example']
37
- log.add_appenders(
38
- Logging.appenders.stdout,
39
- Logging.appenders.file('development.log')
40
- )
41
- log.level = :debug
42
-
43
- # These messages will be logged to both the log file and to STDOUT
44
- log.debug "a very nice little debug message"
45
- log.warn "this is your last warning"
46
-
47
- # :startdoc:
@@ -1,41 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # The Logging framework is very good about figuring out predictable names
4
- # for loggers regardless of what object is used to create them. The name is
5
- # the class name or module name of whatever is passed to the logger bracket
6
- # method. The following lines all return the exact same logger instance:
7
- #
8
- # ary = Array.new
9
- # Logging.logger[ary]
10
- # Logging.logger[Array]
11
- # Logging.logger['Array']
12
- # Logging.logger[:Array]
13
- #
14
- # So, if you want each class to have it's own logger this is very easy to
15
- # do.
16
- #
17
-
18
- require 'logging'
19
-
20
- Logging.logger.root.appenders = Logging.appenders.stdout
21
- Logging.logger.root.level = :info
22
-
23
- class Foo
24
- attr_reader :log
25
- def initialize() @log = Logging.logger[self]; end
26
- end
27
-
28
- class Foo::Bar
29
- attr_reader :log
30
- def initialize() @log = Logging.logger[self]; end
31
- end
32
-
33
- foo = Foo.new.log
34
- bar = Foo::Bar.new.log
35
-
36
- # you'll notice in these log messages that the logger names were taken
37
- # from the class names of the Foo and Foo::Bar instances
38
- foo.info 'this message came from Foo'
39
- bar.warn 'this is a warning from Foo::Bar'
40
-
41
- # :startdoc:
@@ -1,83 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Logging support can be included globally giving all objects in the Ruby
4
- # space access to a logger instance. This "logger" method invokes
5
- #
6
- # Logging.logger[self]
7
- #
8
- # And returns the appropriate logger for the current context.
9
- #
10
- # However, there might be times when it is not desirable to create an
11
- # individual logger for every class and module. This is where the concept of
12
- # "logger consolidation" comes into play. A ruby namespace can be configured
13
- # to consolidate loggers such that all classes and modules in that namespace
14
- # use the same logger instance.
15
- #
16
- # Because our loggers are being accessed via the self context, it becomes
17
- # very easy to turn on debugging on a class-by-class basis (or a
18
- # module-by-module basis). The trick is to create the debug logger first and
19
- # then configure the namespace to consolidate all loggers. Since we already
20
- # created our debug logger, it will be used by the class in question instead
21
- # of the consolidated namespace logger.
22
- #
23
-
24
- require 'logging'
25
- include Logging.globally
26
-
27
- Logging.logger.root.appenders = Logging.appenders.stdout
28
- Logging.logger.root.level = :info
29
-
30
- # we want to debug the "FooBar" module of ActiveRecord
31
- Logging.logger['ActiveRecord::FooBar'].level = :debug
32
-
33
- # and we want everything else in ActiveRecord and ActiveResource
34
- # to use the same consolidated loggers (one for each namespace)
35
- Logging.consolidate 'ActiveRecord', 'ActiveResource'
36
-
37
-
38
- logger.info 'because we included Logging globally, ' \
39
- 'we have access to a logger anywhere in our code'
40
-
41
-
42
- module ActiveRecord
43
- logger.info 'even at the module level'
44
-
45
- class Base
46
- logger.info 'and at the class level'
47
- end
48
- end
49
-
50
-
51
- module ActiveResource
52
- logger.info "you'll notice that these log messages " \
53
- "are coming from the same logger"
54
-
55
- class Base
56
- logger.info "even though the logger is invoked from different classes"
57
- end
58
-
59
- class Foo
60
- def foo
61
- logger.info "that is because ActiveRecord and ActiveResource " \
62
- "are consolidating loggers in their respective namespaces"
63
- end
64
- end
65
- Foo.new.foo
66
- end
67
-
68
-
69
- module ActiveRecord
70
- logger.debug 'this debug message will not be logged ' \
71
- '- level is info'
72
-
73
- class Base
74
- logger.debug 'and this debug message will not be logged either ' \
75
- '- same logger as above'
76
- end
77
-
78
- module FooBar
79
- logger.debug 'however, this debug message WILL be logged'
80
- end
81
- end
82
-
83
- # :startdoc:
@@ -1,51 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Any Ruby object can be passed to the log methods of a logger. How these
4
- # objects are formatted by the Logging framework is controlled by a global
5
- # "format_as" option and a global "backtrace" option.
6
- #
7
- # The format_as option allows objects to be converted to a string using the
8
- # standard "to_s" method, the "inspect" method, or the "to_yaml" method
9
- # (this is independent of the YAML layout). The format_as option can be
10
- # overridden by each layout as desired.
11
- #
12
- # Logging.format_as :string # or :inspect or :yaml
13
- #
14
- # Exceptions are treated differently by the logging framework. The Exception
15
- # class is printed along with the message. Optionally, exception backtraces
16
- # can be included in the logging output; this option is enabled by default.
17
- #
18
- # Logging.backtrace false
19
- #
20
- # The backtrace can be enabled or disabled for each layout as needed.
21
- #
22
-
23
- require 'logging'
24
-
25
- Logging.format_as :inspect
26
- Logging.backtrace false
27
-
28
- Logging.appenders.stdout(
29
- :layout => Logging.layouts.basic(:format_as => :yaml)
30
- )
31
-
32
- Logging.appenders.stderr(
33
- :layout => Logging.layouts.basic(:backtrace => true)
34
- )
35
-
36
- log = Logging.logger['foo']
37
- log.appenders = %w[stdout stderr]
38
-
39
- # these log messages will all appear twice because of the two appenders -
40
- # STDOUT and STDERR - but the interesting thing is the difference in the
41
- # output
42
- log.info %w[An Array Of Strings]
43
- log.info({"one"=>1, "two"=>2})
44
-
45
- begin
46
- 1 / 0
47
- rescue => err
48
- log.error err
49
- end
50
-
51
- # :startdoc:
@@ -1,73 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Loggers exist in a hierarchical relationship defined by their names. Each
4
- # logger has a parent (except for the root logger). A logger can zero or
5
- # more children. This parent/child relationship is determined by the Ruby
6
- # namespace separator '::'.
7
- #
8
- # root
9
- # |-- Foo
10
- # | |-- Foo::Bar
11
- # | `-- Foo::Baz
12
- # |-- ActiveRecord
13
- # | `-- ActiveRecord::Base
14
- # |-- ActiveSupport
15
- # | `-- ActiveSupport::Base
16
- # `-- Rails
17
- #
18
- # A logger inherits its log level from its parent. This level can be set for
19
- # each logger in the system. Setting the level on a logger affects all it's
20
- # children and grandchildren, etc. unless the child has it's own level set.
21
- #
22
- # Loggers also have a property called "additivity", and by default it is set
23
- # to true for all loggers. This property enables a logger to pass log events
24
- # up to its parent.
25
- #
26
- # If a logger does not have an appender and its additivity is true, it will
27
- # pass all log events up to its parent who will then try to send the log
28
- # event to its appenders. The parent will do the same thing, passing the log
29
- # event up the chain till the root logger is reached or some parent logger
30
- # has its additivity set to false.
31
- #
32
- # So, if the root logger is the only one with an appender, all loggers can
33
- # still output log events to the appender because of additivity. A logger
34
- # will ALWAYS send log events to its own appenders regardless of its
35
- # additivity.
36
- #
37
- # The show_configuration method can be used to dump the logging hierarchy.
38
- #
39
-
40
- require 'logging'
41
-
42
- Logging.logger.root.level = :debug
43
-
44
- foo = Logging.logger['Foo']
45
- bar = Logging.logger['Foo::Bar']
46
- baz = Logging.logger['Foo::Baz']
47
-
48
- # configure the Foo logger
49
- foo.level = 'warn'
50
- foo.appenders = Logging.appenders.stdout
51
-
52
- # since Foo is the parent of Foo::Bar and Foo::Baz, these loggers all have
53
- # their level set to warn
54
-
55
- foo.warn 'this is a warning, not a ticket'
56
- bar.info 'this message will not be logged'
57
- baz.info 'nor will this message'
58
- bar.error 'but this error message will be logged'
59
-
60
- # let's demonstrate additivity of loggers
61
-
62
- Logging.logger.root.appenders = Logging.appenders.stdout
63
-
64
- baz.warn 'this message will be logged twice - once by Foo and once by root'
65
-
66
- foo.additive = false
67
- bar.warn "foo is no longer passing log events up to it's parent"
68
-
69
- # let's look at the logger hierarchy
70
- puts '='*76
71
- Logging.show_configuration
72
-
73
- # :startdoc:
@@ -1,48 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # The formatting of log messages is controlled by the layout given to the
4
- # appender. By default all appenders use the Basic layout. It's pretty
5
- # basic. However, a more sophisticated Pattern layout can be used or one of
6
- # the Parseable layouts -- JSON or YAML.
7
- #
8
- # The available layouts are:
9
- #
10
- # Logging.layouts.basic
11
- # Logging.layouts.pattern
12
- # Logging.layouts.json
13
- # Logging.layouts.yaml
14
- #
15
- # In this example we'll demonstrate use of different layouts and setting log
16
- # levels in the appenders to filter out events.
17
- #
18
-
19
- require 'logging'
20
-
21
- # only show "info" or higher messages on STDOUT using the Basic layout
22
- Logging.appenders.stdout(:level => :info)
23
-
24
- # send all log events to the development log (including debug) as JSON
25
- Logging.appenders.rolling_file(
26
- 'development.log',
27
- :age => 'daily',
28
- :layout => Logging.layouts.json
29
- )
30
-
31
- # send growl notifications for errors and fatals using a nice pattern
32
- Logging.appenders.growl(
33
- 'growl',
34
- :level => :error,
35
- :layout => Logging.layouts.pattern(:pattern => '[%d] %-5l: %m\n')
36
- )
37
-
38
- log = Logging.logger['Foo::Bar']
39
- log.add_appenders 'stdout', 'development.log', 'growl'
40
- log.level = :debug
41
-
42
- log.debug "a very nice little debug message"
43
- log.info "things are operating nominally"
44
- log.warn "this is your last warning"
45
- log.error StandardError.new("something went horribly wrong")
46
- log.fatal "I Die!"
47
-
48
- # :startdoc:
@@ -1,29 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Multiple loggers can be created and each can be configured with it's own
4
- # log level and appenders. So one logger can be configured to output debug
5
- # messages, and all the others can be left at the info or warn level. This
6
- # makes it easier to debug specific portions of your code.
7
- #
8
-
9
- require 'logging'
10
-
11
- # all loggers inherit the log level of the "root" logger
12
- # but specific loggers can be given their own level
13
- Logging.logger.root.level = :warn
14
-
15
- # similarly, the root appender will be used by all loggers
16
- Logging.logger.root.appenders = Logging.appenders.file('output.log')
17
-
18
- log1 = Logging.logger['Log1']
19
- log2 = Logging.logger['Log2']
20
- log3 = Logging.logger['Log3']
21
-
22
- # you can use strings or symbols to set the log level
23
- log3.level = 'debug'
24
-
25
- log1.info "this message will not get logged"
26
- log2.info "nor will this message"
27
- log3.info "but this message will get logged"
28
-
29
- # :startdoc:
@@ -1,43 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Loggers and appenders can be looked up by name. The bracket notation is
4
- # used to find these objects:
5
- #
6
- # Logging.logger['foo']
7
- # Logging.appenders['bar']
8
- #
9
- # A logger will be created if a new name is used. Appenders are different;
10
- # nil is returned when an unknown appender name is used. The reason for this
11
- # is that appenders come in many different flavors (so it is unclear which
12
- # type should be created), but there is only one type of logger.
13
- #
14
- # So it is useful to be able to create an appender and then reference it by
15
- # name to add it to multiple loggers. When the same name is used, the same
16
- # object will be returned by the bracket methods.
17
- #
18
- # Layouts do not have names. Some are stateful, and none are threadsafe. So
19
- # each appender is configured with it's own layout.
20
- #
21
-
22
- require 'logging'
23
-
24
- Logging.appenders.file('Debug File', :filename => 'debug.log')
25
- Logging.appenders.growl('Growl Notifier', :level => :error)
26
-
27
- # configure the root logger
28
- Logging.logger.root.appenders = 'Debug File'
29
- Logging.logger.root.level = :debug
30
-
31
- # add the growl notifier to the Critical logger (it will use it's own
32
- # appender and the root logger's appender, too)
33
- Logging.logger['Critical'].appenders = 'Growl Notifier'
34
-
35
- # if you'll notice above, assigning appenders using just the name is valid
36
- # the logger is smart enough to figure out it was given a string and then
37
- # go lookup the appender by name
38
-
39
- # and now log some messages
40
- Logging.logger['Critical'].info 'just keeping you informed'
41
- Logging.logger['Critical'].fatal 'WTF!!'
42
-
43
- # :startdoc:
@@ -1,17 +0,0 @@
1
- # :stopdoc:
2
- #
3
- # Logging provides a simple, default logger configured in the same manner as
4
- # the default Ruby Logger class -- i.e. the output of the two will be the
5
- # same. All log messags at "warn" or higher are printed to STDOUT; any
6
- # message below the "warn" level are discarded.
7
- #
8
-
9
- require 'logging'
10
-
11
- log = Logging.logger(STDOUT)
12
- log.level = :warn
13
-
14
- log.debug "this debug message will not be output by the logger"
15
- log.warn "this is your last warning"
16
-
17
- # :startdoc: