crystal 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +25 -0
- data/lib/crystal/controller/abstract_controller/micelaneous.rb +31 -0
- data/lib/crystal/controller/abstract_controller/render.rb +133 -0
- data/lib/crystal/controller/abstract_controller/responder.rb +17 -0
- data/lib/crystal/controller/abstract_controller.rb +60 -0
- data/lib/crystal/controller/controller_context.rb +7 -0
- data/lib/crystal/controller/http_controller.rb +43 -0
- data/lib/crystal/controller/processors/controller_caller.rb +40 -0
- data/lib/crystal/controller/processors/controller_error_handling.rb +53 -0
- data/lib/crystal/controller/processors/controller_logger.rb +13 -0
- data/lib/crystal/controller.rb +28 -0
- data/lib/crystal/conveyor/conveyor.rb +74 -0
- data/lib/crystal/conveyor/conveyors.rb +20 -0
- data/lib/crystal/conveyor/params.rb +22 -0
- data/lib/crystal/conveyor/processor.rb +68 -0
- data/lib/crystal/conveyor/processors/conveyor_logger.rb +24 -0
- data/lib/crystal/conveyor/workspace.rb +36 -0
- data/lib/crystal/conveyor.rb +29 -0
- data/lib/crystal/environment/config.rb +118 -0
- data/lib/crystal/environment/dependency_resolver.rb +107 -0
- data/lib/crystal/environment/environment.rb +5 -0
- data/lib/crystal/environment/files_helper.rb +42 -0
- data/lib/crystal/environment/logger.rb +21 -0
- data/lib/crystal/environment.rb +52 -0
- data/lib/crystal/html/controller_helpers/controller_url_helper.rb +52 -0
- data/lib/crystal/html/controller_helpers/flash_helper.rb +5 -0
- data/lib/crystal/html/flash.rb +40 -0
- data/lib/crystal/html/include_into_controller.rb +24 -0
- data/lib/crystal/html/processors/prepare_flash.rb +26 -0
- data/lib/crystal/html/processors/scoped_params.rb +30 -0
- data/lib/crystal/html/view_helpers/basic_html_helper.rb +83 -0
- data/lib/crystal/html/view_helpers/form_helper.rb +104 -0
- data/lib/crystal/html/view_helpers/javascript_helper.rb +18 -0
- data/lib/crystal/html/view_helpers/model_helper.rb +119 -0
- data/lib/crystal/html/view_helpers/view_url_helper.rb +66 -0
- data/lib/crystal/html.rb +28 -0
- data/lib/crystal/http/http.rb +21 -0
- data/lib/crystal/http/http_adapter.rb +30 -0
- data/lib/crystal/http/middleware/static_files.rb +20 -0
- data/lib/crystal/http/processors/evaluate_format.rb +22 -0
- data/lib/crystal/http/processors/http_logger.rb +15 -0
- data/lib/crystal/http/processors/http_writer.rb +48 -0
- data/lib/crystal/http/processors/prepare_params.rb +24 -0
- data/lib/crystal/http/rack_config.rb +15 -0
- data/lib/crystal/http/support/rack/rack_adapter.rb +65 -0
- data/lib/crystal/http/support/rack/request.rb +12 -0
- data/lib/crystal/http/support/rack/response.rb +39 -0
- data/lib/crystal/http.rb +47 -0
- data/lib/crystal/mailer/mail.rb +7 -0
- data/lib/crystal/mailer.rb +13 -0
- data/lib/crystal/profiles/web.rb +69 -0
- data/lib/crystal/profiles/web_require.rb +5 -0
- data/lib/crystal/remote/processors/remote_caller.rb +54 -0
- data/lib/crystal/remote/processors/remote_logger.rb +13 -0
- data/lib/crystal/remote/remote.rb +15 -0
- data/lib/crystal/remote.rb +9 -0
- data/lib/crystal/router/configurator.rb +23 -0
- data/lib/crystal/router/default_format_processor.rb +12 -0
- data/lib/crystal/router/default_router.rb +23 -0
- data/lib/crystal/router/named_router.rb +63 -0
- data/lib/crystal/router/processors/router.rb +22 -0
- data/lib/crystal/router/router.rb +218 -0
- data/lib/crystal/router/routing_helper.rb +17 -0
- data/lib/crystal/router.rb +19 -0
- data/lib/crystal/spec/controller.rb +15 -0
- data/lib/crystal/spec/environment.rb +41 -0
- data/lib/crystal/spec/http.rb +67 -0
- data/lib/crystal/spec/mail.rb +20 -0
- data/lib/crystal/spec/remote.rb +9 -0
- data/lib/crystal/spec/view.rb +10 -0
- data/lib/crystal/spec/xhtml.rb +33 -0
- data/lib/crystal/spec.rb +8 -0
- data/lib/crystal/support/active_support/micelaneous.rb +2 -0
- data/lib/crystal/support/active_support.rb +37 -28
- data/lib/crystal/support/addressable.rb +45 -0
- data/lib/crystal/support/buffered_logger.rb +38 -0
- data/lib/crystal/support/callbacks.rb +155 -0
- data/lib/crystal/support/exception.rb +21 -0
- data/lib/crystal/support/filters.rb +34 -0
- data/lib/crystal/support/format.rb +9 -0
- data/lib/crystal/support/gems.rb +12 -0
- data/lib/crystal/support/micon.rb +16 -0
- data/lib/crystal/support/mime.rb +11 -0
- data/lib/crystal/support/module.rb +44 -0
- data/lib/crystal/support/rson.rb +53 -0
- data/lib/crystal/support/ruby_ext_with_active_support.rb +4 -0
- data/lib/crystal/support/safe_hash.rb +135 -0
- data/lib/crystal/support/string.rb +26 -0
- data/lib/crystal/support.rb +42 -0
- data/lib/crystal/template/support/tilt.rb +68 -0
- data/lib/crystal/template/template.rb +244 -0
- data/lib/crystal/template/template_context.rb +57 -0
- data/lib/crystal/template.rb +21 -0
- data/lib/views/crystal_default_templates/development/error.html.erb +11 -0
- data/lib/views/crystal_default_templates/development/error.js.erb +1 -0
- data/readme.md +9 -5
- data/spec/_mailer/basic_spec.rb +110 -0
- data/spec/_mailer/helper.rb +6 -0
- data/spec/controller/abstract_controller_spec/views/OperationsOrderSpec/action.erb +1 -0
- data/spec/controller/abstract_controller_spec/views/ViewVariablesSpec/action.erb +10 -0
- data/spec/controller/abstract_controller_spec.rb +138 -0
- data/spec/controller/controller_context_spec/views/ItemSpec/actions.erb +4 -0
- data/spec/controller/controller_context_spec/views/ItemSpec/show.erb +0 -0
- data/spec/controller/controller_context_spec/views/ItemSpec/update.erb +0 -0
- data/spec/controller/controller_context_spec/views/NamespaceSpec/ClassSpec/show.erb +0 -0
- data/spec/controller/controller_context_spec/views/PageSpec/actions.erb +3 -0
- data/spec/controller/controller_context_spec/views/PageSpec/show.erb +0 -0
- data/spec/controller/controller_context_spec/views/namespace_spec/class_spec/update.erb +0 -0
- data/spec/controller/controller_context_spec.rb +123 -0
- data/spec/controller/controller_helper_spec/views/HelperMethodSpec/action.erb +1 -0
- data/spec/controller/controller_helper_spec/views/HelperSpec/action.erb +1 -0
- data/spec/controller/controller_helper_spec.rb +58 -0
- data/spec/controller/controller_render_spec/views/AlreadyRenderedSpec/action.erb +1 -0
- data/spec/controller/controller_render_spec/views/AlreadyRenderedSpec/custom_template.erb +1 -0
- data/spec/controller/controller_render_spec/views/AnotherActionSpec/another_action.erb +1 -0
- data/spec/controller/controller_render_spec/views/AnotherLayout/action.erb +1 -0
- data/spec/controller/controller_render_spec/views/ExplicitRenderSpec/action.erb +1 -0
- data/spec/controller/controller_render_spec/views/ExplicitRenderSpec/another_action.erb +1 -0
- data/spec/controller/controller_render_spec/views/ForbidPartialAsActionSpec/_action.erb +1 -0
- data/spec/controller/controller_render_spec/views/FormatSpec/action.html.erb +1 -0
- data/spec/controller/controller_render_spec/views/FormatSpec/action.js.erb +1 -0
- data/spec/controller/controller_render_spec/views/LayoutFiltersSpec/action_with_layout.erb +1 -0
- data/spec/controller/controller_render_spec/views/LayoutFiltersSpec/action_without_layout.erb +1 -0
- data/spec/controller/controller_render_spec/views/LayoutSpec/action.erb +1 -0
- data/spec/controller/controller_render_spec/views/layouts/admin.erb +1 -0
- data/spec/controller/controller_render_spec/views/layouts/app.html.erb +1 -0
- data/spec/controller/controller_render_spec/views/layouts/app.js.erb +1 -0
- data/spec/controller/controller_render_spec/views/some_template.erb +1 -0
- data/spec/controller/controller_render_spec/views/standalone.html.erb +1 -0
- data/spec/controller/controller_render_spec.rb +192 -0
- data/spec/controller/error_handling_spec/views/diferrent_error_handling_spec/a.erb +1 -0
- data/spec/controller/error_handling_spec/views/diferrent_error_handling_spec/b.erb +1 -0
- data/spec/controller/error_handling_spec/views/diferrent_error_handling_spec/c.erb +1 -0
- data/spec/controller/error_handling_spec.rb +97 -0
- data/spec/controller/helper.rb +21 -0
- data/spec/controller/http_controller_spec.rb +90 -0
- data/spec/conveyor/conveyor_spec.rb +124 -0
- data/spec/conveyor/helper.rb +8 -0
- data/spec/environment/_dependency_resolver_spec.rb +50 -0
- data/spec/environment/environment_spec/app/app_plugin/config/ec_layout +1 -0
- data/spec/environment/environment_spec/app/app_plugin/ec_some_file +1 -0
- data/spec/environment/environment_spec/app/config/config.test.yml +1 -0
- data/spec/environment/environment_spec/app/config/config.yml +2 -0
- data/spec/environment/environment_spec/gem_plugin/config/ec_layout +1 -0
- data/spec/environment/environment_spec.rb +87 -0
- data/spec/environment/helper.rb +4 -0
- data/spec/environment/logger_spec.rb +20 -0
- data/spec/environment/minimal_app_spec/app.rb +3 -0
- data/spec/environment/minimal_app_spec.rb +29 -0
- data/spec/environment/standard_app_spec.rb +65 -0
- data/spec/environment/standard_app_spec_data/config/init.rb +18 -0
- data/spec/environment/standard_app_spec_data/plugin_a/plugin_a.rb +7 -0
- data/spec/html/basic_html_helper_spec.rb +30 -0
- data/spec/html/flash_spec.rb +185 -0
- data/spec/html/form_helper_spec.rb +57 -0
- data/spec/html/helper.rb +31 -0
- data/spec/html/javascript_helper_spec.rb +16 -0
- data/spec/html/model_helper_spec.rb +66 -0
- data/spec/html/scoped_params_spec.rb +18 -0
- data/spec/html/url_helper_spec.rb +152 -0
- data/spec/http/helper.rb +9 -0
- data/spec/http/http_spec.rb +57 -0
- data/spec/http/http_spec_data/config/init.rb +7 -0
- data/spec/http/http_spec_data/plugin_b/plugin_b.rb +6 -0
- data/spec/integration/basic_spec/views/smoke_test_spec/action.erb +1 -0
- data/spec/integration/basic_spec.rb +83 -0
- data/spec/integration/helper.rb +10 -0
- data/spec/remote/helper.rb +20 -0
- data/spec/remote/remote_spec.rb +76 -0
- data/spec/router/basic_spec.rb +131 -0
- data/spec/router/configurator_spec.rb +30 -0
- data/spec/router/helper.rb +23 -0
- data/spec/router/integration_spec.rb +43 -0
- data/spec/support/callbacks_spec.rb +155 -0
- data/spec/support/filters_spec.rb +61 -0
- data/spec/support/helper.rb +7 -0
- data/spec/support/safe_hash_spec.rb +84 -0
- data/spec/template/helper.rb +8 -0
- data/spec/template/template_spec/file.erb +1 -0
- data/spec/template/template_spec/views/basic/custom_context.erb +1 -0
- data/spec/template/template_spec/views/basic/extension.erb +1 -0
- data/spec/template/template_spec/views/basic/general.html.erb +5 -0
- data/spec/template/template_spec/views/basic/non_existing_format.html.erb +0 -0
- data/spec/template/template_spec/views/format/format.erb +1 -0
- data/spec/template/template_spec/views/format/format.html.erb +1 -0
- data/spec/template/template_spec/views/format/format.js.erb +1 -0
- data/spec/template/template_spec/views/layout/basic/content.erb +1 -0
- data/spec/template/template_spec/views/layout/basic/layout.erb +1 -0
- data/spec/template/template_spec/views/layout/content_for/content.erb +3 -0
- data/spec/template/template_spec/views/layout/content_for/layout.erb +3 -0
- data/spec/template/template_spec/views/layout/format/content.html.erb +1 -0
- data/spec/template/template_spec/views/layout/format/content.js.erb +1 -0
- data/spec/template/template_spec/views/layout/format/layout.html.erb +1 -0
- data/spec/template/template_spec/views/layout/format/layout.js.erb +1 -0
- data/spec/template/template_spec/views/layout/nested_yield/a.erb +1 -0
- data/spec/template/template_spec/views/layout/nested_yield/layout.erb +1 -0
- data/spec/template/template_spec/views/layout/nested_yield/layout_b.erb +1 -0
- data/spec/template/template_spec/views/layout/same_context/a.erb +1 -0
- data/spec/template/template_spec/views/layout/same_context/b.erb +1 -0
- data/spec/template/template_spec/views/layout/same_context/layout.erb +1 -0
- data/spec/template/template_spec/views/nested/format/a.erb +1 -0
- data/spec/template/template_spec/views/nested/format/b.erb +1 -0
- data/spec/template/template_spec/views/nested/relative/a.erb +1 -0
- data/spec/template/template_spec/views/nested/relative/b.erb +1 -0
- data/spec/template/template_spec/views/nested/relative/c.erb +1 -0
- data/spec/template/template_spec/views/nested/shared/c.erb +1 -0
- data/spec/template/template_spec/views/nesting_format/_dialog.html.erb +1 -0
- data/spec/template/template_spec/views/nesting_format/_form.html.erb +1 -0
- data/spec/template/template_spec/views/nesting_format/dialog.js.erb +1 -0
- data/spec/template/template_spec/views/other/template.erb +1 -0
- data/spec/template/template_spec/views/prefixes/_underscored.erb +1 -0
- data/spec/template/template_spec/views/prefixes/without_prefix.erb +1 -0
- data/spec/template/template_spec.rb +190 -0
- data/spec/template/tilt_spec/views/concat_and_capture.erb +1 -0
- data/spec/template/tilt_spec/views/concat_and_capture.haml +3 -0
- data/spec/template/tilt_spec/views/errors.erb +3 -0
- data/spec/template/tilt_spec/views/errors.haml +3 -0
- data/spec/template/tilt_spec/views/mixed_templates/broken_erb_concat_erb.erb +4 -0
- data/spec/template/tilt_spec/views/mixed_templates/broken_erb_concat_haml.haml +1 -0
- data/spec/template/tilt_spec/views/mixed_templates/broken_haml_concat_erb.erb +1 -0
- data/spec/template/tilt_spec/views/mixed_templates/broken_haml_concat_haml.haml +2 -0
- data/spec/template/tilt_spec/views/nested_capture_and_concat.haml +3 -0
- data/spec/template/tilt_spec/views/ugly.haml +3 -0
- data/spec/template/tilt_spec/views/yield.erb +1 -0
- data/spec/template/tilt_spec.rb +97 -0
- metadata +345 -205
- data/.git/COMMIT_EDITMSG +0 -1
- data/.git/FETCH_HEAD +0 -1
- data/.git/HEAD +0 -1
- data/.git/ORIG_HEAD +0 -1
- data/.git/config +0 -12
- data/.git/description +0 -1
- data/.git/hooks/applypatch-msg.sample +0 -15
- data/.git/hooks/commit-msg.sample +0 -24
- data/.git/hooks/post-commit.sample +0 -8
- data/.git/hooks/post-receive.sample +0 -15
- data/.git/hooks/post-update.sample +0 -8
- data/.git/hooks/pre-applypatch.sample +0 -14
- data/.git/hooks/pre-commit.sample +0 -46
- data/.git/hooks/pre-rebase.sample +0 -169
- data/.git/hooks/prepare-commit-msg.sample +0 -36
- data/.git/hooks/update.sample +0 -128
- data/.git/index +0 -0
- data/.git/info/exclude +0 -6
- data/.git/logs/HEAD +0 -21
- data/.git/logs/refs/heads/master +0 -21
- data/.git/logs/refs/remotes/origin/master +0 -19
- data/.git/objects/00/c26dc781c8997ed2bfa61f03b323466a3860d1 +0 -0
- data/.git/objects/04/03ee94b34a5760c46616cd13c317e69cb90d56 +0 -0
- data/.git/objects/04/6f30de5fd9fe81fd558c58091c38a57b6be727 +0 -0
- data/.git/objects/05/78d884154d5a74143844a4373121e8d9fa6abd +0 -0
- data/.git/objects/06/8c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 +0 -3
- data/.git/objects/08/8b766b31125f7c4ae34a8fc50b23842cd3d329 +0 -0
- data/.git/objects/09/66c6b45bacaae9282463b9b4c0ce8488bbcee5 +0 -2
- data/.git/objects/09/a40c814899fcdadc2bd5665e892a7db26a3677 +0 -2
- data/.git/objects/0c/eac702c4548a2748f50793ea5108cfd4937568 +0 -0
- data/.git/objects/0d/03131f9fbc3e2fb1f8f9b616ac273d05f3a7f5 +0 -0
- data/.git/objects/0e/50f691a65b41ba9e7df9d6738ff9f333089b34 +0 -0
- data/.git/objects/11/72a42d5efc6cb442f877bef4427321a216990a +0 -1
- data/.git/objects/12/3a3f6e3c82bb8df88e242085deef1aa150039c +0 -0
- data/.git/objects/14/6253750089fd522535155630344c8ff2a60830 +0 -0
- data/.git/objects/15/3d7375df50713dd61152db972492405e5475e0 +0 -0
- data/.git/objects/15/f5669d470665c6bd28b5ab7b65431e199c36e9 +0 -0
- data/.git/objects/1b/d4b59edc03948d15434e9eb882c769ab779ba6 +0 -0
- data/.git/objects/1c/abe7402ff0ea8bbf7a63cee7a61dec7578dae9 +0 -0
- data/.git/objects/20/fb67fdc8a63361a3d317d3c873462fd5a338d0 +0 -0
- data/.git/objects/21/4bb3dd51d883243c744ee3d668e09a0c1cc293 +0 -0
- data/.git/objects/23/9d84cdccd97f779f60c08f88ab635f4c236e87 +0 -0
- data/.git/objects/27/510002446b0a1405c1e7f14634c28407dffa76 +0 -0
- data/.git/objects/28/4db1992e17d1d5fc9280dc4e79799958a9cbac +0 -0
- data/.git/objects/28/69649fc37831734b82493fe980f9dc65dfd935 +0 -0
- data/.git/objects/28/a3d1b3c79d0e59b8359ecd75e4ec0d62f60468 +0 -2
- data/.git/objects/29/53f684e47235f5b14b4beb0b0bb61c8e520dd8 +0 -0
- data/.git/objects/2c/b339709e1fb005a3e3006e76558d2e45333008 +0 -0
- data/.git/objects/2d/077a401db466ea0b1f062eac15293879293439 +0 -0
- data/.git/objects/2e/2f635a49a032cb37d69af4862181bb37bfa0fa +0 -0
- data/.git/objects/31/0f7c970910eced673e858c197f6ee418e97545 +0 -0
- data/.git/objects/34/7475671d8fbc0e870ce9ec1c6f275ddd90f1db +0 -0
- data/.git/objects/36/479605ef7fc62ec68841284083e171bcb3b2c2 +0 -2
- data/.git/objects/37/1221704ea1da5a27626855e82076565fb58cac +0 -0
- data/.git/objects/38/3af6cb155addf818eb9396229892743112dbc3 +0 -0
- data/.git/objects/3a/97679c02b93c246d359a6f663b513691e37991 +0 -0
- data/.git/objects/3b/101bd6fccf79321048448c8384029c8768ec01 +0 -0
- data/.git/objects/3d/4a702963039cf32ac2ca91c37669e78625f92b +0 -0
- data/.git/objects/40/55426e988e151ac26792ec17bf31d04c606377 +0 -0
- data/.git/objects/42/828defbc95389daf9bfa11c8b2341f98303ee7 +0 -0
- data/.git/objects/44/b6d8df4e1f924caeb7de56135c251ce24998fd +0 -0
- data/.git/objects/46/42a59703e31a105aa67c4511be5e41402d08af +0 -0
- data/.git/objects/49/22dc7ff543c31059ef3979c51ab36cdf74367e +0 -0
- data/.git/objects/49/3a5d4dfc291e68321e15120dd9ca15388817ff +0 -0
- data/.git/objects/4a/787ce4e048fe15df728e9b5e9170f087b0bcde +0 -4
- data/.git/objects/4b/f9324fefa911db32f9d75461842e3420254e7f +0 -0
- data/.git/objects/4d/ada0b46f7aedd3da02dbec0daef667b3903765 +0 -0
- data/.git/objects/50/dfa247b62156c4eb6371c8a68054c63aa1f075 +0 -2
- data/.git/objects/53/ae2a3872c30d9242b5ea4a609165c02da18392 +0 -0
- data/.git/objects/56/43b861a644b727a8b54ae003977151d975f360 +0 -0
- data/.git/objects/57/5fdffb0b6f624c9d2676964603788264ed7b28 +0 -0
- data/.git/objects/5a/53898e77d291396aeb2b7255d97d185b92cad2 +0 -0
- data/.git/objects/5c/bb5fbba6c1b72af9e412047c50e8629c681d72 +0 -1
- data/.git/objects/5e/11ba5e0794a914747bae95b942b2dbeb5c36c3 +0 -0
- data/.git/objects/5e/22424fba117a89e563604e2e55fca82ef7547a +0 -0
- data/.git/objects/5e/90e483ed4782b9a2a834280c6ad5e7711462fa +0 -0
- data/.git/objects/5e/f6eb87941331580ede445399654f199a9a6156 +0 -0
- data/.git/objects/5f/2b8b8c9f16877c91fda9a177e235698103c4c9 +0 -0
- data/.git/objects/61/8d3d8348db1739ba171f7db3effb3c7244bf3b +0 -2
- data/.git/objects/62/b4bbd793a5a9ad8b0f24ef657b973afbfcf3cf +0 -0
- data/.git/objects/62/fa8ffcffcedc680a953c2e01ca9312e60807b0 +0 -0
- data/.git/objects/63/82b66d637e3d04e78a6272e25d3e212de90a10 +0 -0
- data/.git/objects/65/b8ba705a4a439a8b26df539f10b97d6ca4988d +0 -1
- data/.git/objects/66/aa791f24ea2ed8717abe3d1c74da4ad544723d +0 -0
- data/.git/objects/68/02f5c496f00787242a9fa1a81eb9847071e076 +0 -0
- data/.git/objects/69/b1b39f438eb902f68ddd438119d2e74633d16f +0 -0
- data/.git/objects/6c/a1abc3f9fe344fddcedb7163848fe6111717ae +0 -0
- data/.git/objects/6d/003cf32b629086b5714d3ba0cb6b3ae296ff4e +0 -0
- data/.git/objects/6e/4e5c95547a5e088db2d6a9d3b52c446cfec1fb +0 -0
- data/.git/objects/6f/2b5882b4cb9c2ef42902433076b58ef5ce44b9 +0 -0
- data/.git/objects/71/d7d7da97da36d9899873715ccd080c2793cbe9 +0 -0
- data/.git/objects/7a/64ac4146eb137a2667085fbddfea97cc727bb7 +0 -2
- data/.git/objects/7b/47a3e0c3fb6407567185df38e031cb54179c6e +0 -0
- data/.git/objects/7c/34481a926b48e49767828aa8a3bbeeeb26643e +0 -0
- data/.git/objects/7c/4fb1fb0dfa094010b07e489dd6feaa0b15c316 +0 -0
- data/.git/objects/7d/97e0e697055b4fbf915cc3d662d4599b3b1477 +0 -0
- data/.git/objects/7f/0673a63b426d7025b0a11de29083490264b350 +0 -0
- data/.git/objects/81/031da1db90c4cd43fe27336054d76564dbe64c +0 -3
- data/.git/objects/81/1ad37e54ba756ff8d3acbbad733e43631c2de8 +0 -3
- data/.git/objects/81/f505f109391e66ba3de39165c66c41b8e5e0bb +0 -0
- data/.git/objects/82/1912a397a9029beb4d74f407a6ad4b8e36f2f2 +0 -0
- data/.git/objects/85/8d7587d219e75ac4eda5bc7b6d28e74d545146 +0 -0
- data/.git/objects/86/738c97b0d7ac8443a25cbcd0c4e147bcdb152e +0 -0
- data/.git/objects/86/edc0909929d735fe5e1cf8f8b46ad7fa2c1d60 +0 -0
- data/.git/objects/8b/722287d6667e73e07eab685f7bd7b32dbecb04 +0 -0
- data/.git/objects/8b/ef303f65e1da2f9054b8912cb952718ef99bba +0 -0
- data/.git/objects/8c/572af4f04bcafb3c226a669fbc4dc508aed651 +0 -0
- data/.git/objects/8d/a995e65577a82011df060b13a498f0a738d017 +0 -0
- data/.git/objects/8e/1980f27fbc85de9d530e3946ad9f4e78b96107 +0 -0
- data/.git/objects/8e/5b69ea615859da8ee6d7848ca754d8cca5ffc5 +0 -0
- data/.git/objects/90/cfb8df76866f20a0c9c4adfb6d5d1faebad9d3 +0 -0
- data/.git/objects/9f/e781c5e0fe8f889aefb163da0b52f9cf25ec1f +0 -2
- data/.git/objects/a4/fd740f28646783c68d1db592fa65a983d73e7b +0 -0
- data/.git/objects/a7/618ca140c7c16536cdbd864c8264d4e738d508 +0 -0
- data/.git/objects/a9/38b272a1a743d7e30caa05b5513760195ec0a8 +0 -4
- data/.git/objects/a9/4c0880d370e61595adda4af6e91209437265aa +0 -0
- data/.git/objects/aa/2420e96b6dcb848de2a8ea393c28a0314eda6e +0 -2
- data/.git/objects/aa/ddfc59430a3fb268bd5c97a088ea4bfdb2db07 +0 -0
- data/.git/objects/ac/3226f3722e8ea60a4ddcbc5b4a30d305fbdf50 +0 -0
- data/.git/objects/ad/8ddf80de972b932bc955c672c29e21f948367f +0 -0
- data/.git/objects/ad/994f9b41e5bc6fd188de9aa8adefe6b5515ed6 +0 -3
- data/.git/objects/af/606f60f63c31341fd75ec557e073435327cf82 +0 -0
- data/.git/objects/b1/244bb3652d56ebe4b465468e214d1a1fa87ebb +0 -1
- data/.git/objects/b2/1be06405e5a7e2db12e03d6a781c759b305a72 +0 -0
- data/.git/objects/b2/a45e92c20d09897c984186472f616c0af6b5d3 +0 -2
- data/.git/objects/b3/39ab5d14998e1bb098eb0b807fb9b53ecc790b +0 -0
- data/.git/objects/b3/838491c1c451ff8680fe25a7288d79e22c5ee9 +0 -1
- data/.git/objects/b4/e715329ba853104d19112487b1188571bca659 +0 -0
- data/.git/objects/b5/010cc435a10af9518f125b67851576c1e74835 +0 -0
- data/.git/objects/b5/9d6a5f9325cbd5a7ce3b351b51db1f1b6d58f9 +0 -0
- data/.git/objects/b6/e185313a1e82513d52144e80d97c4e7217a6b0 +0 -0
- data/.git/objects/b8/bd01ebc6defac18710776615168beb4e251e87 +0 -2
- data/.git/objects/b8/ca44e136c1392f27f617801a9ea908eaf45d0b +0 -0
- data/.git/objects/ba/c39f505b90f6e64cff088337293912161a4ca5 +0 -0
- data/.git/objects/bb/c21a34b3d2ddd51f3e39ddef3c6811aaa26305 +0 -0
- data/.git/objects/bf/1e07cd3085bed5be7f3ca1860ec8c14d0fdebb +0 -0
- data/.git/objects/bf/4d123f34ecf86a041a5d8df32beb6e1b24dfed +0 -0
- data/.git/objects/c0/aa97f36a0fdf80be4ca530ecf0ff7ec23fc313 +0 -0
- data/.git/objects/c2/759026a46887f199c46ee60ef9764fed87c7af +0 -0
- data/.git/objects/c3/6838a35e7acdbe40a8e762aa92e143d6be8376 +0 -0
- data/.git/objects/c5/73778609d449286e4eb5177d34e3c77b0cf520 +0 -0
- data/.git/objects/c5/945ab6909de8dd7f9e192a67fe72db2a7f5740 +0 -0
- data/.git/objects/c5/ef2f6ac4ee5779fa79f7afb54a458191352e86 +0 -0
- data/.git/objects/c6/c08bf8bd35fcf7fc9127a482badd7a9ff48ba2 +0 -0
- data/.git/objects/c6/c8485326187c9c872dedc68d71a2fe3ad15446 +0 -0
- data/.git/objects/cc/0b74e32ae045d3208839aa91d0dc94f5ea4c09 +0 -0
- data/.git/objects/cc/dd62a9a3a9e16e487495294c19ac64da9516d0 +0 -3
- data/.git/objects/cf/8ccc732db70ccfb4e185f78dc03512b04fb4f6 +0 -0
- data/.git/objects/d2/6b6bac449e70757e718bf023bd3c327b3f231c +0 -0
- data/.git/objects/d3/b4580aaa3c069e320b941dd23f56a474cd6caa +0 -3
- data/.git/objects/d4/5dffe5792c4d873de1cc233ec8992e9a9f8df5 +0 -0
- data/.git/objects/d7/ea5d3d4b7fdcc93771304fee8d5261f6469f28 +0 -0
- data/.git/objects/d8/53eba81fc4b75fbc90cf8c39f4b1344deddc9f +0 -0
- data/.git/objects/d8/de40b222d79af7bdb2b1ae59944fc3b0dd0f05 +0 -0
- data/.git/objects/df/39c68e0de1bee1b87beeb44170f52db5da2317 +0 -0
- data/.git/objects/df/e23416f16c0bb6c98ca2a0b1d02d803ff53831 +0 -0
- data/.git/objects/df/ee793cf3fd89820e5a9a4481d35000d75040d9 +0 -0
- data/.git/objects/e0/f7b971a634e34d7976676a4d575c654746a5f8 +0 -0
- data/.git/objects/e2/6ee4ee0aae4b71ab0fae46952e858050eb6380 +0 -0
- data/.git/objects/e5/134d62f67ad64eb79b139bb86ed8af711704d4 +0 -0
- data/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/.git/objects/e8/2061e7bc928cd8df2a4ac34848bd670d7cb29c +0 -0
- data/.git/objects/e8/2e9ddde8094f4d6f4871abe19f82acce46cafe +0 -0
- data/.git/objects/e9/0b6867602c5754080219c30aee275f3aa10b49 +0 -0
- data/.git/objects/e9/8264a4555c2b9436f7c8633575eb5cea338e35 +0 -0
- data/.git/objects/eb/86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 +0 -0
- data/.git/objects/ee/282c9448793de0bd2df8348e0f4fd6cb1b8f2f +0 -0
- data/.git/objects/f0/2d1b4f22ec5df7fc658d4616cac5e5250e033b +0 -0
- data/.git/objects/f3/8245046bfe9c478a502c58b1c1434f382800d3 +0 -0
- data/.git/objects/f3/e1d5f3bc635974bf9410cb87d21bb3ad29da6b +0 -0
- data/.git/objects/f6/3c2e6d83a07cf107ff63a6b92a72a0ac5e9e3f +0 -0
- data/.git/objects/f8/a51fe3b4da3e5616ee4606fc71ef1915162853 +0 -0
- data/.git/objects/fb/0a0717fd1a64bfe6de89e84ce2f320e9bca527 +0 -0
- data/.git/objects/fc/794047fc246572581a7fdce016e1be6b8ab61a +0 -0
- data/.git/objects/fe/d4da51927e4d0b97d071611a3cb0c7c484938d +0 -0
- data/.git/objects/ff/db1bde1735cee2b62d80bf8151ae98515069b4 +0 -0
- data/.git/refs/heads/master +0 -1
- data/.git/refs/remotes/origin/master +0 -1
- data/.gitignore +0 -3
- data/bin/crystal_console +0 -45
- data/bin/crystal_new +0 -3
- data/bin/crystal_server +0 -6
- data/lib/crystal/core/config.rb +0 -52
- data/lib/crystal/core/crystal.rb +0 -40
- data/lib/crystal/core/remote.rb +0 -8
- data/lib/crystal/core/router.rb +0 -39
- data/lib/crystal/core/scopes.rb +0 -4
- data/lib/crystal/rack/adapter.rb +0 -57
- data/lib/crystal/rack/middleware/static_files.rb +0 -27
- data/lib/crystal/rack/rack_app.rb +0 -96
- data/lib/crystal/rack/support.rb +0 -55
- data/lib/crystal.rb +0 -37
- data/rakefile +0 -70
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to check the commit log message taken by
|
4
|
-
# applypatch from an e-mail message.
|
5
|
-
#
|
6
|
-
# The hook should exit with non-zero status after issuing an
|
7
|
-
# appropriate message if it wants to stop the commit. The hook is
|
8
|
-
# allowed to edit the commit message file.
|
9
|
-
#
|
10
|
-
# To enable this hook, rename this file to "applypatch-msg".
|
11
|
-
|
12
|
-
. git-sh-setup
|
13
|
-
test -x "$GIT_DIR/hooks/commit-msg" &&
|
14
|
-
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
|
15
|
-
:
|
@@ -1,24 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to check the commit log message.
|
4
|
-
# Called by git-commit with one argument, the name of the file
|
5
|
-
# that has the commit message. The hook should exit with non-zero
|
6
|
-
# status after issuing an appropriate message if it wants to stop the
|
7
|
-
# commit. The hook is allowed to edit the commit message file.
|
8
|
-
#
|
9
|
-
# To enable this hook, rename this file to "commit-msg".
|
10
|
-
|
11
|
-
# Uncomment the below to add a Signed-off-by line to the message.
|
12
|
-
# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
|
13
|
-
# hook is more suited to it.
|
14
|
-
#
|
15
|
-
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
|
16
|
-
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
|
17
|
-
|
18
|
-
# This example catches duplicate Signed-off-by lines.
|
19
|
-
|
20
|
-
test "" = "$(grep '^Signed-off-by: ' "$1" |
|
21
|
-
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
|
22
|
-
echo >&2 Duplicate Signed-off-by lines.
|
23
|
-
exit 1
|
24
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script for the "post-receive" event.
|
4
|
-
#
|
5
|
-
# The "post-receive" script is run after receive-pack has accepted a pack
|
6
|
-
# and the repository has been updated. It is passed arguments in through
|
7
|
-
# stdin in the form
|
8
|
-
# <oldrev> <newrev> <refname>
|
9
|
-
# For example:
|
10
|
-
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
|
11
|
-
#
|
12
|
-
# see contrib/hooks/ for a sample, or uncomment the next line and
|
13
|
-
# rename the file to "post-receive".
|
14
|
-
|
15
|
-
#. /usr/share/doc/git-core/contrib/hooks/post-receive-email
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to verify what is about to be committed
|
4
|
-
# by applypatch from an e-mail message.
|
5
|
-
#
|
6
|
-
# The hook should exit with non-zero status after issuing an
|
7
|
-
# appropriate message if it wants to stop the commit.
|
8
|
-
#
|
9
|
-
# To enable this hook, rename this file to "pre-applypatch".
|
10
|
-
|
11
|
-
. git-sh-setup
|
12
|
-
test -x "$GIT_DIR/hooks/pre-commit" &&
|
13
|
-
exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
|
14
|
-
:
|
@@ -1,46 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to verify what is about to be committed.
|
4
|
-
# Called by git-commit with no arguments. The hook should
|
5
|
-
# exit with non-zero status after issuing an appropriate message if
|
6
|
-
# it wants to stop the commit.
|
7
|
-
#
|
8
|
-
# To enable this hook, rename this file to "pre-commit".
|
9
|
-
|
10
|
-
if git-rev-parse --verify HEAD >/dev/null 2>&1
|
11
|
-
then
|
12
|
-
against=HEAD
|
13
|
-
else
|
14
|
-
# Initial commit: diff against an empty tree object
|
15
|
-
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
16
|
-
fi
|
17
|
-
|
18
|
-
# If you want to allow non-ascii filenames set this variable to true.
|
19
|
-
allownonascii=$(git config hooks.allownonascii)
|
20
|
-
|
21
|
-
# Cross platform projects tend to avoid non-ascii filenames; prevent
|
22
|
-
# them from being added to the repository. We exploit the fact that the
|
23
|
-
# printable range starts at the space character and ends with tilde.
|
24
|
-
if [ "$allownonascii" != "true" ] &&
|
25
|
-
# Note that the use of brackets around a tr range is ok here, (it's
|
26
|
-
# even required, for portability to Solaris 10's /usr/bin/tr), since
|
27
|
-
# the square bracket bytes happen to fall in the designated range.
|
28
|
-
test "$(git diff --cached --name-only --diff-filter=A -z $against |
|
29
|
-
LC_ALL=C tr -d '[ -~]\0')"
|
30
|
-
then
|
31
|
-
echo "Error: Attempt to add a non-ascii file name."
|
32
|
-
echo
|
33
|
-
echo "This can cause problems if you want to work"
|
34
|
-
echo "with people on other platforms."
|
35
|
-
echo
|
36
|
-
echo "To be portable it is advisable to rename the file ..."
|
37
|
-
echo
|
38
|
-
echo "If you know what you are doing you can disable this"
|
39
|
-
echo "check using:"
|
40
|
-
echo
|
41
|
-
echo " git config hooks.allownonascii true"
|
42
|
-
echo
|
43
|
-
exit 1
|
44
|
-
fi
|
45
|
-
|
46
|
-
exec git diff-index --check --cached $against --
|
@@ -1,169 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Copyright (c) 2006, 2008 Junio C Hamano
|
4
|
-
#
|
5
|
-
# The "pre-rebase" hook is run just before "git-rebase" starts doing
|
6
|
-
# its job, and can prevent the command from running by exiting with
|
7
|
-
# non-zero status.
|
8
|
-
#
|
9
|
-
# The hook is called with the following parameters:
|
10
|
-
#
|
11
|
-
# $1 -- the upstream the series was forked from.
|
12
|
-
# $2 -- the branch being rebased (or empty when rebasing the current branch).
|
13
|
-
#
|
14
|
-
# This sample shows how to prevent topic branches that are already
|
15
|
-
# merged to 'next' branch from getting rebased, because allowing it
|
16
|
-
# would result in rebasing already published history.
|
17
|
-
|
18
|
-
publish=next
|
19
|
-
basebranch="$1"
|
20
|
-
if test "$#" = 2
|
21
|
-
then
|
22
|
-
topic="refs/heads/$2"
|
23
|
-
else
|
24
|
-
topic=`git symbolic-ref HEAD` ||
|
25
|
-
exit 0 ;# we do not interrupt rebasing detached HEAD
|
26
|
-
fi
|
27
|
-
|
28
|
-
case "$topic" in
|
29
|
-
refs/heads/??/*)
|
30
|
-
;;
|
31
|
-
*)
|
32
|
-
exit 0 ;# we do not interrupt others.
|
33
|
-
;;
|
34
|
-
esac
|
35
|
-
|
36
|
-
# Now we are dealing with a topic branch being rebased
|
37
|
-
# on top of master. Is it OK to rebase it?
|
38
|
-
|
39
|
-
# Does the topic really exist?
|
40
|
-
git show-ref -q "$topic" || {
|
41
|
-
echo >&2 "No such branch $topic"
|
42
|
-
exit 1
|
43
|
-
}
|
44
|
-
|
45
|
-
# Is topic fully merged to master?
|
46
|
-
not_in_master=`git-rev-list --pretty=oneline ^master "$topic"`
|
47
|
-
if test -z "$not_in_master"
|
48
|
-
then
|
49
|
-
echo >&2 "$topic is fully merged to master; better remove it."
|
50
|
-
exit 1 ;# we could allow it, but there is no point.
|
51
|
-
fi
|
52
|
-
|
53
|
-
# Is topic ever merged to next? If so you should not be rebasing it.
|
54
|
-
only_next_1=`git-rev-list ^master "^$topic" ${publish} | sort`
|
55
|
-
only_next_2=`git-rev-list ^master ${publish} | sort`
|
56
|
-
if test "$only_next_1" = "$only_next_2"
|
57
|
-
then
|
58
|
-
not_in_topic=`git-rev-list "^$topic" master`
|
59
|
-
if test -z "$not_in_topic"
|
60
|
-
then
|
61
|
-
echo >&2 "$topic is already up-to-date with master"
|
62
|
-
exit 1 ;# we could allow it, but there is no point.
|
63
|
-
else
|
64
|
-
exit 0
|
65
|
-
fi
|
66
|
-
else
|
67
|
-
not_in_next=`git-rev-list --pretty=oneline ^${publish} "$topic"`
|
68
|
-
perl -e '
|
69
|
-
my $topic = $ARGV[0];
|
70
|
-
my $msg = "* $topic has commits already merged to public branch:\n";
|
71
|
-
my (%not_in_next) = map {
|
72
|
-
/^([0-9a-f]+) /;
|
73
|
-
($1 => 1);
|
74
|
-
} split(/\n/, $ARGV[1]);
|
75
|
-
for my $elem (map {
|
76
|
-
/^([0-9a-f]+) (.*)$/;
|
77
|
-
[$1 => $2];
|
78
|
-
} split(/\n/, $ARGV[2])) {
|
79
|
-
if (!exists $not_in_next{$elem->[0]}) {
|
80
|
-
if ($msg) {
|
81
|
-
print STDERR $msg;
|
82
|
-
undef $msg;
|
83
|
-
}
|
84
|
-
print STDERR " $elem->[1]\n";
|
85
|
-
}
|
86
|
-
}
|
87
|
-
' "$topic" "$not_in_next" "$not_in_master"
|
88
|
-
exit 1
|
89
|
-
fi
|
90
|
-
|
91
|
-
exit 0
|
92
|
-
|
93
|
-
################################################################
|
94
|
-
|
95
|
-
This sample hook safeguards topic branches that have been
|
96
|
-
published from being rewound.
|
97
|
-
|
98
|
-
The workflow assumed here is:
|
99
|
-
|
100
|
-
* Once a topic branch forks from "master", "master" is never
|
101
|
-
merged into it again (either directly or indirectly).
|
102
|
-
|
103
|
-
* Once a topic branch is fully cooked and merged into "master",
|
104
|
-
it is deleted. If you need to build on top of it to correct
|
105
|
-
earlier mistakes, a new topic branch is created by forking at
|
106
|
-
the tip of the "master". This is not strictly necessary, but
|
107
|
-
it makes it easier to keep your history simple.
|
108
|
-
|
109
|
-
* Whenever you need to test or publish your changes to topic
|
110
|
-
branches, merge them into "next" branch.
|
111
|
-
|
112
|
-
The script, being an example, hardcodes the publish branch name
|
113
|
-
to be "next", but it is trivial to make it configurable via
|
114
|
-
$GIT_DIR/config mechanism.
|
115
|
-
|
116
|
-
With this workflow, you would want to know:
|
117
|
-
|
118
|
-
(1) ... if a topic branch has ever been merged to "next". Young
|
119
|
-
topic branches can have stupid mistakes you would rather
|
120
|
-
clean up before publishing, and things that have not been
|
121
|
-
merged into other branches can be easily rebased without
|
122
|
-
affecting other people. But once it is published, you would
|
123
|
-
not want to rewind it.
|
124
|
-
|
125
|
-
(2) ... if a topic branch has been fully merged to "master".
|
126
|
-
Then you can delete it. More importantly, you should not
|
127
|
-
build on top of it -- other people may already want to
|
128
|
-
change things related to the topic as patches against your
|
129
|
-
"master", so if you need further changes, it is better to
|
130
|
-
fork the topic (perhaps with the same name) afresh from the
|
131
|
-
tip of "master".
|
132
|
-
|
133
|
-
Let's look at this example:
|
134
|
-
|
135
|
-
o---o---o---o---o---o---o---o---o---o "next"
|
136
|
-
/ / / /
|
137
|
-
/ a---a---b A / /
|
138
|
-
/ / / /
|
139
|
-
/ / c---c---c---c B /
|
140
|
-
/ / / \ /
|
141
|
-
/ / / b---b C \ /
|
142
|
-
/ / / / \ /
|
143
|
-
---o---o---o---o---o---o---o---o---o---o---o "master"
|
144
|
-
|
145
|
-
|
146
|
-
A, B and C are topic branches.
|
147
|
-
|
148
|
-
* A has one fix since it was merged up to "next".
|
149
|
-
|
150
|
-
* B has finished. It has been fully merged up to "master" and "next",
|
151
|
-
and is ready to be deleted.
|
152
|
-
|
153
|
-
* C has not merged to "next" at all.
|
154
|
-
|
155
|
-
We would want to allow C to be rebased, refuse A, and encourage
|
156
|
-
B to be deleted.
|
157
|
-
|
158
|
-
To compute (1):
|
159
|
-
|
160
|
-
git-rev-list ^master ^topic next
|
161
|
-
git-rev-list ^master next
|
162
|
-
|
163
|
-
if these match, topic has not merged in next at all.
|
164
|
-
|
165
|
-
To compute (2):
|
166
|
-
|
167
|
-
git-rev-list master..topic
|
168
|
-
|
169
|
-
if this is empty, it is fully merged to "master".
|
@@ -1,36 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to prepare the commit log message.
|
4
|
-
# Called by git-commit with the name of the file that has the
|
5
|
-
# commit message, followed by the description of the commit
|
6
|
-
# message's source. The hook's purpose is to edit the commit
|
7
|
-
# message file. If the hook fails with a non-zero status,
|
8
|
-
# the commit is aborted.
|
9
|
-
#
|
10
|
-
# To enable this hook, rename this file to "prepare-commit-msg".
|
11
|
-
|
12
|
-
# This hook includes three examples. The first comments out the
|
13
|
-
# "Conflicts:" part of a merge commit.
|
14
|
-
#
|
15
|
-
# The second includes the output of "git diff --name-status -r"
|
16
|
-
# into the message, just before the "git status" output. It is
|
17
|
-
# commented because it doesn't cope with --amend or with squashed
|
18
|
-
# commits.
|
19
|
-
#
|
20
|
-
# The third example adds a Signed-off-by line to the message, that can
|
21
|
-
# still be edited. This is rarely a good idea.
|
22
|
-
|
23
|
-
case "$2,$3" in
|
24
|
-
merge,)
|
25
|
-
perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;;
|
26
|
-
|
27
|
-
# ,|template,)
|
28
|
-
# perl -i.bak -pe '
|
29
|
-
# print "\n" . `git diff --cached --name-status -r`
|
30
|
-
# if /^#/ && $first++ == 0' "$1" ;;
|
31
|
-
|
32
|
-
*) ;;
|
33
|
-
esac
|
34
|
-
|
35
|
-
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
|
36
|
-
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
|
data/.git/hooks/update.sample
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to blocks unannotated tags from entering.
|
4
|
-
# Called by git-receive-pack with arguments: refname sha1-old sha1-new
|
5
|
-
#
|
6
|
-
# To enable this hook, rename this file to "update".
|
7
|
-
#
|
8
|
-
# Config
|
9
|
-
# ------
|
10
|
-
# hooks.allowunannotated
|
11
|
-
# This boolean sets whether unannotated tags will be allowed into the
|
12
|
-
# repository. By default they won't be.
|
13
|
-
# hooks.allowdeletetag
|
14
|
-
# This boolean sets whether deleting tags will be allowed in the
|
15
|
-
# repository. By default they won't be.
|
16
|
-
# hooks.allowmodifytag
|
17
|
-
# This boolean sets whether a tag may be modified after creation. By default
|
18
|
-
# it won't be.
|
19
|
-
# hooks.allowdeletebranch
|
20
|
-
# This boolean sets whether deleting branches will be allowed in the
|
21
|
-
# repository. By default they won't be.
|
22
|
-
# hooks.denycreatebranch
|
23
|
-
# This boolean sets whether remotely creating branches will be denied
|
24
|
-
# in the repository. By default this is allowed.
|
25
|
-
#
|
26
|
-
|
27
|
-
# --- Command line
|
28
|
-
refname="$1"
|
29
|
-
oldrev="$2"
|
30
|
-
newrev="$3"
|
31
|
-
|
32
|
-
# --- Safety check
|
33
|
-
if [ -z "$GIT_DIR" ]; then
|
34
|
-
echo "Don't run this script from the command line." >&2
|
35
|
-
echo " (if you want, you could supply GIT_DIR then run" >&2
|
36
|
-
echo " $0 <ref> <oldrev> <newrev>)" >&2
|
37
|
-
exit 1
|
38
|
-
fi
|
39
|
-
|
40
|
-
if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
|
41
|
-
echo "Usage: $0 <ref> <oldrev> <newrev>" >&2
|
42
|
-
exit 1
|
43
|
-
fi
|
44
|
-
|
45
|
-
# --- Config
|
46
|
-
allowunannotated=$(git config --bool hooks.allowunannotated)
|
47
|
-
allowdeletebranch=$(git config --bool hooks.allowdeletebranch)
|
48
|
-
denycreatebranch=$(git config --bool hooks.denycreatebranch)
|
49
|
-
allowdeletetag=$(git config --bool hooks.allowdeletetag)
|
50
|
-
allowmodifytag=$(git config --bool hooks.allowmodifytag)
|
51
|
-
|
52
|
-
# check for no description
|
53
|
-
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
|
54
|
-
case "$projectdesc" in
|
55
|
-
"Unnamed repository"* | "")
|
56
|
-
echo "*** Project description file hasn't been set" >&2
|
57
|
-
exit 1
|
58
|
-
;;
|
59
|
-
esac
|
60
|
-
|
61
|
-
# --- Check types
|
62
|
-
# if $newrev is 0000...0000, it's a commit to delete a ref.
|
63
|
-
zero="0000000000000000000000000000000000000000"
|
64
|
-
if [ "$newrev" = "$zero" ]; then
|
65
|
-
newrev_type=delete
|
66
|
-
else
|
67
|
-
newrev_type=$(git-cat-file -t $newrev)
|
68
|
-
fi
|
69
|
-
|
70
|
-
case "$refname","$newrev_type" in
|
71
|
-
refs/tags/*,commit)
|
72
|
-
# un-annotated tag
|
73
|
-
short_refname=${refname##refs/tags/}
|
74
|
-
if [ "$allowunannotated" != "true" ]; then
|
75
|
-
echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
|
76
|
-
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
|
77
|
-
exit 1
|
78
|
-
fi
|
79
|
-
;;
|
80
|
-
refs/tags/*,delete)
|
81
|
-
# delete tag
|
82
|
-
if [ "$allowdeletetag" != "true" ]; then
|
83
|
-
echo "*** Deleting a tag is not allowed in this repository" >&2
|
84
|
-
exit 1
|
85
|
-
fi
|
86
|
-
;;
|
87
|
-
refs/tags/*,tag)
|
88
|
-
# annotated tag
|
89
|
-
if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
|
90
|
-
then
|
91
|
-
echo "*** Tag '$refname' already exists." >&2
|
92
|
-
echo "*** Modifying a tag is not allowed in this repository." >&2
|
93
|
-
exit 1
|
94
|
-
fi
|
95
|
-
;;
|
96
|
-
refs/heads/*,commit)
|
97
|
-
# branch
|
98
|
-
if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
|
99
|
-
echo "*** Creating a branch is not allowed in this repository" >&2
|
100
|
-
exit 1
|
101
|
-
fi
|
102
|
-
;;
|
103
|
-
refs/heads/*,delete)
|
104
|
-
# delete branch
|
105
|
-
if [ "$allowdeletebranch" != "true" ]; then
|
106
|
-
echo "*** Deleting a branch is not allowed in this repository" >&2
|
107
|
-
exit 1
|
108
|
-
fi
|
109
|
-
;;
|
110
|
-
refs/remotes/*,commit)
|
111
|
-
# tracking branch
|
112
|
-
;;
|
113
|
-
refs/remotes/*,delete)
|
114
|
-
# delete tracking branch
|
115
|
-
if [ "$allowdeletebranch" != "true" ]; then
|
116
|
-
echo "*** Deleting a tracking branch is not allowed in this repository" >&2
|
117
|
-
exit 1
|
118
|
-
fi
|
119
|
-
;;
|
120
|
-
*)
|
121
|
-
# Anything else (is there anything else?)
|
122
|
-
echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
|
123
|
-
exit 1
|
124
|
-
;;
|
125
|
-
esac
|
126
|
-
|
127
|
-
# --- Finished
|
128
|
-
exit 0
|
data/.git/index
DELETED
Binary file
|
data/.git/info/exclude
DELETED
data/.git/logs/HEAD
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
0000000000000000000000000000000000000000 81031da1db90c4cd43fe27336054d76564dbe64c alex <alex@amac.local> 1275681032 +0400 commit (initial): first commit
|
2
|
-
81031da1db90c4cd43fe27336054d76564dbe64c 0966c6b45bacaae9282463b9b4c0ce8488bbcee5 alex <alex@amac.local> 1275684806 +0400 commit: upd
|
3
|
-
0966c6b45bacaae9282463b9b4c0ce8488bbcee5 cc0b74e32ae045d3208839aa91d0dc94f5ea4c09 alex <alex@amac.local> 1275685492 +0400 commit: upd
|
4
|
-
cc0b74e32ae045d3208839aa91d0dc94f5ea4c09 eb86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 alex <alex@amac.local> 1275686498 +0400 commit: upd
|
5
|
-
eb86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 b8bd01ebc6defac18710776615168beb4e251e87 alex <alex@amac.local> 1275686521 +0400 commit: upd
|
6
|
-
b8bd01ebc6defac18710776615168beb4e251e87 7b47a3e0c3fb6407567185df38e031cb54179c6e alex <alex@amac.local> 1275686546 +0400 commit: upd
|
7
|
-
7b47a3e0c3fb6407567185df38e031cb54179c6e 36479605ef7fc62ec68841284083e171bcb3b2c2 alex <alex@amac.local> 1275687760 +0400 commit: upd
|
8
|
-
36479605ef7fc62ec68841284083e171bcb3b2c2 d7ea5d3d4b7fdcc93771304fee8d5261f6469f28 alex <alex@amac.local> 1275687771 +0400 commit: upd
|
9
|
-
d7ea5d3d4b7fdcc93771304fee8d5261f6469f28 ad994f9b41e5bc6fd188de9aa8adefe6b5515ed6 alex <alex@amac.local> 1275696080 +0400 commit: upd
|
10
|
-
ad994f9b41e5bc6fd188de9aa8adefe6b5515ed6 aa2420e96b6dcb848de2a8ea393c28a0314eda6e alex <alex@amac.local> 1275696100 +0400 commit: upd
|
11
|
-
aa2420e96b6dcb848de2a8ea393c28a0314eda6e ad8ddf80de972b932bc955c672c29e21f948367f alex <alex@amac.local> 1275697981 +0400 commit: upd
|
12
|
-
ad8ddf80de972b932bc955c672c29e21f948367f 068c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 alex <alex@amac.local> 1275700505 +0400 commit: upd
|
13
|
-
068c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 b2a45e92c20d09897c984186472f616c0af6b5d3 alex <alex@amac.local> 1275700661 +0400 commit: upd
|
14
|
-
b2a45e92c20d09897c984186472f616c0af6b5d3 ccdd62a9a3a9e16e487495294c19ac64da9516d0 alex <alex@amac.local> 1275701051 +0400 commit: upd
|
15
|
-
ccdd62a9a3a9e16e487495294c19ac64da9516d0 9fe781c5e0fe8f889aefb163da0b52f9cf25ec1f alex <alex@amac.local> 1275702342 +0400 commit: upd
|
16
|
-
9fe781c5e0fe8f889aefb163da0b52f9cf25ec1f af606f60f63c31341fd75ec557e073435327cf82 alex <alex@amac.local> 1275702437 +0400 pull : Merge made by recursive.
|
17
|
-
af606f60f63c31341fd75ec557e073435327cf82 09a40c814899fcdadc2bd5665e892a7db26a3677 alex <alex@amac.local> 1275702619 +0400 commit: upd
|
18
|
-
09a40c814899fcdadc2bd5665e892a7db26a3677 f3e1d5f3bc635974bf9410cb87d21bb3ad29da6b alex <alex@amac.local> 1275702630 +0400 commit: upd
|
19
|
-
f3e1d5f3bc635974bf9410cb87d21bb3ad29da6b d3b4580aaa3c069e320b941dd23f56a474cd6caa alex <alex@amac.local> 1276645476 +0400 commit: upd
|
20
|
-
d3b4580aaa3c069e320b941dd23f56a474cd6caa 821912a397a9029beb4d74f407a6ad4b8e36f2f2 alex <alex@amac.local> 1276711209 +0400 commit: upd
|
21
|
-
821912a397a9029beb4d74f407a6ad4b8e36f2f2 7a64ac4146eb137a2667085fbddfea97cc727bb7 alex <alex@amac.local> 1276711686 +0400 commit: upd
|
data/.git/logs/refs/heads/master
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
0000000000000000000000000000000000000000 81031da1db90c4cd43fe27336054d76564dbe64c alex <alex@amac.local> 1275681032 +0400 commit (initial): first commit
|
2
|
-
81031da1db90c4cd43fe27336054d76564dbe64c 0966c6b45bacaae9282463b9b4c0ce8488bbcee5 alex <alex@amac.local> 1275684806 +0400 commit: upd
|
3
|
-
0966c6b45bacaae9282463b9b4c0ce8488bbcee5 cc0b74e32ae045d3208839aa91d0dc94f5ea4c09 alex <alex@amac.local> 1275685492 +0400 commit: upd
|
4
|
-
cc0b74e32ae045d3208839aa91d0dc94f5ea4c09 eb86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 alex <alex@amac.local> 1275686498 +0400 commit: upd
|
5
|
-
eb86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 b8bd01ebc6defac18710776615168beb4e251e87 alex <alex@amac.local> 1275686521 +0400 commit: upd
|
6
|
-
b8bd01ebc6defac18710776615168beb4e251e87 7b47a3e0c3fb6407567185df38e031cb54179c6e alex <alex@amac.local> 1275686546 +0400 commit: upd
|
7
|
-
7b47a3e0c3fb6407567185df38e031cb54179c6e 36479605ef7fc62ec68841284083e171bcb3b2c2 alex <alex@amac.local> 1275687760 +0400 commit: upd
|
8
|
-
36479605ef7fc62ec68841284083e171bcb3b2c2 d7ea5d3d4b7fdcc93771304fee8d5261f6469f28 alex <alex@amac.local> 1275687771 +0400 commit: upd
|
9
|
-
d7ea5d3d4b7fdcc93771304fee8d5261f6469f28 ad994f9b41e5bc6fd188de9aa8adefe6b5515ed6 alex <alex@amac.local> 1275696080 +0400 commit: upd
|
10
|
-
ad994f9b41e5bc6fd188de9aa8adefe6b5515ed6 aa2420e96b6dcb848de2a8ea393c28a0314eda6e alex <alex@amac.local> 1275696100 +0400 commit: upd
|
11
|
-
aa2420e96b6dcb848de2a8ea393c28a0314eda6e ad8ddf80de972b932bc955c672c29e21f948367f alex <alex@amac.local> 1275697981 +0400 commit: upd
|
12
|
-
ad8ddf80de972b932bc955c672c29e21f948367f 068c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 alex <alex@amac.local> 1275700505 +0400 commit: upd
|
13
|
-
068c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 b2a45e92c20d09897c984186472f616c0af6b5d3 alex <alex@amac.local> 1275700661 +0400 commit: upd
|
14
|
-
b2a45e92c20d09897c984186472f616c0af6b5d3 ccdd62a9a3a9e16e487495294c19ac64da9516d0 alex <alex@amac.local> 1275701051 +0400 commit: upd
|
15
|
-
ccdd62a9a3a9e16e487495294c19ac64da9516d0 9fe781c5e0fe8f889aefb163da0b52f9cf25ec1f alex <alex@amac.local> 1275702342 +0400 commit: upd
|
16
|
-
9fe781c5e0fe8f889aefb163da0b52f9cf25ec1f af606f60f63c31341fd75ec557e073435327cf82 alex <alex@amac.local> 1275702437 +0400 pull : Merge made by recursive.
|
17
|
-
af606f60f63c31341fd75ec557e073435327cf82 09a40c814899fcdadc2bd5665e892a7db26a3677 alex <alex@amac.local> 1275702619 +0400 commit: upd
|
18
|
-
09a40c814899fcdadc2bd5665e892a7db26a3677 f3e1d5f3bc635974bf9410cb87d21bb3ad29da6b alex <alex@amac.local> 1275702630 +0400 commit: upd
|
19
|
-
f3e1d5f3bc635974bf9410cb87d21bb3ad29da6b d3b4580aaa3c069e320b941dd23f56a474cd6caa alex <alex@amac.local> 1276645476 +0400 commit: upd
|
20
|
-
d3b4580aaa3c069e320b941dd23f56a474cd6caa 821912a397a9029beb4d74f407a6ad4b8e36f2f2 alex <alex@amac.local> 1276711209 +0400 commit: upd
|
21
|
-
821912a397a9029beb4d74f407a6ad4b8e36f2f2 7a64ac4146eb137a2667085fbddfea97cc727bb7 alex <alex@amac.local> 1276711686 +0400 commit: upd
|
@@ -1,19 +0,0 @@
|
|
1
|
-
0000000000000000000000000000000000000000 81031da1db90c4cd43fe27336054d76564dbe64c alex <alex@amac.local> 1275681064 +0400 update by push
|
2
|
-
81031da1db90c4cd43fe27336054d76564dbe64c 0966c6b45bacaae9282463b9b4c0ce8488bbcee5 alex <alex@amac.local> 1275684810 +0400 update by push
|
3
|
-
0966c6b45bacaae9282463b9b4c0ce8488bbcee5 cc0b74e32ae045d3208839aa91d0dc94f5ea4c09 alex <alex@amac.local> 1275685496 +0400 update by push
|
4
|
-
cc0b74e32ae045d3208839aa91d0dc94f5ea4c09 eb86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 alex <alex@amac.local> 1275686504 +0400 update by push
|
5
|
-
eb86cc8e7187bdb75267a4e5ba1c5d4d4b200c98 b8bd01ebc6defac18710776615168beb4e251e87 alex <alex@amac.local> 1275686525 +0400 update by push
|
6
|
-
b8bd01ebc6defac18710776615168beb4e251e87 7b47a3e0c3fb6407567185df38e031cb54179c6e alex <alex@amac.local> 1275686551 +0400 update by push
|
7
|
-
7b47a3e0c3fb6407567185df38e031cb54179c6e d7ea5d3d4b7fdcc93771304fee8d5261f6469f28 alex <alex@amac.local> 1275687775 +0400 update by push
|
8
|
-
d7ea5d3d4b7fdcc93771304fee8d5261f6469f28 ad994f9b41e5bc6fd188de9aa8adefe6b5515ed6 alex <alex@amac.local> 1275696084 +0400 update by push
|
9
|
-
ad994f9b41e5bc6fd188de9aa8adefe6b5515ed6 aa2420e96b6dcb848de2a8ea393c28a0314eda6e alex <alex@amac.local> 1275696104 +0400 update by push
|
10
|
-
aa2420e96b6dcb848de2a8ea393c28a0314eda6e ad8ddf80de972b932bc955c672c29e21f948367f alex <alex@amac.local> 1275697986 +0400 update by push
|
11
|
-
ad8ddf80de972b932bc955c672c29e21f948367f 068c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 alex <alex@amac.local> 1275700509 +0400 update by push
|
12
|
-
068c594d16214cbee3ad8e9f4eae9c78f6a9ddf1 b2a45e92c20d09897c984186472f616c0af6b5d3 alex <alex@amac.local> 1275700670 +0400 update by push
|
13
|
-
b2a45e92c20d09897c984186472f616c0af6b5d3 ccdd62a9a3a9e16e487495294c19ac64da9516d0 alex <alex@amac.local> 1275701066 +0400 update by push
|
14
|
-
ccdd62a9a3a9e16e487495294c19ac64da9516d0 e98264a4555c2b9436f7c8633575eb5cea338e35 alex <alex@amac.local> 1275702358 +0400 pull : fast-forward
|
15
|
-
e98264a4555c2b9436f7c8633575eb5cea338e35 af606f60f63c31341fd75ec557e073435327cf82 alex <alex@amac.local> 1275702466 +0400 update by push
|
16
|
-
af606f60f63c31341fd75ec557e073435327cf82 f3e1d5f3bc635974bf9410cb87d21bb3ad29da6b alex <alex@amac.local> 1275702635 +0400 update by push
|
17
|
-
f3e1d5f3bc635974bf9410cb87d21bb3ad29da6b d3b4580aaa3c069e320b941dd23f56a474cd6caa alex <alex@amac.local> 1276645485 +0400 update by push
|
18
|
-
d3b4580aaa3c069e320b941dd23f56a474cd6caa 821912a397a9029beb4d74f407a6ad4b8e36f2f2 alex <alex@amac.local> 1276711218 +0400 update by push
|
19
|
-
821912a397a9029beb4d74f407a6ad4b8e36f2f2 7a64ac4146eb137a2667085fbddfea97cc727bb7 alex <alex@amac.local> 1276711692 +0400 update by push
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
xu�QK�0�}�o�>���2q��kI��(�I�$��>�Y[�'$����w�R�..��?CM����\e.Xk�g\�z�E/�$*)����8��&.>2.��H��2��1O$��U����Ƞ��4 ������� �NM��G(����PUQH��ô�S��-`��Ư6�Z��`T����&�ԾG�?����9�߷�x�����8����Z� �z\v���q�~��,�>�YN��e���5�!RG���������
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|