gollum 3.1.2 → 3.1.3
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.
- checksums.yaml +13 -5
- data/README.md +4 -5
- data/gollum.gemspec +560 -28
- data/lib/gollum.rb +1 -1
- data/lib/gollum/app.rb +16 -10
- data/lib/gollum/public/gollum/javascript/editor/gollum.editor.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ace.js +33 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/anchor.js +77 -80
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +46 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete.js +497 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete/popup.js +341 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete/text_completer.js +78 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete/util.js +74 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +28 -32
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +5 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +17 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +312 -58
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/incremental_search_commands.js +232 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +17 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/occur_commands.js +110 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/config.js +70 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/config_test.js +67 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +123 -69
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/document.js +118 -71
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +507 -392
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +4 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +37 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +30 -29
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +210 -102
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +82 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/editor.js +1006 -465
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +36 -34
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/beautify.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/beautify/php_rules.js +366 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/chromevox.js +980 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/elastic_tabstops_lite.js +319 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/emmet.js +434 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/error_marker.js +214 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/keybinding_menu.js +86 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/language_tools.js +226 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/linking.js +78 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/add_editor_menu_options.js +109 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/element_generator.js +148 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/generate_settings_menu.js +264 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/get_editor_keyboard_shortcuts.js +91 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/get_set_functions.js +141 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/overlay_page.js +116 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/settings_menu.css +48 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/modelist.js +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/old_ie.js +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/old_ie_test.js +77 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/searchbox.css +153 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/searchbox.js +308 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/settings_menu.js +76 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/spellcheck.js +69 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{keyboard/vim/registers.js → ext/split.js} +8 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/static.css +18 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +128 -26
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +56 -36
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/statusbar.js +48 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +112 -117
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/themelist.js +100 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/whitespace.js +213 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/whitespace_test.js +116 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/incremental_search.js +317 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/incremental_search_test.js +213 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +369 -92
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs_test.js +151 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +109 -41
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +35 -24
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding_test.js +69 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +1 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/textarea.js +82 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +337 -208
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +5987 -120
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim_test.js +3866 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +48 -25
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/font_metrics.js +176 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +110 -44
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +29 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +69 -150
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +11 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/app_config.js +157 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +33 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +284 -304
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +147 -95
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +64 -23
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +35 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +30 -13
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +21 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +12 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +8 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/line_widgets.js +297 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/Readme.md +9 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/highlight_rules_test.js +210 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_asciidoc.txt +111 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_coffee.txt +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_curly.txt +9 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_html.txt +10 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_javascript.txt +34 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_livescript.txt +1 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_lucene.txt +16 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_markdown.txt +22 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_php.txt +24 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_ruby.txt +34 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_xml.txt +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_abap.json +189 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_abc.json +2207 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_actionscript.json +263 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ada.json +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_asciidoc.json +422 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_assembly_x86.json +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_autohotkey.json +261 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_batchfile.json +70 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c9search.json +131 -175
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c_cpp.json +190 -124
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_cirru.json +267 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_clojure.json +162 -248
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_cobol.json +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coffee.json +545 -188
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coldfusion.json +26 -41
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_csharp.json +31 -42
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_css.json +148 -231
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_curly.json +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_d.json +111 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_dart.json +368 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_diff.json +262 -732
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_dot.json +2254 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_eiffel.json +141 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ejs.json +296 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_elixir.json +196 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_elm.json +198 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_erlang.json +166 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_forth.json +219 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ftl.json +341 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_gcode.json +296 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_gherkin.json +142 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_gitignore.json +33 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json +127 -185
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_golang.json +256 -362
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_groovy.json +410 -529
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haml.json +174 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_handlebars.json +81 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haskell.json +156 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haxe.json +143 -195
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html.json +63 -150
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html_ruby.json +257 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ini.json +23 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_io.json +49 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jack.json +1786 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jade.json +188 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_java.json +95 -139
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_javascript.json +593 -555
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_json.json +412 -611
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsoniq.json +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsp.json +435 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsx.json +51 -79
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_julia.json +111 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_latex.json +127 -196
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_less.json +204 -292
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_liquid.json +551 -698
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lisp.json +248 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_livescript.json +6 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_logiql.json +190 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lsl.json +503 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lua.json +348 -451
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_luapage.json +633 -824
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lucene.json +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_markdown.json +114 -1202
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mask.json +302 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_matlab.json +90 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mel.json +257 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mushcode.json +790 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mysql.json +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_nix.json +360 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_objectivec.json +793 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ocaml.json +200 -260
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pascal.json +297 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_perl.json +227 -311
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pgsql.json +889 -1020
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_php.json +171 -238
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_powershell.json +184 -255
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_prolog.json +245 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_properties.json +68 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_protobuf.json +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json +152 -205
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_r.json +235 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_rdoc.json +441 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_rhtml.json +106 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json +242 -104
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_rust.json +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sass.json +229 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json +194 -267
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scala.json +542 -748
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scheme.json +216 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scss.json +123 -181
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sh.json +334 -434
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sjs.json +276 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_smarty.json +98 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_snippets.json +159 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_soy_template.json +286 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_space.json +322 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sql.json +54 -73
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_stylus.json +271 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_svg.json +684 -931
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tcl.json +385 -536
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tex.json +130 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_text.json +29 -58
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_textile.json +113 -195
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_toml.json +131 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_twig.json +288 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_typescript.json +559 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_vala.json +158 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_vbscript.json +205 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_velocity.json +285 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_verilog.json +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_vhdl.json +271 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xml.json +43 -705
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xquery.json +44 -64
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_yaml.json +150 -260
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abap.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abap_highlight_rules.js +7 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abc.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abc_highlight_rules.js +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/actionscript.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/actionscript_highlight_rules.js +141 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ada.js +54 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ada_highlight_rules.js +93 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/apache_conf.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/apache_conf_highlight_rules.js +231 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/applescript.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/applescript_highlight_rules.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc_highlight_rules.js +11 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/assembly_x86.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/assembly_x86_highlight_rules.js +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/autohotkey.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/autohotkey_highlight_rules.js +107 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/batchfile.js +61 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/batchfile_highlight_rules.js +97 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/behaviour_test.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/css.js +108 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +164 -137
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +4 -48
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +141 -44
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +76 -52
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +127 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +7 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +60 -51
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cirru.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cirru_highlight_rules.js +125 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +62 -46
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +4 -21
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cobol.js +53 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cobol_highlight_rules.js +100 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +28 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +13 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +160 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +228 -108
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +778 -670
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +377 -347
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +33 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +275 -135
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +5 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +72 -167
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +12 -24
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +11 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +5 -84
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/csharp.js +7 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +13 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +7 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +2325 -1216
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +72 -102
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +11 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/curly.js +63 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/curly_highlight_rules.js +66 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/d.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/d_highlight_rules.js +334 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dart.js +8 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dart_highlight_rules.js +70 -76
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +24 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/django.js +119 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +12 -19
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dockerfile.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dockerfile_highlight_rules.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dot.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dot_highlight_rules.js +126 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/eiffel.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/eiffel_highlight_rules.js +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ejs.js +109 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elixir.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elixir_highlight_rules.js +433 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elm.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elm_highlight_rules.js +162 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/erlang.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/erlang_highlight_rules.js +876 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +12 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/csharp.js +137 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +118 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +24 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +2 -33
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +30 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/ini.js +80 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/latex.js +9 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/lua.js +4 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +2 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/velocity.js +120 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +110 -87
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/forth.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/forth_highlight_rules.js +164 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ftl.js +49 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ftl_highlight_rules.js +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gcode.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gcode_highlight_rules.js +94 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gherkin.js +80 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gherkin_highlight_rules.js +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gitignore.js +20 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gitignore_highlight_rules.js +31 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/glsl.js +6 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +42 -67
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +25 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/groovy.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +0 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haml.js +5 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haml_highlight_rules.js +43 -43
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/handlebars.js +29 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/handlebars_highlight_rules.js +72 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haskell.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haskell_highlight_rules.js +246 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +7 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +0 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +42 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html/saxparser.js +10430 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_completions.js +305 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +43 -85
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_ruby.js +59 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_ruby_highlight_rules.js +84 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{lib/browser_focus.js → mode/html_worker.js} +48 -51
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ini.js +53 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ini_highlight_rules.js +112 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/io.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/io_highlight_rules.js +120 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jack.js +79 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jack_highlight_rules.js +142 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jade.js +4 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jade_highlight_rules.js +94 -100
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/java.js +2 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +0 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +15 -40
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript/jshint.js +10824 -4816
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +113 -97
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +61 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +5 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +11 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/js_regex_highlight_rules.js +94 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +5 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +3 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +6 -35
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +12 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsoniq.js +203 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsp.js +2 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsp_highlight_rules.js +36 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsx.js +26 -23
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsx_highlight_rules.js +113 -115
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/julia.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/julia_highlight_rules.js +170 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +5 -37
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +44 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +8 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +4 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +15 -89
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lisp.js +5 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lisp_highlight_rules.js +25 -28
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/livescript.js +246 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/logiql.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/logiql_highlight_rules.js +119 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/logiql_test.js +98 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lsl.js +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lsl_highlight_rules.js +123 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +27 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua/luaparse.js +1989 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +55 -272
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua_worker.js +70 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/luapage.js +6 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/luapage_highlight_rules.js +21 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lucene.js +5 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/makefile.js +6 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/makefile_highlight_rules.js +22 -22
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +12 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +130 -89
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mask.js +84 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mask_highlight_rules.js +309 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +1 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/matlab.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/matlab_highlight_rules.js +262 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mel.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mel_highlight_rules.js +133 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mushcode.js +116 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mushcode_highlight_rules.js +569 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mysql.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mysql_highlight_rules.js +122 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/nix.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/nix_highlight_rules.js +119 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec.js +4 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec_highlight_rules.js +137 -149
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +4 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +0 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pascal.js +67 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pascal_highlight_rules.js +127 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +10 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +17 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +23 -51
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +334 -302
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +59 -38
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php/php.js +5031 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +72 -52
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php_test.js +65 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php_worker.js +77 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/plain_text.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{keyboard/vim/maps/aliases.js → mode/plain_text_test.js} +21 -59
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/powershell.js +7 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +0 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/{xquery/JSONParseTreeHandler.js → praat.js} +45 -53
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/praat_highlight_rules.js +262 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/prolog.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/prolog_highlight_rules.js +238 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/properties.js +48 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/properties_highlight_rules.js +86 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/protobuf.js +63 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/protobuf_highlight_rules.js +66 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +5 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +50 -24
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/r.js +37 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/r_highlight_rules.js +29 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc.js +36 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc_highlight_rules.js +27 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml.js +31 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml_highlight_rules.js +31 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +26 -36
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +153 -33
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/{css_highlight_rules_test.js → ruby_test.js} +24 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rust.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rust_highlight_rules.js +158 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sass.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sass_highlight_rules.js +79 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +5 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +0 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scala.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +1 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scheme.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scheme_highlight_rules.js +123 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +9 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +7 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +10 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +85 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sjs.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sjs_highlight_rules.js +233 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/smarty.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/smarty_highlight_rules.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/snippets.js +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/soy_template.js +60 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/soy_template_highlight_rules.js +356 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/space.js +21 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/space_highlight_rules.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +3 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +6 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/stylus.js +5 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/stylus_highlight_rules.js +32 -42
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +3 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +3 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tcl.js +4 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tcl_highlight_rules.js +5 -13
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tex.js +30 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tex_highlight_rules.js +27 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +266 -29
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +129 -15
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +3 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/toml.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/toml_highlight_rules.js +103 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/twig.js +81 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/twig_highlight_rules.js +166 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/typescript.js +2 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/typescript_highlight_rules.js +16 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vala.js +105 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vala_highlight_rules.js +457 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vbscript.js +60 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vbscript_highlight_rules.js +246 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/velocity.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/velocity_highlight_rules.js +177 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/verilog.js +54 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/verilog_highlight_rules.js +101 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vhdl.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vhdl_highlight_rules.js +115 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +25 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml/dom-parser.js +260 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml/dom.js +1138 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml/sax.js +592 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +185 -45
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_worker.js +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +107 -88
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Readme.md +1 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/jsoniq_lexer.js +4453 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xqlint.js +78911 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery_lexer.js +4422 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +66 -29
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +5 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +2 -13
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +50 -28
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +70 -137
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop_handler.js +428 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +6 -23
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +6 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +83 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{mode/liquid_highlight_rules_test.js → mouse/mouse_handler_test.js} +27 -34
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +94 -38
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +192 -115
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +124 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/occur.js +193 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/occur_test.js +154 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +9 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +2 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range.js +81 -102
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range_list.js +38 -21
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +20 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range_test.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +9 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/requirejs/text_build.js +60 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +163 -32
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/search.js +38 -19
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +1 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/search_test.js +33 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/selection.js +167 -83
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +22 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets.js +949 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/_.snippets +240 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/_all_modes.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/_all_modes.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abap.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abap.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abc.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abc.snippets +31 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/actionscript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/actionscript.snippets +157 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ada.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ada.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/all_modes.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/all_modes.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/apache.snippets +35 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/apache_conf.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/apache_conf.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/applescript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/applescript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/asciidoc.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/asciidoc.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/assembly_x86.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/assembly_x86.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/autohotkey.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/autohotkey.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/autoit.snippets +66 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/batchfile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/batchfile.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c.snippets +235 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c9search.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c9search.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c_cpp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c_cpp.snippets +131 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/chef.snippets +204 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cirru.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cirru.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/clojure.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/clojure.snippets +90 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cobol.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cobol.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coffee.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coffee.snippets +95 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coldfusion.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coldfusion.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cs.snippets +374 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/csharp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/csharp.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/css.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/css.snippets +967 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/curly.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/curly.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/d.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/d.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dart.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dart.snippets +83 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/diff.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/diff.snippets +11 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/django.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/django.snippets +108 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dockerfile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dockerfile.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dot.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dot.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dummy.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dummy_syntax.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/eiffel.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/eiffel.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ejs.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ejs.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elixir.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elixir.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elm.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elm.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/erlang.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/erlang.snippets +160 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/eruby.snippets +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets +71 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/forth.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/forth.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ftl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ftl.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gcode.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gcode.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gherkin.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gherkin.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gitignore.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gitignore.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/glsl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/glsl.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/go.snippets +201 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/golang.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/golang.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/groovy.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/groovy.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haml.snippets +20 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/handlebars.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/handlebars.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haskell.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haskell.snippets +82 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haxe.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haxe.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html.snippets +828 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html_ruby.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html_ruby.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/htmldjango.snippets +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/htmltornado.snippets +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ini.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ini.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/io.js +69 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/io.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jack.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jack.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jade.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jade.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/java.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/java.snippets +240 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/javascript-jquery.snippets +589 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/javascript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/javascript.snippets +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/json.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/json.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsoniq.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsoniq.snippets +61 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsp.snippets +99 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsx.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsx.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/julia.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/julia.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/latex.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/latex.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ledger.snippets +5 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/less.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/less.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/liquid.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/liquid.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lisp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lisp.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/livescript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/livescript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/logiql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/logiql.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lsl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lsl.snippets +1066 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lua.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lua.snippets +21 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/luapage.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/luapage.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lucene.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lucene.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/makefile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/makefile.snippets +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mako.snippets +54 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/markdown.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/markdown.snippets +88 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/matlab.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/matlab.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mel.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mel.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode_high_rules.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode_high_rules.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mysql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mysql.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/nix.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/nix.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/objc.snippets +247 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/objectivec.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/objectivec.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ocaml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ocaml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pascal.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pascal.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/perl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/perl.snippets +347 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pgsql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pgsql.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/php.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/php.snippets +377 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/plain_text.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/plain_text.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/powershell.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/powershell.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/praat.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/praat.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/prolog.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/prolog.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/properties.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/properties.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/protobuf.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/protobuf.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/python.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/python.snippets +158 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/r.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/r.snippets +121 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rdoc.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rdoc.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rhtml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rhtml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rst.snippets +22 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ruby.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ruby.snippets +928 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rust.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rust.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sass.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sass.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scad.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scad.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scala.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scala.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scheme.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scheme.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scss.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scss.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sh.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sh.snippets +83 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sjs.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sjs.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/smarty.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/smarty.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/snippets.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/snippets.snippets +9 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/soy_template.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/soy_template.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/space.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/space.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sql.snippets +26 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/stylus.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/stylus.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/svg.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/svg.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tcl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tcl.snippets +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tex.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tex.snippets +191 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/text.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/text.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/textile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/textile.snippets +30 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tmsnippet.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/toml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/toml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/twig.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/twig.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/typescript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/typescript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vala.js +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vala.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vbscript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vbscript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/velocity.js +8 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/velocity.snippets +28 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/verilog.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/verilog.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vhdl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vhdl.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xquery.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xquery.snippets +61 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xslt.snippets +97 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/yaml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/yaml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets_test.js +131 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/split.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +20 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +8 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.css +6 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/chaos.css +154 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/chaos.js +33 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +5 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +3 -15
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +16 -26
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +2 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +10 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +9 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +16 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +3 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +5 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/katzenmilch.css +140 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/katzenmilch.js +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +9 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kuroir.css +67 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kuroir.js +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +5 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +14 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +8 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +6 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/terminal.css +132 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/terminal.js +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +5 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +4 -15
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +5 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +6 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +21 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +10 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +6 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +4 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.css +4 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +4 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +246 -78
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tokenizer_dev.js +71 -93
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tokenizer_test.js +97 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tooltip.js +138 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +63 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +788 -403
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/mirror.js +9 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +92 -55
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +90 -52
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker_test.js +125 -0
- data/lib/gollum/public/gollum/livepreview/js/livepreview.js +18 -12
- data/lib/gollum/public/gollum/livepreview/readme.md +1 -1
- data/lib/gollum/templates/layout.mustache +1 -1
- data/lib/gollum/{public/gollum/livepreview/index.html → templates/livepreview.mustache} +23 -1
- data/lib/gollum/views/livepreview.rb +13 -0
- metadata +569 -37
- data/lib/gollum/editing_auth.rb +0 -34
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +0 -561
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +0 -593
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +0 -196
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +0 -134
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/test_highlight_rules.js +0 -144
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +0 -266
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +0 -186
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +0 -218
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules_test.js +0 -99
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules_test.js +0 -100
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +0 -108
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +0 -208
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +0 -112
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +0 -32982
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/visitors/SyntaxHighlighter.js +0 -316
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +0 -145
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +0 -98
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker_sourcemint.js +0 -73
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,158 @@
|
|
1
|
+
snippet #!
|
2
|
+
#!/usr/bin/env python
|
3
|
+
snippet imp
|
4
|
+
import ${1:module}
|
5
|
+
snippet from
|
6
|
+
from ${1:package} import ${2:module}
|
7
|
+
# Module Docstring
|
8
|
+
snippet docs
|
9
|
+
'''
|
10
|
+
File: ${1:FILENAME:file_name}
|
11
|
+
Author: ${2:author}
|
12
|
+
Description: ${3}
|
13
|
+
'''
|
14
|
+
snippet wh
|
15
|
+
while ${1:condition}:
|
16
|
+
${2:# TODO: write code...}
|
17
|
+
# dowh - does the same as do...while in other languages
|
18
|
+
snippet dowh
|
19
|
+
while True:
|
20
|
+
${1:# TODO: write code...}
|
21
|
+
if ${2:condition}:
|
22
|
+
break
|
23
|
+
snippet with
|
24
|
+
with ${1:expr} as ${2:var}:
|
25
|
+
${3:# TODO: write code...}
|
26
|
+
# New Class
|
27
|
+
snippet cl
|
28
|
+
class ${1:ClassName}(${2:object}):
|
29
|
+
"""${3:docstring for $1}"""
|
30
|
+
def __init__(self, ${4:arg}):
|
31
|
+
${5:super($1, self).__init__()}
|
32
|
+
self.$4 = $4
|
33
|
+
${6}
|
34
|
+
# New Function
|
35
|
+
snippet def
|
36
|
+
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
37
|
+
"""${3:docstring for $1}"""
|
38
|
+
${4:# TODO: write code...}
|
39
|
+
snippet deff
|
40
|
+
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
41
|
+
${3:# TODO: write code...}
|
42
|
+
# New Method
|
43
|
+
snippet defs
|
44
|
+
def ${1:mname}(self, ${2:arg}):
|
45
|
+
${3:# TODO: write code...}
|
46
|
+
# New Property
|
47
|
+
snippet property
|
48
|
+
def ${1:foo}():
|
49
|
+
doc = "${2:The $1 property.}"
|
50
|
+
def fget(self):
|
51
|
+
${3:return self._$1}
|
52
|
+
def fset(self, value):
|
53
|
+
${4:self._$1 = value}
|
54
|
+
# Ifs
|
55
|
+
snippet if
|
56
|
+
if ${1:condition}:
|
57
|
+
${2:# TODO: write code...}
|
58
|
+
snippet el
|
59
|
+
else:
|
60
|
+
${1:# TODO: write code...}
|
61
|
+
snippet ei
|
62
|
+
elif ${1:condition}:
|
63
|
+
${2:# TODO: write code...}
|
64
|
+
# For
|
65
|
+
snippet for
|
66
|
+
for ${1:item} in ${2:items}:
|
67
|
+
${3:# TODO: write code...}
|
68
|
+
# Encodes
|
69
|
+
snippet cutf8
|
70
|
+
# -*- coding: utf-8 -*-
|
71
|
+
snippet clatin1
|
72
|
+
# -*- coding: latin-1 -*-
|
73
|
+
snippet cascii
|
74
|
+
# -*- coding: ascii -*-
|
75
|
+
# Lambda
|
76
|
+
snippet ld
|
77
|
+
${1:var} = lambda ${2:vars} : ${3:action}
|
78
|
+
snippet .
|
79
|
+
self.
|
80
|
+
snippet try Try/Except
|
81
|
+
try:
|
82
|
+
${1:# TODO: write code...}
|
83
|
+
except ${2:Exception}, ${3:e}:
|
84
|
+
${4:raise $3}
|
85
|
+
snippet try Try/Except/Else
|
86
|
+
try:
|
87
|
+
${1:# TODO: write code...}
|
88
|
+
except ${2:Exception}, ${3:e}:
|
89
|
+
${4:raise $3}
|
90
|
+
else:
|
91
|
+
${5:# TODO: write code...}
|
92
|
+
snippet try Try/Except/Finally
|
93
|
+
try:
|
94
|
+
${1:# TODO: write code...}
|
95
|
+
except ${2:Exception}, ${3:e}:
|
96
|
+
${4:raise $3}
|
97
|
+
finally:
|
98
|
+
${5:# TODO: write code...}
|
99
|
+
snippet try Try/Except/Else/Finally
|
100
|
+
try:
|
101
|
+
${1:# TODO: write code...}
|
102
|
+
except ${2:Exception}, ${3:e}:
|
103
|
+
${4:raise $3}
|
104
|
+
else:
|
105
|
+
${5:# TODO: write code...}
|
106
|
+
finally:
|
107
|
+
${6:# TODO: write code...}
|
108
|
+
# if __name__ == '__main__':
|
109
|
+
snippet ifmain
|
110
|
+
if __name__ == '__main__':
|
111
|
+
${1:main()}
|
112
|
+
# __magic__
|
113
|
+
snippet _
|
114
|
+
__${1:init}__${2}
|
115
|
+
# python debugger (pdb)
|
116
|
+
snippet pdb
|
117
|
+
import pdb; pdb.set_trace()
|
118
|
+
# ipython debugger (ipdb)
|
119
|
+
snippet ipdb
|
120
|
+
import ipdb; ipdb.set_trace()
|
121
|
+
# ipython debugger (pdbbb)
|
122
|
+
snippet pdbbb
|
123
|
+
import pdbpp; pdbpp.set_trace()
|
124
|
+
snippet pprint
|
125
|
+
import pprint; pprint.pprint(${1})${2}
|
126
|
+
snippet "
|
127
|
+
"""
|
128
|
+
${1:doc}
|
129
|
+
"""
|
130
|
+
# test function/method
|
131
|
+
snippet test
|
132
|
+
def test_${1:description}(${2:self}):
|
133
|
+
${3:# TODO: write code...}
|
134
|
+
# test case
|
135
|
+
snippet testcase
|
136
|
+
class ${1:ExampleCase}(unittest.TestCase):
|
137
|
+
|
138
|
+
def test_${2:description}(self):
|
139
|
+
${3:# TODO: write code...}
|
140
|
+
snippet fut
|
141
|
+
from __future__ import ${1}
|
142
|
+
#getopt
|
143
|
+
snippet getopt
|
144
|
+
try:
|
145
|
+
# Short option syntax: "hv:"
|
146
|
+
# Long option syntax: "help" or "verbose="
|
147
|
+
opts, args = getopt.getopt(sys.argv[1:], "${1:short_options}", [${2:long_options}])
|
148
|
+
|
149
|
+
except getopt.GetoptError, err:
|
150
|
+
# Print debug info
|
151
|
+
print str(err)
|
152
|
+
${3:error_action}
|
153
|
+
|
154
|
+
for option, argument in opts:
|
155
|
+
if option in ("-h", "--help"):
|
156
|
+
${4}
|
157
|
+
elif option in ("-v", "--verbose"):
|
158
|
+
verbose = argument
|
@@ -0,0 +1,121 @@
|
|
1
|
+
snippet #!
|
2
|
+
#!/usr/bin/env Rscript
|
3
|
+
|
4
|
+
# includes
|
5
|
+
snippet lib
|
6
|
+
library(${1:package})
|
7
|
+
snippet req
|
8
|
+
require(${1:package})
|
9
|
+
snippet source
|
10
|
+
source('${1:file}')
|
11
|
+
|
12
|
+
# conditionals
|
13
|
+
snippet if
|
14
|
+
if (${1:condition}) {
|
15
|
+
${2:code}
|
16
|
+
}
|
17
|
+
snippet el
|
18
|
+
else {
|
19
|
+
${1:code}
|
20
|
+
}
|
21
|
+
snippet ei
|
22
|
+
else if (${1:condition}) {
|
23
|
+
${2:code}
|
24
|
+
}
|
25
|
+
|
26
|
+
# functions
|
27
|
+
snippet fun
|
28
|
+
${1:name} = function (${2:variables}) {
|
29
|
+
${3:code}
|
30
|
+
}
|
31
|
+
snippet ret
|
32
|
+
return(${1:code})
|
33
|
+
|
34
|
+
# dataframes, lists, etc
|
35
|
+
snippet df
|
36
|
+
${1:name}[${2:rows}, ${3:cols}]
|
37
|
+
snippet c
|
38
|
+
c(${1:items})
|
39
|
+
snippet li
|
40
|
+
list(${1:items})
|
41
|
+
snippet mat
|
42
|
+
matrix(${1:data}, nrow=${2:rows}, ncol=${3:cols})
|
43
|
+
|
44
|
+
# apply functions
|
45
|
+
snippet apply
|
46
|
+
apply(${1:array}, ${2:margin}, ${3:function})
|
47
|
+
snippet lapply
|
48
|
+
lapply(${1:list}, ${2:function})
|
49
|
+
snippet sapply
|
50
|
+
lapply(${1:list}, ${2:function})
|
51
|
+
snippet vapply
|
52
|
+
vapply(${1:list}, ${2:function}, ${3:type})
|
53
|
+
snippet mapply
|
54
|
+
mapply(${1:function}, ${2:...})
|
55
|
+
snippet tapply
|
56
|
+
tapply(${1:vector}, ${2:index}, ${3:function})
|
57
|
+
snippet rapply
|
58
|
+
rapply(${1:list}, ${2:function})
|
59
|
+
|
60
|
+
# plyr functions
|
61
|
+
snippet dd
|
62
|
+
ddply(${1:frame}, ${2:variables}, ${3:function})
|
63
|
+
snippet dl
|
64
|
+
dlply(${1:frame}, ${2:variables}, ${3:function})
|
65
|
+
snippet da
|
66
|
+
daply(${1:frame}, ${2:variables}, ${3:function})
|
67
|
+
snippet d_
|
68
|
+
d_ply(${1:frame}, ${2:variables}, ${3:function})
|
69
|
+
|
70
|
+
snippet ad
|
71
|
+
adply(${1:array}, ${2:margin}, ${3:function})
|
72
|
+
snippet al
|
73
|
+
alply(${1:array}, ${2:margin}, ${3:function})
|
74
|
+
snippet aa
|
75
|
+
aaply(${1:array}, ${2:margin}, ${3:function})
|
76
|
+
snippet a_
|
77
|
+
a_ply(${1:array}, ${2:margin}, ${3:function})
|
78
|
+
|
79
|
+
snippet ld
|
80
|
+
ldply(${1:list}, ${2:function})
|
81
|
+
snippet ll
|
82
|
+
llply(${1:list}, ${2:function})
|
83
|
+
snippet la
|
84
|
+
laply(${1:list}, ${2:function})
|
85
|
+
snippet l_
|
86
|
+
l_ply(${1:list}, ${2:function})
|
87
|
+
|
88
|
+
snippet md
|
89
|
+
mdply(${1:matrix}, ${2:function})
|
90
|
+
snippet ml
|
91
|
+
mlply(${1:matrix}, ${2:function})
|
92
|
+
snippet ma
|
93
|
+
maply(${1:matrix}, ${2:function})
|
94
|
+
snippet m_
|
95
|
+
m_ply(${1:matrix}, ${2:function})
|
96
|
+
|
97
|
+
# plot functions
|
98
|
+
snippet pl
|
99
|
+
plot(${1:x}, ${2:y})
|
100
|
+
snippet ggp
|
101
|
+
ggplot(${1:data}, aes(${2:aesthetics}))
|
102
|
+
snippet img
|
103
|
+
${1:(jpeg,bmp,png,tiff)}(filename="${2:filename}", width=${3}, height=${4}, unit="${5}")
|
104
|
+
${6:plot}
|
105
|
+
dev.off()
|
106
|
+
|
107
|
+
# statistical test functions
|
108
|
+
snippet fis
|
109
|
+
fisher.test(${1:x}, ${2:y})
|
110
|
+
snippet chi
|
111
|
+
chisq.test(${1:x}, ${2:y})
|
112
|
+
snippet tt
|
113
|
+
t.test(${1:x}, ${2:y})
|
114
|
+
snippet wil
|
115
|
+
wilcox.test(${1:x}, ${2:y})
|
116
|
+
snippet cor
|
117
|
+
cor.test(${1:x}, ${2:y})
|
118
|
+
snippet fte
|
119
|
+
var.test(${1:x}, ${2:y})
|
120
|
+
snippet kvt
|
121
|
+
kv.test(${1:x}, ${2:y})
|
File without changes
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# rst
|
2
|
+
|
3
|
+
snippet :
|
4
|
+
:${1:field name}: ${2:field body}
|
5
|
+
snippet *
|
6
|
+
*${1:Emphasis}*
|
7
|
+
snippet **
|
8
|
+
**${1:Strong emphasis}**
|
9
|
+
snippet _
|
10
|
+
\`${1:hyperlink-name}\`_
|
11
|
+
.. _\`$1\`: ${2:link-block}
|
12
|
+
snippet =
|
13
|
+
${1:Title}
|
14
|
+
=====${2:=}
|
15
|
+
${3}
|
16
|
+
snippet -
|
17
|
+
${1:Title}
|
18
|
+
-----${2:-}
|
19
|
+
${3}
|
20
|
+
snippet cont:
|
21
|
+
.. contents::
|
22
|
+
|
@@ -0,0 +1,928 @@
|
|
1
|
+
########################################
|
2
|
+
# Ruby snippets - for Rails, see below #
|
3
|
+
########################################
|
4
|
+
|
5
|
+
# encoding for Ruby 1.9
|
6
|
+
snippet enc
|
7
|
+
# encoding: utf-8
|
8
|
+
|
9
|
+
# #!/usr/bin/env ruby
|
10
|
+
snippet #!
|
11
|
+
#!/usr/bin/env ruby
|
12
|
+
# encoding: utf-8
|
13
|
+
|
14
|
+
# New Block
|
15
|
+
snippet =b
|
16
|
+
=begin rdoc
|
17
|
+
${1}
|
18
|
+
=end
|
19
|
+
snippet y
|
20
|
+
:yields: ${1:arguments}
|
21
|
+
snippet rb
|
22
|
+
#!/usr/bin/env ruby -wKU
|
23
|
+
snippet beg
|
24
|
+
begin
|
25
|
+
${3}
|
26
|
+
rescue ${1:Exception} => ${2:e}
|
27
|
+
end
|
28
|
+
|
29
|
+
snippet req require
|
30
|
+
require "${1}"${2}
|
31
|
+
snippet #
|
32
|
+
# =>
|
33
|
+
snippet end
|
34
|
+
__END__
|
35
|
+
snippet case
|
36
|
+
case ${1:object}
|
37
|
+
when ${2:condition}
|
38
|
+
${3}
|
39
|
+
end
|
40
|
+
snippet when
|
41
|
+
when ${1:condition}
|
42
|
+
${2}
|
43
|
+
snippet def
|
44
|
+
def ${1:method_name}
|
45
|
+
${2}
|
46
|
+
end
|
47
|
+
snippet deft
|
48
|
+
def test_${1:case_name}
|
49
|
+
${2}
|
50
|
+
end
|
51
|
+
snippet if
|
52
|
+
if ${1:condition}
|
53
|
+
${2}
|
54
|
+
end
|
55
|
+
snippet ife
|
56
|
+
if ${1:condition}
|
57
|
+
${2}
|
58
|
+
else
|
59
|
+
${3}
|
60
|
+
end
|
61
|
+
snippet elsif
|
62
|
+
elsif ${1:condition}
|
63
|
+
${2}
|
64
|
+
snippet unless
|
65
|
+
unless ${1:condition}
|
66
|
+
${2}
|
67
|
+
end
|
68
|
+
snippet while
|
69
|
+
while ${1:condition}
|
70
|
+
${2}
|
71
|
+
end
|
72
|
+
snippet for
|
73
|
+
for ${1:e} in ${2:c}
|
74
|
+
${3}
|
75
|
+
end
|
76
|
+
snippet until
|
77
|
+
until ${1:condition}
|
78
|
+
${2}
|
79
|
+
end
|
80
|
+
snippet cla class .. end
|
81
|
+
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
82
|
+
${2}
|
83
|
+
end
|
84
|
+
snippet cla class .. initialize .. end
|
85
|
+
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
86
|
+
def initialize(${2:args})
|
87
|
+
${3}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
snippet cla class .. < ParentClass .. initialize .. end
|
91
|
+
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} < ${2:ParentClass}
|
92
|
+
def initialize(${3:args})
|
93
|
+
${4}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
snippet cla ClassName = Struct .. do .. end
|
97
|
+
${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} = Struct.new(:${2:attr_names}) do
|
98
|
+
def ${3:method_name}
|
99
|
+
${4}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
snippet cla class BlankSlate .. initialize .. end
|
103
|
+
class ${1:BlankSlate}
|
104
|
+
instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ }
|
105
|
+
end
|
106
|
+
snippet cla class << self .. end
|
107
|
+
class << ${1:self}
|
108
|
+
${2}
|
109
|
+
end
|
110
|
+
# class .. < DelegateClass .. initialize .. end
|
111
|
+
snippet cla-
|
112
|
+
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} < DelegateClass(${2:ParentClass})
|
113
|
+
def initialize(${3:args})
|
114
|
+
super(${4:del_obj})
|
115
|
+
|
116
|
+
${5}
|
117
|
+
end
|
118
|
+
end
|
119
|
+
snippet mod module .. end
|
120
|
+
module ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
121
|
+
${2}
|
122
|
+
end
|
123
|
+
snippet mod module .. module_function .. end
|
124
|
+
module ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
125
|
+
module_function
|
126
|
+
|
127
|
+
${2}
|
128
|
+
end
|
129
|
+
snippet mod module .. ClassMethods .. end
|
130
|
+
module ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
131
|
+
module ClassMethods
|
132
|
+
${2}
|
133
|
+
end
|
134
|
+
|
135
|
+
module InstanceMethods
|
136
|
+
|
137
|
+
end
|
138
|
+
|
139
|
+
def self.included(receiver)
|
140
|
+
receiver.extend ClassMethods
|
141
|
+
receiver.send :include, InstanceMethods
|
142
|
+
end
|
143
|
+
end
|
144
|
+
# attr_reader
|
145
|
+
snippet r
|
146
|
+
attr_reader :${1:attr_names}
|
147
|
+
# attr_writer
|
148
|
+
snippet w
|
149
|
+
attr_writer :${1:attr_names}
|
150
|
+
# attr_accessor
|
151
|
+
snippet rw
|
152
|
+
attr_accessor :${1:attr_names}
|
153
|
+
snippet atp
|
154
|
+
attr_protected :${1:attr_names}
|
155
|
+
snippet ata
|
156
|
+
attr_accessible :${1:attr_names}
|
157
|
+
# include Enumerable
|
158
|
+
snippet Enum
|
159
|
+
include Enumerable
|
160
|
+
|
161
|
+
def each(&block)
|
162
|
+
${1}
|
163
|
+
end
|
164
|
+
# include Comparable
|
165
|
+
snippet Comp
|
166
|
+
include Comparable
|
167
|
+
|
168
|
+
def <=>(other)
|
169
|
+
${1}
|
170
|
+
end
|
171
|
+
# extend Forwardable
|
172
|
+
snippet Forw-
|
173
|
+
extend Forwardable
|
174
|
+
# def self
|
175
|
+
snippet defs
|
176
|
+
def self.${1:class_method_name}
|
177
|
+
${2}
|
178
|
+
end
|
179
|
+
# def method_missing
|
180
|
+
snippet defmm
|
181
|
+
def method_missing(meth, *args, &blk)
|
182
|
+
${1}
|
183
|
+
end
|
184
|
+
snippet defd
|
185
|
+
def_delegator :${1:@del_obj}, :${2:del_meth}, :${3:new_name}
|
186
|
+
snippet defds
|
187
|
+
def_delegators :${1:@del_obj}, :${2:del_methods}
|
188
|
+
snippet am
|
189
|
+
alias_method :${1:new_name}, :${2:old_name}
|
190
|
+
snippet app
|
191
|
+
if __FILE__ == $PROGRAM_NAME
|
192
|
+
${1}
|
193
|
+
end
|
194
|
+
# usage_if()
|
195
|
+
snippet usai
|
196
|
+
if ARGV.${1}
|
197
|
+
abort "Usage: #{$PROGRAM_NAME} ${2:ARGS_GO_HERE}"${3}
|
198
|
+
end
|
199
|
+
# usage_unless()
|
200
|
+
snippet usau
|
201
|
+
unless ARGV.${1}
|
202
|
+
abort "Usage: #{$PROGRAM_NAME} ${2:ARGS_GO_HERE}"${3}
|
203
|
+
end
|
204
|
+
snippet array
|
205
|
+
Array.new(${1:10}) { |${2:i}| ${3} }
|
206
|
+
snippet hash
|
207
|
+
Hash.new { |${1:hash}, ${2:key}| $1[$2] = ${3} }
|
208
|
+
snippet file File.foreach() { |line| .. }
|
209
|
+
File.foreach(${1:"path/to/file"}) { |${2:line}| ${3} }
|
210
|
+
snippet file File.read()
|
211
|
+
File.read(${1:"path/to/file"})${2}
|
212
|
+
snippet Dir Dir.global() { |file| .. }
|
213
|
+
Dir.glob(${1:"dir/glob/*"}) { |${2:file}| ${3} }
|
214
|
+
snippet Dir Dir[".."]
|
215
|
+
Dir[${1:"glob/**/*.rb"}]${2}
|
216
|
+
snippet dir
|
217
|
+
Filename.dirname(__FILE__)
|
218
|
+
snippet deli
|
219
|
+
delete_if { |${1:e}| ${2} }
|
220
|
+
snippet fil
|
221
|
+
fill(${1:range}) { |${2:i}| ${3} }
|
222
|
+
# flatten_once()
|
223
|
+
snippet flao
|
224
|
+
inject(Array.new) { |${1:arr}, ${2:a}| $1.push(*$2)}${3}
|
225
|
+
snippet zip
|
226
|
+
zip(${1:enums}) { |${2:row}| ${3} }
|
227
|
+
# downto(0) { |n| .. }
|
228
|
+
snippet dow
|
229
|
+
downto(${1:0}) { |${2:n}| ${3} }
|
230
|
+
snippet ste
|
231
|
+
step(${1:2}) { |${2:n}| ${3} }
|
232
|
+
snippet tim
|
233
|
+
times { |${1:n}| ${2} }
|
234
|
+
snippet upt
|
235
|
+
upto(${1:1.0/0.0}) { |${2:n}| ${3} }
|
236
|
+
snippet loo
|
237
|
+
loop { ${1} }
|
238
|
+
snippet ea
|
239
|
+
each { |${1:e}| ${2} }
|
240
|
+
snippet ead
|
241
|
+
each do |${1:e}|
|
242
|
+
${2}
|
243
|
+
end
|
244
|
+
snippet eab
|
245
|
+
each_byte { |${1:byte}| ${2} }
|
246
|
+
snippet eac- each_char { |chr| .. }
|
247
|
+
each_char { |${1:chr}| ${2} }
|
248
|
+
snippet eac- each_cons(..) { |group| .. }
|
249
|
+
each_cons(${1:2}) { |${2:group}| ${3} }
|
250
|
+
snippet eai
|
251
|
+
each_index { |${1:i}| ${2} }
|
252
|
+
snippet eaid
|
253
|
+
each_index do |${1:i}|
|
254
|
+
${2}
|
255
|
+
end
|
256
|
+
snippet eak
|
257
|
+
each_key { |${1:key}| ${2} }
|
258
|
+
snippet eakd
|
259
|
+
each_key do |${1:key}|
|
260
|
+
${2}
|
261
|
+
end
|
262
|
+
snippet eal
|
263
|
+
each_line { |${1:line}| ${2} }
|
264
|
+
snippet eald
|
265
|
+
each_line do |${1:line}|
|
266
|
+
${2}
|
267
|
+
end
|
268
|
+
snippet eap
|
269
|
+
each_pair { |${1:name}, ${2:val}| ${3} }
|
270
|
+
snippet eapd
|
271
|
+
each_pair do |${1:name}, ${2:val}|
|
272
|
+
${3}
|
273
|
+
end
|
274
|
+
snippet eas-
|
275
|
+
each_slice(${1:2}) { |${2:group}| ${3} }
|
276
|
+
snippet easd-
|
277
|
+
each_slice(${1:2}) do |${2:group}|
|
278
|
+
${3}
|
279
|
+
end
|
280
|
+
snippet eav
|
281
|
+
each_value { |${1:val}| ${2} }
|
282
|
+
snippet eavd
|
283
|
+
each_value do |${1:val}|
|
284
|
+
${2}
|
285
|
+
end
|
286
|
+
snippet eawi
|
287
|
+
each_with_index { |${1:e}, ${2:i}| ${3} }
|
288
|
+
snippet eawid
|
289
|
+
each_with_index do |${1:e},${2:i}|
|
290
|
+
${3}
|
291
|
+
end
|
292
|
+
snippet reve
|
293
|
+
reverse_each { |${1:e}| ${2} }
|
294
|
+
snippet reved
|
295
|
+
reverse_each do |${1:e}|
|
296
|
+
${2}
|
297
|
+
end
|
298
|
+
snippet inj
|
299
|
+
inject(${1:init}) { |${2:mem}, ${3:var}| ${4} }
|
300
|
+
snippet injd
|
301
|
+
inject(${1:init}) do |${2:mem}, ${3:var}|
|
302
|
+
${4}
|
303
|
+
end
|
304
|
+
snippet map
|
305
|
+
map { |${1:e}| ${2} }
|
306
|
+
snippet mapd
|
307
|
+
map do |${1:e}|
|
308
|
+
${2}
|
309
|
+
end
|
310
|
+
snippet mapwi-
|
311
|
+
enum_with_index.map { |${1:e}, ${2:i}| ${3} }
|
312
|
+
snippet sor
|
313
|
+
sort { |a, b| ${1} }
|
314
|
+
snippet sorb
|
315
|
+
sort_by { |${1:e}| ${2} }
|
316
|
+
snippet ran
|
317
|
+
sort_by { rand }
|
318
|
+
snippet all
|
319
|
+
all? { |${1:e}| ${2} }
|
320
|
+
snippet any
|
321
|
+
any? { |${1:e}| ${2} }
|
322
|
+
snippet cl
|
323
|
+
classify { |${1:e}| ${2} }
|
324
|
+
snippet col
|
325
|
+
collect { |${1:e}| ${2} }
|
326
|
+
snippet cold
|
327
|
+
collect do |${1:e}|
|
328
|
+
${2}
|
329
|
+
end
|
330
|
+
snippet det
|
331
|
+
detect { |${1:e}| ${2} }
|
332
|
+
snippet detd
|
333
|
+
detect do |${1:e}|
|
334
|
+
${2}
|
335
|
+
end
|
336
|
+
snippet fet
|
337
|
+
fetch(${1:name}) { |${2:key}| ${3} }
|
338
|
+
snippet fin
|
339
|
+
find { |${1:e}| ${2} }
|
340
|
+
snippet find
|
341
|
+
find do |${1:e}|
|
342
|
+
${2}
|
343
|
+
end
|
344
|
+
snippet fina
|
345
|
+
find_all { |${1:e}| ${2} }
|
346
|
+
snippet finad
|
347
|
+
find_all do |${1:e}|
|
348
|
+
${2}
|
349
|
+
end
|
350
|
+
snippet gre
|
351
|
+
grep(${1:/pattern/}) { |${2:match}| ${3} }
|
352
|
+
snippet sub
|
353
|
+
${1:g}sub(${2:/pattern/}) { |${3:match}| ${4} }
|
354
|
+
snippet sca
|
355
|
+
scan(${1:/pattern/}) { |${2:match}| ${3} }
|
356
|
+
snippet scad
|
357
|
+
scan(${1:/pattern/}) do |${2:match}|
|
358
|
+
${3}
|
359
|
+
end
|
360
|
+
snippet max
|
361
|
+
max { |a, b| ${1} }
|
362
|
+
snippet min
|
363
|
+
min { |a, b| ${1} }
|
364
|
+
snippet par
|
365
|
+
partition { |${1:e}| ${2} }
|
366
|
+
snippet pard
|
367
|
+
partition do |${1:e}|
|
368
|
+
${2}
|
369
|
+
end
|
370
|
+
snippet rej
|
371
|
+
reject { |${1:e}| ${2} }
|
372
|
+
snippet rejd
|
373
|
+
reject do |${1:e}|
|
374
|
+
${2}
|
375
|
+
end
|
376
|
+
snippet sel
|
377
|
+
select { |${1:e}| ${2} }
|
378
|
+
snippet seld
|
379
|
+
select do |${1:e}|
|
380
|
+
${2}
|
381
|
+
end
|
382
|
+
snippet lam
|
383
|
+
lambda { |${1:args}| ${2} }
|
384
|
+
snippet doo
|
385
|
+
do
|
386
|
+
${1}
|
387
|
+
end
|
388
|
+
snippet dov
|
389
|
+
do |${1:variable}|
|
390
|
+
${2}
|
391
|
+
end
|
392
|
+
snippet :
|
393
|
+
:${1:key} => ${2:"value"}${3}
|
394
|
+
snippet ope
|
395
|
+
open(${1:"path/or/url/or/pipe"}, "${2:w}") { |${3:io}| ${4} }
|
396
|
+
# path_from_here()
|
397
|
+
snippet fpath
|
398
|
+
File.join(File.dirname(__FILE__), *%2[${1:rel path here}])${2}
|
399
|
+
# unix_filter {}
|
400
|
+
snippet unif
|
401
|
+
ARGF.each_line${1} do |${2:line}|
|
402
|
+
${3}
|
403
|
+
end
|
404
|
+
# option_parse {}
|
405
|
+
snippet optp
|
406
|
+
require "optparse"
|
407
|
+
|
408
|
+
options = {${1:default => "args"}}
|
409
|
+
|
410
|
+
ARGV.options do |opts|
|
411
|
+
opts.banner = "Usage: #{File.basename($PROGRAM_NAME)}
|
412
|
+
snippet opt
|
413
|
+
opts.on( "-${1:o}", "--${2:long-option-name}", ${3:String},
|
414
|
+
"${4:Option description.}") do |${5:opt}|
|
415
|
+
${6}
|
416
|
+
end
|
417
|
+
snippet tc
|
418
|
+
require "test/unit"
|
419
|
+
|
420
|
+
require "${1:library_file_name}"
|
421
|
+
|
422
|
+
class Test${2:$1} < Test::Unit::TestCase
|
423
|
+
def test_${3:case_name}
|
424
|
+
${4}
|
425
|
+
end
|
426
|
+
end
|
427
|
+
snippet ts
|
428
|
+
require "test/unit"
|
429
|
+
|
430
|
+
require "tc_${1:test_case_file}"
|
431
|
+
require "tc_${2:test_case_file}"${3}
|
432
|
+
snippet as
|
433
|
+
assert ${1:test}, "${2:Failure message.}"${3}
|
434
|
+
snippet ase
|
435
|
+
assert_equal ${1:expected}, ${2:actual}${3}
|
436
|
+
snippet asne
|
437
|
+
assert_not_equal ${1:unexpected}, ${2:actual}${3}
|
438
|
+
snippet asid
|
439
|
+
assert_in_delta ${1:expected_float}, ${2:actual_float}, ${3:2 ** -20}${4}
|
440
|
+
snippet asio
|
441
|
+
assert_instance_of ${1:ExpectedClass}, ${2:actual_instance}${3}
|
442
|
+
snippet asko
|
443
|
+
assert_kind_of ${1:ExpectedKind}, ${2:actual_instance}${3}
|
444
|
+
snippet asn
|
445
|
+
assert_nil ${1:instance}${2}
|
446
|
+
snippet asnn
|
447
|
+
assert_not_nil ${1:instance}${2}
|
448
|
+
snippet asm
|
449
|
+
assert_match /${1:expected_pattern}/, ${2:actual_string}${3}
|
450
|
+
snippet asnm
|
451
|
+
assert_no_match /${1:unexpected_pattern}/, ${2:actual_string}${3}
|
452
|
+
snippet aso
|
453
|
+
assert_operator ${1:left}, :${2:operator}, ${3:right}${4}
|
454
|
+
snippet asr
|
455
|
+
assert_raise ${1:Exception} { ${2} }
|
456
|
+
snippet asrd
|
457
|
+
assert_raise ${1:Exception} do
|
458
|
+
${2}
|
459
|
+
end
|
460
|
+
snippet asnr
|
461
|
+
assert_nothing_raised ${1:Exception} { ${2} }
|
462
|
+
snippet asnrd
|
463
|
+
assert_nothing_raised ${1:Exception} do
|
464
|
+
${2}
|
465
|
+
end
|
466
|
+
snippet asrt
|
467
|
+
assert_respond_to ${1:object}, :${2:method}${3}
|
468
|
+
snippet ass assert_same(..)
|
469
|
+
assert_same ${1:expected}, ${2:actual}${3}
|
470
|
+
snippet ass assert_send(..)
|
471
|
+
assert_send [${1:object}, :${2:message}, ${3:args}]${4}
|
472
|
+
snippet asns
|
473
|
+
assert_not_same ${1:unexpected}, ${2:actual}${3}
|
474
|
+
snippet ast
|
475
|
+
assert_throws :${1:expected} { ${2} }
|
476
|
+
snippet astd
|
477
|
+
assert_throws :${1:expected} do
|
478
|
+
${2}
|
479
|
+
end
|
480
|
+
snippet asnt
|
481
|
+
assert_nothing_thrown { ${1} }
|
482
|
+
snippet asntd
|
483
|
+
assert_nothing_thrown do
|
484
|
+
${1}
|
485
|
+
end
|
486
|
+
snippet fl
|
487
|
+
flunk "${1:Failure message.}"${2}
|
488
|
+
# Benchmark.bmbm do .. end
|
489
|
+
snippet bm-
|
490
|
+
TESTS = ${1:10_000}
|
491
|
+
Benchmark.bmbm do |results|
|
492
|
+
${2}
|
493
|
+
end
|
494
|
+
snippet rep
|
495
|
+
results.report("${1:name}:") { TESTS.times { ${2} }}
|
496
|
+
# Marshal.dump(.., file)
|
497
|
+
snippet Md
|
498
|
+
File.open(${1:"path/to/file.dump"}, "wb") { |${2:file}| Marshal.dump(${3:obj}, $2) }${4}
|
499
|
+
# Mashal.load(obj)
|
500
|
+
snippet Ml
|
501
|
+
File.open(${1:"path/to/file.dump"}, "rb") { |${2:file}| Marshal.load($2) }${3}
|
502
|
+
# deep_copy(..)
|
503
|
+
snippet deec
|
504
|
+
Marshal.load(Marshal.dump(${1:obj_to_copy}))${2}
|
505
|
+
snippet Pn-
|
506
|
+
PStore.new(${1:"file_name.pstore"})${2}
|
507
|
+
snippet tra
|
508
|
+
transaction(${1:true}) { ${2} }
|
509
|
+
# xmlread(..)
|
510
|
+
snippet xml-
|
511
|
+
REXML::Document.new(File.read(${1:"path/to/file"}))${2}
|
512
|
+
# xpath(..) { .. }
|
513
|
+
snippet xpa
|
514
|
+
elements.each(${1:"//Xpath"}) do |${2:node}|
|
515
|
+
${3}
|
516
|
+
end
|
517
|
+
# class_from_name()
|
518
|
+
snippet clafn
|
519
|
+
split("::").inject(Object) { |par, const| par.const_get(const) }
|
520
|
+
# singleton_class()
|
521
|
+
snippet sinc
|
522
|
+
class << self; self end
|
523
|
+
snippet nam
|
524
|
+
namespace :${1:`Filename()`} do
|
525
|
+
${2}
|
526
|
+
end
|
527
|
+
snippet tas
|
528
|
+
desc "${1:Task description}"
|
529
|
+
task :${2:task_name => [:dependent, :tasks]} do
|
530
|
+
${3}
|
531
|
+
end
|
532
|
+
# block
|
533
|
+
snippet b
|
534
|
+
{ |${1:var}| ${2} }
|
535
|
+
snippet begin
|
536
|
+
begin
|
537
|
+
raise 'A test exception.'
|
538
|
+
rescue Exception => e
|
539
|
+
puts e.message
|
540
|
+
puts e.backtrace.inspect
|
541
|
+
else
|
542
|
+
# other exception
|
543
|
+
ensure
|
544
|
+
# always executed
|
545
|
+
end
|
546
|
+
|
547
|
+
#debugging
|
548
|
+
snippet debug
|
549
|
+
require 'ruby-debug'; debugger; true;
|
550
|
+
snippet pry
|
551
|
+
require 'pry'; binding.pry
|
552
|
+
|
553
|
+
#############################################
|
554
|
+
# Rails snippets - for pure Ruby, see above #
|
555
|
+
#############################################
|
556
|
+
snippet art
|
557
|
+
assert_redirected_to ${1::action => "${2:index}"}
|
558
|
+
snippet artnp
|
559
|
+
assert_redirected_to ${1:parent}_${2:child}_path(${3:@$1}, ${4:@$2})
|
560
|
+
snippet artnpp
|
561
|
+
assert_redirected_to ${1:parent}_${2:child}_path(${3:@$1})
|
562
|
+
snippet artp
|
563
|
+
assert_redirected_to ${1:model}_path(${2:@$1})
|
564
|
+
snippet artpp
|
565
|
+
assert_redirected_to ${1:model}s_path
|
566
|
+
snippet asd
|
567
|
+
assert_difference "${1:Model}.${2:count}", $1 do
|
568
|
+
${3}
|
569
|
+
end
|
570
|
+
snippet asnd
|
571
|
+
assert_no_difference "${1:Model}.${2:count}" do
|
572
|
+
${3}
|
573
|
+
end
|
574
|
+
snippet asre
|
575
|
+
assert_response :${1:success}, @response.body${2}
|
576
|
+
snippet asrj
|
577
|
+
assert_rjs :${1:replace}, "${2:dom id}"
|
578
|
+
snippet ass assert_select(..)
|
579
|
+
assert_select '${1:path}', :${2:text} => '${3:inner_html' ${4:do}
|
580
|
+
snippet bf
|
581
|
+
before_filter :${1:method}
|
582
|
+
snippet bt
|
583
|
+
belongs_to :${1:association}
|
584
|
+
snippet crw
|
585
|
+
cattr_accessor :${1:attr_names}
|
586
|
+
snippet defcreate
|
587
|
+
def create
|
588
|
+
@${1:model_class_name} = ${2:ModelClassName}.new(params[:$1])
|
589
|
+
|
590
|
+
respond_to do |wants|
|
591
|
+
if @$1.save
|
592
|
+
flash[:notice] = '$2 was successfully created.'
|
593
|
+
wants.html { redirect_to(@$1) }
|
594
|
+
wants.xml { render :xml => @$1, :status => :created, :location => @$1 }
|
595
|
+
else
|
596
|
+
wants.html { render :action => "new" }
|
597
|
+
wants.xml { render :xml => @$1.errors, :status => :unprocessable_entity }
|
598
|
+
end
|
599
|
+
end
|
600
|
+
end${3}
|
601
|
+
snippet defdestroy
|
602
|
+
def destroy
|
603
|
+
@${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
|
604
|
+
@$1.destroy
|
605
|
+
|
606
|
+
respond_to do |wants|
|
607
|
+
wants.html { redirect_to($1s_url) }
|
608
|
+
wants.xml { head :ok }
|
609
|
+
end
|
610
|
+
end${3}
|
611
|
+
snippet defedit
|
612
|
+
def edit
|
613
|
+
@${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
|
614
|
+
end
|
615
|
+
snippet defindex
|
616
|
+
def index
|
617
|
+
@${1:model_class_name} = ${2:ModelClassName}.all
|
618
|
+
|
619
|
+
respond_to do |wants|
|
620
|
+
wants.html # index.html.erb
|
621
|
+
wants.xml { render :xml => @$1s }
|
622
|
+
end
|
623
|
+
end${3}
|
624
|
+
snippet defnew
|
625
|
+
def new
|
626
|
+
@${1:model_class_name} = ${2:ModelClassName}.new
|
627
|
+
|
628
|
+
respond_to do |wants|
|
629
|
+
wants.html # new.html.erb
|
630
|
+
wants.xml { render :xml => @$1 }
|
631
|
+
end
|
632
|
+
end${3}
|
633
|
+
snippet defshow
|
634
|
+
def show
|
635
|
+
@${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
|
636
|
+
|
637
|
+
respond_to do |wants|
|
638
|
+
wants.html # show.html.erb
|
639
|
+
wants.xml { render :xml => @$1 }
|
640
|
+
end
|
641
|
+
end${3}
|
642
|
+
snippet defupdate
|
643
|
+
def update
|
644
|
+
@${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
|
645
|
+
|
646
|
+
respond_to do |wants|
|
647
|
+
if @$1.update_attributes(params[:$1])
|
648
|
+
flash[:notice] = '$2 was successfully updated.'
|
649
|
+
wants.html { redirect_to(@$1) }
|
650
|
+
wants.xml { head :ok }
|
651
|
+
else
|
652
|
+
wants.html { render :action => "edit" }
|
653
|
+
wants.xml { render :xml => @$1.errors, :status => :unprocessable_entity }
|
654
|
+
end
|
655
|
+
end
|
656
|
+
end${3}
|
657
|
+
snippet flash
|
658
|
+
flash[:${1:notice}] = "${2}"
|
659
|
+
snippet habtm
|
660
|
+
has_and_belongs_to_many :${1:object}, :join_table => "${2:table_name}", :foreign_key => "${3}_id"${4}
|
661
|
+
snippet hm
|
662
|
+
has_many :${1:object}
|
663
|
+
snippet hmd
|
664
|
+
has_many :${1:other}s, :class_name => "${2:$1}", :foreign_key => "${3:$1}_id", :dependent => :destroy${4}
|
665
|
+
snippet hmt
|
666
|
+
has_many :${1:object}, :through => :${2:object}
|
667
|
+
snippet ho
|
668
|
+
has_one :${1:object}
|
669
|
+
snippet i18
|
670
|
+
I18n.t('${1:type.key}')${2}
|
671
|
+
snippet ist
|
672
|
+
<%= image_submit_tag("${1:agree.png}", :id => "${2:id}"${3} %>
|
673
|
+
snippet log
|
674
|
+
Rails.logger.${1:debug} ${2}
|
675
|
+
snippet log2
|
676
|
+
RAILS_DEFAULT_LOGGER.${1:debug} ${2}
|
677
|
+
snippet logd
|
678
|
+
logger.debug { "${1:message}" }${2}
|
679
|
+
snippet loge
|
680
|
+
logger.error { "${1:message}" }${2}
|
681
|
+
snippet logf
|
682
|
+
logger.fatal { "${1:message}" }${2}
|
683
|
+
snippet logi
|
684
|
+
logger.info { "${1:message}" }${2}
|
685
|
+
snippet logw
|
686
|
+
logger.warn { "${1:message}" }${2}
|
687
|
+
snippet mapc
|
688
|
+
${1:map}.${2:connect} '${3:controller/:action/:id}'
|
689
|
+
snippet mapca
|
690
|
+
${1:map}.catch_all "*${2:anything}", :controller => "${3:default}", :action => "${4:error}"${5}
|
691
|
+
snippet mapr
|
692
|
+
${1:map}.resource :${2:resource}
|
693
|
+
snippet maprs
|
694
|
+
${1:map}.resources :${2:resource}
|
695
|
+
snippet mapwo
|
696
|
+
${1:map}.with_options :${2:controller} => '${3:thing}' do |$3|
|
697
|
+
${4}
|
698
|
+
end
|
699
|
+
snippet mbs
|
700
|
+
before_save :${1:method}
|
701
|
+
snippet mcht
|
702
|
+
change_table :${1:table_name} do |t|
|
703
|
+
${2}
|
704
|
+
end
|
705
|
+
snippet mp
|
706
|
+
map(&:${1:id})
|
707
|
+
snippet mrw
|
708
|
+
mattr_accessor :${1:attr_names}
|
709
|
+
snippet oa
|
710
|
+
order("${1:field}")
|
711
|
+
snippet od
|
712
|
+
order("${1:field} DESC")
|
713
|
+
snippet pa
|
714
|
+
params[:${1:id}]${2}
|
715
|
+
snippet ra
|
716
|
+
render :action => "${1:action}"
|
717
|
+
snippet ral
|
718
|
+
render :action => "${1:action}", :layout => "${2:layoutname}"
|
719
|
+
snippet rest
|
720
|
+
respond_to do |wants|
|
721
|
+
wants.${1:html} { ${2} }
|
722
|
+
end
|
723
|
+
snippet rf
|
724
|
+
render :file => "${1:filepath}"
|
725
|
+
snippet rfu
|
726
|
+
render :file => "${1:filepath}", :use_full_path => ${2:false}
|
727
|
+
snippet ri
|
728
|
+
render :inline => "${1:<%= 'hello' %>}"
|
729
|
+
snippet ril
|
730
|
+
render :inline => "${1:<%= 'hello' %>}", :locals => { ${2::name} => "${3:value}"${4} }
|
731
|
+
snippet rit
|
732
|
+
render :inline => "${1:<%= 'hello' %>}", :type => ${2::rxml}
|
733
|
+
snippet rjson
|
734
|
+
render :json => ${1:text to render}
|
735
|
+
snippet rl
|
736
|
+
render :layout => "${1:layoutname}"
|
737
|
+
snippet rn
|
738
|
+
render :nothing => ${1:true}
|
739
|
+
snippet rns
|
740
|
+
render :nothing => ${1:true}, :status => ${2:401}
|
741
|
+
snippet rp
|
742
|
+
render :partial => "${1:item}"
|
743
|
+
snippet rpc
|
744
|
+
render :partial => "${1:item}", :collection => ${2:@$1s}
|
745
|
+
snippet rpl
|
746
|
+
render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
|
747
|
+
snippet rpo
|
748
|
+
render :partial => "${1:item}", :object => ${2:@$1}
|
749
|
+
snippet rps
|
750
|
+
render :partial => "${1:item}", :status => ${2:500}
|
751
|
+
snippet rt
|
752
|
+
render :text => "${1:text to render}"
|
753
|
+
snippet rtl
|
754
|
+
render :text => "${1:text to render}", :layout => "${2:layoutname}"
|
755
|
+
snippet rtlt
|
756
|
+
render :text => "${1:text to render}", :layout => ${2:true}
|
757
|
+
snippet rts
|
758
|
+
render :text => "${1:text to render}", :status => ${2:401}
|
759
|
+
snippet ru
|
760
|
+
render :update do |${1:page}|
|
761
|
+
$1.${2}
|
762
|
+
end
|
763
|
+
snippet rxml
|
764
|
+
render :xml => ${1:text to render}
|
765
|
+
snippet sc
|
766
|
+
scope :${1:name}, :where(:@${2:field} => ${3:value})
|
767
|
+
snippet sl
|
768
|
+
scope :${1:name}, lambda do |${2:value}|
|
769
|
+
where("${3:field = ?}", ${4:bind var})
|
770
|
+
end
|
771
|
+
snippet sha1
|
772
|
+
Digest::SHA1.hexdigest(${1:string})
|
773
|
+
snippet sweeper
|
774
|
+
class ${1:ModelClassName}Sweeper < ActionController::Caching::Sweeper
|
775
|
+
observe $1
|
776
|
+
|
777
|
+
def after_save(${2:model_class_name})
|
778
|
+
expire_cache($2)
|
779
|
+
end
|
780
|
+
|
781
|
+
def after_destroy($2)
|
782
|
+
expire_cache($2)
|
783
|
+
end
|
784
|
+
|
785
|
+
def expire_cache($2)
|
786
|
+
expire_page
|
787
|
+
end
|
788
|
+
end
|
789
|
+
snippet tcb
|
790
|
+
t.boolean :${1:title}
|
791
|
+
${2}
|
792
|
+
snippet tcbi
|
793
|
+
t.binary :${1:title}, :limit => ${2:2}.megabytes
|
794
|
+
${3}
|
795
|
+
snippet tcd
|
796
|
+
t.decimal :${1:title}, :precision => ${2:10}, :scale => ${3:2}
|
797
|
+
${4}
|
798
|
+
snippet tcda
|
799
|
+
t.date :${1:title}
|
800
|
+
${2}
|
801
|
+
snippet tcdt
|
802
|
+
t.datetime :${1:title}
|
803
|
+
${2}
|
804
|
+
snippet tcf
|
805
|
+
t.float :${1:title}
|
806
|
+
${2}
|
807
|
+
snippet tch
|
808
|
+
t.change :${1:name}, :${2:string}, :${3:limit} => ${4:80}
|
809
|
+
${5}
|
810
|
+
snippet tci
|
811
|
+
t.integer :${1:title}
|
812
|
+
${2}
|
813
|
+
snippet tcl
|
814
|
+
t.integer :lock_version, :null => false, :default => 0
|
815
|
+
${1}
|
816
|
+
snippet tcr
|
817
|
+
t.references :${1:taggable}, :polymorphic => { :default => '${2:Photo}' }
|
818
|
+
${3}
|
819
|
+
snippet tcs
|
820
|
+
t.string :${1:title}
|
821
|
+
${2}
|
822
|
+
snippet tct
|
823
|
+
t.text :${1:title}
|
824
|
+
${2}
|
825
|
+
snippet tcti
|
826
|
+
t.time :${1:title}
|
827
|
+
${2}
|
828
|
+
snippet tcts
|
829
|
+
t.timestamp :${1:title}
|
830
|
+
${2}
|
831
|
+
snippet tctss
|
832
|
+
t.timestamps
|
833
|
+
${1}
|
834
|
+
snippet va
|
835
|
+
validates_associated :${1:attribute}
|
836
|
+
snippet vao
|
837
|
+
validates_acceptance_of :${1:terms}
|
838
|
+
snippet vc
|
839
|
+
validates_confirmation_of :${1:attribute}
|
840
|
+
snippet ve
|
841
|
+
validates_exclusion_of :${1:attribute}, :in => ${2:%w( mov avi )}
|
842
|
+
snippet vf
|
843
|
+
validates_format_of :${1:attribute}, :with => /${2:regex}/
|
844
|
+
snippet vi
|
845
|
+
validates_inclusion_of :${1:attribute}, :in => %w(${2: mov avi })
|
846
|
+
snippet vl
|
847
|
+
validates_length_of :${1:attribute}, :within => ${2:3}..${3:20}
|
848
|
+
snippet vn
|
849
|
+
validates_numericality_of :${1:attribute}
|
850
|
+
snippet vpo
|
851
|
+
validates_presence_of :${1:attribute}
|
852
|
+
snippet vu
|
853
|
+
validates_uniqueness_of :${1:attribute}
|
854
|
+
snippet wants
|
855
|
+
wants.${1:js|xml|html} { ${2} }
|
856
|
+
snippet wc
|
857
|
+
where(${1:"conditions"}${2:, bind_var})
|
858
|
+
snippet wh
|
859
|
+
where(${1:field} => ${2:value})
|
860
|
+
snippet xdelete
|
861
|
+
xhr :delete, :${1:destroy}, :id => ${2:1}${3}
|
862
|
+
snippet xget
|
863
|
+
xhr :get, :${1:show}, :id => ${2:1}${3}
|
864
|
+
snippet xpost
|
865
|
+
xhr :post, :${1:create}, :${2:object} => { ${3} }
|
866
|
+
snippet xput
|
867
|
+
xhr :put, :${1:update}, :id => ${2:1}, :${3:object} => { ${4} }${5}
|
868
|
+
snippet test
|
869
|
+
test "should ${1:do something}" do
|
870
|
+
${2}
|
871
|
+
end
|
872
|
+
#migrations
|
873
|
+
snippet mac
|
874
|
+
add_column :${1:table_name}, :${2:column_name}, :${3:data_type}
|
875
|
+
snippet mrc
|
876
|
+
remove_column :${1:table_name}, :${2:column_name}
|
877
|
+
snippet mrnc
|
878
|
+
rename_column :${1:table_name}, :${2:old_column_name}, :${3:new_column_name}
|
879
|
+
snippet mcc
|
880
|
+
change_column :${1:table}, :${2:column}, :${3:type}
|
881
|
+
snippet mccc
|
882
|
+
t.column :${1:title}, :${2:string}
|
883
|
+
snippet mct
|
884
|
+
create_table :${1:table_name} do |t|
|
885
|
+
t.column :${2:name}, :${3:type}
|
886
|
+
end
|
887
|
+
snippet migration
|
888
|
+
class ${1:class_name} < ActiveRecord::Migration
|
889
|
+
def self.up
|
890
|
+
${2}
|
891
|
+
end
|
892
|
+
|
893
|
+
def self.down
|
894
|
+
end
|
895
|
+
end
|
896
|
+
|
897
|
+
snippet trc
|
898
|
+
t.remove :${1:column}
|
899
|
+
snippet tre
|
900
|
+
t.rename :${1:old_column_name}, :${2:new_column_name}
|
901
|
+
${3}
|
902
|
+
snippet tref
|
903
|
+
t.references :${1:model}
|
904
|
+
|
905
|
+
#rspec
|
906
|
+
snippet it
|
907
|
+
it "${1:spec_name}" do
|
908
|
+
${2}
|
909
|
+
end
|
910
|
+
snippet itp
|
911
|
+
it "${1:spec_name}"
|
912
|
+
${2}
|
913
|
+
snippet desc
|
914
|
+
describe ${1:class_name} do
|
915
|
+
${2}
|
916
|
+
end
|
917
|
+
snippet cont
|
918
|
+
context "${1:message}" do
|
919
|
+
${2}
|
920
|
+
end
|
921
|
+
snippet bef
|
922
|
+
before :${1:each} do
|
923
|
+
${2}
|
924
|
+
end
|
925
|
+
snippet aft
|
926
|
+
after :${1:each} do
|
927
|
+
${2}
|
928
|
+
end
|