gollum 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum might be problematic. Click here for more details.

Files changed (391) hide show
  1. data/gollum.gemspec +100 -19
  2. data/lib/gollum.rb +2 -3
  3. data/lib/gollum/frontend/public/gollum/css/gollum.css +3 -1
  4. data/lib/gollum/frontend/public/gollum/css/template.css +8 -12
  5. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ace.js +64 -60
  6. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor.js +56 -62
  7. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +25 -32
  8. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +56 -63
  9. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +25 -32
  10. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +11 -11
  11. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +59 -53
  12. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +46 -39
  13. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +32 -36
  14. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config.js +62 -47
  15. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config_test.js +71 -0
  16. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +82 -41
  17. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document.js +126 -145
  18. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document_test.js +25 -33
  19. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +484 -467
  20. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +30 -63
  21. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +29 -37
  22. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +27 -35
  23. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +47 -55
  24. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +61 -41
  25. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor.js +506 -517
  26. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_change_document_test.js +25 -32
  27. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +26 -34
  28. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_navigation_test.js +25 -32
  29. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +25 -32
  30. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +28 -38
  31. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +9 -14
  32. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +26 -36
  33. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +44 -36
  34. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +45 -52
  35. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +25 -34
  36. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +26 -33
  37. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +230 -165
  38. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +76 -49
  39. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +66 -61
  40. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/aliases.js +36 -43
  41. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +138 -156
  42. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +35 -32
  43. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +18 -18
  44. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/registers.js +25 -32
  45. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +116 -101
  46. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +117 -83
  47. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +60 -71
  48. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +163 -102
  49. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +60 -41
  50. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/browser_focus.js +26 -36
  51. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +26 -36
  52. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +24 -1
  53. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +52 -54
  54. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +32 -39
  55. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter_test.js +25 -32
  56. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +9 -1
  57. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +73 -33
  58. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +10 -3
  59. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +25 -32
  60. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/regexp.js +2 -2
  61. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +55 -58
  62. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/package.json +8 -0
  63. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/test_highlight_rules.js +144 -0
  64. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_javascript.txt +52 -0
  65. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c9search.json +175 -0
  66. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c_cpp.json +124 -0
  67. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_clojure.json +248 -0
  68. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coffee.json +188 -0
  69. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coldfusion.json +41 -0
  70. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_csharp.json +42 -0
  71. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_css.json +231 -0
  72. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_diff.json +732 -0
  73. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json +185 -0
  74. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_golang.json +362 -0
  75. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_groovy.json +529 -0
  76. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haxe.json +195 -0
  77. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html.json +150 -0
  78. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_java.json +139 -0
  79. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_javascript.json +555 -0
  80. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_json.json +611 -0
  81. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsx.json +79 -0
  82. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_latex.json +196 -0
  83. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_less.json +292 -0
  84. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_liquid.json +698 -0
  85. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lua.json +451 -0
  86. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_luapage.json +824 -0
  87. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_markdown.json +1202 -0
  88. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ocaml.json +260 -0
  89. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_perl.json +311 -0
  90. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pgsql.json +1020 -0
  91. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_php.json +238 -0
  92. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_powershell.json +255 -0
  93. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json +205 -0
  94. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json +104 -0
  95. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json +267 -0
  96. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scala.json +748 -0
  97. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scss.json +181 -0
  98. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sh.json +434 -0
  99. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sql.json +73 -0
  100. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_svg.json +931 -0
  101. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tcl.json +536 -0
  102. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_text.json +58 -0
  103. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_textile.json +195 -0
  104. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xml.json +705 -0
  105. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xquery.json +64 -0
  106. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_yaml.json +260 -0
  107. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/abap.js +77 -0
  108. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/abap_highlight_rules.js +133 -0
  109. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc.js +64 -0
  110. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc_highlight_rules.js +234 -0
  111. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour.js +26 -34
  112. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +195 -55
  113. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +26 -34
  114. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +26 -34
  115. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +31 -31
  116. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +25 -32
  117. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +25 -32
  118. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +25 -33
  119. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +67 -60
  120. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +25 -34
  121. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +112 -130
  122. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +29 -36
  123. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +25 -32
  124. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +22 -7
  125. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +140 -64
  126. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +479 -237
  127. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +321 -230
  128. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +25 -32
  129. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +62 -28
  130. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +39 -20
  131. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +183 -82
  132. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +226 -32
  133. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +25 -32
  134. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +25 -32
  135. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +28 -35
  136. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +25 -32
  137. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +7 -21
  138. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +36 -47
  139. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +202 -697
  140. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +51 -84
  141. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules_test.js +25 -32
  142. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +25 -32
  143. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +68 -40
  144. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker_test.js +25 -32
  145. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/dart.js +62 -0
  146. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/dart_highlight_rules.js +192 -0
  147. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +25 -31
  148. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +27 -33
  149. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +25 -32
  150. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/asciidoc.js +142 -0
  151. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +31 -37
  152. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee.js +26 -33
  153. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee_test.js +25 -32
  154. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +30 -51
  155. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +25 -32
  156. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/diff.js +28 -35
  157. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +35 -30
  158. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +25 -32
  159. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +25 -32
  160. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/latex.js +162 -0
  161. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/lua.js +163 -0
  162. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/markdown.js +125 -0
  163. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +25 -32
  164. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic.js +25 -32
  165. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic_test.js +26 -33
  166. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +25 -32
  167. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml_test.js +25 -32
  168. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/glsl.js +52 -0
  169. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/glsl_highlight_rules.js +81 -0
  170. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +0 -1
  171. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +15 -22
  172. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +28 -36
  173. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haml.js +62 -0
  174. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haml_highlight_rules.js +132 -0
  175. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +20 -25
  176. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +11 -15
  177. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +25 -32
  178. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +32 -38
  179. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +162 -69
  180. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +25 -32
  181. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jade.js +58 -0
  182. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jade_highlight_rules.js +347 -0
  183. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +18 -29
  184. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +28 -51
  185. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript/jshint.js +4838 -0
  186. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +98 -180
  187. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +26 -33
  188. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +25 -32
  189. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +163 -64
  190. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +38 -40
  191. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +26 -33
  192. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +26 -34
  193. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +25 -32
  194. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +25 -32
  195. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsp.js +56 -0
  196. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsp_highlight_rules.js +85 -0
  197. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +3 -2
  198. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +1 -1
  199. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +25 -33
  200. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +25 -33
  201. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +25 -32
  202. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +146 -161
  203. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules_test.js +25 -32
  204. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lisp.js +60 -0
  205. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lisp_highlight_rules.js +127 -0
  206. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +116 -56
  207. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +75 -101
  208. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene.js +16 -0
  209. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules.js +49 -0
  210. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules_test.js +99 -0
  211. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/makefile.js +62 -0
  212. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/makefile_highlight_rules.js +75 -0
  213. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +35 -41
  214. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +29 -37
  215. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules_test.js +100 -0
  216. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +25 -32
  217. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_parens_outdent.js +25 -32
  218. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec.js +62 -0
  219. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec_highlight_rules.js +343 -0
  220. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +25 -32
  221. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +39 -53
  222. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +25 -32
  223. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +39 -52
  224. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +33 -24
  225. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +55 -51
  226. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +57 -36
  227. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +53 -153
  228. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +31 -21
  229. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +28 -36
  230. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +44 -61
  231. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_test.js +25 -32
  232. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/r.js +135 -0
  233. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/r_highlight_rules.js +190 -0
  234. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc.js +36 -0
  235. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc_highlight_rules.js +99 -0
  236. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml.js +67 -0
  237. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml_highlight_rules.js +49 -0
  238. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +27 -33
  239. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +102 -90
  240. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +29 -37
  241. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +25 -33
  242. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +32 -54
  243. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +18 -32
  244. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +25 -32
  245. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +25 -32
  246. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +28 -35
  247. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +48 -64
  248. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +28 -18
  249. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +41 -36
  250. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/stylus.js +62 -0
  251. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/stylus_highlight_rules.js +175 -0
  252. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +25 -32
  253. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +26 -33
  254. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tcl.js +110 -0
  255. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tcl_highlight_rules.js +180 -0
  256. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tex.js +48 -0
  257. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tex_highlight_rules.js +107 -0
  258. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +26 -36
  259. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +57 -46
  260. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +25 -32
  261. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +25 -32
  262. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile_highlight_rules.js +26 -33
  263. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/typescript.js +68 -0
  264. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/typescript_highlight_rules.js +98 -0
  265. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +25 -32
  266. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +27 -34
  267. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +183 -78
  268. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +25 -32
  269. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +30 -38
  270. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +32 -37
  271. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/JSONParseTreeHandler.js +92 -0
  272. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +32954 -42497
  273. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/visitors/SyntaxHighlighter.js +316 -0
  274. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +31 -44
  275. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +48 -57
  276. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +30 -18
  277. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +48 -40
  278. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/model/editor.js +26 -34
  279. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +126 -40
  280. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +35 -43
  281. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +28 -35
  282. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +78 -39
  283. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +26 -34
  284. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +39 -36
  285. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +26 -34
  286. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +234 -103
  287. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +26 -34
  288. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +30 -39
  289. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +27 -35
  290. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range.js +190 -201
  291. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list.js +25 -32
  292. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +25 -32
  293. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_test.js +25 -32
  294. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +31 -49
  295. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +27 -34
  296. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +52 -55
  297. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search.js +91 -105
  298. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +31 -34
  299. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_test.js +47 -37
  300. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection.js +138 -153
  301. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +25 -32
  302. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/split.js +67 -105
  303. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all.js +25 -32
  304. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +3 -2
  305. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/assertions.js +25 -32
  306. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/benchmark.js +25 -32
  307. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +30 -34
  308. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.css +217 -0
  309. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.js +33 -0
  310. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +37 -38
  311. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.js +27 -34
  312. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +53 -47
  313. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +28 -35
  314. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +54 -48
  315. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +28 -35
  316. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +58 -59
  317. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +28 -35
  318. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +33 -33
  319. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.js +26 -33
  320. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +52 -64
  321. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +28 -35
  322. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +33 -36
  323. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.js +26 -33
  324. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +29 -25
  325. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.js +26 -33
  326. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +14 -21
  327. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.js +26 -33
  328. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +48 -60
  329. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +28 -35
  330. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +52 -57
  331. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +28 -35
  332. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +53 -71
  333. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +28 -35
  334. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +54 -77
  335. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +28 -35
  336. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +60 -70
  337. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +28 -35
  338. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +55 -72
  339. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +28 -35
  340. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +55 -64
  341. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +28 -35
  342. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +48 -66
  343. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +28 -35
  344. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +49 -61
  345. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +28 -35
  346. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +38 -44
  347. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.js +26 -33
  348. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +59 -87
  349. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +28 -35
  350. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +59 -87
  351. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +28 -35
  352. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +59 -90
  353. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +28 -35
  354. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +59 -87
  355. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +28 -35
  356. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +57 -85
  357. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +28 -35
  358. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +54 -78
  359. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +28 -35
  360. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +45 -68
  361. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +28 -35
  362. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.css +111 -0
  363. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.js +39 -0
  364. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +37 -50
  365. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator_test.js +26 -33
  366. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +40 -41
  367. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer_dev.js +205 -0
  368. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +48 -55
  369. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +254 -277
  370. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer_test.js +25 -32
  371. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +22 -4
  372. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +97 -56
  373. data/lib/gollum/frontend/public/gollum/livepreview/licenses/ace/LICENSE.txt +24 -476
  374. data/lib/gollum/frontend/public/gollum/livepreview/licenses/licenses.txt +2 -2
  375. data/lib/gollum/frontend/views/page.rb +3 -2
  376. metadata +102 -21
  377. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Position.js +0 -59
  378. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/StringLexer.js +0 -1686
  379. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XMLLexer.js +0 -2993
  380. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTLexer.js +0 -69
  381. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTParser.js +0 -63
  382. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryLexer.js +0 -10363
  383. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQuerySemanticHighlighter.js +0 -165
  384. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/antlr3-all.js +0 -6177
  385. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery.js +0 -55
  386. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/definitions.js +0 -696
  387. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/lexer.js +0 -598
  388. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/options.js +0 -61
  389. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/parser.js +0 -2072
  390. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jshint.js +0 -4469
  391. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jslint.js +0 -6396
@@ -1,37 +1,30 @@
1
1
  /* ***** BEGIN LICENSE BLOCK *****
2
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
2
+ * Distributed under the BSD license:
3
3
  *
4
- * The contents of this file are subject to the Mozilla Public License Version
5
- * 1.1 (the "License"); you may not use this file except in compliance with
6
- * the License. You may obtain a copy of the License at
7
- * http://www.mozilla.org/MPL/
8
- *
9
- * Software distributed under the License is distributed on an "AS IS" basis,
10
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
- * for the specific language governing rights and limitations under the
12
- * License.
13
- *
14
- * The Original Code is Ajax.org Code Editor (ACE).
15
- *
16
- * The Initial Developer of the Original Code is
17
- * Ajax.org B.V.
18
- * Portions created by the Initial Developer are Copyright (C) 2010
19
- * the Initial Developer. All Rights Reserved.
20
- *
21
- * Contributor(s):
22
- * Fabian Jakobs <fabian AT ajax DOT org>
23
- *
24
- * Alternatively, the contents of this file may be used under the terms of
25
- * either the GNU General Public License Version 2 or later (the "GPL"), or
26
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
- * in which case the provisions of the GPL or the LGPL are applicable instead
28
- * of those above. If you wish to allow use of your version of this file only
29
- * under the terms of either the GPL or the LGPL, and not to allow others to
30
- * use your version of this file under the terms of the MPL, indicate your
31
- * decision by deleting the provisions above and replace them with the notice
32
- * and other provisions required by the GPL or the LGPL. If you do not delete
33
- * the provisions above, a recipient may use your version of this file under
34
- * the terms of any one of the MPL, the GPL or the LGPL.
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
28
  *
36
29
  * ***** END LICENSE BLOCK ***** */
37
30
 
@@ -1,8 +1,16 @@
1
1
  "no use strict";
2
2
 
3
+ if (typeof window != "undefined" && window.document)
4
+ throw "atempt to load ace worker into main window instead of webWorker";
5
+
3
6
  var console = {
4
- log: function(msg) {
5
- postMessage({type: "log", data: msg});
7
+ log: function() {
8
+ var msgs = Array.prototype.slice.call(arguments, 0);
9
+ postMessage({type: "log", data: msgs});
10
+ },
11
+ error: function() {
12
+ var msgs = Array.prototype.slice.call(arguments, 0);
13
+ postMessage({type: "log", data: msgs});
6
14
  }
7
15
  };
8
16
  var window = {
@@ -30,13 +38,16 @@ var normalizeModule = function(parentId, moduleName) {
30
38
  };
31
39
 
32
40
  var require = function(parentId, id) {
41
+ if (!id.charAt)
42
+ throw new Error("worker.js require() accepts only (parentId, id) as arguments");
43
+
33
44
  var id = normalizeModule(parentId, id);
34
45
 
35
46
  var module = require.modules[id];
36
47
  if (module) {
37
48
  if (!module.initialized) {
38
- module.exports = module.factory().exports;
39
49
  module.initialized = true;
50
+ module.exports = module.factory().exports;
40
51
  }
41
52
  return module.exports;
42
53
  }
@@ -56,6 +67,10 @@ require.tlns = {};
56
67
  var define = function(id, deps, factory) {
57
68
  if (arguments.length == 2) {
58
69
  factory = deps;
70
+ if (typeof id != "string") {
71
+ deps = id;
72
+ id = require.id;
73
+ }
59
74
  } else if (arguments.length == 1) {
60
75
  factory = id;
61
76
  id = require.id;
@@ -123,7 +138,10 @@ var sender;
123
138
  onmessage = function(e) {
124
139
  var msg = e.data;
125
140
  if (msg.command) {
126
- main[msg.command].apply(main, msg.args);
141
+ if (main[msg.command])
142
+ main[msg.command].apply(main, msg.args);
143
+ else
144
+ throw new Error("Unknown command:" + msg.command);
127
145
  }
128
146
  else if (msg.init) {
129
147
  initBaseUrls(msg.tlns);
@@ -1,37 +1,30 @@
1
1
  /* ***** BEGIN LICENSE BLOCK *****
2
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
2
+ * Distributed under the BSD license:
3
3
  *
4
- * The contents of this file are subject to the Mozilla Public License Version
5
- * 1.1 (the "License"); you may not use this file except in compliance with
6
- * the License. You may obtain a copy of the License at
7
- * http://www.mozilla.org/MPL/
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
8
6
  *
9
- * Software distributed under the License is distributed on an "AS IS" basis,
10
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
- * for the specific language governing rights and limitations under the
12
- * License.
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
13
17
  *
14
- * The Original Code is Ajax.org Code Editor (ACE).
15
- *
16
- * The Initial Developer of the Original Code is
17
- * Ajax.org B.V.
18
- * Portions created by the Initial Developer are Copyright (C) 2010
19
- * the Initial Developer. All Rights Reserved.
20
- *
21
- * Contributor(s):
22
- * Fabian Jakobs <fabian AT ajax DOT org>
23
- *
24
- * Alternatively, the contents of this file may be used under the terms of
25
- * either the GNU General Public License Version 2 or later (the "GPL"), or
26
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
- * in which case the provisions of the GPL or the LGPL are applicable instead
28
- * of those above. If you wish to allow use of your version of this file only
29
- * under the terms of either the GPL or the LGPL, and not to allow others to
30
- * use your version of this file under the terms of the MPL, indicate your
31
- * decision by deleting the provisions above and replace them with the notice
32
- * and other provisions required by the GPL or the LGPL. If you do not delete
33
- * the provisions above, a recipient may use your version of this file under
34
- * the terms of any one of the MPL, the GPL or the LGPL.
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
28
  *
36
29
  * ***** END LICENSE BLOCK ***** */
37
30
 
@@ -42,15 +35,16 @@ var oop = require("../lib/oop");
42
35
  var EventEmitter = require("../lib/event_emitter").EventEmitter;
43
36
  var config = require("../config");
44
37
 
45
- var WorkerClient = function(topLevelNamespaces, packagedJs, mod, classname) {
46
-
38
+ var WorkerClient = function(topLevelNamespaces, mod, classname) {
47
39
  this.changeListener = this.changeListener.bind(this);
40
+ this.onMessage = this.onMessage.bind(this);
41
+ this.onError = this.onError.bind(this);
48
42
 
43
+ var workerUrl;
49
44
  if (config.get("packaged")) {
50
- this.$worker = new Worker(config.get("workerPath") + "/" + packagedJs);
51
- }
52
- else {
53
- var workerUrl;
45
+ workerUrl = config.moduleUrl(mod, "worker");
46
+ } else {
47
+ var normalizePath = this.$normalizePath;
54
48
  if (typeof require.supports !== "undefined" && require.supports.indexOf("ucjs2-pinf-0") >= 0) {
55
49
  // We are running in the sourcemint loader.
56
50
  workerUrl = require.nameToUrl("ace/worker/worker_sourcemint");
@@ -59,19 +53,16 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, mod, classname) {
59
53
  // nameToUrl is renamed to toUrl in requirejs 2
60
54
  if (require.nameToUrl && !require.toUrl)
61
55
  require.toUrl = require.nameToUrl;
62
- workerUrl = this.$normalizePath(require.toUrl("ace/worker/worker", null, "_"));
56
+ workerUrl = normalizePath(require.toUrl("ace/worker/worker", null, "_"));
63
57
  }
64
- this.$worker = new Worker(workerUrl);
65
58
 
66
59
  var tlns = {};
67
- for (var i=0; i<topLevelNamespaces.length; i++) {
68
- var ns = topLevelNamespaces[i];
69
- var path = this.$normalizePath(require.toUrl(ns, null, "_").replace(/.js$/, ""));
70
-
71
- tlns[ns] = path;
72
- }
60
+ topLevelNamespaces.forEach(function(ns) {
61
+ tlns[ns] = normalizePath(require.toUrl(ns, null, "_").replace(/.js(\?.*)?$/, ""));
62
+ });
73
63
  }
74
64
 
65
+ this.$worker = new Worker(workerUrl);
75
66
  this.$worker.postMessage({
76
67
  init : true,
77
68
  tlns: tlns,
@@ -82,38 +73,43 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, mod, classname) {
82
73
  this.callbackId = 1;
83
74
  this.callbacks = {};
84
75
 
85
- var _self = this;
86
- this.$worker.onerror = function(e) {
76
+ this.$worker.onerror = this.onError;
77
+ this.$worker.onmessage = this.onMessage;
78
+ };
79
+
80
+ (function(){
81
+
82
+ oop.implement(this, EventEmitter);
83
+
84
+ this.onError = function(e) {
87
85
  window.console && console.log && console.log(e);
88
86
  throw e;
89
87
  };
90
- this.$worker.onmessage = function(e) {
88
+
89
+ this.onMessage = function(e) {
91
90
  var msg = e.data;
92
91
  switch(msg.type) {
93
92
  case "log":
94
- window.console && console.log && console.log(msg.data);
93
+ window.console && console.log && console.log.apply(console, msg.data);
95
94
  break;
96
95
 
97
96
  case "event":
98
- _self._emit(msg.name, {data: msg.data});
97
+ this._emit(msg.name, {data: msg.data});
99
98
  break;
100
99
 
101
100
  case "call":
102
- var callback = _self.callbacks[msg.id];
101
+ var callback = this.callbacks[msg.id];
103
102
  if (callback) {
104
103
  callback(msg.data);
105
- delete _self.callbacks[msg.id];
104
+ delete this.callbacks[msg.id];
106
105
  }
107
106
  break;
108
107
  }
109
108
  };
110
- };
111
-
112
- (function(){
113
-
114
- oop.implement(this, EventEmitter);
115
109
 
116
110
  this.$normalizePath = function(path) {
111
+ if (!location.host) // needed for file:// protocol
112
+ return path;
117
113
  path = path.replace(/^[a-z]+:\/\/[^\/]+/, ""); // Remove domain name and rebuild it
118
114
  path = location.protocol + "//" + location.host
119
115
  // paths starting with a slash are relative to the root (host)
@@ -171,6 +167,51 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, mod, classname) {
171
167
 
172
168
  }).call(WorkerClient.prototype);
173
169
 
170
+
171
+ var UIWorkerClient = function(topLevelNamespaces, mod, classname) {
172
+ this.changeListener = this.changeListener.bind(this);
173
+ this.callbackId = 1;
174
+ this.callbacks = {};
175
+ this.messageBuffer = [];
176
+
177
+ var main = null;
178
+ var sender = Object.create(EventEmitter);
179
+ var _self = this;
180
+
181
+ this.$worker = {}
182
+ this.$worker.postMessage = function(e) {
183
+ _self.messageBuffer.push(e);
184
+ main && setTimeout(processNext);
185
+ };
186
+
187
+ var processNext = function() {
188
+ var msg = _self.messageBuffer.shift();
189
+ if (msg.command)
190
+ main[msg.command].apply(main, msg.args);
191
+ else if (msg.event)
192
+ sender._emit(msg.event, msg.data);
193
+ };
194
+
195
+ sender.postMessage = function(msg) {
196
+ _self.onMessage({data: msg});
197
+ };
198
+ sender.callback = function(data, callbackId) {
199
+ this.postMessage({type: "call", id: callbackId, data: data});
200
+ };
201
+ sender.emit = function(name, data) {
202
+ this.postMessage({type: "event", name: name, data: data});
203
+ };
204
+
205
+ require([mod], function(Main) {
206
+ main = new Main[classname](sender);
207
+ while (_self.messageBuffer.length)
208
+ processNext();
209
+ });
210
+ };
211
+
212
+ UIWorkerClient.prototype = WorkerClient.prototype;
213
+
214
+ exports.UIWorkerClient = UIWorkerClient;
174
215
  exports.WorkerClient = WorkerClient;
175
216
 
176
217
  });
@@ -1,476 +1,24 @@
1
- Licensed under the tri-license MPL/LGPL/GPL.
2
-
3
- MOZILLA PUBLIC LICENSE
4
- Version 1.1
5
-
6
- ---------------
7
-
8
- 1. Definitions.
9
-
10
- 1.0.1. "Commercial Use" means distribution or otherwise making the
11
- Covered Code available to a third party.
12
-
13
- 1.1. "Contributor" means each entity that creates or contributes to
14
- the creation of Modifications.
15
-
16
- 1.2. "Contributor Version" means the combination of the Original
17
- Code, prior Modifications used by a Contributor, and the Modifications
18
- made by that particular Contributor.
19
-
20
- 1.3. "Covered Code" means the Original Code or Modifications or the
21
- combination of the Original Code and Modifications, in each case
22
- including portions thereof.
23
-
24
- 1.4. "Electronic Distribution Mechanism" means a mechanism generally
25
- accepted in the software development community for the electronic
26
- transfer of data.
27
-
28
- 1.5. "Executable" means Covered Code in any form other than Source
29
- Code.
30
-
31
- 1.6. "Initial Developer" means the individual or entity identified
32
- as the Initial Developer in the Source Code notice required by Exhibit
33
- A.
34
-
35
- 1.7. "Larger Work" means a work which combines Covered Code or
36
- portions thereof with code not governed by the terms of this License.
37
-
38
- 1.8. "License" means this document.
39
-
40
- 1.8.1. "Licensable" means having the right to grant, to the maximum
41
- extent possible, whether at the time of the initial grant or
42
- subsequently acquired, any and all of the rights conveyed herein.
43
-
44
- 1.9. "Modifications" means any addition to or deletion from the
45
- substance or structure of either the Original Code or any previous
46
- Modifications. When Covered Code is released as a series of files, a
47
- Modification is:
48
- A. Any addition to or deletion from the contents of a file
49
- containing Original Code or previous Modifications.
50
-
51
- B. Any new file that contains any part of the Original Code or
52
- previous Modifications.
53
-
54
- 1.10. "Original Code" means Source Code of computer software code
55
- which is described in the Source Code notice required by Exhibit A as
56
- Original Code, and which, at the time of its release under this
57
- License is not already Covered Code governed by this License.
58
-
59
- 1.10.1. "Patent Claims" means any patent claim(s), now owned or
60
- hereafter acquired, including without limitation, method, process,
61
- and apparatus claims, in any patent Licensable by grantor.
62
-
63
- 1.11. "Source Code" means the preferred form of the Covered Code for
64
- making modifications to it, including all modules it contains, plus
65
- any associated interface definition files, scripts used to control
66
- compilation and installation of an Executable, or source code
67
- differential comparisons against either the Original Code or another
68
- well known, available Covered Code of the Contributor's choice. The
69
- Source Code can be in a compressed or archival form, provided the
70
- appropriate decompression or de-archiving software is widely available
71
- for no charge.
72
-
73
- 1.12. "You" (or "Your") means an individual or a legal entity
74
- exercising rights under, and complying with all of the terms of, this
75
- License or a future version of this License issued under Section 6.1.
76
- For legal entities, "You" includes any entity which controls, is
77
- controlled by, or is under common control with You. For purposes of
78
- this definition, "control" means (a) the power, direct or indirect,
79
- to cause the direction or management of such entity, whether by
80
- contract or otherwise, or (b) ownership of more than fifty percent
81
- (50%) of the outstanding shares or beneficial ownership of such
82
- entity.
83
-
84
- 2. Source Code License.
85
-
86
- 2.1. The Initial Developer Grant.
87
- The Initial Developer hereby grants You a world-wide, royalty-free,
88
- non-exclusive license, subject to third party intellectual property
89
- claims:
90
- (a) under intellectual property rights (other than patent or
91
- trademark) Licensable by Initial Developer to use, reproduce,
92
- modify, display, perform, sublicense and distribute the Original
93
- Code (or portions thereof) with or without Modifications, and/or
94
- as part of a Larger Work; and
95
-
96
- (b) under Patents Claims infringed by the making, using or
97
- selling of Original Code, to make, have made, use, practice,
98
- sell, and offer for sale, and/or otherwise dispose of the
99
- Original Code (or portions thereof).
100
-
101
- (c) the licenses granted in this Section 2.1(a) and (b) are
102
- effective on the date Initial Developer first distributes
103
- Original Code under the terms of this License.
104
-
105
- (d) Notwithstanding Section 2.1(b) above, no patent license is
106
- granted: 1) for code that You delete from the Original Code; 2)
107
- separate from the Original Code; or 3) for infringements caused
108
- by: i) the modification of the Original Code or ii) the
109
- combination of the Original Code with other software or devices.
110
-
111
- 2.2. Contributor Grant.
112
- Subject to third party intellectual property claims, each Contributor
113
- hereby grants You a world-wide, royalty-free, non-exclusive license
114
-
115
- (a) under intellectual property rights (other than patent or
116
- trademark) Licensable by Contributor, to use, reproduce, modify,
117
- display, perform, sublicense and distribute the Modifications
118
- created by such Contributor (or portions thereof) either on an
119
- unmodified basis, with other Modifications, as Covered Code
120
- and/or as part of a Larger Work; and
121
-
122
- (b) under Patent Claims infringed by the making, using, or
123
- selling of Modifications made by that Contributor either alone
124
- and/or in combination with its Contributor Version (or portions
125
- of such combination), to make, use, sell, offer for sale, have
126
- made, and/or otherwise dispose of: 1) Modifications made by that
127
- Contributor (or portions thereof); and 2) the combination of
128
- Modifications made by that Contributor with its Contributor
129
- Version (or portions of such combination).
130
-
131
- (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
132
- effective on the date Contributor first makes Commercial Use of
133
- the Covered Code.
134
-
135
- (d) Notwithstanding Section 2.2(b) above, no patent license is
136
- granted: 1) for any code that Contributor has deleted from the
137
- Contributor Version; 2) separate from the Contributor Version;
138
- 3) for infringements caused by: i) third party modifications of
139
- Contributor Version or ii) the combination of Modifications made
140
- by that Contributor with other software (except as part of the
141
- Contributor Version) or other devices; or 4) under Patent Claims
142
- infringed by Covered Code in the absence of Modifications made by
143
- that Contributor.
144
-
145
- 3. Distribution Obligations.
146
-
147
- 3.1. Application of License.
148
- The Modifications which You create or to which You contribute are
149
- governed by the terms of this License, including without limitation
150
- Section 2.2. The Source Code version of Covered Code may be
151
- distributed only under the terms of this License or a future version
152
- of this License released under Section 6.1, and You must include a
153
- copy of this License with every copy of the Source Code You
154
- distribute. You may not offer or impose any terms on any Source Code
155
- version that alters or restricts the applicable version of this
156
- License or the recipients' rights hereunder. However, You may include
157
- an additional document offering the additional rights described in
158
- Section 3.5.
159
-
160
- 3.2. Availability of Source Code.
161
- Any Modification which You create or to which You contribute must be
162
- made available in Source Code form under the terms of this License
163
- either on the same media as an Executable version or via an accepted
164
- Electronic Distribution Mechanism to anyone to whom you made an
165
- Executable version available; and if made available via Electronic
166
- Distribution Mechanism, must remain available for at least twelve (12)
167
- months after the date it initially became available, or at least six
168
- (6) months after a subsequent version of that particular Modification
169
- has been made available to such recipients. You are responsible for
170
- ensuring that the Source Code version remains available even if the
171
- Electronic Distribution Mechanism is maintained by a third party.
172
-
173
- 3.3. Description of Modifications.
174
- You must cause all Covered Code to which You contribute to contain a
175
- file documenting the changes You made to create that Covered Code and
176
- the date of any change. You must include a prominent statement that
177
- the Modification is derived, directly or indirectly, from Original
178
- Code provided by the Initial Developer and including the name of the
179
- Initial Developer in (a) the Source Code, and (b) in any notice in an
180
- Executable version or related documentation in which You describe the
181
- origin or ownership of the Covered Code.
182
-
183
- 3.4. Intellectual Property Matters
184
- (a) Third Party Claims.
185
- If Contributor has knowledge that a license under a third party's
186
- intellectual property rights is required to exercise the rights
187
- granted by such Contributor under Sections 2.1 or 2.2,
188
- Contributor must include a text file with the Source Code
189
- distribution titled "LEGAL" which describes the claim and the
190
- party making the claim in sufficient detail that a recipient will
191
- know whom to contact. If Contributor obtains such knowledge after
192
- the Modification is made available as described in Section 3.2,
193
- Contributor shall promptly modify the LEGAL file in all copies
194
- Contributor makes available thereafter and shall take other steps
195
- (such as notifying appropriate mailing lists or newsgroups)
196
- reasonably calculated to inform those who received the Covered
197
- Code that new knowledge has been obtained.
198
-
199
- (b) Contributor APIs.
200
- If Contributor's Modifications include an application programming
201
- interface and Contributor has knowledge of patent licenses which
202
- are reasonably necessary to implement that API, Contributor must
203
- also include this information in the LEGAL file.
204
-
205
- (c) Representations.
206
- Contributor represents that, except as disclosed pursuant to
207
- Section 3.4(a) above, Contributor believes that Contributor's
208
- Modifications are Contributor's original creation(s) and/or
209
- Contributor has sufficient rights to grant the rights conveyed by
210
- this License.
211
-
212
- 3.5. Required Notices.
213
- You must duplicate the notice in Exhibit A in each file of the Source
214
- Code. If it is not possible to put such notice in a particular Source
215
- Code file due to its structure, then You must include such notice in a
216
- location (such as a relevant directory) where a user would be likely
217
- to look for such a notice. If You created one or more Modification(s)
218
- You may add your name as a Contributor to the notice described in
219
- Exhibit A. You must also duplicate this License in any documentation
220
- for the Source Code where You describe recipients' rights or ownership
221
- rights relating to Covered Code. You may choose to offer, and to
222
- charge a fee for, warranty, support, indemnity or liability
223
- obligations to one or more recipients of Covered Code. However, You
224
- may do so only on Your own behalf, and not on behalf of the Initial
225
- Developer or any Contributor. You must make it absolutely clear than
226
- any such warranty, support, indemnity or liability obligation is
227
- offered by You alone, and You hereby agree to indemnify the Initial
228
- Developer and every Contributor for any liability incurred by the
229
- Initial Developer or such Contributor as a result of warranty,
230
- support, indemnity or liability terms You offer.
231
-
232
- 3.6. Distribution of Executable Versions.
233
- You may distribute Covered Code in Executable form only if the
234
- requirements of Section 3.1-3.5 have been met for that Covered Code,
235
- and if You include a notice stating that the Source Code version of
236
- the Covered Code is available under the terms of this License,
237
- including a description of how and where You have fulfilled the
238
- obligations of Section 3.2. The notice must be conspicuously included
239
- in any notice in an Executable version, related documentation or
240
- collateral in which You describe recipients' rights relating to the
241
- Covered Code. You may distribute the Executable version of Covered
242
- Code or ownership rights under a license of Your choice, which may
243
- contain terms different from this License, provided that You are in
244
- compliance with the terms of this License and that the license for the
245
- Executable version does not attempt to limit or alter the recipient's
246
- rights in the Source Code version from the rights set forth in this
247
- License. If You distribute the Executable version under a different
248
- license You must make it absolutely clear that any terms which differ
249
- from this License are offered by You alone, not by the Initial
250
- Developer or any Contributor. You hereby agree to indemnify the
251
- Initial Developer and every Contributor for any liability incurred by
252
- the Initial Developer or such Contributor as a result of any such
253
- terms You offer.
254
-
255
- 3.7. Larger Works.
256
- You may create a Larger Work by combining Covered Code with other code
257
- not governed by the terms of this License and distribute the Larger
258
- Work as a single product. In such a case, You must make sure the
259
- requirements of this License are fulfilled for the Covered Code.
260
-
261
- 4. Inability to Comply Due to Statute or Regulation.
262
-
263
- If it is impossible for You to comply with any of the terms of this
264
- License with respect to some or all of the Covered Code due to
265
- statute, judicial order, or regulation then You must: (a) comply with
266
- the terms of this License to the maximum extent possible; and (b)
267
- describe the limitations and the code they affect. Such description
268
- must be included in the LEGAL file described in Section 3.4 and must
269
- be included with all distributions of the Source Code. Except to the
270
- extent prohibited by statute or regulation, such description must be
271
- sufficiently detailed for a recipient of ordinary skill to be able to
272
- understand it.
273
-
274
- 5. Application of this License.
275
-
276
- This License applies to code to which the Initial Developer has
277
- attached the notice in Exhibit A and to related Covered Code.
278
-
279
- 6. Versions of the License.
280
-
281
- 6.1. New Versions.
282
- Netscape Communications Corporation ("Netscape") may publish revised
283
- and/or new versions of the License from time to time. Each version
284
- will be given a distinguishing version number.
285
-
286
- 6.2. Effect of New Versions.
287
- Once Covered Code has been published under a particular version of the
288
- License, You may always continue to use it under the terms of that
289
- version. You may also choose to use such Covered Code under the terms
290
- of any subsequent version of the License published by Netscape. No one
291
- other than Netscape has the right to modify the terms applicable to
292
- Covered Code created under this License.
293
-
294
- 6.3. Derivative Works.
295
- If You create or use a modified version of this License (which you may
296
- only do in order to apply it to code which is not already Covered Code
297
- governed by this License), You must (a) rename Your license so that
298
- the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
299
- "MPL", "NPL" or any confusingly similar phrase do not appear in your
300
- license (except to note that your license differs from this License)
301
- and (b) otherwise make it clear that Your version of the license
302
- contains terms which differ from the Mozilla Public License and
303
- Netscape Public License. (Filling in the name of the Initial
304
- Developer, Original Code or Contributor in the notice described in
305
- Exhibit A shall not of themselves be deemed to be modifications of
306
- this License.)
307
-
308
- 7. DISCLAIMER OF WARRANTY.
309
-
310
- COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
311
- WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
312
- WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
313
- DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
314
- THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
315
- IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
316
- YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
317
- COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
318
- OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
319
- ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
320
-
321
- 8. TERMINATION.
322
-
323
- 8.1. This License and the rights granted hereunder will terminate
324
- automatically if You fail to comply with terms herein and fail to cure
325
- such breach within 30 days of becoming aware of the breach. All
326
- sublicenses to the Covered Code which are properly granted shall
327
- survive any termination of this License. Provisions which, by their
328
- nature, must remain in effect beyond the termination of this License
329
- shall survive.
330
-
331
- 8.2. If You initiate litigation by asserting a patent infringement
332
- claim (excluding declatory judgment actions) against Initial Developer
333
- or a Contributor (the Initial Developer or Contributor against whom
334
- You file such action is referred to as "Participant") alleging that:
335
-
336
- (a) such Participant's Contributor Version directly or indirectly
337
- infringes any patent, then any and all rights granted by such
338
- Participant to You under Sections 2.1 and/or 2.2 of this License
339
- shall, upon 60 days notice from Participant terminate prospectively,
340
- unless if within 60 days after receipt of notice You either: (i)
341
- agree in writing to pay Participant a mutually agreeable reasonable
342
- royalty for Your past and future use of Modifications made by such
343
- Participant, or (ii) withdraw Your litigation claim with respect to
344
- the Contributor Version against such Participant. If within 60 days
345
- of notice, a reasonable royalty and payment arrangement are not
346
- mutually agreed upon in writing by the parties or the litigation claim
347
- is not withdrawn, the rights granted by Participant to You under
348
- Sections 2.1 and/or 2.2 automatically terminate at the expiration of
349
- the 60 day notice period specified above.
350
-
351
- (b) any software, hardware, or device, other than such Participant's
352
- Contributor Version, directly or indirectly infringes any patent, then
353
- any rights granted to You by such Participant under Sections 2.1(b)
354
- and 2.2(b) are revoked effective as of the date You first made, used,
355
- sold, distributed, or had made, Modifications made by that
356
- Participant.
357
-
358
- 8.3. If You assert a patent infringement claim against Participant
359
- alleging that such Participant's Contributor Version directly or
360
- indirectly infringes any patent where such claim is resolved (such as
361
- by license or settlement) prior to the initiation of patent
362
- infringement litigation, then the reasonable value of the licenses
363
- granted by such Participant under Sections 2.1 or 2.2 shall be taken
364
- into account in determining the amount or value of any payment or
365
- license.
366
-
367
- 8.4. In the event of termination under Sections 8.1 or 8.2 above,
368
- all end user license agreements (excluding distributors and resellers)
369
- which have been validly granted by You or any distributor hereunder
370
- prior to termination shall survive termination.
371
-
372
- 9. LIMITATION OF LIABILITY.
373
-
374
- UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
375
- (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
376
- DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
377
- OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
378
- ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
379
- CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
380
- WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
381
- COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
382
- INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
383
- LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
384
- RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
385
- PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
386
- EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
387
- THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
388
-
389
- 10. U.S. GOVERNMENT END USERS.
390
-
391
- The Covered Code is a "commercial item," as that term is defined in
392
- 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
393
- software" and "commercial computer software documentation," as such
394
- terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
395
- C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
396
- all U.S. Government End Users acquire Covered Code with only those
397
- rights set forth herein.
398
-
399
- 11. MISCELLANEOUS.
400
-
401
- This License represents the complete agreement concerning subject
402
- matter hereof. If any provision of this License is held to be
403
- unenforceable, such provision shall be reformed only to the extent
404
- necessary to make it enforceable. This License shall be governed by
405
- California law provisions (except to the extent applicable law, if
406
- any, provides otherwise), excluding its conflict-of-law provisions.
407
- With respect to disputes in which at least one party is a citizen of,
408
- or an entity chartered or registered to do business in the United
409
- States of America, any litigation relating to this License shall be
410
- subject to the jurisdiction of the Federal Courts of the Northern
411
- District of California, with venue lying in Santa Clara County,
412
- California, with the losing party responsible for costs, including
413
- without limitation, court costs and reasonable attorneys' fees and
414
- expenses. The application of the United Nations Convention on
415
- Contracts for the International Sale of Goods is expressly excluded.
416
- Any law or regulation which provides that the language of a contract
417
- shall be construed against the drafter shall not apply to this
418
- License.
419
-
420
- 12. RESPONSIBILITY FOR CLAIMS.
421
-
422
- As between Initial Developer and the Contributors, each party is
423
- responsible for claims and damages arising, directly or indirectly,
424
- out of its utilization of rights under this License and You agree to
425
- work with Initial Developer and Contributors to distribute such
426
- responsibility on an equitable basis. Nothing herein is intended or
427
- shall be deemed to constitute any admission of liability.
428
-
429
- 13. MULTIPLE-LICENSED CODE.
430
-
431
- Initial Developer may designate portions of the Covered Code as
432
- "Multiple-Licensed". "Multiple-Licensed" means that the Initial
433
- Developer permits you to utilize portions of the Covered Code under
434
- Your choice of the NPL or the alternative licenses, if any, specified
435
- by the Initial Developer in the file described in Exhibit A.
436
-
437
- EXHIBIT A -Mozilla Public License.
438
-
439
- ``The contents of this file are subject to the Mozilla Public License
440
- Version 1.1 (the "License"); you may not use this file except in
441
- compliance with the License. You may obtain a copy of the License at
442
- http://www.mozilla.org/MPL/
443
-
444
- Software distributed under the License is distributed on an "AS IS"
445
- basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
446
- License for the specific language governing rights and limitations
447
- under the License.
448
-
449
- The Original Code is ______________________________________.
450
-
451
- The Initial Developer of the Original Code is ________________________.
452
- Portions created by ______________________ are Copyright (C) ______
453
- _______________________. All Rights Reserved.
454
-
455
- Contributor(s): ______________________________________.
456
-
457
- Alternatively, the contents of this file may be used under the terms
458
- of the _____ license (the "[___] License"), in which case the
459
- provisions of [______] License are applicable instead of those
460
- above. If you wish to allow use of your version of this file only
461
- under the terms of the [____] License and not to allow others to use
462
- your version of this file under the MPL, indicate your decision by
463
- deleting the provisions above and replace them with the notice and
464
- other provisions required by the [___] License. If you do not delete
465
- the provisions above, a recipient may use your version of this file
466
- under either the MPL or the [___] License."
467
-
468
- [NOTE: The text of this Exhibit A may differ slightly from the text of
469
- the notices in the Source Code files of the Original Code. You should
470
- use the text of this Exhibit A rather than the text found in the
471
- Original Code Source Code for Your Modifications.]
472
-
473
-
474
-
475
- GNU LESSER GENERAL PUBLIC LICENSE
476
- Version 3, 29 June 2007
1
+ Copyright (c) 2010, Ajax.org B.V.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of Ajax.org B.V. nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.