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,25 @@
|
|
1
|
+
/* Port of TextMate's Blackboard theme */
|
2
|
+
|
3
|
+
.cm-s-blackboard { background: #0C1021; color: #F8F8F8; }
|
4
|
+
.cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; }
|
5
|
+
.cm-s-blackboard .CodeMirror-gutter { background: #0C1021; border-right: 0; }
|
6
|
+
.cm-s-blackboard .CodeMirror-gutter-text { color: #888; }
|
7
|
+
.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
|
8
|
+
|
9
|
+
.cm-s-blackboard .cm-keyword { color: #FBDE2D; }
|
10
|
+
.cm-s-blackboard .cm-atom { color: #D8FA3C; }
|
11
|
+
.cm-s-blackboard .cm-number { color: #D8FA3C; }
|
12
|
+
.cm-s-blackboard .cm-def { color: #8DA6CE; }
|
13
|
+
.cm-s-blackboard .cm-variable { color: #FF6400; }
|
14
|
+
.cm-s-blackboard .cm-operator { color: #FBDE2D;}
|
15
|
+
.cm-s-blackboard .cm-comment { color: #AEAEAE; }
|
16
|
+
.cm-s-blackboard .cm-string { color: #61CE3C; }
|
17
|
+
.cm-s-blackboard .cm-string-2 { color: #61CE3C; }
|
18
|
+
.cm-s-blackboard .cm-meta { color: #D8FA3C; }
|
19
|
+
.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
|
20
|
+
.cm-s-blackboard .cm-builtin { color: #8DA6CE; }
|
21
|
+
.cm-s-blackboard .cm-tag { color: #8DA6CE; }
|
22
|
+
.cm-s-blackboard .cm-attribute { color: #8DA6CE; }
|
23
|
+
.cm-s-blackboard .cm-header { color: #FF6400; }
|
24
|
+
.cm-s-blackboard .cm-hr { color: #AEAEAE; }
|
25
|
+
.cm-s-blackboard .cm-link { color: #8DA6CE; }
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.cm-s-cobalt { background: #002240; color: white; }
|
2
|
+
.cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
|
3
|
+
.cm-s-cobalt .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
|
4
|
+
.cm-s-cobalt .CodeMirror-gutter-text { color: #d0d0d0; }
|
5
|
+
.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
|
6
|
+
|
7
|
+
.cm-s-cobalt span.cm-comment { color: #08f; }
|
8
|
+
.cm-s-cobalt span.cm-atom { color: #845dc4; }
|
9
|
+
.cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
|
10
|
+
.cm-s-cobalt span.cm-keyword { color: #ffee80; }
|
11
|
+
.cm-s-cobalt span.cm-string { color: #3ad900; }
|
12
|
+
.cm-s-cobalt span.cm-meta { color: #ff9d00; }
|
13
|
+
.cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
|
14
|
+
.cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
|
15
|
+
.cm-s-cobalt span.cm-error { color: #9d1e15; }
|
16
|
+
.cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
|
17
|
+
.cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
|
18
|
+
.cm-s-cobalt span.cm-link { color: #845dc4; }
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.cm-s-eclipse span.cm-meta {color: #FF1717;}
|
2
|
+
.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
|
3
|
+
.cm-s-eclipse span.cm-atom {color: #219;}
|
4
|
+
.cm-s-eclipse span.cm-number {color: #164;}
|
5
|
+
.cm-s-eclipse span.cm-def {color: #00f;}
|
6
|
+
.cm-s-eclipse span.cm-variable {color: black;}
|
7
|
+
.cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
|
8
|
+
.cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
|
9
|
+
.cm-s-eclipse span.cm-property {color: black;}
|
10
|
+
.cm-s-eclipse span.cm-operator {color: black;}
|
11
|
+
.cm-s-eclipse span.cm-comment {color: #3F7F5F;}
|
12
|
+
.cm-s-eclipse span.cm-string {color: #2A00FF;}
|
13
|
+
.cm-s-eclipse span.cm-string-2 {color: #f50;}
|
14
|
+
.cm-s-eclipse span.cm-error {color: #f00;}
|
15
|
+
.cm-s-eclipse span.cm-qualifier {color: #555;}
|
16
|
+
.cm-s-eclipse span.cm-builtin {color: #30a;}
|
17
|
+
.cm-s-eclipse span.cm-bracket {color: #cc7;}
|
18
|
+
.cm-s-eclipse span.cm-tag {color: #170;}
|
19
|
+
.cm-s-eclipse span.cm-attribute {color: #00c;}
|
20
|
+
.cm-s-eclipse span.cm-link {color: #219;}
|
21
|
+
|
22
|
+
.cm-s-eclipse .CodeMirror-matchingbracket {
|
23
|
+
border:1px solid grey;
|
24
|
+
color:black !important;;
|
25
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
|
2
|
+
.cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;}
|
3
|
+
.cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;}
|
4
|
+
.cm-s-elegant span.cm-variable {color: black;}
|
5
|
+
.cm-s-elegant span.cm-variable-2 {color: #b11;}
|
6
|
+
.cm-s-elegant span.cm-qualifier {color: #555;}
|
7
|
+
.cm-s-elegant span.cm-keyword {color: #730;}
|
8
|
+
.cm-s-elegant span.cm-builtin {color: #30a;}
|
9
|
+
.cm-s-elegant span.cm-error {background-color: #fdd;}
|
10
|
+
.cm-s-elegant span.cm-link {color: #762;}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.cm-s-erlang-dark { background: #002240; color: white; }
|
2
|
+
.cm-s-erlang-dark div.CodeMirror-selected { background: #b36539 !important; }
|
3
|
+
.cm-s-erlang-dark .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
|
4
|
+
.cm-s-erlang-dark .CodeMirror-gutter-text { color: #d0d0d0; }
|
5
|
+
.cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
6
|
+
|
7
|
+
.cm-s-erlang-dark span.cm-atom { color: #845dc4; }
|
8
|
+
.cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
|
9
|
+
.cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
|
10
|
+
.cm-s-erlang-dark span.cm-builtin { color: #eeaaaa; }
|
11
|
+
.cm-s-erlang-dark span.cm-comment { color: #7777ff; }
|
12
|
+
.cm-s-erlang-dark span.cm-def { color: #ee77aa; }
|
13
|
+
.cm-s-erlang-dark span.cm-error { color: #9d1e15; }
|
14
|
+
.cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
|
15
|
+
.cm-s-erlang-dark span.cm-meta { color: #50fefe; }
|
16
|
+
.cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
|
17
|
+
.cm-s-erlang-dark span.cm-operator { color: #dd1111; }
|
18
|
+
.cm-s-erlang-dark span.cm-string { color: #3ad900; }
|
19
|
+
.cm-s-erlang-dark span.cm-tag { color: #9effff; }
|
20
|
+
.cm-s-erlang-dark span.cm-variable { color: #50fe50; }
|
21
|
+
.cm-s-erlang-dark span.cm-variable-2 { color: #ee00ee; }
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/*
|
2
|
+
http://lesscss.org/ dark theme
|
3
|
+
Ported to CodeMirror by Peter Kroon
|
4
|
+
*/
|
5
|
+
.cm-s-lesser-dark {
|
6
|
+
line-height: 1.3em;
|
7
|
+
}
|
8
|
+
.cm-s-lesser-dark {
|
9
|
+
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', Courier, monospace !important;
|
10
|
+
}
|
11
|
+
|
12
|
+
.cm-s-lesser-dark { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
|
13
|
+
.cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
|
14
|
+
.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
15
|
+
.cm-s-lesser-dark .CodeMirror-lines { margin-left:3px; margin-right:3px; }/*editable code holder*/
|
16
|
+
|
17
|
+
div.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
|
18
|
+
|
19
|
+
.cm-s-lesser-dark .CodeMirror-gutter { background: #262626; border-right:1px solid #aaa; padding-right:3px; min-width:2.5em; }
|
20
|
+
.cm-s-lesser-dark .CodeMirror-gutter-text { color: #777; }
|
21
|
+
|
22
|
+
.cm-s-lesser-dark span.cm-keyword { color: #599eff; }
|
23
|
+
.cm-s-lesser-dark span.cm-atom { color: #C2B470; }
|
24
|
+
.cm-s-lesser-dark span.cm-number { color: #B35E4D; }
|
25
|
+
.cm-s-lesser-dark span.cm-def {color: white;}
|
26
|
+
.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
|
27
|
+
.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
|
28
|
+
.cm-s-lesser-dark span.cm-variable-3 { color: white; }
|
29
|
+
.cm-s-lesser-dark span.cm-property {color: #92A75C;}
|
30
|
+
.cm-s-lesser-dark span.cm-operator {color: #92A75C;}
|
31
|
+
.cm-s-lesser-dark span.cm-comment { color: #666; }
|
32
|
+
.cm-s-lesser-dark span.cm-string { color: #BCD279; }
|
33
|
+
.cm-s-lesser-dark span.cm-string-2 {color: #f50;}
|
34
|
+
.cm-s-lesser-dark span.cm-meta { color: #738C73; }
|
35
|
+
.cm-s-lesser-dark span.cm-error { color: #9d1e15; }
|
36
|
+
.cm-s-lesser-dark span.cm-qualifier {color: #555;}
|
37
|
+
.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
|
38
|
+
.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
|
39
|
+
.cm-s-lesser-dark span.cm-tag { color: #669199; }
|
40
|
+
.cm-s-lesser-dark span.cm-attribute {color: #00c;}
|
41
|
+
.cm-s-lesser-dark span.cm-header {color: #a0a;}
|
42
|
+
.cm-s-lesser-dark span.cm-quote {color: #090;}
|
43
|
+
.cm-s-lesser-dark span.cm-hr {color: #999;}
|
44
|
+
.cm-s-lesser-dark span.cm-link {color: #00c;}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/* Based on Sublime Text's Monokai theme */
|
2
|
+
|
3
|
+
.cm-s-monokai {background: #272822; color: #f8f8f2;}
|
4
|
+
.cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
|
5
|
+
.cm-s-monokai .CodeMirror-gutter {background: #272822; border-right: 0px;}
|
6
|
+
.cm-s-monokai .CodeMirror-gutter-text {color: #d0d0d0;}
|
7
|
+
.cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
|
8
|
+
|
9
|
+
.cm-s-monokai span.cm-comment {color: #75715e;}
|
10
|
+
.cm-s-monokai span.cm-atom {color: #ae81ff;}
|
11
|
+
.cm-s-monokai span.cm-number {color: #ae81ff;}
|
12
|
+
|
13
|
+
.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
|
14
|
+
.cm-s-monokai span.cm-keyword {color: #f92672;}
|
15
|
+
.cm-s-monokai span.cm-string {color: #e6db74;}
|
16
|
+
|
17
|
+
.cm-s-monokai span.cm-variable {color: #a6e22e;}
|
18
|
+
.cm-s-monokai span.cm-variable-2 {color: #9effff;}
|
19
|
+
.cm-s-monokai span.cm-def {color: #fd971f;}
|
20
|
+
.cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
|
21
|
+
.cm-s-monokai span.cm-bracket {color: #f8f8f2;}
|
22
|
+
.cm-s-monokai span.cm-tag {color: #f92672;}
|
23
|
+
.cm-s-monokai span.cm-link {color: #ae81ff;}
|
24
|
+
|
25
|
+
.cm-s-monokai .CodeMirror-matchingbracket {
|
26
|
+
text-decoration: underline;
|
27
|
+
color: white !important;
|
28
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.cm-s-neat span.cm-comment { color: #a86; }
|
2
|
+
.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
|
3
|
+
.cm-s-neat span.cm-string { color: #a22; }
|
4
|
+
.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
|
5
|
+
.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
|
6
|
+
.cm-s-neat span.cm-variable { color: black; }
|
7
|
+
.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
|
8
|
+
.cm-s-neat span.cm-meta {color: #555;}
|
9
|
+
.cm-s-neat span.cm-link { color: #3a3; }
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/* Loosely based on the Midnight Textmate theme */
|
2
|
+
|
3
|
+
.cm-s-night { background: #0a001f; color: #f8f8f8; }
|
4
|
+
.cm-s-night div.CodeMirror-selected { background: #447 !important; }
|
5
|
+
.cm-s-night .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
|
6
|
+
.cm-s-night .CodeMirror-gutter-text { color: #f8f8f8; }
|
7
|
+
.cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
|
8
|
+
|
9
|
+
.cm-s-night span.cm-comment { color: #6900a1; }
|
10
|
+
.cm-s-night span.cm-atom { color: #845dc4; }
|
11
|
+
.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
|
12
|
+
.cm-s-night span.cm-keyword { color: #599eff; }
|
13
|
+
.cm-s-night span.cm-string { color: #37f14a; }
|
14
|
+
.cm-s-night span.cm-meta { color: #7678e2; }
|
15
|
+
.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
|
16
|
+
.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
|
17
|
+
.cm-s-night span.cm-error { color: #9d1e15; }
|
18
|
+
.cm-s-night span.cm-bracket { color: #8da6ce; }
|
19
|
+
.cm-s-night span.cm-comment { color: #6900a1; }
|
20
|
+
.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
|
21
|
+
.cm-s-night span.cm-link { color: #845dc4; }
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.cm-s-rubyblue { font:13px/1.4em Trebuchet, Verdana, sans-serif; } /* - customized editor font - */
|
2
|
+
|
3
|
+
.cm-s-rubyblue { background: #112435; color: white; }
|
4
|
+
.cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
|
5
|
+
.cm-s-rubyblue .CodeMirror-gutter { background: #1F4661; border-right: 7px solid #3E7087; min-width:2.5em; }
|
6
|
+
.cm-s-rubyblue .CodeMirror-gutter-text { color: white; }
|
7
|
+
.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
|
8
|
+
|
9
|
+
.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
|
10
|
+
.cm-s-rubyblue span.cm-atom { color: #F4C20B; }
|
11
|
+
.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
|
12
|
+
.cm-s-rubyblue span.cm-keyword { color: #F0F; }
|
13
|
+
.cm-s-rubyblue span.cm-string { color: #F08047; }
|
14
|
+
.cm-s-rubyblue span.cm-meta { color: #F0F; }
|
15
|
+
.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
|
16
|
+
.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
|
17
|
+
.cm-s-rubyblue span.cm-error { color: #AF2018; }
|
18
|
+
.cm-s-rubyblue span.cm-bracket { color: #F0F; }
|
19
|
+
.cm-s-rubyblue span.cm-link { color: #F4C20B; }
|
20
|
+
.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
|
21
|
+
.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/* Taken from the popular Visual Studio Vibrant Ink Schema */
|
2
|
+
|
3
|
+
.cm-s-vibrant-ink { background: black; color: white; }
|
4
|
+
.cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
|
5
|
+
|
6
|
+
.cm-s-vibrant-ink .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
|
7
|
+
.cm-s-vibrant-ink .CodeMirror-gutter-text { color: #d0d0d0; }
|
8
|
+
.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
|
9
|
+
|
10
|
+
.cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
|
11
|
+
.cm-s-vibrant-ink .cm-atom { color: #FC0; }
|
12
|
+
.cm-s-vibrant-ink .cm-number { color: #FFEE98; }
|
13
|
+
.cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
|
14
|
+
.cm-s-vibrant-ink span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #FFC66D }
|
15
|
+
.cm-s-vibrant-ink span.cm-variable-3, .cm-s-cobalt span.cm-def { color: #FFC66D }
|
16
|
+
.cm-s-vibrant-ink .cm-operator { color: #888; }
|
17
|
+
.cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
|
18
|
+
.cm-s-vibrant-ink .cm-string { color: #A5C25C }
|
19
|
+
.cm-s-vibrant-ink .cm-string-2 { color: red }
|
20
|
+
.cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
|
21
|
+
.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
|
22
|
+
.cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
|
23
|
+
.cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
|
24
|
+
.cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
|
25
|
+
.cm-s-vibrant-ink .cm-header { color: #FF6400; }
|
26
|
+
.cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
|
27
|
+
.cm-s-vibrant-ink .cm-link { color: blue; }
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (C) 2011 by MarkLogic Corporation
|
3
|
+
Author: Mike Brevoort <mike@brevoort.com>
|
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.
|
22
|
+
*/
|
23
|
+
.cm-s-xq-dark { background: #0a001f; color: #f8f8f8; }
|
24
|
+
.cm-s-xq-dark span.CodeMirror-selected { background: #a8f !important; }
|
25
|
+
.cm-s-xq-dark .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
|
26
|
+
.cm-s-xq-dark .CodeMirror-gutter-text { color: #f8f8f8; }
|
27
|
+
.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
28
|
+
|
29
|
+
.cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
|
30
|
+
.cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
|
31
|
+
.cm-s-xq-dark span.cm-number {color: #164;}
|
32
|
+
.cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
|
33
|
+
.cm-s-xq-dark span.cm-variable {color: #FFF;}
|
34
|
+
.cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
|
35
|
+
.cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
|
36
|
+
.cm-s-xq-dark span.cm-property {}
|
37
|
+
.cm-s-xq-dark span.cm-operator {}
|
38
|
+
.cm-s-xq-dark span.cm-comment {color: gray;}
|
39
|
+
.cm-s-xq-dark span.cm-string {color: #9FEE00;}
|
40
|
+
.cm-s-xq-dark span.cm-meta {color: yellow;}
|
41
|
+
.cm-s-xq-dark span.cm-error {color: #f00;}
|
42
|
+
.cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
|
43
|
+
.cm-s-xq-dark span.cm-builtin {color: #30a;}
|
44
|
+
.cm-s-xq-dark span.cm-bracket {color: #cc7;}
|
45
|
+
.cm-s-xq-dark span.cm-tag {color: #FFBD40;}
|
46
|
+
.cm-s-xq-dark span.cm-attribute {color: #FFF700;}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
class Marty::ScriptGrid < Marty::Grid
|
2
|
+
has_marty_permissions \
|
3
|
+
create: [:dev],
|
4
|
+
read: :any,
|
5
|
+
update: [:dev],
|
6
|
+
delete: [] # [:dev]
|
7
|
+
|
8
|
+
def configure(c)
|
9
|
+
super
|
10
|
+
|
11
|
+
c.model = "Marty::Script"
|
12
|
+
c.enable_extended_search = false
|
13
|
+
c.multi_select = false
|
14
|
+
|
15
|
+
c.columns ||= [:name, :created_dt, :tag]
|
16
|
+
c.title ||= I18n.t('scripts', default: "Scripts")
|
17
|
+
|
18
|
+
c.data_store.sorters = {
|
19
|
+
property: :name,
|
20
|
+
direction: 'ASC',
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_records(params)
|
25
|
+
begin
|
26
|
+
ts = Marty::Tag.map_to_tag(root_sess[:selected_tag_id]).created_dt
|
27
|
+
ts = Mcfly.normalize_infinity(ts)
|
28
|
+
rescue
|
29
|
+
# if there are no non-DEV tags we get an exception above
|
30
|
+
ts = 'infinity'
|
31
|
+
end
|
32
|
+
|
33
|
+
tb = data_class.table_name
|
34
|
+
data_class.where("#{tb}.obsoleted_dt >= ? AND #{tb}.created_dt < ?",
|
35
|
+
ts, ts).scoping do
|
36
|
+
super
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# override the add_in_form endpoint. Script creation needs to use
|
41
|
+
# the create_script method.
|
42
|
+
endpoint :add_window__add_form__netzke_submit do |params, this|
|
43
|
+
data = ActiveSupport::JSON.decode(params[:data])
|
44
|
+
|
45
|
+
return this.netzke_feedback("Permission Denied") if
|
46
|
+
config[:prohibit_create]
|
47
|
+
|
48
|
+
tag = Marty::Tag.map_to_tag(root_sess[:selected_tag_id])
|
49
|
+
|
50
|
+
return this.netzke_feedback("Can only add in DEV tag") unless
|
51
|
+
tag && tag.isdev?
|
52
|
+
|
53
|
+
name = data["name"]
|
54
|
+
script = Marty::Script.create_script(name, "# Script #{name}")
|
55
|
+
|
56
|
+
if script.valid?
|
57
|
+
this.success = true
|
58
|
+
return this.on_submit_success
|
59
|
+
end
|
60
|
+
|
61
|
+
data_adapter.errors_array(script).each do |error|
|
62
|
+
flash :error => error
|
63
|
+
end
|
64
|
+
this.netzke_feedback(@flash)
|
65
|
+
end
|
66
|
+
|
67
|
+
action :add_in_form do |a|
|
68
|
+
a.text = I18n.t("script_grid.new")
|
69
|
+
a.tooltip = I18n.t("script_grid.new")
|
70
|
+
a.icon = :script_add
|
71
|
+
a.disabled = config[:prohibit_create]
|
72
|
+
end
|
73
|
+
|
74
|
+
def default_bbar
|
75
|
+
[:add_in_form]
|
76
|
+
end
|
77
|
+
|
78
|
+
def default_context_menu
|
79
|
+
[]
|
80
|
+
end
|
81
|
+
|
82
|
+
def default_fields_for_forms
|
83
|
+
[:name]
|
84
|
+
end
|
85
|
+
|
86
|
+
column :name do |c|
|
87
|
+
c.flex = 1
|
88
|
+
c.text = I18n.t("script_grid.name")
|
89
|
+
end
|
90
|
+
|
91
|
+
column :created_dt do |c|
|
92
|
+
c.text = I18n.t("script_grid.created_dt")
|
93
|
+
c.format = "Y-m-d H:i"
|
94
|
+
c.read_only = true
|
95
|
+
end
|
96
|
+
|
97
|
+
column :tag do |c|
|
98
|
+
c.text = I18n.t("script_grid.tag")
|
99
|
+
c.flex = 1
|
100
|
+
c.getter = lambda { |r| r.find_tag.try(:name) }
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
ScriptGrid = Marty::ScriptGrid
|
@@ -0,0 +1,99 @@
|
|
1
|
+
class Marty::ScriptGrid < Marty::CmGridPanel
|
2
|
+
has_marty_permissions \
|
3
|
+
create: [:dev],
|
4
|
+
read: :any,
|
5
|
+
update: [:dev],
|
6
|
+
delete: [] # [:dev]
|
7
|
+
|
8
|
+
def configure(c)
|
9
|
+
super
|
10
|
+
|
11
|
+
c.model = "Marty::Script"
|
12
|
+
c.enable_extended_search = false
|
13
|
+
|
14
|
+
c.columns ||= [:name, :created_dt, :tag]
|
15
|
+
c.title ||= I18n.t('scripts', default: "Scripts")
|
16
|
+
|
17
|
+
c.data_store.sorters = {
|
18
|
+
property: :name,
|
19
|
+
direction: 'ASC',
|
20
|
+
}
|
21
|
+
|
22
|
+
# Set Mcfly scoping
|
23
|
+
begin
|
24
|
+
ts = Marty::Tag.map_to_tag(root_sess[:selected_tag_id]).created_dt
|
25
|
+
ts = Mcfly.normalize_infinity(ts)
|
26
|
+
rescue
|
27
|
+
# if there are no non-DEV tags we get an exception above
|
28
|
+
ts = 'infinity'
|
29
|
+
end
|
30
|
+
|
31
|
+
tb = data_class.table_name
|
32
|
+
c.scope = ["#{tb}.obsoleted_dt >= ? AND #{tb}.created_dt < ?", ts, ts]
|
33
|
+
end
|
34
|
+
|
35
|
+
# override the add_in_form endpoint. Script creation needs to use
|
36
|
+
# the create_script method.
|
37
|
+
endpoint :add_window__add_form__netzke_submit do |params, this|
|
38
|
+
data = ActiveSupport::JSON.decode(params[:data])
|
39
|
+
|
40
|
+
return this.netzke_feedback("Permission Denied") if
|
41
|
+
config[:prohibit_create]
|
42
|
+
|
43
|
+
tag = Marty::Tag.map_to_tag(root_sess[:selected_tag_id])
|
44
|
+
|
45
|
+
return this.netzke_feedback("Can only add in DEV tag") unless
|
46
|
+
tag && tag.isdev?
|
47
|
+
|
48
|
+
name = data["name"]
|
49
|
+
script = Marty::Script.create_script(name, "# Script #{name}")
|
50
|
+
|
51
|
+
if script.valid?
|
52
|
+
this.success = true
|
53
|
+
return this.on_submit_success
|
54
|
+
end
|
55
|
+
|
56
|
+
data_adapter.errors_array(script).each do |error|
|
57
|
+
flash :error => error
|
58
|
+
end
|
59
|
+
this.netzke_feedback(@flash)
|
60
|
+
end
|
61
|
+
|
62
|
+
action :add_in_form do |a|
|
63
|
+
a.text = I18n.t("script_grid.new")
|
64
|
+
a.tooltip = I18n.t("script_grid.new")
|
65
|
+
a.icon = :script_add
|
66
|
+
a.disabled = config[:prohibit_create]
|
67
|
+
end
|
68
|
+
|
69
|
+
def default_bbar
|
70
|
+
[:add_in_form]
|
71
|
+
end
|
72
|
+
|
73
|
+
def default_context_menu
|
74
|
+
[]
|
75
|
+
end
|
76
|
+
|
77
|
+
def default_fields_for_forms
|
78
|
+
[:name]
|
79
|
+
end
|
80
|
+
|
81
|
+
column :name do |c|
|
82
|
+
c.flex = 1
|
83
|
+
c.text = I18n.t("script_grid.name")
|
84
|
+
end
|
85
|
+
|
86
|
+
column :created_dt do |c|
|
87
|
+
c.text = I18n.t("script_grid.created_dt")
|
88
|
+
c.format = "Y-m-d H:i"
|
89
|
+
c.read_only = true
|
90
|
+
end
|
91
|
+
|
92
|
+
column :tag do |c|
|
93
|
+
c.text = I18n.t("script_grid.tag")
|
94
|
+
c.flex = 1
|
95
|
+
c.getter = lambda { |r| r.find_tag.try(:name) }
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
ScriptGrid = Marty::ScriptGrid
|