mercadopago-custom-checkout 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.gs/bin/rake +23 -0
- data/.gs/cache/faraday-0.9.2.gem +0 -0
- data/.gs/cache/minitest-5.9.0.gem +0 -0
- data/.gs/cache/multi_json-1.12.1.gem +0 -0
- data/.gs/cache/multipart-post-2.0.0.gem +0 -0
- data/.gs/cache/rake-10.5.0.gem +0 -0
- data/.gs/gems/faraday-0.9.2/LICENSE.md +20 -0
- data/.gs/gems/faraday-0.9.2/README.md +245 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday.rb +268 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter.rb +46 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http.rb +237 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http_ssl_patch.rb +56 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony.rb +100 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony/parallel_manager.rb +66 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/excon.rb +81 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/httpclient.rb +117 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb +130 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb +49 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/patron.rb +78 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/rack.rb +58 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/test.rb +162 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/typhoeus.rb +123 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/autoload.rb +84 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/connection.rb +437 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/error.rb +53 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/middleware.rb +37 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/options.rb +359 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/parameters.rb +197 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/rack_builder.rb +213 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request.rb +92 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/authorization.rb +42 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/basic_authentication.rb +13 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/instrumentation.rb +36 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/multipart.rb +63 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/retry.rb +154 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/token_authentication.rb +15 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb +36 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/response.rb +93 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/response/logger.rb +59 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/response/raise_error.rb +21 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/upload_io.rb +67 -0
- data/.gs/gems/faraday-0.9.2/lib/faraday/utils.rb +309 -0
- data/.gs/gems/minitest-5.9.0/.autotest +34 -0
- data/.gs/gems/minitest-5.9.0/History.rdoc +1176 -0
- data/.gs/gems/minitest-5.9.0/Manifest.txt +26 -0
- data/.gs/gems/minitest-5.9.0/README.rdoc +656 -0
- data/.gs/gems/minitest-5.9.0/Rakefile +72 -0
- data/.gs/gems/minitest-5.9.0/design_rationale.rb +52 -0
- data/.gs/gems/minitest-5.9.0/lib/hoe/minitest.rb +26 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest.rb +815 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/assertions.rb +674 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/autorun.rb +13 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/benchmark.rb +424 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/expectations.rb +284 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/hell.rb +17 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/mock.rb +232 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/parallel.rb +69 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/pride.rb +4 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/pride_plugin.rb +142 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/spec.rb +331 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/test.rb +284 -0
- data/.gs/gems/minitest-5.9.0/lib/minitest/unit.rb +45 -0
- data/.gs/gems/minitest-5.9.0/test/minitest/metametameta.rb +90 -0
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_benchmark.rb +137 -0
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_mock.rb +512 -0
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_reporter.rb +281 -0
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_spec.rb +967 -0
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_test.rb +1983 -0
- data/.gs/gems/multi_json-1.12.1/CHANGELOG.md +245 -0
- data/.gs/gems/multi_json-1.12.1/CONTRIBUTING.md +46 -0
- data/.gs/gems/multi_json-1.12.1/LICENSE.md +20 -0
- data/.gs/gems/multi_json-1.12.1/README.md +121 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json.rb +161 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapter.rb +49 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapter_error.rb +15 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/gson.rb +20 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/jr_jackson.rb +25 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_common.rb +23 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_gem.rb +11 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_pure.rb +11 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/nsjsonserialization.rb +32 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/oj.rb +25 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/ok_json.rb +23 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb +19 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/convertible_hash_keys.rb +43 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/options.rb +39 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/options_cache.rb +29 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/parse_error.rb +17 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/vendor/okjson.rb +606 -0
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/version.rb +17 -0
- data/.gs/gems/multi_json-1.12.1/multi_json.gemspec +20 -0
- data/.gs/gems/multipart-post-2.0.0/.gitignore +6 -0
- data/.gs/gems/multipart-post-2.0.0/.travis.yml +7 -0
- data/.gs/gems/multipart-post-2.0.0/Gemfile +14 -0
- data/.gs/gems/multipart-post-2.0.0/History.txt +60 -0
- data/.gs/gems/multipart-post-2.0.0/Manifest.txt +9 -0
- data/.gs/gems/multipart-post-2.0.0/README.md +77 -0
- data/.gs/gems/multipart-post-2.0.0/Rakefile +9 -0
- data/.gs/gems/multipart-post-2.0.0/lib/composite_io.rb +108 -0
- data/.gs/gems/multipart-post-2.0.0/lib/multipart_post.rb +9 -0
- data/.gs/gems/multipart-post-2.0.0/lib/multipartable.rb +29 -0
- data/.gs/gems/multipart-post-2.0.0/lib/net/http/post/multipart.rb +27 -0
- data/.gs/gems/multipart-post-2.0.0/lib/parts.rb +96 -0
- data/.gs/gems/multipart-post-2.0.0/multipart-post.gemspec +22 -0
- data/.gs/gems/multipart-post-2.0.0/test/multibyte.txt +1 -0
- data/.gs/gems/multipart-post-2.0.0/test/net/http/post/test_multipart.rb +110 -0
- data/.gs/gems/multipart-post-2.0.0/test/test_composite_io.rb +115 -0
- data/.gs/gems/multipart-post-2.0.0/test/test_parts.rb +86 -0
- data/.gs/gems/rake-10.5.0/.autotest +7 -0
- data/.gs/gems/rake-10.5.0/.rubocop.yml +27 -0
- data/.gs/gems/rake-10.5.0/.togglerc +7 -0
- data/.gs/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
- data/.gs/gems/rake-10.5.0/History.rdoc +659 -0
- data/.gs/gems/rake-10.5.0/MIT-LICENSE +21 -0
- data/.gs/gems/rake-10.5.0/Manifest.txt +166 -0
- data/.gs/gems/rake-10.5.0/README.rdoc +139 -0
- data/.gs/gems/rake-10.5.0/Rakefile +81 -0
- data/.gs/gems/rake-10.5.0/bin/rake +33 -0
- data/.gs/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
- data/.gs/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
- data/.gs/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
- data/.gs/gems/rake-10.5.0/doc/example/a.c +6 -0
- data/.gs/gems/rake-10.5.0/doc/example/b.c +6 -0
- data/.gs/gems/rake-10.5.0/doc/example/main.c +11 -0
- data/.gs/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
- data/.gs/gems/rake-10.5.0/doc/jamis.rb +591 -0
- data/.gs/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
- data/.gs/gems/rake-10.5.0/doc/rake.1 +141 -0
- data/.gs/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
- data/.gs/gems/rake-10.5.0/doc/rational.rdoc +151 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/.gs/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
- data/.gs/gems/rake-10.5.0/lib/rake.rb +79 -0
- data/.gs/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
- data/.gs/gems/rake-10.5.0/lib/rake/application.rb +790 -0
- data/.gs/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
- data/.gs/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
- data/.gs/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
- data/.gs/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
- data/.gs/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
- data/.gs/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
- data/.gs/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
- data/.gs/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
- data/.gs/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
- data/.gs/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
- data/.gs/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
- data/.gs/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
- data/.gs/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
- data/.gs/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
- data/.gs/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
- data/.gs/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
- data/.gs/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
- data/.gs/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
- data/.gs/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
- data/.gs/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
- data/.gs/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/.gs/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
- data/.gs/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
- data/.gs/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
- data/.gs/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
- data/.gs/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
- data/.gs/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
- data/.gs/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
- data/.gs/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
- data/.gs/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
- data/.gs/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
- data/.gs/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
- data/.gs/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
- data/.gs/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
- data/.gs/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
- data/.gs/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
- data/.gs/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/.gs/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
- data/.gs/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
- data/.gs/gems/rake-10.5.0/lib/rake/task.rb +383 -0
- data/.gs/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
- data/.gs/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
- data/.gs/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
- data/.gs/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
- data/.gs/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
- data/.gs/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
- data/.gs/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
- data/.gs/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
- data/.gs/gems/rake-10.5.0/lib/rake/version.rb +7 -0
- data/.gs/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
- data/.gs/gems/rake-10.5.0/rakelib/publish.rake +20 -0
- data/.gs/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
- data/.gs/gems/rake-10.5.0/test/file_creation.rb +34 -0
- data/.gs/gems/rake-10.5.0/test/helper.rb +129 -0
- data/.gs/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
- data/.gs/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
- data/.gs/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
- data/.gs/gems/rake-10.5.0/test/test_rake.rb +40 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
- data/.gs/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
- data/.gs/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
- data/.gs/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
- data/.gs/specifications/faraday-0.9.2.gemspec +31 -0
- data/.gs/specifications/minitest-5.9.0.gemspec +39 -0
- data/.gs/specifications/multi_json-1.12.1.gemspec +33 -0
- data/.gs/specifications/multipart-post-2.0.0.gemspec +22 -0
- data/.gs/specifications/rake-10.5.0.gemspec +43 -0
- data/.rubocop.yml +36 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +38 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/mercadopago/core/client.rb +70 -0
- data/lib/mercadopago/core/endpoints.rb +134 -0
- data/lib/mercadopago/core/errors.rb +6 -0
- data/lib/mercadopago/core/gateway.rb +84 -0
- data/lib/mercadopago/custom_checkout.rb +29 -0
- data/lib/mercadopago/custom_checkout/account.rb +162 -0
- data/lib/mercadopago/custom_checkout/card_issuer.rb +20 -0
- data/lib/mercadopago/custom_checkout/card_token.rb +57 -0
- data/lib/mercadopago/custom_checkout/customer.rb +84 -0
- data/lib/mercadopago/custom_checkout/errors.rb +6 -0
- data/lib/mercadopago/custom_checkout/identification_type.rb +19 -0
- data/lib/mercadopago/custom_checkout/payment_method.rb +42 -0
- data/lib/mercadopago/custom_checkout/payments.rb +24 -0
- data/lib/mercadopago/custom_checkout/resource.rb +14 -0
- data/lib/mercadopago/custom_checkout/version.rb +5 -0
- data/mercadopago-custom-checkout.gemspec +30 -0
- metadata +455 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
##
|
4
|
+
# Exit status class for times the system just gives us a nil.
|
5
|
+
class PseudoStatus # :nodoc: all
|
6
|
+
attr_reader :exitstatus
|
7
|
+
|
8
|
+
def initialize(code=0)
|
9
|
+
@exitstatus = code
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_i
|
13
|
+
@exitstatus << 8
|
14
|
+
end
|
15
|
+
|
16
|
+
def >>(n)
|
17
|
+
to_i >> n
|
18
|
+
end
|
19
|
+
|
20
|
+
def stopped?
|
21
|
+
false
|
22
|
+
end
|
23
|
+
|
24
|
+
def exited?
|
25
|
+
true
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'rake/application'
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
|
5
|
+
class << self
|
6
|
+
# Current Rake Application
|
7
|
+
def application
|
8
|
+
@application ||= Rake::Application.new
|
9
|
+
end
|
10
|
+
|
11
|
+
# Set the current Rake application object.
|
12
|
+
def application=(app)
|
13
|
+
@application = app
|
14
|
+
end
|
15
|
+
|
16
|
+
def suggested_thread_count # :nodoc:
|
17
|
+
@cpu_count ||= Rake::CpuCounter.count
|
18
|
+
@cpu_count + 4
|
19
|
+
end
|
20
|
+
|
21
|
+
# Return the original directory where the Rake application was started.
|
22
|
+
def original_dir
|
23
|
+
application.original_dir
|
24
|
+
end
|
25
|
+
|
26
|
+
# Load a rakefile.
|
27
|
+
def load_rakefile(path)
|
28
|
+
load(path)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Add files to the rakelib list
|
32
|
+
def add_rakelib(*files)
|
33
|
+
application.options.rakelib ||= []
|
34
|
+
application.options.rakelib.concat(files)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
# Load the test files from the command line.
|
4
|
+
argv = ARGV.select do |argument|
|
5
|
+
case argument
|
6
|
+
when /^-/ then
|
7
|
+
argument
|
8
|
+
when /\*/ then
|
9
|
+
FileList[argument].to_a.each do |file|
|
10
|
+
require File.expand_path file
|
11
|
+
end
|
12
|
+
|
13
|
+
false
|
14
|
+
else
|
15
|
+
require File.expand_path argument
|
16
|
+
|
17
|
+
false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
ARGV.replace argv
|
22
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# TODO: Remove in rake 11
|
2
|
+
|
3
|
+
# Local Rake override to fix bug in Ruby 0.8.2
|
4
|
+
module Test # :nodoc:
|
5
|
+
# Local Rake override to fix bug in Ruby 0.8.2
|
6
|
+
module Unit # :nodoc:
|
7
|
+
# Local Rake override to fix bug in Ruby 0.8.2
|
8
|
+
module Collector # :nodoc:
|
9
|
+
# Local Rake override to fix bug in Ruby 0.8.2
|
10
|
+
class Dir # :nodoc:
|
11
|
+
undef collect_file
|
12
|
+
def collect_file(name, suites, already_gathered) # :nodoc:
|
13
|
+
dir = File.dirname(File.expand_path(name))
|
14
|
+
$:.unshift(dir) unless $:.first == dir
|
15
|
+
if @req
|
16
|
+
@req.require(name)
|
17
|
+
else
|
18
|
+
require(name)
|
19
|
+
end
|
20
|
+
find_test_cases(already_gathered).each do |t|
|
21
|
+
add_suite(suites, t.suite)
|
22
|
+
end
|
23
|
+
ensure
|
24
|
+
$:.delete_at $:.rindex(dir)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
module Rake
|
3
|
+
|
4
|
+
# Error indicating a recursion overflow error in task selection.
|
5
|
+
class RuleRecursionOverflowError < StandardError
|
6
|
+
def initialize(*args)
|
7
|
+
super
|
8
|
+
@targets = []
|
9
|
+
end
|
10
|
+
|
11
|
+
def add_target(target)
|
12
|
+
@targets << target
|
13
|
+
end
|
14
|
+
|
15
|
+
def message
|
16
|
+
super + ": [" + @targets.reverse.join(' => ') + "]"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'test/unit/assertions'
|
3
|
+
require 'rake/file_list'
|
4
|
+
|
5
|
+
module Rake
|
6
|
+
include Test::Unit::Assertions
|
7
|
+
|
8
|
+
##
|
9
|
+
# Deprecated way of running tests in process, but only for Test::Unit.
|
10
|
+
#--
|
11
|
+
# TODO: Remove in rake 11
|
12
|
+
|
13
|
+
def run_tests(pattern='test/test*.rb', log_enabled=false) # :nodoc:
|
14
|
+
FileList.glob(pattern).each do |fn|
|
15
|
+
$stderr.puts fn if log_enabled
|
16
|
+
begin
|
17
|
+
require fn
|
18
|
+
rescue Exception => ex
|
19
|
+
$stderr.puts "Error in #{fn}: #{ex.message}"
|
20
|
+
$stderr.puts ex.backtrace
|
21
|
+
assert false
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
extend self
|
27
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Rake
|
2
|
+
class Scope < LinkedList # :nodoc: all
|
3
|
+
|
4
|
+
# Path for the scope.
|
5
|
+
def path
|
6
|
+
map { |item| item.to_s }.reverse.join(":")
|
7
|
+
end
|
8
|
+
|
9
|
+
# Path for the scope + the named path.
|
10
|
+
def path_with_task_name(task_name)
|
11
|
+
"#{path}:#{task_name}"
|
12
|
+
end
|
13
|
+
|
14
|
+
# Trim +n+ innermost scope levels from the scope. In no case will
|
15
|
+
# this trim beyond the toplevel scope.
|
16
|
+
def trim(n)
|
17
|
+
result = self
|
18
|
+
while n > 0 && ! result.empty?
|
19
|
+
result = result.tail
|
20
|
+
n -= 1
|
21
|
+
end
|
22
|
+
result
|
23
|
+
end
|
24
|
+
|
25
|
+
# Scope lists always end with an EmptyScope object. See Null
|
26
|
+
# Object Pattern)
|
27
|
+
class EmptyScope < EmptyLinkedList
|
28
|
+
@parent = Scope
|
29
|
+
|
30
|
+
def path
|
31
|
+
""
|
32
|
+
end
|
33
|
+
|
34
|
+
def path_with_task_name(task_name)
|
35
|
+
task_name
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# Singleton null object for an empty scope.
|
40
|
+
EMPTY = EmptyScope.new
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,383 @@
|
|
1
|
+
require 'rake/invocation_exception_mixin'
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
|
5
|
+
##
|
6
|
+
# A Task is the basic unit of work in a Rakefile. Tasks have associated
|
7
|
+
# actions (possibly more than one) and a list of prerequisites. When
|
8
|
+
# invoked, a task will first ensure that all of its prerequisites have an
|
9
|
+
# opportunity to run and then it will execute its own actions.
|
10
|
+
#
|
11
|
+
# Tasks are not usually created directly using the new method, but rather
|
12
|
+
# use the +file+ and +task+ convenience methods.
|
13
|
+
#
|
14
|
+
class Task
|
15
|
+
# List of prerequisites for a task.
|
16
|
+
attr_reader :prerequisites
|
17
|
+
|
18
|
+
# List of actions attached to a task.
|
19
|
+
attr_reader :actions
|
20
|
+
|
21
|
+
# Application owning this task.
|
22
|
+
attr_accessor :application
|
23
|
+
|
24
|
+
# Array of nested namespaces names used for task lookup by this task.
|
25
|
+
attr_reader :scope
|
26
|
+
|
27
|
+
# File/Line locations of each of the task definitions for this
|
28
|
+
# task (only valid if the task was defined with the detect
|
29
|
+
# location option set).
|
30
|
+
attr_reader :locations
|
31
|
+
|
32
|
+
# Return task name
|
33
|
+
def to_s
|
34
|
+
name
|
35
|
+
end
|
36
|
+
|
37
|
+
def inspect # :nodoc:
|
38
|
+
"<#{self.class} #{name} => [#{prerequisites.join(', ')}]>"
|
39
|
+
end
|
40
|
+
|
41
|
+
# List of sources for task.
|
42
|
+
attr_writer :sources
|
43
|
+
def sources
|
44
|
+
if defined?(@sources)
|
45
|
+
@sources
|
46
|
+
else
|
47
|
+
prerequisites
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of prerequisite tasks
|
52
|
+
def prerequisite_tasks
|
53
|
+
prerequisites.map { |pre| lookup_prerequisite(pre) }
|
54
|
+
end
|
55
|
+
|
56
|
+
def lookup_prerequisite(prerequisite_name) # :nodoc:
|
57
|
+
application[prerequisite_name, @scope]
|
58
|
+
end
|
59
|
+
private :lookup_prerequisite
|
60
|
+
|
61
|
+
# List of all unique prerequisite tasks including prerequisite tasks'
|
62
|
+
# prerequisites.
|
63
|
+
# Includes self when cyclic dependencies are found.
|
64
|
+
def all_prerequisite_tasks
|
65
|
+
seen = {}
|
66
|
+
collect_prerequisites(seen)
|
67
|
+
seen.values
|
68
|
+
end
|
69
|
+
|
70
|
+
def collect_prerequisites(seen) # :nodoc:
|
71
|
+
prerequisite_tasks.each do |pre|
|
72
|
+
next if seen[pre.name]
|
73
|
+
seen[pre.name] = pre
|
74
|
+
pre.collect_prerequisites(seen)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
protected :collect_prerequisites
|
78
|
+
|
79
|
+
# First source from a rule (nil if no sources)
|
80
|
+
def source
|
81
|
+
sources.first
|
82
|
+
end
|
83
|
+
|
84
|
+
# Create a task named +task_name+ with no actions or prerequisites. Use
|
85
|
+
# +enhance+ to add actions and prerequisites.
|
86
|
+
def initialize(task_name, app)
|
87
|
+
@name = task_name.to_s
|
88
|
+
@prerequisites = []
|
89
|
+
@actions = []
|
90
|
+
@already_invoked = false
|
91
|
+
@comments = []
|
92
|
+
@lock = Monitor.new
|
93
|
+
@application = app
|
94
|
+
@scope = app.current_scope
|
95
|
+
@arg_names = nil
|
96
|
+
@locations = []
|
97
|
+
end
|
98
|
+
|
99
|
+
# Enhance a task with prerequisites or actions. Returns self.
|
100
|
+
def enhance(deps=nil, &block)
|
101
|
+
@prerequisites |= deps if deps
|
102
|
+
@actions << block if block_given?
|
103
|
+
self
|
104
|
+
end
|
105
|
+
|
106
|
+
# Name of the task, including any namespace qualifiers.
|
107
|
+
def name
|
108
|
+
@name.to_s
|
109
|
+
end
|
110
|
+
|
111
|
+
# Name of task with argument list description.
|
112
|
+
def name_with_args # :nodoc:
|
113
|
+
if arg_description
|
114
|
+
"#{name}#{arg_description}"
|
115
|
+
else
|
116
|
+
name
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Argument description (nil if none).
|
121
|
+
def arg_description # :nodoc:
|
122
|
+
@arg_names ? "[#{arg_names.join(',')}]" : nil
|
123
|
+
end
|
124
|
+
|
125
|
+
# Name of arguments for this task.
|
126
|
+
def arg_names
|
127
|
+
@arg_names || []
|
128
|
+
end
|
129
|
+
|
130
|
+
# Reenable the task, allowing its tasks to be executed if the task
|
131
|
+
# is invoked again.
|
132
|
+
def reenable
|
133
|
+
@already_invoked = false
|
134
|
+
end
|
135
|
+
|
136
|
+
# Clear the existing prerequisites and actions of a rake task.
|
137
|
+
def clear
|
138
|
+
clear_prerequisites
|
139
|
+
clear_actions
|
140
|
+
clear_comments
|
141
|
+
self
|
142
|
+
end
|
143
|
+
|
144
|
+
# Clear the existing prerequisites of a rake task.
|
145
|
+
def clear_prerequisites
|
146
|
+
prerequisites.clear
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
# Clear the existing actions on a rake task.
|
151
|
+
def clear_actions
|
152
|
+
actions.clear
|
153
|
+
self
|
154
|
+
end
|
155
|
+
|
156
|
+
# Clear the existing comments on a rake task.
|
157
|
+
def clear_comments
|
158
|
+
@comments = []
|
159
|
+
self
|
160
|
+
end
|
161
|
+
|
162
|
+
# Invoke the task if it is needed. Prerequisites are invoked first.
|
163
|
+
def invoke(*args)
|
164
|
+
task_args = TaskArguments.new(arg_names, args)
|
165
|
+
invoke_with_call_chain(task_args, InvocationChain::EMPTY)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Same as invoke, but explicitly pass a call chain to detect
|
169
|
+
# circular dependencies.
|
170
|
+
def invoke_with_call_chain(task_args, invocation_chain) # :nodoc:
|
171
|
+
new_chain = InvocationChain.append(self, invocation_chain)
|
172
|
+
@lock.synchronize do
|
173
|
+
if application.options.trace
|
174
|
+
application.trace "** Invoke #{name} #{format_trace_flags}"
|
175
|
+
end
|
176
|
+
return if @already_invoked
|
177
|
+
@already_invoked = true
|
178
|
+
invoke_prerequisites(task_args, new_chain)
|
179
|
+
execute(task_args) if needed?
|
180
|
+
end
|
181
|
+
rescue Exception => ex
|
182
|
+
add_chain_to(ex, new_chain)
|
183
|
+
raise ex
|
184
|
+
end
|
185
|
+
protected :invoke_with_call_chain
|
186
|
+
|
187
|
+
def add_chain_to(exception, new_chain) # :nodoc:
|
188
|
+
exception.extend(InvocationExceptionMixin) unless
|
189
|
+
exception.respond_to?(:chain)
|
190
|
+
exception.chain = new_chain if exception.chain.nil?
|
191
|
+
end
|
192
|
+
private :add_chain_to
|
193
|
+
|
194
|
+
# Invoke all the prerequisites of a task.
|
195
|
+
def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
|
196
|
+
if application.options.always_multitask
|
197
|
+
invoke_prerequisites_concurrently(task_args, invocation_chain)
|
198
|
+
else
|
199
|
+
prerequisite_tasks.each { |p|
|
200
|
+
prereq_args = task_args.new_scope(p.arg_names)
|
201
|
+
p.invoke_with_call_chain(prereq_args, invocation_chain)
|
202
|
+
}
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# Invoke all the prerequisites of a task in parallel.
|
207
|
+
def invoke_prerequisites_concurrently(task_args, invocation_chain)# :nodoc:
|
208
|
+
futures = prerequisite_tasks.map do |p|
|
209
|
+
prereq_args = task_args.new_scope(p.arg_names)
|
210
|
+
application.thread_pool.future(p) do |r|
|
211
|
+
r.invoke_with_call_chain(prereq_args, invocation_chain)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
futures.each { |f| f.value }
|
215
|
+
end
|
216
|
+
|
217
|
+
# Format the trace flags for display.
|
218
|
+
def format_trace_flags
|
219
|
+
flags = []
|
220
|
+
flags << "first_time" unless @already_invoked
|
221
|
+
flags << "not_needed" unless needed?
|
222
|
+
flags.empty? ? "" : "(" + flags.join(", ") + ")"
|
223
|
+
end
|
224
|
+
private :format_trace_flags
|
225
|
+
|
226
|
+
# Execute the actions associated with this task.
|
227
|
+
def execute(args=nil)
|
228
|
+
args ||= EMPTY_TASK_ARGS
|
229
|
+
if application.options.dryrun
|
230
|
+
application.trace "** Execute (dry run) #{name}"
|
231
|
+
return
|
232
|
+
end
|
233
|
+
application.trace "** Execute #{name}" if application.options.trace
|
234
|
+
application.enhance_with_matching_rule(name) if @actions.empty?
|
235
|
+
@actions.each do |act|
|
236
|
+
case act.arity
|
237
|
+
when 1
|
238
|
+
act.call(self)
|
239
|
+
else
|
240
|
+
act.call(self, args)
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Is this task needed?
|
246
|
+
def needed?
|
247
|
+
true
|
248
|
+
end
|
249
|
+
|
250
|
+
# Timestamp for this task. Basic tasks return the current time for their
|
251
|
+
# time stamp. Other tasks can be more sophisticated.
|
252
|
+
def timestamp
|
253
|
+
Time.now
|
254
|
+
end
|
255
|
+
|
256
|
+
# Add a description to the task. The description can consist of an option
|
257
|
+
# argument list (enclosed brackets) and an optional comment.
|
258
|
+
def add_description(description)
|
259
|
+
return unless description
|
260
|
+
comment = description.strip
|
261
|
+
add_comment(comment) if comment && ! comment.empty?
|
262
|
+
end
|
263
|
+
|
264
|
+
def comment=(comment) # :nodoc:
|
265
|
+
add_comment(comment)
|
266
|
+
end
|
267
|
+
|
268
|
+
def add_comment(comment) # :nodoc:
|
269
|
+
return if comment.nil?
|
270
|
+
@comments << comment unless @comments.include?(comment)
|
271
|
+
end
|
272
|
+
private :add_comment
|
273
|
+
|
274
|
+
# Full collection of comments. Multiple comments are separated by
|
275
|
+
# newlines.
|
276
|
+
def full_comment
|
277
|
+
transform_comments("\n")
|
278
|
+
end
|
279
|
+
|
280
|
+
# First line (or sentence) of all comments. Multiple comments are
|
281
|
+
# separated by a "/".
|
282
|
+
def comment
|
283
|
+
transform_comments(" / ") { |c| first_sentence(c) }
|
284
|
+
end
|
285
|
+
|
286
|
+
# Transform the list of comments as specified by the block and
|
287
|
+
# join with the separator.
|
288
|
+
def transform_comments(separator, &block)
|
289
|
+
if @comments.empty?
|
290
|
+
nil
|
291
|
+
else
|
292
|
+
block ||= lambda { |c| c }
|
293
|
+
@comments.map(&block).join(separator)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
private :transform_comments
|
297
|
+
|
298
|
+
# Get the first sentence in a string. The sentence is terminated
|
299
|
+
# by the first period or the end of the line. Decimal points do
|
300
|
+
# not count as periods.
|
301
|
+
def first_sentence(string)
|
302
|
+
string.split(/\.[ \t]|\.$|\n/).first
|
303
|
+
end
|
304
|
+
private :first_sentence
|
305
|
+
|
306
|
+
# Set the names of the arguments for this task. +args+ should be
|
307
|
+
# an array of symbols, one for each argument name.
|
308
|
+
def set_arg_names(args)
|
309
|
+
@arg_names = args.map { |a| a.to_sym }
|
310
|
+
end
|
311
|
+
|
312
|
+
# Return a string describing the internal state of a task. Useful for
|
313
|
+
# debugging.
|
314
|
+
def investigation
|
315
|
+
result = "------------------------------\n"
|
316
|
+
result << "Investigating #{name}\n"
|
317
|
+
result << "class: #{self.class}\n"
|
318
|
+
result << "task needed: #{needed?}\n"
|
319
|
+
result << "timestamp: #{timestamp}\n"
|
320
|
+
result << "pre-requisites: \n"
|
321
|
+
prereqs = prerequisite_tasks
|
322
|
+
prereqs.sort! { |a, b| a.timestamp <=> b.timestamp }
|
323
|
+
prereqs.each do |p|
|
324
|
+
result << "--#{p.name} (#{p.timestamp})\n"
|
325
|
+
end
|
326
|
+
latest_prereq = prerequisite_tasks.map { |pre| pre.timestamp }.max
|
327
|
+
result << "latest-prerequisite time: #{latest_prereq}\n"
|
328
|
+
result << "................................\n\n"
|
329
|
+
return result
|
330
|
+
end
|
331
|
+
|
332
|
+
# ----------------------------------------------------------------
|
333
|
+
# Rake Module Methods
|
334
|
+
#
|
335
|
+
class << self
|
336
|
+
|
337
|
+
# Clear the task list. This cause rake to immediately forget all the
|
338
|
+
# tasks that have been assigned. (Normally used in the unit tests.)
|
339
|
+
def clear
|
340
|
+
Rake.application.clear
|
341
|
+
end
|
342
|
+
|
343
|
+
# List of all defined tasks.
|
344
|
+
def tasks
|
345
|
+
Rake.application.tasks
|
346
|
+
end
|
347
|
+
|
348
|
+
# Return a task with the given name. If the task is not currently
|
349
|
+
# known, try to synthesize one from the defined rules. If no rules are
|
350
|
+
# found, but an existing file matches the task name, assume it is a file
|
351
|
+
# task with no dependencies or actions.
|
352
|
+
def [](task_name)
|
353
|
+
Rake.application[task_name]
|
354
|
+
end
|
355
|
+
|
356
|
+
# TRUE if the task name is already defined.
|
357
|
+
def task_defined?(task_name)
|
358
|
+
Rake.application.lookup(task_name) != nil
|
359
|
+
end
|
360
|
+
|
361
|
+
# Define a task given +args+ and an option block. If a rule with the
|
362
|
+
# given name already exists, the prerequisites and actions are added to
|
363
|
+
# the existing task. Returns the defined task.
|
364
|
+
def define_task(*args, &block)
|
365
|
+
Rake.application.define_task(self, *args, &block)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Define a rule for synthesizing tasks.
|
369
|
+
def create_rule(*args, &block)
|
370
|
+
Rake.application.create_rule(*args, &block)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Apply the scope to the task name according to the rules for
|
374
|
+
# this kind of task. Generic tasks will accept the scope as
|
375
|
+
# part of the name.
|
376
|
+
def scope_name(scope, task_name)
|
377
|
+
# (scope + [task_name]).join(':')
|
378
|
+
scope.path_with_task_name(task_name)
|
379
|
+
end
|
380
|
+
|
381
|
+
end # class << Rake::Task
|
382
|
+
end # class Rake::Task
|
383
|
+
end
|