marty 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +84 -0
- data/Rakefile +29 -0
- data/app/assets/javascripts/marty/application.js +15 -0
- data/app/assets/stylesheets/marty/application.css +13 -0
- data/app/components/marty/api_auth_view.rb +32 -0
- data/app/components/marty/auth_app.rb +55 -0
- data/app/components/marty/auth_app.rb~ +51 -0
- data/app/components/marty/auth_app/javascripts/auth_app.js +91 -0
- data/app/components/marty/auth_app/javascripts/auth_app.js~ +91 -0
- data/app/components/marty/cm_form_panel.rb~ +5 -0
- data/app/components/marty/cm_grid_panel.rb~ +35 -0
- data/app/components/marty/data_import_view.rb~ +142 -0
- data/app/components/marty/extras/layout.rb +46 -0
- data/app/components/marty/extras/layout.rb~ +46 -0
- data/app/components/marty/extras/misc.rb +18 -0
- data/app/components/marty/form.rb +6 -0
- data/app/components/marty/grid.rb +45 -0
- data/app/components/marty/grid_append_only.rb +12 -0
- data/app/components/marty/import_type_view.rb +53 -0
- data/app/components/marty/live_search_grid_panel.rb +46 -0
- data/app/components/marty/live_search_grid_panel.rb~ +49 -0
- data/app/components/marty/main_auth_app.rb +269 -0
- data/app/components/marty/main_auth_app.rb~ +238 -0
- data/app/components/marty/mcfly_grid_panel.rb +62 -0
- data/app/components/marty/mcfly_grid_panel.rb~ +80 -0
- data/app/components/marty/new_posting_form.rb +46 -0
- data/app/components/marty/new_posting_form.rb~ +46 -0
- data/app/components/marty/new_posting_window.rb +21 -0
- data/app/components/marty/new_posting_window.rb~ +21 -0
- data/app/components/marty/panel.rb +12 -0
- data/app/components/marty/pivot_grid.rb +52 -0
- data/app/components/marty/pivot_grid/endpoints.rb +45 -0
- data/app/components/marty/pivot_grid/javascripts/extensions.js +150 -0
- data/app/components/marty/pivot_grid/javascripts/pivot_grid.js +86 -0
- data/app/components/marty/pivot_grid/services.rb +44 -0
- data/app/components/marty/posting_grid.rb +139 -0
- data/app/components/marty/posting_grid.rb~ +140 -0
- data/app/components/marty/posting_window.rb +27 -0
- data/app/components/marty/promise_view.rb +177 -0
- data/app/components/marty/promise_view.rb~ +157 -0
- data/app/components/marty/promise_view/stylesheets/promise_view.css +26 -0
- data/app/components/marty/promise_view/stylesheets/promise_view.css~ +15 -0
- data/app/components/marty/report_form.rb +225 -0
- data/app/components/marty/report_form.rb~ +217 -0
- data/app/components/marty/report_select.rb +145 -0
- data/app/components/marty/report_select.rb~ +133 -0
- data/app/components/marty/reporting.rb +39 -0
- data/app/components/marty/reporting.rb~ +39 -0
- data/app/components/marty/script_detail.rb~ +430 -0
- data/app/components/marty/script_form.rb +233 -0
- data/app/components/marty/script_form.rb~ +233 -0
- data/app/components/marty/script_form/javascripts/Ext.ux.form.field.CodeMirror.js +698 -0
- data/app/components/marty/script_form/javascripts/Ext.ux.form.field.CodeMirror.js~ +909 -0
- data/app/components/marty/script_form/javascripts/codemirror.js +3130 -0
- data/app/components/marty/script_form/javascripts/mode/clike/clike.js +284 -0
- data/app/components/marty/script_form/javascripts/mode/clike/index.html +102 -0
- data/app/components/marty/script_form/javascripts/mode/clike/scala.html +766 -0
- data/app/components/marty/script_form/javascripts/mode/clojure/clojure.js +206 -0
- data/app/components/marty/script_form/javascripts/mode/clojure/index.html +67 -0
- data/app/components/marty/script_form/javascripts/mode/coffeescript/LICENSE +22 -0
- data/app/components/marty/script_form/javascripts/mode/coffeescript/coffeescript.js +346 -0
- data/app/components/marty/script_form/javascripts/mode/coffeescript/index.html +728 -0
- data/app/components/marty/script_form/javascripts/mode/commonlisp/commonlisp.js +101 -0
- data/app/components/marty/script_form/javascripts/mode/commonlisp/index.html +165 -0
- data/app/components/marty/script_form/javascripts/mode/css/css.js +448 -0
- data/app/components/marty/script_form/javascripts/mode/css/index.html +58 -0
- data/app/components/marty/script_form/javascripts/mode/css/test.js +501 -0
- data/app/components/marty/script_form/javascripts/mode/delorean/delorean.js +189 -0
- data/app/components/marty/script_form/javascripts/mode/diff/diff.js +32 -0
- data/app/components/marty/script_form/javascripts/mode/diff/index.html +105 -0
- data/app/components/marty/script_form/javascripts/mode/ecl/ecl.js +203 -0
- data/app/components/marty/script_form/javascripts/mode/ecl/index.html +42 -0
- data/app/components/marty/script_form/javascripts/mode/erlang/erlang.js +463 -0
- data/app/components/marty/script_form/javascripts/mode/erlang/index.html +63 -0
- data/app/components/marty/script_form/javascripts/mode/gfm/gfm.js +150 -0
- data/app/components/marty/script_form/javascripts/mode/gfm/index.html +48 -0
- data/app/components/marty/script_form/javascripts/mode/go/go.js +170 -0
- data/app/components/marty/script_form/javascripts/mode/go/index.html +73 -0
- data/app/components/marty/script_form/javascripts/mode/groovy/groovy.js +210 -0
- data/app/components/marty/script_form/javascripts/mode/groovy/index.html +72 -0
- data/app/components/marty/script_form/javascripts/mode/haskell/haskell.js +242 -0
- data/app/components/marty/script_form/javascripts/mode/haskell/index.html +61 -0
- data/app/components/marty/script_form/javascripts/mode/haxe/haxe.js +429 -0
- data/app/components/marty/script_form/javascripts/mode/haxe/index.html +91 -0
- data/app/components/marty/script_form/javascripts/mode/htmlembedded/htmlembedded.js +72 -0
- data/app/components/marty/script_form/javascripts/mode/htmlembedded/index.html +50 -0
- data/app/components/marty/script_form/javascripts/mode/htmlmixed/htmlmixed.js +84 -0
- data/app/components/marty/script_form/javascripts/mode/htmlmixed/index.html +52 -0
- data/app/components/marty/script_form/javascripts/mode/javascript/index.html +78 -0
- data/app/components/marty/script_form/javascripts/mode/javascript/javascript.js +361 -0
- data/app/components/marty/script_form/javascripts/mode/jinja2/index.html +38 -0
- data/app/components/marty/script_form/javascripts/mode/jinja2/jinja2.js +42 -0
- data/app/components/marty/script_form/javascripts/mode/less/index.html +740 -0
- data/app/components/marty/script_form/javascripts/mode/less/less.js +266 -0
- data/app/components/marty/script_form/javascripts/mode/lua/index.html +73 -0
- data/app/components/marty/script_form/javascripts/mode/lua/lua.js +140 -0
- data/app/components/marty/script_form/javascripts/mode/markdown/index.html +343 -0
- data/app/components/marty/script_form/javascripts/mode/markdown/markdown.js +382 -0
- data/app/components/marty/script_form/javascripts/mode/markdown/test.js +1084 -0
- data/app/components/marty/script_form/javascripts/mode/mysql/index.html +42 -0
- data/app/components/marty/script_form/javascripts/mode/mysql/mysql.js +186 -0
- data/app/components/marty/script_form/javascripts/mode/ntriples/index.html +33 -0
- data/app/components/marty/script_form/javascripts/mode/ntriples/ntriples.js +172 -0
- data/app/components/marty/script_form/javascripts/mode/ocaml/index.html +130 -0
- data/app/components/marty/script_form/javascripts/mode/ocaml/ocaml.js +114 -0
- data/app/components/marty/script_form/javascripts/mode/pascal/LICENSE +7 -0
- data/app/components/marty/script_form/javascripts/mode/pascal/index.html +49 -0
- data/app/components/marty/script_form/javascripts/mode/pascal/pascal.js +94 -0
- data/app/components/marty/script_form/javascripts/mode/perl/LICENSE +19 -0
- data/app/components/marty/script_form/javascripts/mode/perl/index.html +63 -0
- data/app/components/marty/script_form/javascripts/mode/perl/perl.js +816 -0
- data/app/components/marty/script_form/javascripts/mode/php/index.html +49 -0
- data/app/components/marty/script_form/javascripts/mode/php/php.js +148 -0
- data/app/components/marty/script_form/javascripts/mode/pig/index.html +43 -0
- data/app/components/marty/script_form/javascripts/mode/pig/pig.js +172 -0
- data/app/components/marty/script_form/javascripts/mode/plsql/index.html +63 -0
- data/app/components/marty/script_form/javascripts/mode/plsql/plsql.js +217 -0
- data/app/components/marty/script_form/javascripts/mode/properties/index.html +41 -0
- data/app/components/marty/script_form/javascripts/mode/properties/properties.js +63 -0
- data/app/components/marty/script_form/javascripts/mode/python/LICENSE.txt +21 -0
- data/app/components/marty/script_form/javascripts/mode/python/index.html +123 -0
- data/app/components/marty/script_form/javascripts/mode/python/python.js +338 -0
- data/app/components/marty/script_form/javascripts/mode/r/LICENSE +24 -0
- data/app/components/marty/script_form/javascripts/mode/r/index.html +74 -0
- data/app/components/marty/script_form/javascripts/mode/r/r.js +141 -0
- data/app/components/marty/script_form/javascripts/mode/rpm/changes/changes.js +19 -0
- data/app/components/marty/script_form/javascripts/mode/rpm/changes/index.html +54 -0
- data/app/components/marty/script_form/javascripts/mode/rpm/spec/index.html +100 -0
- data/app/components/marty/script_form/javascripts/mode/rpm/spec/spec.css +5 -0
- data/app/components/marty/script_form/javascripts/mode/rpm/spec/spec.js +66 -0
- data/app/components/marty/script_form/javascripts/mode/rst/index.html +526 -0
- data/app/components/marty/script_form/javascripts/mode/rst/rst.js +326 -0
- data/app/components/marty/script_form/javascripts/mode/ruby/LICENSE +24 -0
- data/app/components/marty/script_form/javascripts/mode/ruby/index.html +172 -0
- data/app/components/marty/script_form/javascripts/mode/ruby/ruby.js +195 -0
- data/app/components/marty/script_form/javascripts/mode/rust/index.html +49 -0
- data/app/components/marty/script_form/javascripts/mode/rust/rust.js +432 -0
- data/app/components/marty/script_form/javascripts/mode/scheme/index.html +65 -0
- data/app/components/marty/script_form/javascripts/mode/scheme/scheme.js +230 -0
- data/app/components/marty/script_form/javascripts/mode/shell/index.html +50 -0
- data/app/components/marty/script_form/javascripts/mode/shell/shell.js +118 -0
- data/app/components/marty/script_form/javascripts/mode/sieve/LICENSE +23 -0
- data/app/components/marty/script_form/javascripts/mode/sieve/index.html +81 -0
- data/app/components/marty/script_form/javascripts/mode/sieve/sieve.js +156 -0
- data/app/components/marty/script_form/javascripts/mode/smalltalk/index.html +56 -0
- data/app/components/marty/script_form/javascripts/mode/smalltalk/smalltalk.js +139 -0
- data/app/components/marty/script_form/javascripts/mode/smarty/index.html +83 -0
- data/app/components/marty/script_form/javascripts/mode/smarty/smarty.js +148 -0
- data/app/components/marty/script_form/javascripts/mode/sparql/index.html +41 -0
- data/app/components/marty/script_form/javascripts/mode/sparql/sparql.js +143 -0
- data/app/components/marty/script_form/javascripts/mode/stex/index.html +98 -0
- data/app/components/marty/script_form/javascripts/mode/stex/stex.js +182 -0
- data/app/components/marty/script_form/javascripts/mode/stex/test.js +343 -0
- data/app/components/marty/script_form/javascripts/mode/tiddlywiki/index.html +141 -0
- data/app/components/marty/script_form/javascripts/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/app/components/marty/script_form/javascripts/mode/tiddlywiki/tiddlywiki.js +384 -0
- data/app/components/marty/script_form/javascripts/mode/tiki/index.html +83 -0
- data/app/components/marty/script_form/javascripts/mode/tiki/tiki.css +26 -0
- data/app/components/marty/script_form/javascripts/mode/tiki/tiki.js +309 -0
- data/app/components/marty/script_form/javascripts/mode/vb/LICENSE.txt +21 -0
- data/app/components/marty/script_form/javascripts/mode/vb/index.html +89 -0
- data/app/components/marty/script_form/javascripts/mode/vb/vb.js +260 -0
- data/app/components/marty/script_form/javascripts/mode/vbscript/index.html +43 -0
- data/app/components/marty/script_form/javascripts/mode/vbscript/vbscript.js +26 -0
- data/app/components/marty/script_form/javascripts/mode/velocity/index.html +104 -0
- data/app/components/marty/script_form/javascripts/mode/velocity/velocity.js +146 -0
- data/app/components/marty/script_form/javascripts/mode/verilog/index.html +211 -0
- data/app/components/marty/script_form/javascripts/mode/verilog/verilog.js +194 -0
- data/app/components/marty/script_form/javascripts/mode/xml/index.html +45 -0
- data/app/components/marty/script_form/javascripts/mode/xml/xml.js +318 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/LICENSE +20 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/index.html +223 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/index.html +27 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/testBase.js +42 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/testEmptySequenceKeyword.js +16 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/testMultiAttr.js +16 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/testNamespaces.js +91 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/testProcessingInstructions.js +16 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/test/testQuotes.js +19 -0
- data/app/components/marty/script_form/javascripts/mode/xquery/xquery.js +451 -0
- data/app/components/marty/script_form/javascripts/mode/yaml/index.html +68 -0
- data/app/components/marty/script_form/javascripts/mode/yaml/yaml.js +95 -0
- data/app/components/marty/script_form/javascripts/util/closetag.js +164 -0
- data/app/components/marty/script_form/javascripts/util/dialog.css +27 -0
- data/app/components/marty/script_form/javascripts/util/dialog.js +70 -0
- data/app/components/marty/script_form/javascripts/util/foldcode.js +196 -0
- data/app/components/marty/script_form/javascripts/util/formatting.js +193 -0
- data/app/components/marty/script_form/javascripts/util/javascript-hint.js +134 -0
- data/app/components/marty/script_form/javascripts/util/loadmode.js +51 -0
- data/app/components/marty/script_form/javascripts/util/match-highlighter.js +44 -0
- data/app/components/marty/script_form/javascripts/util/multiplex.js +77 -0
- data/app/components/marty/script_form/javascripts/util/overlay.js +54 -0
- data/app/components/marty/script_form/javascripts/util/pig-hint.js +123 -0
- data/app/components/marty/script_form/javascripts/util/runmode-standalone.js +90 -0
- data/app/components/marty/script_form/javascripts/util/runmode.js +53 -0
- data/app/components/marty/script_form/javascripts/util/search.js +118 -0
- data/app/components/marty/script_form/javascripts/util/searchcursor.js +119 -0
- data/app/components/marty/script_form/javascripts/util/simple-hint.css +16 -0
- data/app/components/marty/script_form/javascripts/util/simple-hint.js +97 -0
- data/app/components/marty/script_form/javascripts/util/xml-hint.js +137 -0
- data/app/components/marty/script_form/stylesheets/codemirror.css +172 -0
- data/app/components/marty/script_form/stylesheets/delorean.css +10 -0
- data/app/components/marty/script_form/stylesheets/theme/ambiance.css +81 -0
- data/app/components/marty/script_form/stylesheets/theme/blackboard.css +25 -0
- data/app/components/marty/script_form/stylesheets/theme/cobalt.css +18 -0
- data/app/components/marty/script_form/stylesheets/theme/eclipse.css +25 -0
- data/app/components/marty/script_form/stylesheets/theme/elegant.css +10 -0
- data/app/components/marty/script_form/stylesheets/theme/erlang-dark.css +21 -0
- data/app/components/marty/script_form/stylesheets/theme/lesser-dark.css +44 -0
- data/app/components/marty/script_form/stylesheets/theme/monokai.css +28 -0
- data/app/components/marty/script_form/stylesheets/theme/neat.css +9 -0
- data/app/components/marty/script_form/stylesheets/theme/night.css +21 -0
- data/app/components/marty/script_form/stylesheets/theme/rubyblue.css +21 -0
- data/app/components/marty/script_form/stylesheets/theme/vibrant-ink.css +27 -0
- data/app/components/marty/script_form/stylesheets/theme/xq-dark.css +46 -0
- data/app/components/marty/script_grid.rb +104 -0
- data/app/components/marty/script_grid.rb~ +99 -0
- data/app/components/marty/script_tester.rb +114 -0
- data/app/components/marty/script_tester.rb~ +213 -0
- data/app/components/marty/scripting.rb +132 -0
- data/app/components/marty/scripting.rb~ +124 -0
- data/app/components/marty/select_report.rb~ +143 -0
- data/app/components/marty/simple_app.rb +97 -0
- data/app/components/marty/simple_app.rb~ +101 -0
- data/app/components/marty/simple_app/javascripts/simple_app.js +50 -0
- data/app/components/marty/simple_app/javascripts/statusbar_ext.js +8 -0
- data/app/components/marty/tag_grid.rb +83 -0
- data/app/components/marty/tag_grid.rb~ +89 -0
- data/app/components/marty/tree_panel.rb~ +256 -0
- data/app/components/marty/tree_panel/javascripts/tree_panel.js~ +317 -0
- data/app/components/marty/user_pivot.rb +128 -0
- data/app/components/marty/user_view.rb +181 -0
- data/app/components/marty/user_view.rb~ +188 -0
- data/app/controllers/marty/application_controller.rb +124 -0
- data/app/controllers/marty/application_controller.rb~ +133 -0
- data/app/controllers/marty/components_controller.rb +41 -0
- data/app/controllers/marty/components_controller.rb~ +37 -0
- data/app/controllers/marty/job_controller.rb +28 -0
- data/app/controllers/marty/job_controller.rb~ +28 -0
- data/app/controllers/marty/rpc_controller.rb +64 -0
- data/app/controllers/marty/rpc_controller.rb~ +61 -0
- data/app/helpers/marty/application_helper.rb +4 -0
- data/app/helpers/marty/script_set.rb +57 -0
- data/app/helpers/marty/script_set.rb~ +59 -0
- data/app/models/marty/api_auth.rb +44 -0
- data/app/models/marty/api_auth.rb~ +48 -0
- data/app/models/marty/base.rb +4 -0
- data/app/models/marty/data_change.rb +179 -0
- data/app/models/marty/data_change.rb~ +141 -0
- data/app/models/marty/enum.rb +22 -0
- data/app/models/marty/enum.rb~ +16 -0
- data/app/models/marty/import_type.rb +44 -0
- data/app/models/marty/import_type.rb~ +48 -0
- data/app/models/marty/poop.rb~ +169 -0
- data/app/models/marty/posting.rb +101 -0
- data/app/models/marty/posting.rb~ +86 -0
- data/app/models/marty/posting_type.rb +12 -0
- data/app/models/marty/posting_type.rb~ +21 -0
- data/app/models/marty/promise.rb +252 -0
- data/app/models/marty/promise.rb~ +196 -0
- data/app/models/marty/role.rb +6 -0
- data/app/models/marty/role.rb~ +10 -0
- data/app/models/marty/script.rb +144 -0
- data/app/models/marty/script.rb~ +62 -0
- data/app/models/marty/tag.rb +96 -0
- data/app/models/marty/tag.rb~ +91 -0
- data/app/models/marty/token.rb +30 -0
- data/app/models/marty/user.rb +146 -0
- data/app/models/marty/user.rb~ +148 -0
- data/app/models/marty/user_role.rb +7 -0
- data/app/models/marty/user_role.rb~ +13 -0
- data/app/views/layouts/marty/application.html.erb +12 -0
- data/app/views/layouts/marty/application.html.erb~ +11 -0
- data/config/locales/en.yml +134 -0
- data/config/routes.rb +6 -0
- data/config/routes.rb~ +10 -0
- data/db/migrate/001_create_marty_scripts.rb +14 -0
- data/db/migrate/003_create_marty_users.rb +12 -0
- data/db/migrate/004_create_marty_roles.rb +7 -0
- data/db/migrate/005_create_marty_user_roles.rb +14 -0
- data/db/migrate/006_create_marty_tokens.rb +14 -0
- data/db/migrate/008_create_marty_posting_types.rb +7 -0
- data/db/migrate/019_create_marty_postings.rb +18 -0
- data/db/migrate/019_create_marty_postings.rb~ +19 -0
- data/db/migrate/068_create_marty_import_types.rb +12 -0
- data/db/migrate/069_create_marty_import_synonyms.rb +15 -0
- data/db/migrate/070_create_versions.rb +18 -0
- data/db/migrate/071_add_object_changes_column_to_versions.rb +9 -0
- data/db/migrate/072_add_validation_function_to_import_types.rb +6 -0
- data/db/migrate/073_add_preprocess_function_to_import_types.rb +5 -0
- data/db/migrate/090_create_delayed_jobs.rb +22 -0
- data/db/migrate/091_create_marty_promises.rb +36 -0
- data/db/migrate/095_create_marty_tags.rb +14 -0
- data/db/migrate/095_create_marty_tags.rb~ +19 -0
- data/db/migrate/096_add_user_roles_to_import_types.rb +11 -0
- data/db/migrate/097_drop_versions.rb +9 -0
- data/db/migrate/098_create_marty_api_auths.rb +20 -0
- data/db/seeds.rb +48 -0
- data/lib/marty.rb +18 -0
- data/lib/marty.rb~ +13 -0
- data/lib/marty/content_handler.rb +97 -0
- data/lib/marty/content_handler.rb~ +93 -0
- data/lib/marty/data_conversion.rb +298 -0
- data/lib/marty/data_exporter.rb +150 -0
- data/lib/marty/data_exporter.rb~ +137 -0
- data/lib/marty/data_importer.rb +122 -0
- data/lib/marty/data_importer.rb~ +114 -0
- data/lib/marty/data_row_processor.rb~ +206 -0
- data/lib/marty/drop_folder_hook.rb~ +17 -0
- data/lib/marty/engine.rb +10 -0
- data/lib/marty/folder_hook.rb~ +9 -0
- data/lib/marty/lazy_column_loader.rb +57 -0
- data/lib/marty/lazy_column_loader.rb~ +47 -0
- data/lib/marty/mcfly_query.rb +189 -0
- data/lib/marty/mcfly_query.rb~ +188 -0
- data/lib/marty/migrations.rb +108 -0
- data/lib/marty/migrations.rb~ +65 -0
- data/lib/marty/monkey.rb +163 -0
- data/lib/marty/monkey.rb~ +160 -0
- data/lib/marty/permissions.rb +64 -0
- data/lib/marty/permissions.rb~ +69 -0
- data/lib/marty/promise.rb~ +41 -0
- data/lib/marty/promise_job.rb +123 -0
- data/lib/marty/promise_job.rb~ +121 -0
- data/lib/marty/promise_proxy.rb +94 -0
- data/lib/marty/promise_proxy.rb~ +69 -0
- data/lib/marty/railtie.rb +5 -0
- data/lib/marty/relation.rb +39 -0
- data/lib/marty/util.rb +110 -0
- data/lib/marty/util.rb~ +80 -0
- data/lib/marty/version.rb +3 -0
- data/lib/marty/version.rb~ +3 -0
- data/lib/marty/xl.rb +527 -0
- data/lib/marty/xl.rb~ +526 -0
- data/lib/pyxll/README.txt +19 -0
- data/lib/pyxll/README.txt~ +16 -0
- data/lib/pyxll/gemini.py +155 -0
- data/lib/pyxll/gemini.py~ +110 -0
- data/lib/pyxll/pyxll.cfg +12 -0
- data/lib/pyxll/pyxll.cfg~ +12 -0
- data/lib/pyxll/sample.xlsx +0 -0
- data/lib/tasks/marty_tasks.rake +37 -0
- metadata +517 -0
@@ -0,0 +1,217 @@
|
|
1
|
+
CodeMirror.defineMode("plsql", function(config, parserConfig) {
|
2
|
+
var indentUnit = config.indentUnit,
|
3
|
+
keywords = parserConfig.keywords,
|
4
|
+
functions = parserConfig.functions,
|
5
|
+
types = parserConfig.types,
|
6
|
+
sqlplus = parserConfig.sqlplus,
|
7
|
+
multiLineStrings = parserConfig.multiLineStrings;
|
8
|
+
var isOperatorChar = /[+\-*&%=<>!?:\/|]/;
|
9
|
+
function chain(stream, state, f) {
|
10
|
+
state.tokenize = f;
|
11
|
+
return f(stream, state);
|
12
|
+
}
|
13
|
+
|
14
|
+
var type;
|
15
|
+
function ret(tp, style) {
|
16
|
+
type = tp;
|
17
|
+
return style;
|
18
|
+
}
|
19
|
+
|
20
|
+
function tokenBase(stream, state) {
|
21
|
+
var ch = stream.next();
|
22
|
+
// start of string?
|
23
|
+
if (ch == '"' || ch == "'")
|
24
|
+
return chain(stream, state, tokenString(ch));
|
25
|
+
// is it one of the special signs []{}().,;? Seperator?
|
26
|
+
else if (/[\[\]{}\(\),;\.]/.test(ch))
|
27
|
+
return ret(ch);
|
28
|
+
// start of a number value?
|
29
|
+
else if (/\d/.test(ch)) {
|
30
|
+
stream.eatWhile(/[\w\.]/);
|
31
|
+
return ret("number", "number");
|
32
|
+
}
|
33
|
+
// multi line comment or simple operator?
|
34
|
+
else if (ch == "/") {
|
35
|
+
if (stream.eat("*")) {
|
36
|
+
return chain(stream, state, tokenComment);
|
37
|
+
}
|
38
|
+
else {
|
39
|
+
stream.eatWhile(isOperatorChar);
|
40
|
+
return ret("operator", "operator");
|
41
|
+
}
|
42
|
+
}
|
43
|
+
// single line comment or simple operator?
|
44
|
+
else if (ch == "-") {
|
45
|
+
if (stream.eat("-")) {
|
46
|
+
stream.skipToEnd();
|
47
|
+
return ret("comment", "comment");
|
48
|
+
}
|
49
|
+
else {
|
50
|
+
stream.eatWhile(isOperatorChar);
|
51
|
+
return ret("operator", "operator");
|
52
|
+
}
|
53
|
+
}
|
54
|
+
// pl/sql variable?
|
55
|
+
else if (ch == "@" || ch == "$") {
|
56
|
+
stream.eatWhile(/[\w\d\$_]/);
|
57
|
+
return ret("word", "variable");
|
58
|
+
}
|
59
|
+
// is it a operator?
|
60
|
+
else if (isOperatorChar.test(ch)) {
|
61
|
+
stream.eatWhile(isOperatorChar);
|
62
|
+
return ret("operator", "operator");
|
63
|
+
}
|
64
|
+
else {
|
65
|
+
// get the whole word
|
66
|
+
stream.eatWhile(/[\w\$_]/);
|
67
|
+
// is it one of the listed keywords?
|
68
|
+
if (keywords && keywords.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "keyword");
|
69
|
+
// is it one of the listed functions?
|
70
|
+
if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "builtin");
|
71
|
+
// is it one of the listed types?
|
72
|
+
if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "variable-2");
|
73
|
+
// is it one of the listed sqlplus keywords?
|
74
|
+
if (sqlplus && sqlplus.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "variable-3");
|
75
|
+
// default: just a "variable"
|
76
|
+
return ret("word", "variable");
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
function tokenString(quote) {
|
81
|
+
return function(stream, state) {
|
82
|
+
var escaped = false, next, end = false;
|
83
|
+
while ((next = stream.next()) != null) {
|
84
|
+
if (next == quote && !escaped) {end = true; break;}
|
85
|
+
escaped = !escaped && next == "\\";
|
86
|
+
}
|
87
|
+
if (end || !(escaped || multiLineStrings))
|
88
|
+
state.tokenize = tokenBase;
|
89
|
+
return ret("string", "plsql-string");
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
function tokenComment(stream, state) {
|
94
|
+
var maybeEnd = false, ch;
|
95
|
+
while (ch = stream.next()) {
|
96
|
+
if (ch == "/" && maybeEnd) {
|
97
|
+
state.tokenize = tokenBase;
|
98
|
+
break;
|
99
|
+
}
|
100
|
+
maybeEnd = (ch == "*");
|
101
|
+
}
|
102
|
+
return ret("comment", "plsql-comment");
|
103
|
+
}
|
104
|
+
|
105
|
+
// Interface
|
106
|
+
|
107
|
+
return {
|
108
|
+
startState: function(basecolumn) {
|
109
|
+
return {
|
110
|
+
tokenize: tokenBase,
|
111
|
+
startOfLine: true
|
112
|
+
};
|
113
|
+
},
|
114
|
+
|
115
|
+
token: function(stream, state) {
|
116
|
+
if (stream.eatSpace()) return null;
|
117
|
+
var style = state.tokenize(stream, state);
|
118
|
+
return style;
|
119
|
+
}
|
120
|
+
};
|
121
|
+
});
|
122
|
+
|
123
|
+
(function() {
|
124
|
+
function keywords(str) {
|
125
|
+
var obj = {}, words = str.split(" ");
|
126
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
127
|
+
return obj;
|
128
|
+
}
|
129
|
+
var cKeywords = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit " +
|
130
|
+
"authorization avg " +
|
131
|
+
"base_table begin between binary_integer body boolean by " +
|
132
|
+
"case cast char char_base check close cluster clusters colauth column comment commit compress connect " +
|
133
|
+
"connected constant constraint crash create current currval cursor " +
|
134
|
+
"data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete " +
|
135
|
+
"desc digits dispose distinct do drop " +
|
136
|
+
"else elsif enable end entry escape exception exception_init exchange exclusive exists exit external " +
|
137
|
+
"fast fetch file for force form from function " +
|
138
|
+
"generic goto grant group " +
|
139
|
+
"having " +
|
140
|
+
"identified if immediate in increment index indexes indicator initial initrans insert interface intersect " +
|
141
|
+
"into is " +
|
142
|
+
"key " +
|
143
|
+
"level library like limited local lock log logging long loop " +
|
144
|
+
"master maxextents maxtrans member minextents minus mislabel mode modify multiset " +
|
145
|
+
"new next no noaudit nocompress nologging noparallel not nowait number_base " +
|
146
|
+
"object of off offline on online only open option or order out " +
|
147
|
+
"package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior " +
|
148
|
+
"private privileges procedure public " +
|
149
|
+
"raise range raw read rebuild record ref references refresh release rename replace resource restrict return " +
|
150
|
+
"returning reverse revoke rollback row rowid rowlabel rownum rows run " +
|
151
|
+
"savepoint schema segment select separate session set share snapshot some space split sql start statement " +
|
152
|
+
"storage subtype successful synonym " +
|
153
|
+
"tabauth table tables tablespace task terminate then to trigger truncate type " +
|
154
|
+
"union unique unlimited unrecoverable unusable update use using " +
|
155
|
+
"validate value values variable view views " +
|
156
|
+
"when whenever where while with work";
|
157
|
+
|
158
|
+
var cFunctions = "abs acos add_months ascii asin atan atan2 average " +
|
159
|
+
"bfilename " +
|
160
|
+
"ceil chartorowid chr concat convert cos cosh count " +
|
161
|
+
"decode deref dual dump dup_val_on_index " +
|
162
|
+
"empty error exp " +
|
163
|
+
"false floor found " +
|
164
|
+
"glb greatest " +
|
165
|
+
"hextoraw " +
|
166
|
+
"initcap instr instrb isopen " +
|
167
|
+
"last_day least lenght lenghtb ln lower lpad ltrim lub " +
|
168
|
+
"make_ref max min mod months_between " +
|
169
|
+
"new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower " +
|
170
|
+
"nls_sort nls_upper nlssort no_data_found notfound null nvl " +
|
171
|
+
"others " +
|
172
|
+
"power " +
|
173
|
+
"rawtohex reftohex round rowcount rowidtochar rpad rtrim " +
|
174
|
+
"sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate " +
|
175
|
+
"tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc " +
|
176
|
+
"uid upper user userenv " +
|
177
|
+
"variance vsize";
|
178
|
+
|
179
|
+
var cTypes = "bfile blob " +
|
180
|
+
"character clob " +
|
181
|
+
"dec " +
|
182
|
+
"float " +
|
183
|
+
"int integer " +
|
184
|
+
"mlslabel " +
|
185
|
+
"natural naturaln nchar nclob number numeric nvarchar2 " +
|
186
|
+
"real rowtype " +
|
187
|
+
"signtype smallint string " +
|
188
|
+
"varchar varchar2";
|
189
|
+
|
190
|
+
var cSqlplus = "appinfo arraysize autocommit autoprint autorecovery autotrace " +
|
191
|
+
"blockterminator break btitle " +
|
192
|
+
"cmdsep colsep compatibility compute concat copycommit copytypecheck " +
|
193
|
+
"define describe " +
|
194
|
+
"echo editfile embedded escape exec execute " +
|
195
|
+
"feedback flagger flush " +
|
196
|
+
"heading headsep " +
|
197
|
+
"instance " +
|
198
|
+
"linesize lno loboffset logsource long longchunksize " +
|
199
|
+
"markup " +
|
200
|
+
"native newpage numformat numwidth " +
|
201
|
+
"pagesize pause pno " +
|
202
|
+
"recsep recsepchar release repfooter repheader " +
|
203
|
+
"serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber " +
|
204
|
+
"sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix " +
|
205
|
+
"tab term termout time timing trimout trimspool ttitle " +
|
206
|
+
"underline " +
|
207
|
+
"verify version " +
|
208
|
+
"wrap";
|
209
|
+
|
210
|
+
CodeMirror.defineMIME("text/x-plsql", {
|
211
|
+
name: "plsql",
|
212
|
+
keywords: keywords(cKeywords),
|
213
|
+
functions: keywords(cFunctions),
|
214
|
+
types: keywords(cTypes),
|
215
|
+
sqlplus: keywords(cSqlplus)
|
216
|
+
});
|
217
|
+
}());
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>CodeMirror: Properties files mode</title>
|
6
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
7
|
+
<script src="../../lib/codemirror.js"></script>
|
8
|
+
<script src="properties.js"></script>
|
9
|
+
<style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style>
|
10
|
+
<link rel="stylesheet" href="../../doc/docs.css">
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<h1>CodeMirror: Properties files mode</h1>
|
14
|
+
<form><textarea id="code" name="code">
|
15
|
+
# This is a properties file
|
16
|
+
a.key = A value
|
17
|
+
another.key = http://example.com
|
18
|
+
! Exclamation mark as comment
|
19
|
+
but.not=Within ! A value # indeed
|
20
|
+
# Spaces at the beginning of a line
|
21
|
+
spaces.before.key=value
|
22
|
+
backslash=Used for multi\
|
23
|
+
line entries,\
|
24
|
+
that's convenient.
|
25
|
+
# Unicode sequences
|
26
|
+
unicode.key=This is \u0020 Unicode
|
27
|
+
no.multiline=here
|
28
|
+
# Colons
|
29
|
+
colons : can be used too
|
30
|
+
# Spaces
|
31
|
+
spaces\ in\ keys=Not very common...
|
32
|
+
</textarea></form>
|
33
|
+
<script>
|
34
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
35
|
+
</script>
|
36
|
+
|
37
|
+
<p><strong>MIME types defined:</strong> <code>text/x-properties</code>,
|
38
|
+
<code>text/x-ini</code>.</p>
|
39
|
+
|
40
|
+
</body>
|
41
|
+
</html>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
CodeMirror.defineMode("properties", function() {
|
2
|
+
return {
|
3
|
+
token: function(stream, state) {
|
4
|
+
var sol = stream.sol() || state.afterSection;
|
5
|
+
var eol = stream.eol();
|
6
|
+
|
7
|
+
state.afterSection = false;
|
8
|
+
|
9
|
+
if (sol) {
|
10
|
+
if (state.nextMultiline) {
|
11
|
+
state.inMultiline = true;
|
12
|
+
state.nextMultiline = false;
|
13
|
+
} else {
|
14
|
+
state.position = "def";
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
if (eol && ! state.nextMultiline) {
|
19
|
+
state.inMultiline = false;
|
20
|
+
state.position = "def";
|
21
|
+
}
|
22
|
+
|
23
|
+
if (sol) {
|
24
|
+
while(stream.eatSpace());
|
25
|
+
}
|
26
|
+
|
27
|
+
var ch = stream.next();
|
28
|
+
|
29
|
+
if (sol && (ch === "#" || ch === "!" || ch === ";")) {
|
30
|
+
state.position = "comment";
|
31
|
+
stream.skipToEnd();
|
32
|
+
return "comment";
|
33
|
+
} else if (sol && ch === "[") {
|
34
|
+
state.afterSection = true;
|
35
|
+
stream.skipTo("]"); stream.eat("]");
|
36
|
+
return "header";
|
37
|
+
} else if (ch === "=" || ch === ":") {
|
38
|
+
state.position = "quote";
|
39
|
+
return null;
|
40
|
+
} else if (ch === "\\" && state.position === "quote") {
|
41
|
+
if (stream.next() !== "u") { // u = Unicode sequence \u1234
|
42
|
+
// Multiline value
|
43
|
+
state.nextMultiline = true;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
return state.position;
|
48
|
+
},
|
49
|
+
|
50
|
+
startState: function() {
|
51
|
+
return {
|
52
|
+
position : "def", // Current position, "def", "quote" or "comment"
|
53
|
+
nextMultiline : false, // Is the next line multiline value
|
54
|
+
inMultiline : false, // Is the current line a multiline value
|
55
|
+
afterSection : false // Did we just open a section
|
56
|
+
};
|
57
|
+
}
|
58
|
+
|
59
|
+
};
|
60
|
+
});
|
61
|
+
|
62
|
+
CodeMirror.defineMIME("text/x-properties", "properties");
|
63
|
+
CodeMirror.defineMIME("text/x-ini", "properties");
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2010 Timothy Farrell
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,123 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>CodeMirror: Python mode</title>
|
6
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
7
|
+
<script src="../../lib/codemirror.js"></script>
|
8
|
+
<script src="python.js"></script>
|
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: Python mode</h1>
|
14
|
+
|
15
|
+
<div><textarea id="code" name="code">
|
16
|
+
# Literals
|
17
|
+
1234
|
18
|
+
0.0e101
|
19
|
+
.123
|
20
|
+
0b01010011100
|
21
|
+
0o01234567
|
22
|
+
0x0987654321abcdef
|
23
|
+
7
|
24
|
+
2147483647
|
25
|
+
3L
|
26
|
+
79228162514264337593543950336L
|
27
|
+
0x100000000L
|
28
|
+
79228162514264337593543950336
|
29
|
+
0xdeadbeef
|
30
|
+
3.14j
|
31
|
+
10.j
|
32
|
+
10j
|
33
|
+
.001j
|
34
|
+
1e100j
|
35
|
+
3.14e-10j
|
36
|
+
|
37
|
+
|
38
|
+
# String Literals
|
39
|
+
'For\''
|
40
|
+
"God\""
|
41
|
+
"""so loved
|
42
|
+
the world"""
|
43
|
+
'''that he gave
|
44
|
+
his only begotten\' '''
|
45
|
+
'that whosoever believeth \
|
46
|
+
in him'
|
47
|
+
''
|
48
|
+
|
49
|
+
# Identifiers
|
50
|
+
__a__
|
51
|
+
a.b
|
52
|
+
a.b.c
|
53
|
+
|
54
|
+
# Operators
|
55
|
+
+ - * / % & | ^ ~ < >
|
56
|
+
== != <= >= <> << >> // **
|
57
|
+
and or not in is
|
58
|
+
|
59
|
+
# Delimiters
|
60
|
+
() [] {} , : ` = ; @ . # Note that @ and . require the proper context.
|
61
|
+
+= -= *= /= %= &= |= ^=
|
62
|
+
//= >>= <<= **=
|
63
|
+
|
64
|
+
# Keywords
|
65
|
+
as assert break class continue def del elif else except
|
66
|
+
finally for from global if import lambda pass raise
|
67
|
+
return try while with yield
|
68
|
+
|
69
|
+
# Python 2 Keywords (otherwise Identifiers)
|
70
|
+
exec print
|
71
|
+
|
72
|
+
# Python 3 Keywords (otherwise Identifiers)
|
73
|
+
nonlocal
|
74
|
+
|
75
|
+
# Types
|
76
|
+
bool classmethod complex dict enumerate float frozenset int list object
|
77
|
+
property reversed set slice staticmethod str super tuple type
|
78
|
+
|
79
|
+
# Python 2 Types (otherwise Identifiers)
|
80
|
+
basestring buffer file long unicode xrange
|
81
|
+
|
82
|
+
# Python 3 Types (otherwise Identifiers)
|
83
|
+
bytearray bytes filter map memoryview open range zip
|
84
|
+
|
85
|
+
# Some Example code
|
86
|
+
import os
|
87
|
+
from package import ParentClass
|
88
|
+
|
89
|
+
@nonsenseDecorator
|
90
|
+
def doesNothing():
|
91
|
+
pass
|
92
|
+
|
93
|
+
class ExampleClass(ParentClass):
|
94
|
+
@staticmethod
|
95
|
+
def example(inputStr):
|
96
|
+
a = list(inputStr)
|
97
|
+
a.reverse()
|
98
|
+
return ''.join(a)
|
99
|
+
|
100
|
+
def __init__(self, mixin = 'Hello'):
|
101
|
+
self.mixin = mixin
|
102
|
+
|
103
|
+
</textarea></div>
|
104
|
+
<script>
|
105
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
106
|
+
mode: {name: "python",
|
107
|
+
version: 2,
|
108
|
+
singleLineStringErrors: false},
|
109
|
+
lineNumbers: true,
|
110
|
+
indentUnit: 4,
|
111
|
+
tabMode: "shift",
|
112
|
+
matchBrackets: true
|
113
|
+
});
|
114
|
+
</script>
|
115
|
+
<h2>Configuration Options:</h2>
|
116
|
+
<ul>
|
117
|
+
<li>version - 2/3 - The version of Python to recognize. Default is 2.</li>
|
118
|
+
<li>singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.</li>
|
119
|
+
</ul>
|
120
|
+
|
121
|
+
<p><strong>MIME types defined:</strong> <code>text/x-python</code>.</p>
|
122
|
+
</body>
|
123
|
+
</html>
|