gollum 2.4.11 → 2.4.12
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 +15 -0
- data/Gemfile +1 -1
- data/HISTORY.md +4 -0
- data/README.md +205 -110
- data/bin/gollum +6 -1
- data/gollum.gemspec +491 -516
- data/lib/gollum.rb +3 -14
- data/lib/gollum/{frontend/app.rb → app.rb} +64 -22
- data/lib/gollum/{frontend/helpers.rb → helpers.rb} +6 -6
- data/lib/gollum/{frontend/public → public}/gollum/css/_styles.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/css/dialog.css +12 -2
- data/lib/gollum/{frontend/public → public}/gollum/css/editor.css +1 -1
- data/lib/gollum/{frontend/public → public}/gollum/css/gollum.css +26 -10
- data/lib/gollum/{frontend/public → public}/gollum/css/ie7.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/css/template.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/dirty-shade.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/fileview/document.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/fileview/folder-horizontal.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/fileview/toggle-small-expand.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/fileview/toggle-small.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/icon-sprite.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/man_24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/para.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/pin-16.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/pin-20.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/pin-24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/images/pin-32.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/gollum.editor.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/asciidoc.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/creole.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/markdown.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/org.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/pod.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/rdoc.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/editor/langs/textile.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/gollum.dialog.js +4 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/gollum.js +83 -19
- data/lib/gollum/{frontend/public → public}/gollum/javascript/gollum.placeholder.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/identicon_canvas.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/jquery-1.7.2.min.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/jquery.color.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/javascript/mousetrap.min.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/css/custom.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/images/cancel_24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/images/globe_24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/images/lr_24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/images/save_24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/images/savecomment_24.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/index.html +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/ace.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/anchor.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/anchor_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/config.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/config_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/css/codefolding-fold-button-states.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/css/editor.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/css/expand-marker.png +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/document.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/document_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/edit_session.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/editor.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/editor_change_document_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/editor_navigation_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/ext/static.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/aliases.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/keyboard/vim/registers.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/layer/marker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/layer/text.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/browser_focus.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/dom.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/event.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/event_emitter_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/fixoldbrowsers.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/keys.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/lang.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/net.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/oop.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/regexp.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/package.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/test_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/text_javascript.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c9search.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c_cpp.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_clojure.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coffee.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coldfusion.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_csharp.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_css.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_diff.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_golang.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_groovy.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haxe.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_java.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_javascript.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_json.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsx.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_latex.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_less.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_liquid.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lua.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_luapage.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_markdown.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ocaml.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_perl.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pgsql.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_php.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_powershell.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scala.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scss.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sh.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sql.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_svg.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tcl.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_text.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_textile.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xml.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xquery.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_yaml.json +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/abap.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/abap_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/asciidoc.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/asciidoc_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/behaviour.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/csharp.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/css_worker_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/dart.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/dart_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/diff.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/asciidoc.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/diff.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/latex.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/lua.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/markdown.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/folding/xml_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/glsl.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/glsl_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/golang.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/groovy.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/haml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/haml_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/html.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/jade.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/jade_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/java.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript/jshint.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/json.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/json/json_parse.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/jsp.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/jsp_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/jsx.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/jsx_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/latex.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/less.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lisp.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lisp_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lua.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/luapage.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/luapage_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lucene.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/makefile.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/makefile_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/matching_parens_outdent.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/objectivec.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/objectivec_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/perl.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/php.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/powershell.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/python.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/python_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/r.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/r_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/rdoc.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/rdoc_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/rhtml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/rhtml_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/scad.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/scala.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/scss.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/sh.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/sql.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/stylus.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/stylus_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/svg.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/tcl.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/tcl_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/tex.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/tex_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/text.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/textile.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/textile_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/typescript.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/typescript_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery/JSONParseTreeHandler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery/Readme.md +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery/visitors/SyntaxHighlighter.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/model/editor.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/multi_select.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/placeholder.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/range.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/range_list.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/range_list_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/range_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/renderloop.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/scrollbar.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/search.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/search_highlight.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/search_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/selection.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/selection_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/split.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/all.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/assertions.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/asyncjs/async.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/asyncjs/index.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/asyncjs/test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/asyncjs/utils.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/benchmark.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/mockdom.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/test/tests.html +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/ambiance.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/ambiance.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/chrome.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/eclipse.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/github.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/github.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/textmate.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/xcode.css +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/theme/xcode.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/token_iterator.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/token_iterator_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/tokenizer.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/tokenizer_dev.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/undomanager.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/unicode.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/virtual_renderer_test.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/worker/mirror.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/worker/worker.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/ace/lib/ace/worker/worker_sourcemint.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/jquery.ba-throttle-debounce.min.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/livepreview.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/md_sundown.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/requirejs.min.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/js/sundown.js +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/ace/LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/bootstraponline_gollum/LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/debounce/LICENSE-MIT.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/gollum/LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/jquery/MIT-LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/licenses.txt +13 -13
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/notepages/LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/requirejs/LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/retina_display_icon_set/by_sa_3.0_unported_legalcode.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/sizzle/LICENSE.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/sundown/sundown.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/licenses/templarian_windowsicons/license.txt +0 -0
- data/lib/gollum/{frontend/public → public}/gollum/livepreview/readme.md +1 -1
- data/lib/gollum/{frontend/templates → templates}/compare.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/create.mustache +1 -1
- data/lib/gollum/{frontend/templates → templates}/edit.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/editor.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/error.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/file_view.mustache +2 -1
- data/lib/gollum/{frontend/templates → templates}/history.mustache +1 -1
- data/lib/gollum/{frontend/templates → templates}/history_authors/gravatar.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/history_authors/identicon.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/history_authors/none.mustache +0 -0
- data/lib/gollum/{frontend/templates → templates}/layout.mustache +9 -3
- data/lib/gollum/{frontend/templates → templates}/page.mustache +12 -7
- data/lib/gollum/{frontend/templates → templates}/pages.mustache +2 -2
- data/lib/gollum/{frontend/templates → templates}/search.mustache +1 -1
- data/lib/gollum/{frontend/templates → templates}/searchbar.mustache +0 -0
- data/lib/gollum/{frontend/uri_encode_component.rb → uri_encode_component.rb} +0 -0
- data/lib/gollum/{frontend/views → views}/compare.rb +0 -0
- data/lib/gollum/{frontend/views → views}/create.rb +0 -0
- data/lib/gollum/{frontend/views → views}/edit.rb +0 -0
- data/lib/gollum/{frontend/views → views}/editable.rb +2 -2
- data/lib/gollum/{frontend/views → views}/error.rb +0 -0
- data/lib/gollum/{frontend/views → views}/file_view.rb +0 -0
- data/lib/gollum/{frontend/views → views}/has_page.rb +0 -0
- data/lib/gollum/{frontend/views → views}/history.rb +1 -0
- data/lib/gollum/{frontend/views → views}/layout.rb +4 -0
- data/lib/gollum/{frontend/views → views}/page.rb +8 -3
- data/lib/gollum/{frontend/views → views}/pages.rb +0 -0
- data/lib/gollum/{frontend/views → views}/search.rb +0 -0
- data/licenses/licenses.txt +7 -7
- metadata +498 -724
- data/lib/gollum/blob_entry.rb +0 -91
- data/lib/gollum/committer.rb +0 -236
- data/lib/gollum/file.rb +0 -94
- data/lib/gollum/file_view.rb +0 -155
- data/lib/gollum/git_access.rb +0 -249
- data/lib/gollum/gitcode.rb +0 -48
- data/lib/gollum/markup.rb +0 -664
- data/lib/gollum/page.rb +0 -510
- data/lib/gollum/pagination.rb +0 -62
- data/lib/gollum/sanitization.rb +0 -176
- data/lib/gollum/web_sequence_diagram.rb +0 -44
- data/lib/gollum/wiki.rb +0 -762
data/lib/gollum/blob_entry.rb
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
# ~*~ encoding: utf-8 ~*~
|
2
|
-
module Gollum
|
3
|
-
class BlobEntry
|
4
|
-
# Gets the String SHA for this blob.
|
5
|
-
attr_reader :sha
|
6
|
-
|
7
|
-
# Gets the full path String for this blob.
|
8
|
-
attr_reader :path
|
9
|
-
|
10
|
-
# Gets the Fixnum size of this blob.
|
11
|
-
attr_reader :size
|
12
|
-
|
13
|
-
def initialize(sha, path, size = nil)
|
14
|
-
@sha = sha
|
15
|
-
@path = path
|
16
|
-
@size = size
|
17
|
-
@dir = @name = @blob = nil
|
18
|
-
end
|
19
|
-
|
20
|
-
# Gets the normalized directory path String for this blob.
|
21
|
-
def dir
|
22
|
-
@dir ||= self.class.normalize_dir(::File.dirname(@path))
|
23
|
-
end
|
24
|
-
|
25
|
-
# Gets the file base name String for this blob.
|
26
|
-
def name
|
27
|
-
@name ||= ::File.basename(@path)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Gets a Grit::Blob instance for this blob.
|
31
|
-
#
|
32
|
-
# repo - Grit::Repo instance for the Grit::Blob.
|
33
|
-
#
|
34
|
-
# Returns an unbaked Grit::Blob instance.
|
35
|
-
def blob(repo)
|
36
|
-
@blob ||= Grit::Blob.create(repo,
|
37
|
-
:id => @sha, :name => name, :size => @size)
|
38
|
-
end
|
39
|
-
|
40
|
-
# Gets a Page instance for this blob.
|
41
|
-
#
|
42
|
-
# wiki - Gollum::Wiki instance for the Gollum::Page
|
43
|
-
#
|
44
|
-
# Returns a Gollum::Page instance.
|
45
|
-
def page(wiki, commit)
|
46
|
-
blob = self.blob(wiki.repo)
|
47
|
-
page = wiki.page_class.new(wiki).populate(blob, self.dir)
|
48
|
-
page.version = commit
|
49
|
-
page
|
50
|
-
end
|
51
|
-
|
52
|
-
# Gets a File instance for this blob.
|
53
|
-
#
|
54
|
-
# wiki - Gollum::Wiki instance for the Gollum::File
|
55
|
-
#
|
56
|
-
# Returns a Gollum::File instance.
|
57
|
-
def file(wiki, commit)
|
58
|
-
blob = self.blob(wiki.repo)
|
59
|
-
file = wiki.file_class.new(wiki).populate(blob, self.dir)
|
60
|
-
file.version = commit
|
61
|
-
file
|
62
|
-
end
|
63
|
-
|
64
|
-
def inspect
|
65
|
-
%(#<Gollum::BlobEntry #{@sha} #{@path}>)
|
66
|
-
end
|
67
|
-
|
68
|
-
# Normalizes a given directory name for searching through tree paths.
|
69
|
-
# Ensures that a directory begins with a slash, or
|
70
|
-
#
|
71
|
-
# normalize_dir("") # => ""
|
72
|
-
# normalize_dir(".") # => ""
|
73
|
-
# normalize_dir("foo") # => "/foo"
|
74
|
-
# normalize_dir("/foo/") # => "/foo"
|
75
|
-
# normalize_dir("/") # => ""
|
76
|
-
# normalize_dir("c:/") # => ""
|
77
|
-
#
|
78
|
-
# dir - String directory name.
|
79
|
-
#
|
80
|
-
# Returns a normalized String directory name, or nil if no directory
|
81
|
-
# is given.
|
82
|
-
def self.normalize_dir(dir)
|
83
|
-
return '' if dir =~ /^.:\/$/
|
84
|
-
if dir
|
85
|
-
dir = ::File.expand_path(dir, '/')
|
86
|
-
dir = '' if dir == '/'
|
87
|
-
end
|
88
|
-
dir
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
data/lib/gollum/committer.rb
DELETED
@@ -1,236 +0,0 @@
|
|
1
|
-
# ~*~ encoding: utf-8 ~*~
|
2
|
-
module Gollum
|
3
|
-
# Responsible for handling the commit process for a Wiki. It sets up the
|
4
|
-
# Git index, provides methods for modifying the tree, and stores callbacks
|
5
|
-
# to be fired after the commit has been made. This is specifically
|
6
|
-
# designed to handle multiple updated pages in a single commit.
|
7
|
-
class Committer
|
8
|
-
# Gets the instance of the Gollum::Wiki that is being updated.
|
9
|
-
attr_reader :wiki
|
10
|
-
|
11
|
-
# Gets a Hash of commit options.
|
12
|
-
attr_reader :options
|
13
|
-
|
14
|
-
# Initializes the Committer.
|
15
|
-
#
|
16
|
-
# wiki - The Gollum::Wiki instance that is being updated.
|
17
|
-
# options - The commit Hash details:
|
18
|
-
# :message - The String commit message.
|
19
|
-
# :name - The String author full name.
|
20
|
-
# :email - The String email address.
|
21
|
-
# :parent - Optional Grit::Commit parent to this update.
|
22
|
-
# :tree - Optional String SHA of the tree to create the
|
23
|
-
# index from.
|
24
|
-
# :committer - Optional Gollum::Committer instance. If provided,
|
25
|
-
# assume that this operation is part of batch of
|
26
|
-
# updates and the commit happens later.
|
27
|
-
#
|
28
|
-
# Returns the Committer instance.
|
29
|
-
def initialize(wiki, options = {})
|
30
|
-
@wiki = wiki
|
31
|
-
@options = options
|
32
|
-
@callbacks = []
|
33
|
-
end
|
34
|
-
|
35
|
-
# Public: References the Git index for this commit.
|
36
|
-
#
|
37
|
-
# Returns a Grit::Index.
|
38
|
-
def index
|
39
|
-
@index ||= begin
|
40
|
-
idx = @wiki.repo.index
|
41
|
-
if tree = options[:tree]
|
42
|
-
idx.read_tree(tree)
|
43
|
-
elsif parent = parents.first
|
44
|
-
idx.read_tree(parent.tree.id)
|
45
|
-
end
|
46
|
-
idx
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
# Public: The committer for this commit.
|
51
|
-
#
|
52
|
-
# Returns a Grit::Actor.
|
53
|
-
def actor
|
54
|
-
@actor ||= begin
|
55
|
-
@options[:name] = @wiki.default_committer_name if @options[:name].to_s.empty?
|
56
|
-
@options[:email] = @wiki.default_committer_email if @options[:email].to_s.empty?
|
57
|
-
Grit::Actor.new(@options[:name], @options[:email])
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# Public: The parent commits to this pending commit.
|
62
|
-
#
|
63
|
-
# Returns an array of Grit::Commit instances.
|
64
|
-
def parents
|
65
|
-
@parents ||= begin
|
66
|
-
arr = [@options[:parent] || @wiki.repo.commit(@wiki.ref)]
|
67
|
-
arr.flatten!
|
68
|
-
arr.compact!
|
69
|
-
arr
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
# Adds a page to the given Index.
|
74
|
-
#
|
75
|
-
# dir - The String subdirectory of the Gollum::Page without any
|
76
|
-
# prefix or suffix slashes (e.g. "foo/bar").
|
77
|
-
# name - The String Gollum::Page filename_stripped.
|
78
|
-
# format - The Symbol Gollum::Page format.
|
79
|
-
# data - The String wiki data to store in the tree map.
|
80
|
-
# allow_same_ext - A Boolean determining if the tree map allows the same
|
81
|
-
# filename with the same extension.
|
82
|
-
#
|
83
|
-
# Raises Gollum::DuplicatePageError if a matching filename already exists.
|
84
|
-
# This way, pages are not inadvertently overwritten.
|
85
|
-
#
|
86
|
-
# Returns nothing (modifies the Index in place).
|
87
|
-
def add_to_index(dir, name, format, data, allow_same_ext = false)
|
88
|
-
# spaces must be dashes
|
89
|
-
dir.gsub!(' ', '-')
|
90
|
-
name.gsub!(' ', '-')
|
91
|
-
|
92
|
-
path = @wiki.page_file_name(name, format)
|
93
|
-
|
94
|
-
dir = '/' if dir.strip.empty?
|
95
|
-
|
96
|
-
fullpath = ::File.join(*[@wiki.page_file_dir, dir, path].compact)
|
97
|
-
fullpath = fullpath[1..-1] if fullpath =~ /^\//
|
98
|
-
|
99
|
-
if index.current_tree && tree = index.current_tree / (@wiki.page_file_dir || '/')
|
100
|
-
tree = tree / dir unless tree.nil?
|
101
|
-
end
|
102
|
-
|
103
|
-
if tree
|
104
|
-
downpath = path.downcase.sub(/\.\w+$/, '')
|
105
|
-
|
106
|
-
tree.blobs.each do |blob|
|
107
|
-
next if page_path_scheduled_for_deletion?(index.tree, fullpath)
|
108
|
-
|
109
|
-
existing_file = blob.name.downcase.sub(/\.\w+$/, '')
|
110
|
-
existing_file_ext = ::File.extname(blob.name).sub(/^\./, '')
|
111
|
-
|
112
|
-
new_file_ext = ::File.extname(path).sub(/^\./, '')
|
113
|
-
|
114
|
-
if downpath == existing_file && !(allow_same_ext && new_file_ext == existing_file_ext)
|
115
|
-
raise DuplicatePageError.new(dir, blob.name, path)
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
fullpath = fullpath.force_encoding('ascii-8bit') if fullpath.respond_to?(:force_encoding)
|
121
|
-
|
122
|
-
index.add(fullpath, @wiki.normalize(data))
|
123
|
-
end
|
124
|
-
|
125
|
-
# Update the given file in the repository's working directory if there
|
126
|
-
# is a working directory present.
|
127
|
-
#
|
128
|
-
# dir - The String directory in which the file lives.
|
129
|
-
# name - The String name of the page or the stripped filename
|
130
|
-
# (should be pre-canonicalized if required).
|
131
|
-
# format - The Symbol format of the page.
|
132
|
-
#
|
133
|
-
# Returns nothing.
|
134
|
-
def update_working_dir(dir, name, format)
|
135
|
-
unless @wiki.repo.bare
|
136
|
-
if @wiki.page_file_dir
|
137
|
-
dir = dir.size.zero? ? @wiki.page_file_dir : ::File.join(dir, @wiki.page_file_dir)
|
138
|
-
end
|
139
|
-
|
140
|
-
path =
|
141
|
-
if dir == ''
|
142
|
-
@wiki.page_file_name(name, format)
|
143
|
-
else
|
144
|
-
::File.join(dir, @wiki.page_file_name(name, format))
|
145
|
-
end
|
146
|
-
|
147
|
-
path = path.force_encoding('ascii-8bit') if path.respond_to?(:force_encoding)
|
148
|
-
|
149
|
-
Dir.chdir(::File.join(@wiki.repo.path, '..')) do
|
150
|
-
if file_path_scheduled_for_deletion?(index.tree, path)
|
151
|
-
@wiki.repo.git.rm({'f' => true}, '--', path)
|
152
|
-
else
|
153
|
-
@wiki.repo.git.checkout({}, 'HEAD', '--', path)
|
154
|
-
end
|
155
|
-
end
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
# Writes the commit to Git and runs the after_commit callbacks.
|
160
|
-
#
|
161
|
-
# Returns the String SHA1 of the new commit.
|
162
|
-
def commit
|
163
|
-
sha1 = index.commit(@options[:message], parents, actor, nil, @wiki.ref)
|
164
|
-
@callbacks.each do |cb|
|
165
|
-
cb.call(self, sha1)
|
166
|
-
end
|
167
|
-
sha1
|
168
|
-
end
|
169
|
-
|
170
|
-
# Adds a callback to be fired after a commit.
|
171
|
-
#
|
172
|
-
# block - A block that expects this Committer instance and the created
|
173
|
-
# commit's SHA1 as the arguments.
|
174
|
-
#
|
175
|
-
# Returns nothing.
|
176
|
-
def after_commit(&block)
|
177
|
-
@callbacks << block
|
178
|
-
end
|
179
|
-
|
180
|
-
# Determine if a given page (regardless of format) is scheduled to be
|
181
|
-
# deleted in the next commit for the given Index.
|
182
|
-
#
|
183
|
-
# map - The Hash map:
|
184
|
-
# key - The String directory or filename.
|
185
|
-
# val - The Hash submap or the String contents of the file.
|
186
|
-
# path - The String path of the page file. This may include the format
|
187
|
-
# extension in which case it will be ignored.
|
188
|
-
#
|
189
|
-
# Returns the Boolean response.
|
190
|
-
def page_path_scheduled_for_deletion?(map, path)
|
191
|
-
parts = path.split('/')
|
192
|
-
if parts.size == 1
|
193
|
-
deletions = map.keys.select { |k| !map[k] }
|
194
|
-
downfile = parts.first.downcase.sub(/\.\w+$/, '')
|
195
|
-
deletions.any? { |d| d.downcase.sub(/\.\w+$/, '') == downfile }
|
196
|
-
else
|
197
|
-
part = parts.shift
|
198
|
-
if rest = map[part]
|
199
|
-
page_path_scheduled_for_deletion?(rest, parts.join('/'))
|
200
|
-
else
|
201
|
-
false
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
# Determine if a given file is scheduled to be deleted in the next commit
|
207
|
-
# for the given Index.
|
208
|
-
#
|
209
|
-
# map - The Hash map:
|
210
|
-
# key - The String directory or filename.
|
211
|
-
# val - The Hash submap or the String contents of the file.
|
212
|
-
# path - The String path of the file including extension.
|
213
|
-
#
|
214
|
-
# Returns the Boolean response.
|
215
|
-
def file_path_scheduled_for_deletion?(map, path)
|
216
|
-
parts = path.split('/')
|
217
|
-
if parts.size == 1
|
218
|
-
deletions = map.keys.select { |k| !map[k] }
|
219
|
-
deletions.any? { |d| d == parts.first }
|
220
|
-
else
|
221
|
-
part = parts.shift
|
222
|
-
if rest = map[part]
|
223
|
-
file_path_scheduled_for_deletion?(rest, parts.join('/'))
|
224
|
-
else
|
225
|
-
false
|
226
|
-
end
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
|
-
# Proxies methods t
|
231
|
-
def method_missing(name, *args)
|
232
|
-
args.map! { |item| item.respond_to?(:force_encoding) ? item.force_encoding('ascii-8bit') : item }
|
233
|
-
index.send(name, *args)
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|
data/lib/gollum/file.rb
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
# ~*~ encoding: utf-8 ~*~
|
2
|
-
module Gollum
|
3
|
-
class File
|
4
|
-
Wiki.file_class = self
|
5
|
-
|
6
|
-
# Public: Initialize a file.
|
7
|
-
#
|
8
|
-
# wiki - The Gollum::Wiki in question.
|
9
|
-
#
|
10
|
-
# Returns a newly initialized Gollum::File.
|
11
|
-
def initialize(wiki)
|
12
|
-
@wiki = wiki
|
13
|
-
@blob = nil
|
14
|
-
@path = nil
|
15
|
-
end
|
16
|
-
|
17
|
-
# Public: The url path required to reach this page within the repo.
|
18
|
-
#
|
19
|
-
# Returns the String url_path
|
20
|
-
def url_path
|
21
|
-
path = self.path
|
22
|
-
path = path.sub(/\/[^\/]+$/, '/') if path.include?('/')
|
23
|
-
path
|
24
|
-
end
|
25
|
-
|
26
|
-
# Public: The url_path, but CGI escaped.
|
27
|
-
#
|
28
|
-
# Returns the String url_path
|
29
|
-
def escaped_url_path
|
30
|
-
CGI.escape(self.url_path).gsub('%2F','/')
|
31
|
-
end
|
32
|
-
|
33
|
-
# Public: The on-disk filename of the file.
|
34
|
-
#
|
35
|
-
# Returns the String name.
|
36
|
-
def name
|
37
|
-
@blob && @blob.name
|
38
|
-
end
|
39
|
-
alias filename name
|
40
|
-
|
41
|
-
# Public: The raw contents of the page.
|
42
|
-
#
|
43
|
-
# Returns the String data.
|
44
|
-
def raw_data
|
45
|
-
@blob && @blob.data
|
46
|
-
end
|
47
|
-
|
48
|
-
# Public: The Grit::Commit version of the file.
|
49
|
-
attr_accessor :version
|
50
|
-
|
51
|
-
# Public: The String path of the file.
|
52
|
-
attr_reader :path
|
53
|
-
|
54
|
-
# Public: The String mime type of the file.
|
55
|
-
def mime_type
|
56
|
-
@blob.mime_type
|
57
|
-
end
|
58
|
-
|
59
|
-
# Populate the File with information from the Blob.
|
60
|
-
#
|
61
|
-
# blob - The Grit::Blob that contains the info.
|
62
|
-
# path - The String directory path of the file.
|
63
|
-
#
|
64
|
-
# Returns the populated Gollum::File.
|
65
|
-
def populate(blob, path=nil)
|
66
|
-
@blob = blob
|
67
|
-
@path = "#{path}/#{blob.name}"[1..-1]
|
68
|
-
self
|
69
|
-
end
|
70
|
-
|
71
|
-
#########################################################################
|
72
|
-
#
|
73
|
-
# Internal Methods
|
74
|
-
#
|
75
|
-
#########################################################################
|
76
|
-
|
77
|
-
# Find a file in the given Gollum repo.
|
78
|
-
#
|
79
|
-
# name - The full String path.
|
80
|
-
# version - The String version ID to find.
|
81
|
-
#
|
82
|
-
# Returns a Gollum::File or nil if the file could not be found.
|
83
|
-
def find(name, version)
|
84
|
-
checked = name.downcase
|
85
|
-
map = @wiki.tree_map_for(version)
|
86
|
-
if entry = map.detect { |entry| entry.path.downcase == checked }
|
87
|
-
@path = name
|
88
|
-
@blob = entry.blob(@wiki.repo)
|
89
|
-
@version = version.is_a?(Grit::Commit) ? version : @wiki.commit_for(version)
|
90
|
-
self
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
data/lib/gollum/file_view.rb
DELETED
@@ -1,155 +0,0 @@
|
|
1
|
-
# ~*~ encoding: utf-8 ~*~
|
2
|
-
module Gollum
|
3
|
-
=begin
|
4
|
-
FileView requires that:
|
5
|
-
- All files in root dir are processed first
|
6
|
-
- Then all the folders are sorted and processed
|
7
|
-
=end
|
8
|
-
class FileView
|
9
|
-
# common use cases:
|
10
|
-
# set pages to wiki.pages and show_all to false
|
11
|
-
# set pages to wiki.pages + wiki.files and show_all to true
|
12
|
-
def initialize pages, options = {}
|
13
|
-
@pages = pages
|
14
|
-
@show_all = options[:show_all] || false
|
15
|
-
@checked = options[:collapse_tree] ? '' : "checked"
|
16
|
-
end
|
17
|
-
|
18
|
-
def enclose_tree string
|
19
|
-
%Q(<ol class="tree">\n) + string + %Q(</ol>)
|
20
|
-
end
|
21
|
-
|
22
|
-
def new_page page
|
23
|
-
name = page.name
|
24
|
-
url = url_for_page page
|
25
|
-
%Q( <li class="file"><a href="#{url}"><span class="icon"></span>#{name}</a></li>)
|
26
|
-
end
|
27
|
-
|
28
|
-
def new_folder folder_path
|
29
|
-
new_sub_folder folder_path
|
30
|
-
end
|
31
|
-
|
32
|
-
def new_sub_folder path
|
33
|
-
<<-HTML
|
34
|
-
<li>
|
35
|
-
<label>#{path}</label> <input type="checkbox" #{@checked} />
|
36
|
-
<ol>
|
37
|
-
HTML
|
38
|
-
end
|
39
|
-
|
40
|
-
def end_folder
|
41
|
-
"</ol></li>\n"
|
42
|
-
end
|
43
|
-
|
44
|
-
def url_for_page page
|
45
|
-
url = ''
|
46
|
-
if @show_all
|
47
|
-
# Remove ext for valid pages.
|
48
|
-
filename = page.filename
|
49
|
-
filename = Page::valid_page_name?(filename) ? filename.chomp(::File.extname(filename)) : filename
|
50
|
-
|
51
|
-
url = ::File.join(::File.dirname(page.path), filename)
|
52
|
-
else
|
53
|
-
url = ::File.join(::File.dirname(page.path), page.filename_stripped)
|
54
|
-
end
|
55
|
-
url = url[2..-1] if url[0,2] == './'
|
56
|
-
url
|
57
|
-
end
|
58
|
-
|
59
|
-
def render_files
|
60
|
-
html = ''
|
61
|
-
count = @pages.size
|
62
|
-
folder_start = -1
|
63
|
-
|
64
|
-
# Process all pages until folders start
|
65
|
-
count.times do | index |
|
66
|
-
page = @pages[ index ]
|
67
|
-
path = page.path
|
68
|
-
|
69
|
-
unless path.include? '/'
|
70
|
-
# Page processed (not contained in a folder)
|
71
|
-
html += new_page page
|
72
|
-
else
|
73
|
-
# Folders start at the next index
|
74
|
-
folder_start = index
|
75
|
-
break # Pages finished, move on to folders
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
# If there are no folders, then we're done.
|
80
|
-
return enclose_tree(html) if folder_start <= -1
|
81
|
-
|
82
|
-
# Handle special case of only one folder.
|
83
|
-
if (count - folder_start == 1)
|
84
|
-
page = @pages[ folder_start ]
|
85
|
-
html += <<-HTML
|
86
|
-
<li>
|
87
|
-
<label>#{::File.dirname(page.path)}</label> <input type="checkbox" #{@checked} />
|
88
|
-
<ol>
|
89
|
-
#{new_page page}
|
90
|
-
</ol>
|
91
|
-
</li>
|
92
|
-
HTML
|
93
|
-
|
94
|
-
return enclose_tree html
|
95
|
-
end
|
96
|
-
|
97
|
-
sorted_folders = []
|
98
|
-
(folder_start).upto count - 1 do | index |
|
99
|
-
sorted_folders += [[ @pages[ index ].path, index ]]
|
100
|
-
end
|
101
|
-
|
102
|
-
# http://stackoverflow.com/questions/3482814/sorting-list-of-string-paths-in-vb-net
|
103
|
-
sorted_folders.sort! do |first,second|
|
104
|
-
a = first[0]
|
105
|
-
b = second[0]
|
106
|
-
|
107
|
-
# use :: operator because gollum defines its own conflicting File class
|
108
|
-
dir_compare = ::File.dirname(a) <=> ::File.dirname(b)
|
109
|
-
|
110
|
-
# Sort based on directory name unless they're equal (0) in
|
111
|
-
# which case sort based on file name.
|
112
|
-
if dir_compare == 0
|
113
|
-
::File.basename(a) <=> ::File.basename(b)
|
114
|
-
else
|
115
|
-
dir_compare
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
# keep track of folder depth, 0 = at root.
|
120
|
-
cwd_array = []
|
121
|
-
changed = false
|
122
|
-
|
123
|
-
# process rest of folders
|
124
|
-
(0...sorted_folders.size).each do | index |
|
125
|
-
page = @pages[ sorted_folders[ index ][ 1 ] ]
|
126
|
-
path = page.path
|
127
|
-
folder = ::File.dirname path
|
128
|
-
|
129
|
-
tmp_array = folder.split '/'
|
130
|
-
|
131
|
-
(0...tmp_array.size).each do | index |
|
132
|
-
if cwd_array[ index ].nil? || changed
|
133
|
-
html += new_sub_folder tmp_array[ index ]
|
134
|
-
next
|
135
|
-
end
|
136
|
-
|
137
|
-
if cwd_array[ index ] != tmp_array[ index ]
|
138
|
-
changed = true
|
139
|
-
(cwd_array.size - index).times do
|
140
|
-
html += end_folder
|
141
|
-
end
|
142
|
-
html += new_sub_folder tmp_array[ index ]
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
html += new_page page
|
147
|
-
cwd_array = tmp_array
|
148
|
-
changed = false
|
149
|
-
end
|
150
|
-
|
151
|
-
# return the completed html
|
152
|
-
enclose_tree html
|
153
|
-
end # end render_files
|
154
|
-
end # end FileView class
|
155
|
-
end # end Gollum module
|