milksteak 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -14
- data/.rspec +2 -0
- data/Gemfile +1 -1
- data/Guardfile +8 -0
- data/Rakefile +0 -1
- data/Readme.md +37 -0
- data/lib/helpers.rb +0 -0
- data/lib/milksteak/cms.rb +17 -0
- data/lib/milksteak/version.rb +1 -1
- data/lib/milksteak.rb +52 -1
- data/lib/models/page.rb +73 -0
- data/lib/models/user.rb +5 -0
- data/lib/public/milksteak/codemirror2/keymap/emacs.js +29 -0
- data/lib/public/milksteak/codemirror2/keymap/vim.js +347 -0
- data/lib/public/milksteak/codemirror2/lib/codemirror.css +110 -0
- data/lib/public/milksteak/codemirror2/lib/codemirror.js +2887 -0
- data/lib/public/milksteak/codemirror2/lib/util/dialog.css +23 -0
- data/lib/public/milksteak/codemirror2/lib/util/dialog.js +63 -0
- data/lib/public/milksteak/codemirror2/lib/util/foldcode.js +186 -0
- data/lib/public/milksteak/codemirror2/lib/util/formatting.js +294 -0
- data/lib/public/milksteak/codemirror2/lib/util/javascript-hint.js +132 -0
- data/lib/public/milksteak/codemirror2/lib/util/match-highlighter.js +44 -0
- data/lib/public/milksteak/codemirror2/lib/util/overlay.js +51 -0
- data/lib/public/milksteak/codemirror2/lib/util/runmode.js +49 -0
- data/lib/public/milksteak/codemirror2/lib/util/search.js +114 -0
- data/lib/public/milksteak/codemirror2/lib/util/searchcursor.js +117 -0
- data/lib/public/milksteak/codemirror2/lib/util/simple-hint.css +16 -0
- data/lib/public/milksteak/codemirror2/lib/util/simple-hint.js +66 -0
- data/lib/public/milksteak/codemirror2/mode/clike/clike.js +234 -0
- data/lib/public/milksteak/codemirror2/mode/clike/index.html +101 -0
- data/lib/public/milksteak/codemirror2/mode/clojure/clojure.js +207 -0
- data/lib/public/milksteak/codemirror2/mode/clojure/index.html +66 -0
- data/lib/public/milksteak/codemirror2/mode/coffeescript/LICENSE +22 -0
- data/lib/public/milksteak/codemirror2/mode/coffeescript/coffeescript.js +341 -0
- data/lib/public/milksteak/codemirror2/mode/coffeescript/index.html +721 -0
- data/lib/public/milksteak/codemirror2/mode/css/css.js +124 -0
- data/lib/public/milksteak/codemirror2/mode/css/index.html +55 -0
- data/lib/public/milksteak/codemirror2/mode/diff/diff.css +3 -0
- data/lib/public/milksteak/codemirror2/mode/diff/diff.js +13 -0
- data/lib/public/milksteak/codemirror2/mode/diff/index.html +99 -0
- data/lib/public/milksteak/codemirror2/mode/ecl/ecl.js +203 -0
- data/lib/public/milksteak/codemirror2/mode/ecl/index.html +42 -0
- data/lib/public/milksteak/codemirror2/mode/gfm/gfm.js +108 -0
- data/lib/public/milksteak/codemirror2/mode/gfm/index.html +47 -0
- data/lib/public/milksteak/codemirror2/mode/go/go.js +170 -0
- data/lib/public/milksteak/codemirror2/mode/go/index.html +72 -0
- data/lib/public/milksteak/codemirror2/mode/groovy/groovy.js +210 -0
- data/lib/public/milksteak/codemirror2/mode/groovy/index.html +71 -0
- data/lib/public/milksteak/codemirror2/mode/haskell/haskell.js +242 -0
- data/lib/public/milksteak/codemirror2/mode/haskell/index.html +60 -0
- data/lib/public/milksteak/codemirror2/mode/htmlembedded/htmlembedded.js +68 -0
- data/lib/public/milksteak/codemirror2/mode/htmlembedded/index.html +49 -0
- data/lib/public/milksteak/codemirror2/mode/htmlmixed/htmlmixed.js +83 -0
- data/lib/public/milksteak/codemirror2/mode/htmlmixed/index.html +51 -0
- data/lib/public/milksteak/codemirror2/mode/javascript/index.html +77 -0
- data/lib/public/milksteak/codemirror2/mode/javascript/javascript.js +360 -0
- data/lib/public/milksteak/codemirror2/mode/jinja2/index.html +37 -0
- data/lib/public/milksteak/codemirror2/mode/jinja2/jinja2.js +42 -0
- data/lib/public/milksteak/codemirror2/mode/less/index.html +577 -0
- data/lib/public/milksteak/codemirror2/mode/less/less.js +186 -0
- data/lib/public/milksteak/codemirror2/mode/lua/index.html +72 -0
- data/lib/public/milksteak/codemirror2/mode/lua/lua.js +140 -0
- data/lib/public/milksteak/codemirror2/mode/markdown/index.html +339 -0
- data/lib/public/milksteak/codemirror2/mode/markdown/markdown.js +276 -0
- data/lib/public/milksteak/codemirror2/mode/mysql/index.html +41 -0
- data/lib/public/milksteak/codemirror2/mode/mysql/mysql.js +188 -0
- data/lib/public/milksteak/codemirror2/mode/ntriples/index.html +32 -0
- data/lib/public/milksteak/codemirror2/mode/ntriples/ntriples.js +172 -0
- data/lib/public/milksteak/codemirror2/mode/pascal/LICENSE +7 -0
- data/lib/public/milksteak/codemirror2/mode/pascal/index.html +48 -0
- data/lib/public/milksteak/codemirror2/mode/pascal/pascal.js +94 -0
- data/lib/public/milksteak/codemirror2/mode/perl/LICENSE +19 -0
- data/lib/public/milksteak/codemirror2/mode/perl/index.html +62 -0
- data/lib/public/milksteak/codemirror2/mode/perl/perl.js +816 -0
- data/lib/public/milksteak/codemirror2/mode/php/index.html +48 -0
- data/lib/public/milksteak/codemirror2/mode/php/php.js +150 -0
- data/lib/public/milksteak/codemirror2/mode/plsql/index.html +62 -0
- data/lib/public/milksteak/codemirror2/mode/plsql/plsql.js +217 -0
- data/lib/public/milksteak/codemirror2/mode/properties/index.html +40 -0
- data/lib/public/milksteak/codemirror2/mode/properties/properties.css +3 -0
- data/lib/public/milksteak/codemirror2/mode/properties/properties.js +57 -0
- data/lib/public/milksteak/codemirror2/mode/python/LICENSE.txt +21 -0
- data/lib/public/milksteak/codemirror2/mode/python/index.html +122 -0
- data/lib/public/milksteak/codemirror2/mode/python/python.js +340 -0
- data/lib/public/milksteak/codemirror2/mode/r/LICENSE +24 -0
- data/lib/public/milksteak/codemirror2/mode/r/index.html +73 -0
- data/lib/public/milksteak/codemirror2/mode/r/r.js +141 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/changes/changes.js +19 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/changes/index.html +53 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/spec/index.html +99 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/spec/spec.css +5 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/spec/spec.js +66 -0
- data/lib/public/milksteak/codemirror2/mode/rst/index.html +525 -0
- data/lib/public/milksteak/codemirror2/mode/rst/rst.js +326 -0
- data/lib/public/milksteak/codemirror2/mode/ruby/LICENSE +24 -0
- data/lib/public/milksteak/codemirror2/mode/ruby/index.html +171 -0
- data/lib/public/milksteak/codemirror2/mode/ruby/ruby.js +200 -0
- data/lib/public/milksteak/codemirror2/mode/rust/index.html +48 -0
- data/lib/public/milksteak/codemirror2/mode/rust/rust.js +432 -0
- data/lib/public/milksteak/codemirror2/mode/scheme/index.html +64 -0
- data/lib/public/milksteak/codemirror2/mode/scheme/scheme.js +202 -0
- data/lib/public/milksteak/codemirror2/mode/smalltalk/index.html +55 -0
- data/lib/public/milksteak/codemirror2/mode/smalltalk/smalltalk.js +139 -0
- data/lib/public/milksteak/codemirror2/mode/sparql/index.html +40 -0
- data/lib/public/milksteak/codemirror2/mode/sparql/sparql.js +143 -0
- data/lib/public/milksteak/codemirror2/mode/stex/index.html +95 -0
- data/lib/public/milksteak/codemirror2/mode/stex/stex.js +167 -0
- data/lib/public/milksteak/codemirror2/mode/tiddlywiki/index.html +183 -0
- data/lib/public/milksteak/codemirror2/mode/tiddlywiki/tiddlywiki.css +21 -0
- data/lib/public/milksteak/codemirror2/mode/tiddlywiki/tiddlywiki.js +374 -0
- data/lib/public/milksteak/codemirror2/mode/velocity/index.html +103 -0
- data/lib/public/milksteak/codemirror2/mode/velocity/velocity.js +146 -0
- data/lib/public/milksteak/codemirror2/mode/verilog/index.html +210 -0
- data/lib/public/milksteak/codemirror2/mode/verilog/verilog.js +194 -0
- data/lib/public/milksteak/codemirror2/mode/xml/index.html +45 -0
- data/lib/public/milksteak/codemirror2/mode/xml/xml.js +267 -0
- data/lib/public/milksteak/codemirror2/mode/xmlpure/index.html +59 -0
- data/lib/public/milksteak/codemirror2/mode/xmlpure/xmlpure.js +490 -0
- data/lib/public/milksteak/codemirror2/mode/yaml/index.html +67 -0
- data/lib/public/milksteak/codemirror2/mode/yaml/yaml.js +95 -0
- data/lib/public/milksteak/codemirror2/theme/cobalt.css +18 -0
- data/lib/public/milksteak/codemirror2/theme/eclipse.css +25 -0
- data/lib/public/milksteak/codemirror2/theme/elegant.css +10 -0
- data/lib/public/milksteak/codemirror2/theme/monokai.css +28 -0
- data/lib/public/milksteak/codemirror2/theme/neat.css +9 -0
- data/lib/public/milksteak/codemirror2/theme/night.css +21 -0
- data/lib/public/milksteak/codemirror2/theme/rubyblue.css +21 -0
- data/lib/public/milksteak/css/bootstrap-responsive.css +567 -0
- data/lib/public/milksteak/css/bootstrap-responsive.min.css +3 -0
- data/lib/public/milksteak/css/bootstrap.css +3365 -0
- data/lib/public/milksteak/css/bootstrap.min.css +610 -0
- data/lib/public/milksteak/css/calendrical.css +69 -0
- data/lib/public/milksteak/css/prettify.css +52 -0
- data/lib/public/milksteak/css/style.css +8 -0
- data/lib/public/milksteak/img/glyphicons-halflings-white.png +0 -0
- data/lib/public/milksteak/img/glyphicons-halflings.png +0 -0
- data/lib/public/milksteak/img/spinner.gif +0 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.asp +44 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.aspx +31 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.cf +19 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.jsp +49 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.php +43 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.pl +102 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.py +25 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.rb +61 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree_huck.lasso +36 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree_sabourdin.lasso +48 -0
- data/lib/public/milksteak/jqueryFileTree/images/application.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/code.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/css.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/db.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/directory.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/doc.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/file.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/film.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/flash.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/folder_open.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/html.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/java.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/linux.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/music.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/pdf.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/php.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/picture.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/ppt.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/psd.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/ruby.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/script.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/spinner.gif +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/txt.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/xls.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/zip.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/jqueryFileTree.css +91 -0
- data/lib/public/milksteak/jqueryFileTree/jqueryFileTree.js +95 -0
- data/lib/public/milksteak/js/app.js +0 -0
- data/lib/public/milksteak/js/backbone.js +1290 -0
- data/lib/public/milksteak/js/bootstrap-alert.js +91 -0
- data/lib/public/milksteak/js/bootstrap-button.js +98 -0
- data/lib/public/milksteak/js/bootstrap-carousel.js +154 -0
- data/lib/public/milksteak/js/bootstrap-collapse.js +136 -0
- data/lib/public/milksteak/js/bootstrap-dropdown.js +92 -0
- data/lib/public/milksteak/js/bootstrap-modal.js +209 -0
- data/lib/public/milksteak/js/bootstrap-popover.js +95 -0
- data/lib/public/milksteak/js/bootstrap-scrollspy.js +125 -0
- data/lib/public/milksteak/js/bootstrap-tab.js +130 -0
- data/lib/public/milksteak/js/bootstrap-tooltip.js +270 -0
- data/lib/public/milksteak/js/bootstrap-transition.js +51 -0
- data/lib/public/milksteak/js/bootstrap-typeahead.js +271 -0
- data/lib/public/milksteak/js/bootstrap.js +1722 -0
- data/lib/public/milksteak/js/bootstrap.min.js +1 -0
- data/lib/public/milksteak/js/jquery-ui.min.js +15 -0
- data/lib/public/milksteak/js/jquery.calendrical.js +490 -0
- data/lib/public/milksteak/js/jquery.easing.js +146 -0
- data/lib/public/milksteak/js/jquery.js +9252 -0
- data/lib/public/milksteak/js/mustache.js +536 -0
- data/lib/public/milksteak/js/prettify.js +28 -0
- data/lib/public/milksteak/js/underscore.js +999 -0
- data/lib/public/milksteak/markitup/.DS_Store +0 -0
- data/lib/public/milksteak/markitup/jquery.markitup.js +593 -0
- data/lib/public/milksteak/markitup/sets/default/images/bold.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/clean.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/image.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/italic.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/link.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/list-bullet.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/list-numeric.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/picture.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/preview.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/stroke.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/set.js +30 -0
- data/lib/public/milksteak/markitup/sets/default/style.css +34 -0
- data/lib/public/milksteak/markitup/sets/textile/images/bold.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/code.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h1.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h2.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h3.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h4.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h5.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h6.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/italic.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/link.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/list-bullet.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/list-numeric.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/paragraph.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/picture.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/preview.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/quotes.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/stroke.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/set.js +33 -0
- data/lib/public/milksteak/markitup/sets/textile/style.css +60 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-container.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-html.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-json.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/handle.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/menu.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/submenu.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/style.css +147 -0
- data/lib/public/milksteak/markitup/skins/simple/images/handle.png +0 -0
- data/lib/public/milksteak/markitup/skins/simple/images/menu.png +0 -0
- data/lib/public/milksteak/markitup/skins/simple/images/submenu.png +0 -0
- data/lib/public/milksteak/markitup/skins/simple/style.css +118 -0
- data/lib/public/milksteak/markitup/templates/preview.css +5 -0
- data/lib/public/milksteak/markitup/templates/preview.html +11 -0
- data/lib/public/milksteak/uploadify-v2.1.4/cancel.png +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/check.php +35 -0
- data/lib/public/milksteak/uploadify-v2.1.4/expressInstall.swf +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/jquery-1.4.2.min.js +154 -0
- data/lib/public/milksteak/uploadify-v2.1.4/jquery.uploadify.v2.1.4.js +296 -0
- data/lib/public/milksteak/uploadify-v2.1.4/jquery.uploadify.v2.1.4.min.js +26 -0
- data/lib/public/milksteak/uploadify-v2.1.4/swfobject.js +4 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.allglyphs.swf +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.css +53 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.fla +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.php +46 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.swf +0 -0
- data/lib/public/milksteak/wmd/Markdown.Converter.js +1332 -0
- data/lib/public/milksteak/wmd/Markdown.Editor.js +2160 -0
- data/lib/public/milksteak/wmd/Markdown.Sanitizer.js +108 -0
- data/lib/public/milksteak/wmd/wmd-buttons.png +0 -0
- data/lib/public/milksteak/wmd/wmd.css +103 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-p.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/wymiframe.css +90 -0
- data/lib/public/milksteak/wymeditor/iframe/default/wymiframe.html +26 -0
- data/lib/public/milksteak/wymeditor/jquery.wymeditor.js +4688 -0
- data/lib/public/milksteak/wymeditor/jquery.wymeditor.min.js +1 -0
- data/lib/public/milksteak/wymeditor/jquery.wymeditor.pack.js +1 -0
- data/lib/public/milksteak/wymeditor/lang/bg.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/ca.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/cs.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/cy.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/de.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/en.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/es.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/fa.js +46 -0
- data/lib/public/milksteak/wymeditor/lang/fi.js +44 -0
- data/lib/public/milksteak/wymeditor/lang/fr.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/gl.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/he.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/hr.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/hu.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/it.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/nb.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/nl.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/nn.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/pl.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/pt-br.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/pt.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/ru.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/sv.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/tr.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/zh_cn.js +47 -0
- data/lib/public/milksteak/wymeditor/plugins/embed/jquery.wymeditor.embed.js +52 -0
- data/lib/public/milksteak/wymeditor/plugins/fullscreen/icon_fullscreen.gif +0 -0
- data/lib/public/milksteak/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js +127 -0
- data/lib/public/milksteak/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +57 -0
- data/lib/public/milksteak/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
- data/lib/public/milksteak/wymeditor/plugins/resizable/readme.txt +124 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/README +19 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +82 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/tidy.php +36 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/wand.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/compact/icons.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/compact/skin.css +134 -0
- data/lib/public/milksteak/wymeditor/skins/compact/skin.js +35 -0
- data/lib/public/milksteak/wymeditor/skins/default/icons.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/default/skin.css +133 -0
- data/lib/public/milksteak/wymeditor/skins/default/skin.js +40 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/skin.css +131 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/skin.js +30 -0
- data/lib/public/milksteak/wymeditor/skins/silver/COPYING +674 -0
- data/lib/public/milksteak/wymeditor/skins/silver/README +27 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/skin.css +297 -0
- data/lib/public/milksteak/wymeditor/skins/silver/skin.js +61 -0
- data/lib/public/milksteak/wymeditor/skins/twopanels/icons.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/twopanels/skin.css +134 -0
- data/lib/public/milksteak/wymeditor/skins/twopanels/skin.js +39 -0
- data/lib/public/milksteak/wymeditor/skins/wymeditor_icon.png +0 -0
- data/lib/views/layouts/admin.erb +8 -0
- data/lib/views/login.erb +1 -0
- data/milksteak.gemspec +30 -13
- data/spec/fixtures/pages/sample_page.yml +5 -0
- data/spec/lib/milksteak/cms_spec.rb +12 -0
- data/spec/models/page_spec.rb +58 -0
- data/spec/spec_helper.rb +19 -0
- metadata +429 -10
- data/LICENSE +0 -22
- data/README.md +0 -29
@@ -0,0 +1,141 @@
|
|
1
|
+
CodeMirror.defineMode("r", function(config) {
|
2
|
+
function wordObj(str) {
|
3
|
+
var words = str.split(" "), res = {};
|
4
|
+
for (var i = 0; i < words.length; ++i) res[words[i]] = true;
|
5
|
+
return res;
|
6
|
+
}
|
7
|
+
var atoms = wordObj("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_");
|
8
|
+
var builtins = wordObj("list quote bquote eval return call parse deparse");
|
9
|
+
var keywords = wordObj("if else repeat while function for in next break");
|
10
|
+
var blockkeywords = wordObj("if else repeat while function for");
|
11
|
+
var opChars = /[+\-*\/^<>=!&|~$:]/;
|
12
|
+
var curPunc;
|
13
|
+
|
14
|
+
function tokenBase(stream, state) {
|
15
|
+
curPunc = null;
|
16
|
+
var ch = stream.next();
|
17
|
+
if (ch == "#") {
|
18
|
+
stream.skipToEnd();
|
19
|
+
return "comment";
|
20
|
+
} else if (ch == "0" && stream.eat("x")) {
|
21
|
+
stream.eatWhile(/[\da-f]/i);
|
22
|
+
return "number";
|
23
|
+
} else if (ch == "." && stream.eat(/\d/)) {
|
24
|
+
stream.match(/\d*(?:e[+\-]?\d+)?/);
|
25
|
+
return "number";
|
26
|
+
} else if (/\d/.test(ch)) {
|
27
|
+
stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);
|
28
|
+
return "number";
|
29
|
+
} else if (ch == "'" || ch == '"') {
|
30
|
+
state.tokenize = tokenString(ch);
|
31
|
+
return "string";
|
32
|
+
} else if (ch == "." && stream.match(/.[.\d]+/)) {
|
33
|
+
return "keyword";
|
34
|
+
} else if (/[\w\.]/.test(ch) && ch != "_") {
|
35
|
+
stream.eatWhile(/[\w\.]/);
|
36
|
+
var word = stream.current();
|
37
|
+
if (atoms.propertyIsEnumerable(word)) return "atom";
|
38
|
+
if (keywords.propertyIsEnumerable(word)) {
|
39
|
+
if (blockkeywords.propertyIsEnumerable(word)) curPunc = "block";
|
40
|
+
return "keyword";
|
41
|
+
}
|
42
|
+
if (builtins.propertyIsEnumerable(word)) return "builtin";
|
43
|
+
return "variable";
|
44
|
+
} else if (ch == "%") {
|
45
|
+
if (stream.skipTo("%")) stream.next();
|
46
|
+
return "variable-2";
|
47
|
+
} else if (ch == "<" && stream.eat("-")) {
|
48
|
+
return "arrow";
|
49
|
+
} else if (ch == "=" && state.ctx.argList) {
|
50
|
+
return "arg-is";
|
51
|
+
} else if (opChars.test(ch)) {
|
52
|
+
if (ch == "$") return "dollar";
|
53
|
+
stream.eatWhile(opChars);
|
54
|
+
return "operator";
|
55
|
+
} else if (/[\(\){}\[\];]/.test(ch)) {
|
56
|
+
curPunc = ch;
|
57
|
+
if (ch == ";") return "semi";
|
58
|
+
return null;
|
59
|
+
} else {
|
60
|
+
return null;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
function tokenString(quote) {
|
65
|
+
return function(stream, state) {
|
66
|
+
if (stream.eat("\\")) {
|
67
|
+
var ch = stream.next();
|
68
|
+
if (ch == "x") stream.match(/^[a-f0-9]{2}/i);
|
69
|
+
else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next();
|
70
|
+
else if (ch == "u") stream.match(/^[a-f0-9]{4}/i);
|
71
|
+
else if (ch == "U") stream.match(/^[a-f0-9]{8}/i);
|
72
|
+
else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/);
|
73
|
+
return "string-2";
|
74
|
+
} else {
|
75
|
+
var next;
|
76
|
+
while ((next = stream.next()) != null) {
|
77
|
+
if (next == quote) { state.tokenize = tokenBase; break; }
|
78
|
+
if (next == "\\") { stream.backUp(1); break; }
|
79
|
+
}
|
80
|
+
return "string";
|
81
|
+
}
|
82
|
+
};
|
83
|
+
}
|
84
|
+
|
85
|
+
function push(state, type, stream) {
|
86
|
+
state.ctx = {type: type,
|
87
|
+
indent: state.indent,
|
88
|
+
align: null,
|
89
|
+
column: stream.column(),
|
90
|
+
prev: state.ctx};
|
91
|
+
}
|
92
|
+
function pop(state) {
|
93
|
+
state.indent = state.ctx.indent;
|
94
|
+
state.ctx = state.ctx.prev;
|
95
|
+
}
|
96
|
+
|
97
|
+
return {
|
98
|
+
startState: function(base) {
|
99
|
+
return {tokenize: tokenBase,
|
100
|
+
ctx: {type: "top",
|
101
|
+
indent: -config.indentUnit,
|
102
|
+
align: false},
|
103
|
+
indent: 0,
|
104
|
+
afterIdent: false};
|
105
|
+
},
|
106
|
+
|
107
|
+
token: function(stream, state) {
|
108
|
+
if (stream.sol()) {
|
109
|
+
if (state.ctx.align == null) state.ctx.align = false;
|
110
|
+
state.indent = stream.indentation();
|
111
|
+
}
|
112
|
+
if (stream.eatSpace()) return null;
|
113
|
+
var style = state.tokenize(stream, state);
|
114
|
+
if (style != "comment" && state.ctx.align == null) state.ctx.align = true;
|
115
|
+
|
116
|
+
var ctype = state.ctx.type;
|
117
|
+
if ((curPunc == ";" || curPunc == "{" || curPunc == "}") && ctype == "block") pop(state);
|
118
|
+
if (curPunc == "{") push(state, "}", stream);
|
119
|
+
else if (curPunc == "(") {
|
120
|
+
push(state, ")", stream);
|
121
|
+
if (state.afterIdent) state.ctx.argList = true;
|
122
|
+
}
|
123
|
+
else if (curPunc == "[") push(state, "]", stream);
|
124
|
+
else if (curPunc == "block") push(state, "block", stream);
|
125
|
+
else if (curPunc == ctype) pop(state);
|
126
|
+
state.afterIdent = style == "variable" || style == "keyword";
|
127
|
+
return style;
|
128
|
+
},
|
129
|
+
|
130
|
+
indent: function(state, textAfter) {
|
131
|
+
if (state.tokenize != tokenBase) return 0;
|
132
|
+
var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx,
|
133
|
+
closing = firstChar == ctx.type;
|
134
|
+
if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : config.indentUnit);
|
135
|
+
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
136
|
+
else return ctx.indent + (closing ? 0 : config.indentUnit);
|
137
|
+
}
|
138
|
+
};
|
139
|
+
});
|
140
|
+
|
141
|
+
CodeMirror.defineMIME("text/x-rsrc", "r");
|
@@ -0,0 +1,19 @@
|
|
1
|
+
CodeMirror.defineMode("changes", function(config, modeConfig) {
|
2
|
+
var headerSeperator = /^-+$/;
|
3
|
+
var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;
|
4
|
+
var simpleEmail = /^[\w+.-]+@[\w.-]+/;
|
5
|
+
|
6
|
+
return {
|
7
|
+
token: function(stream) {
|
8
|
+
if (stream.sol()) {
|
9
|
+
if (stream.match(headerSeperator)) { return 'tag'; }
|
10
|
+
if (stream.match(headerLine)) { return 'tag'; }
|
11
|
+
}
|
12
|
+
if (stream.match(simpleEmail)) { return 'string'; }
|
13
|
+
stream.next();
|
14
|
+
return null;
|
15
|
+
}
|
16
|
+
};
|
17
|
+
});
|
18
|
+
|
19
|
+
CodeMirror.defineMIME("text/x-rpm-changes", "changes");
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>CodeMirror: RPM changes mode</title>
|
5
|
+
<link rel="stylesheet" href="../../../lib/codemirror.css">
|
6
|
+
<script src="../../../lib/codemirror.js"></script>
|
7
|
+
<script src="changes.js"></script>
|
8
|
+
<link rel="stylesheet" href="../../../doc/docs.css">
|
9
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<h1>CodeMirror: RPM changes mode</h1>
|
13
|
+
|
14
|
+
<div><textarea id="code" name="code">
|
15
|
+
-------------------------------------------------------------------
|
16
|
+
Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com
|
17
|
+
|
18
|
+
- Update to r60.3
|
19
|
+
- Fixes bug in the reflect package
|
20
|
+
* disallow Interface method on Value obtained via unexported name
|
21
|
+
|
22
|
+
-------------------------------------------------------------------
|
23
|
+
Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com
|
24
|
+
|
25
|
+
- Update to r60.2
|
26
|
+
- Fixes memory leak in certain map types
|
27
|
+
|
28
|
+
-------------------------------------------------------------------
|
29
|
+
Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com
|
30
|
+
|
31
|
+
- Tweaks for gdb debugging
|
32
|
+
- go.spec changes:
|
33
|
+
- move %go_arch definition to %prep section
|
34
|
+
- pass correct location of go specific gdb pretty printer and
|
35
|
+
functions to cpp as HOST_EXTRA_CFLAGS macro
|
36
|
+
- install go gdb functions & printer
|
37
|
+
- gdb-printer.patch
|
38
|
+
- patch linker (src/cmd/ld/dwarf.c) to emit correct location of go
|
39
|
+
gdb functions and pretty printer
|
40
|
+
</textarea></div>
|
41
|
+
<script>
|
42
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
43
|
+
mode: {name: "changes"},
|
44
|
+
lineNumbers: true,
|
45
|
+
indentUnit: 4,
|
46
|
+
tabMode: "shift",
|
47
|
+
matchBrackets: true
|
48
|
+
});
|
49
|
+
</script>
|
50
|
+
|
51
|
+
<p><strong>MIME types defined:</strong> <code>text/x-rpm-changes</code>.</p>
|
52
|
+
</body>
|
53
|
+
</html>
|
@@ -0,0 +1,99 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>CodeMirror: RPM spec mode</title>
|
5
|
+
<link rel="stylesheet" href="../../../lib/codemirror.css">
|
6
|
+
<script src="../../../lib/codemirror.js"></script>
|
7
|
+
<script src="spec.js"></script>
|
8
|
+
<link rel="stylesheet" href="spec.css">
|
9
|
+
<link rel="stylesheet" href="../../../doc/docs.css">
|
10
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<h1>CodeMirror: RPM spec mode</h1>
|
14
|
+
|
15
|
+
<div><textarea id="code" name="code">
|
16
|
+
#
|
17
|
+
# spec file for package minidlna
|
18
|
+
#
|
19
|
+
# Copyright (c) 2011, Sascha Peilicke <saschpe@gmx.de>
|
20
|
+
#
|
21
|
+
# All modifications and additions to the file contributed by third parties
|
22
|
+
# remain the property of their copyright owners, unless otherwise agreed
|
23
|
+
# upon. The license for this file, and modifications and additions to the
|
24
|
+
# file, is the same license as for the pristine package itself (unless the
|
25
|
+
# license for the pristine package is not an Open Source License, in which
|
26
|
+
# case the license is the MIT License). An "Open Source License" is a
|
27
|
+
# license that conforms to the Open Source Definition (Version 1.9)
|
28
|
+
# published by the Open Source Initiative.
|
29
|
+
|
30
|
+
|
31
|
+
Name: libupnp6
|
32
|
+
Version: 1.6.13
|
33
|
+
Release: 0
|
34
|
+
Summary: Portable Universal Plug and Play (UPnP) SDK
|
35
|
+
Group: System/Libraries
|
36
|
+
License: BSD-3-Clause
|
37
|
+
Url: http://sourceforge.net/projects/pupnp/
|
38
|
+
Source0: http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2
|
39
|
+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
40
|
+
|
41
|
+
%description
|
42
|
+
The portable Universal Plug and Play (UPnP) SDK provides support for building
|
43
|
+
UPnP-compliant control points, devices, and bridges on several operating
|
44
|
+
systems.
|
45
|
+
|
46
|
+
%package -n libupnp-devel
|
47
|
+
Summary: Portable Universal Plug and Play (UPnP) SDK
|
48
|
+
Group: Development/Libraries/C and C++
|
49
|
+
Provides: pkgconfig(libupnp)
|
50
|
+
Requires: %{name} = %{version}
|
51
|
+
|
52
|
+
%description -n libupnp-devel
|
53
|
+
The portable Universal Plug and Play (UPnP) SDK provides support for building
|
54
|
+
UPnP-compliant control points, devices, and bridges on several operating
|
55
|
+
systems.
|
56
|
+
|
57
|
+
%prep
|
58
|
+
%setup -n libupnp-%{version}
|
59
|
+
|
60
|
+
%build
|
61
|
+
%configure --disable-static
|
62
|
+
make %{?_smp_mflags}
|
63
|
+
|
64
|
+
%install
|
65
|
+
%makeinstall
|
66
|
+
find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
|
67
|
+
|
68
|
+
%post -p /sbin/ldconfig
|
69
|
+
|
70
|
+
%postun -p /sbin/ldconfig
|
71
|
+
|
72
|
+
%files
|
73
|
+
%defattr(-,root,root,-)
|
74
|
+
%doc ChangeLog NEWS README TODO
|
75
|
+
%{_libdir}/libixml.so.*
|
76
|
+
%{_libdir}/libthreadutil.so.*
|
77
|
+
%{_libdir}/libupnp.so.*
|
78
|
+
|
79
|
+
%files -n libupnp-devel
|
80
|
+
%defattr(-,root,root,-)
|
81
|
+
%{_libdir}/pkgconfig/libupnp.pc
|
82
|
+
%{_libdir}/libixml.so
|
83
|
+
%{_libdir}/libthreadutil.so
|
84
|
+
%{_libdir}/libupnp.so
|
85
|
+
%{_includedir}/upnp/
|
86
|
+
|
87
|
+
%changelog</textarea></div>
|
88
|
+
<script>
|
89
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
90
|
+
mode: {name: "spec"},
|
91
|
+
lineNumbers: true,
|
92
|
+
indentUnit: 4,
|
93
|
+
matchBrackets: true
|
94
|
+
});
|
95
|
+
</script>
|
96
|
+
|
97
|
+
<p><strong>MIME types defined:</strong> <code>text/x-rpm-spec</code>.</p>
|
98
|
+
</body>
|
99
|
+
</html>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
.cm-s-default span.cm-preamble {color: #b26818; font-weight: bold;}
|
2
|
+
.cm-s-default span.cm-macro {color: #b218b2;}
|
3
|
+
.cm-s-default span.cm-section {color: green; font-weight: bold;}
|
4
|
+
.cm-s-default span.cm-script {color: red;}
|
5
|
+
.cm-s-default span.cm-issue {color: yellow;}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
// Quick and dirty spec file highlighting
|
2
|
+
|
3
|
+
CodeMirror.defineMode("spec", function(config, modeConfig) {
|
4
|
+
var arch = /^(i386|i586|i686|x86_64|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;
|
5
|
+
|
6
|
+
var preamble = /^(Name|Version|Release|License|Summary|Url|Group|Source|BuildArch|BuildRequires|BuildRoot|AutoReqProv|Provides|Requires(\(\w+\))?|Obsoletes|Conflicts|Recommends|Source\d*|Patch\d*|ExclusiveArch|NoSource|Supplements):/;
|
7
|
+
var section = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preun|postun|pre|post|triggerin|triggerun|pretrans|posttrans|verifyscript|check|triggerpostun|triggerprein|trigger)/;
|
8
|
+
var control_flow_complex = /^%(ifnarch|ifarch|if)/; // rpm control flow macros
|
9
|
+
var control_flow_simple = /^%(else|endif)/; // rpm control flow macros
|
10
|
+
var operators = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/; // operators in control flow macros
|
11
|
+
|
12
|
+
return {
|
13
|
+
startState: function () {
|
14
|
+
return {
|
15
|
+
controlFlow: false,
|
16
|
+
macroParameters: false,
|
17
|
+
section: false
|
18
|
+
};
|
19
|
+
},
|
20
|
+
token: function (stream, state) {
|
21
|
+
var ch = stream.peek();
|
22
|
+
if (ch == "#") { stream.skipToEnd(); return "comment"; }
|
23
|
+
|
24
|
+
if (stream.sol()) {
|
25
|
+
if (stream.match(preamble)) { return "preamble"; }
|
26
|
+
if (stream.match(section)) { return "section"; }
|
27
|
+
}
|
28
|
+
|
29
|
+
if (stream.match(/^\$\w+/)) { return "def"; } // Variables like '$RPM_BUILD_ROOT'
|
30
|
+
if (stream.match(/^\$\{\w+\}/)) { return "def"; } // Variables like '${RPM_BUILD_ROOT}'
|
31
|
+
|
32
|
+
if (stream.match(control_flow_simple)) { return "keyword"; }
|
33
|
+
if (stream.match(control_flow_complex)) {
|
34
|
+
state.controlFlow = true;
|
35
|
+
return "keyword";
|
36
|
+
}
|
37
|
+
if (state.controlFlow) {
|
38
|
+
if (stream.match(operators)) { return "operator"; }
|
39
|
+
if (stream.match(/^(\d+)/)) { return "number"; }
|
40
|
+
if (stream.eol()) { state.controlFlow = false; }
|
41
|
+
}
|
42
|
+
|
43
|
+
if (stream.match(arch)) { return "number"; }
|
44
|
+
|
45
|
+
// Macros like '%make_install' or '%attr(0775,root,root)'
|
46
|
+
if (stream.match(/^%[\w]+/)) {
|
47
|
+
if (stream.match(/^\(/)) { state.macroParameters = true; }
|
48
|
+
return "macro";
|
49
|
+
}
|
50
|
+
if (state.macroParameters) {
|
51
|
+
if (stream.match(/^\d+/)) { return "number";}
|
52
|
+
if (stream.match(/^\)/)) {
|
53
|
+
state.macroParameters = false;
|
54
|
+
return "macro";
|
55
|
+
}
|
56
|
+
}
|
57
|
+
if (stream.match(/^%\{\??[\w \-]+\}/)) { return "macro"; } // Macros like '%{defined fedora}'
|
58
|
+
|
59
|
+
//TODO: Include bash script sub-parser (CodeMirror supports that)
|
60
|
+
stream.next();
|
61
|
+
return null;
|
62
|
+
}
|
63
|
+
};
|
64
|
+
});
|
65
|
+
|
66
|
+
CodeMirror.defineMIME("text/x-rpm-spec", "spec");
|