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,53 @@
|
|
1
|
+
module Faraday
|
2
|
+
class Error < StandardError; end
|
3
|
+
class MissingDependency < Error; end
|
4
|
+
|
5
|
+
class ClientError < Error
|
6
|
+
attr_reader :response
|
7
|
+
|
8
|
+
def initialize(ex, response = nil)
|
9
|
+
@wrapped_exception = nil
|
10
|
+
@response = response
|
11
|
+
|
12
|
+
if ex.respond_to?(:backtrace)
|
13
|
+
super(ex.message)
|
14
|
+
@wrapped_exception = ex
|
15
|
+
elsif ex.respond_to?(:each_key)
|
16
|
+
super("the server responded with status #{ex[:status]}")
|
17
|
+
@response = ex
|
18
|
+
else
|
19
|
+
super(ex.to_s)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def backtrace
|
24
|
+
if @wrapped_exception
|
25
|
+
@wrapped_exception.backtrace
|
26
|
+
else
|
27
|
+
super
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def inspect
|
32
|
+
%(#<#{self.class}>)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class ConnectionFailed < ClientError; end
|
37
|
+
class ResourceNotFound < ClientError; end
|
38
|
+
class ParsingError < ClientError; end
|
39
|
+
|
40
|
+
class TimeoutError < ClientError
|
41
|
+
def initialize(ex = nil)
|
42
|
+
super(ex || "timeout")
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
class SSLError < ClientError
|
47
|
+
end
|
48
|
+
|
49
|
+
[:MissingDependency, :ClientError, :ConnectionFailed, :ResourceNotFound,
|
50
|
+
:ParsingError, :TimeoutError, :SSLError].each do |const|
|
51
|
+
Error.const_set(const, Faraday.const_get(const))
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Faraday
|
2
|
+
class Middleware
|
3
|
+
extend MiddlewareRegistry
|
4
|
+
|
5
|
+
class << self
|
6
|
+
attr_accessor :load_error
|
7
|
+
private :load_error=
|
8
|
+
end
|
9
|
+
|
10
|
+
self.load_error = nil
|
11
|
+
|
12
|
+
# Executes a block which should try to require and reference dependent libraries
|
13
|
+
def self.dependency(lib = nil)
|
14
|
+
lib ? require(lib) : yield
|
15
|
+
rescue LoadError, NameError => error
|
16
|
+
self.load_error = error
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.new(*)
|
20
|
+
raise "missing dependency for #{self}: #{load_error.message}" unless loaded?
|
21
|
+
super
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.loaded?
|
25
|
+
load_error.nil?
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.inherited(subclass)
|
29
|
+
super
|
30
|
+
subclass.send(:load_error=, self.load_error)
|
31
|
+
end
|
32
|
+
|
33
|
+
def initialize(app = nil)
|
34
|
+
@app = app
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,359 @@
|
|
1
|
+
module Faraday
|
2
|
+
# Subclasses Struct with some special helpers for converting from a Hash to
|
3
|
+
# a Struct.
|
4
|
+
class Options < Struct
|
5
|
+
# Public
|
6
|
+
def self.from(value)
|
7
|
+
value ? new.update(value) : new
|
8
|
+
end
|
9
|
+
|
10
|
+
# Public
|
11
|
+
def each
|
12
|
+
return to_enum(:each) unless block_given?
|
13
|
+
members.each do |key|
|
14
|
+
yield(key.to_sym, send(key))
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# Public
|
19
|
+
def update(obj)
|
20
|
+
obj.each do |key, value|
|
21
|
+
if sub_options = self.class.options_for(key)
|
22
|
+
value = sub_options.from(value) if value
|
23
|
+
elsif Hash === value
|
24
|
+
hash = {}
|
25
|
+
value.each do |hash_key, hash_value|
|
26
|
+
hash[hash_key] = hash_value
|
27
|
+
end
|
28
|
+
value = hash
|
29
|
+
end
|
30
|
+
|
31
|
+
self.send("#{key}=", value) unless value.nil?
|
32
|
+
end
|
33
|
+
self
|
34
|
+
end
|
35
|
+
|
36
|
+
alias merge! update
|
37
|
+
|
38
|
+
# Public
|
39
|
+
def delete(key)
|
40
|
+
value = send(key)
|
41
|
+
send("#{key}=", nil)
|
42
|
+
value
|
43
|
+
end
|
44
|
+
|
45
|
+
# Public
|
46
|
+
def clear
|
47
|
+
members.each { |member| delete(member) }
|
48
|
+
end
|
49
|
+
|
50
|
+
# Public
|
51
|
+
def merge(value)
|
52
|
+
dup.update(value)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Public
|
56
|
+
def fetch(key, *args)
|
57
|
+
unless symbolized_key_set.include?(key.to_sym)
|
58
|
+
key_setter = "#{key}="
|
59
|
+
if args.size > 0
|
60
|
+
send(key_setter, args.first)
|
61
|
+
elsif block_given?
|
62
|
+
send(key_setter, Proc.new.call(key))
|
63
|
+
else
|
64
|
+
raise self.class.fetch_error_class, "key not found: #{key.inspect}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
send(key)
|
68
|
+
end
|
69
|
+
|
70
|
+
# Public
|
71
|
+
def values_at(*keys)
|
72
|
+
keys.map { |key| send(key) }
|
73
|
+
end
|
74
|
+
|
75
|
+
# Public
|
76
|
+
def keys
|
77
|
+
members.reject { |member| send(member).nil? }
|
78
|
+
end
|
79
|
+
|
80
|
+
# Public
|
81
|
+
def empty?
|
82
|
+
keys.empty?
|
83
|
+
end
|
84
|
+
|
85
|
+
# Public
|
86
|
+
def each_key
|
87
|
+
return to_enum(:each_key) unless block_given?
|
88
|
+
keys.each do |key|
|
89
|
+
yield(key)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Public
|
94
|
+
def key?(key)
|
95
|
+
keys.include?(key)
|
96
|
+
end
|
97
|
+
|
98
|
+
alias has_key? key?
|
99
|
+
|
100
|
+
# Public
|
101
|
+
def each_value
|
102
|
+
return to_enum(:each_value) unless block_given?
|
103
|
+
values.each do |value|
|
104
|
+
yield(value)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Public
|
109
|
+
def value?(value)
|
110
|
+
values.include?(value)
|
111
|
+
end
|
112
|
+
|
113
|
+
alias has_value? value?
|
114
|
+
|
115
|
+
# Public
|
116
|
+
def to_hash
|
117
|
+
hash = {}
|
118
|
+
members.each do |key|
|
119
|
+
value = send(key)
|
120
|
+
hash[key.to_sym] = value unless value.nil?
|
121
|
+
end
|
122
|
+
hash
|
123
|
+
end
|
124
|
+
|
125
|
+
# Internal
|
126
|
+
def inspect
|
127
|
+
values = []
|
128
|
+
members.each do |member|
|
129
|
+
value = send(member)
|
130
|
+
values << "#{member}=#{value.inspect}" if value
|
131
|
+
end
|
132
|
+
values = values.empty? ? ' (empty)' : (' ' << values.join(", "))
|
133
|
+
|
134
|
+
%(#<#{self.class}#{values}>)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Internal
|
138
|
+
def self.options(mapping)
|
139
|
+
attribute_options.update(mapping)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Internal
|
143
|
+
def self.options_for(key)
|
144
|
+
attribute_options[key]
|
145
|
+
end
|
146
|
+
|
147
|
+
# Internal
|
148
|
+
def self.attribute_options
|
149
|
+
@attribute_options ||= {}
|
150
|
+
end
|
151
|
+
|
152
|
+
def self.memoized(key)
|
153
|
+
memoized_attributes[key.to_sym] = Proc.new
|
154
|
+
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
155
|
+
def #{key}() self[:#{key}]; end
|
156
|
+
RUBY
|
157
|
+
end
|
158
|
+
|
159
|
+
def self.memoized_attributes
|
160
|
+
@memoized_attributes ||= {}
|
161
|
+
end
|
162
|
+
|
163
|
+
def [](key)
|
164
|
+
key = key.to_sym
|
165
|
+
if method = self.class.memoized_attributes[key]
|
166
|
+
super(key) || (self[key] = instance_eval(&method))
|
167
|
+
else
|
168
|
+
super
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
def symbolized_key_set
|
173
|
+
@symbolized_key_set ||= Set.new(keys.map { |k| k.to_sym })
|
174
|
+
end
|
175
|
+
|
176
|
+
def self.inherited(subclass)
|
177
|
+
super
|
178
|
+
subclass.attribute_options.update(attribute_options)
|
179
|
+
subclass.memoized_attributes.update(memoized_attributes)
|
180
|
+
end
|
181
|
+
|
182
|
+
def self.fetch_error_class
|
183
|
+
@fetch_error_class ||= if Object.const_defined?(:KeyError)
|
184
|
+
::KeyError
|
185
|
+
else
|
186
|
+
::IndexError
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
class RequestOptions < Options.new(:params_encoder, :proxy, :bind,
|
192
|
+
:timeout, :open_timeout, :boundary,
|
193
|
+
:oauth)
|
194
|
+
|
195
|
+
def []=(key, value)
|
196
|
+
if key && key.to_sym == :proxy
|
197
|
+
super(key, value ? ProxyOptions.from(value) : nil)
|
198
|
+
else
|
199
|
+
super(key, value)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
class SSLOptions < Options.new(:verify, :ca_file, :ca_path, :verify_mode,
|
205
|
+
:cert_store, :client_cert, :client_key, :certificate, :private_key, :verify_depth, :version)
|
206
|
+
|
207
|
+
def verify?
|
208
|
+
verify != false
|
209
|
+
end
|
210
|
+
|
211
|
+
def disable?
|
212
|
+
!verify?
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
class ProxyOptions < Options.new(:uri, :user, :password)
|
217
|
+
extend Forwardable
|
218
|
+
def_delegators :uri, :scheme, :scheme=, :host, :host=, :port, :port=, :path, :path=
|
219
|
+
|
220
|
+
def self.from(value)
|
221
|
+
case value
|
222
|
+
when String
|
223
|
+
value = {:uri => Utils.URI(value)}
|
224
|
+
when URI
|
225
|
+
value = {:uri => value}
|
226
|
+
when Hash, Options
|
227
|
+
if uri = value.delete(:uri)
|
228
|
+
value[:uri] = Utils.URI(uri)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
super(value)
|
232
|
+
end
|
233
|
+
|
234
|
+
memoized(:user) { uri.user && Utils.unescape(uri.user) }
|
235
|
+
memoized(:password) { uri.password && Utils.unescape(uri.password) }
|
236
|
+
end
|
237
|
+
|
238
|
+
class ConnectionOptions < Options.new(:request, :proxy, :ssl, :builder, :url,
|
239
|
+
:parallel_manager, :params, :headers, :builder_class)
|
240
|
+
|
241
|
+
options :request => RequestOptions, :ssl => SSLOptions
|
242
|
+
|
243
|
+
memoized(:request) { self.class.options_for(:request).new }
|
244
|
+
|
245
|
+
memoized(:ssl) { self.class.options_for(:ssl).new }
|
246
|
+
|
247
|
+
memoized(:builder_class) { RackBuilder }
|
248
|
+
|
249
|
+
def new_builder(block)
|
250
|
+
builder_class.new(&block)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
class Env < Options.new(:method, :body, :url, :request, :request_headers,
|
255
|
+
:ssl, :parallel_manager, :params, :response, :response_headers, :status)
|
256
|
+
|
257
|
+
ContentLength = 'Content-Length'.freeze
|
258
|
+
StatusesWithoutBody = Set.new [204, 304]
|
259
|
+
SuccessfulStatuses = 200..299
|
260
|
+
|
261
|
+
# A Set of HTTP verbs that typically send a body. If no body is set for
|
262
|
+
# these requests, the Content-Length header is set to 0.
|
263
|
+
MethodsWithBodies = Set.new [:post, :put, :patch, :options]
|
264
|
+
|
265
|
+
options :request => RequestOptions,
|
266
|
+
:request_headers => Utils::Headers, :response_headers => Utils::Headers
|
267
|
+
|
268
|
+
extend Forwardable
|
269
|
+
|
270
|
+
def_delegators :request, :params_encoder
|
271
|
+
|
272
|
+
# Public
|
273
|
+
def self.from(value)
|
274
|
+
env = super(value)
|
275
|
+
if value.respond_to?(:custom_members)
|
276
|
+
env.custom_members.update(value.custom_members)
|
277
|
+
end
|
278
|
+
env
|
279
|
+
end
|
280
|
+
|
281
|
+
# Public
|
282
|
+
def [](key)
|
283
|
+
if in_member_set?(key)
|
284
|
+
super(key)
|
285
|
+
else
|
286
|
+
custom_members[key]
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
# Public
|
291
|
+
def []=(key, value)
|
292
|
+
if in_member_set?(key)
|
293
|
+
super(key, value)
|
294
|
+
else
|
295
|
+
custom_members[key] = value
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# Public
|
300
|
+
def success?
|
301
|
+
SuccessfulStatuses.include?(status)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Public
|
305
|
+
def needs_body?
|
306
|
+
!body && MethodsWithBodies.include?(method)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Public
|
310
|
+
def clear_body
|
311
|
+
request_headers[ContentLength] = '0'
|
312
|
+
self.body = ''
|
313
|
+
end
|
314
|
+
|
315
|
+
# Public
|
316
|
+
def parse_body?
|
317
|
+
!StatusesWithoutBody.include?(status)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Public
|
321
|
+
def parallel?
|
322
|
+
!!parallel_manager
|
323
|
+
end
|
324
|
+
|
325
|
+
def inspect
|
326
|
+
attrs = [nil]
|
327
|
+
members.each do |mem|
|
328
|
+
if value = send(mem)
|
329
|
+
attrs << "@#{mem}=#{value.inspect}"
|
330
|
+
end
|
331
|
+
end
|
332
|
+
if !custom_members.empty?
|
333
|
+
attrs << "@custom=#{custom_members.inspect}"
|
334
|
+
end
|
335
|
+
%(#<#{self.class}#{attrs.join(" ")}>)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Internal
|
339
|
+
def custom_members
|
340
|
+
@custom_members ||= {}
|
341
|
+
end
|
342
|
+
|
343
|
+
# Internal
|
344
|
+
if members.first.is_a?(Symbol)
|
345
|
+
def in_member_set?(key)
|
346
|
+
self.class.member_set.include?(key.to_sym)
|
347
|
+
end
|
348
|
+
else
|
349
|
+
def in_member_set?(key)
|
350
|
+
self.class.member_set.include?(key.to_s)
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
# Internal
|
355
|
+
def self.member_set
|
356
|
+
@member_set ||= Set.new(members)
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|