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,17 @@
|
|
1
|
+
module MultiJson
|
2
|
+
class Version
|
3
|
+
MAJOR = 1 unless defined? MultiJson::Version::MAJOR
|
4
|
+
MINOR = 12 unless defined? MultiJson::Version::MINOR
|
5
|
+
PATCH = 1 unless defined? MultiJson::Version::PATCH
|
6
|
+
PRE = nil unless defined? MultiJson::Version::PRE
|
7
|
+
|
8
|
+
class << self
|
9
|
+
# @return [String]
|
10
|
+
def to_s
|
11
|
+
[MAJOR, MINOR, PATCH, PRE].compact.join('.')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
VERSION = Version.to_s.freeze
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require File.expand_path('../lib/multi_json/version.rb', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.authors = ['Michael Bleigh', 'Josh Kalderimis', 'Erik Michaels-Ober', 'Pavel Pravosud']
|
6
|
+
spec.cert_chain = %w(certs/rwz.pem)
|
7
|
+
spec.summary = 'A common interface to multiple JSON libraries.'
|
8
|
+
spec.description = 'A common interface to multiple JSON libraries, including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem, NSJSONSerialization, gson.rb, JrJackson, and OkJson.'
|
9
|
+
spec.email = %w(michael@intridea.com josh.kalderimis@gmail.com sferik@gmail.com pavel@pravosud.com)
|
10
|
+
spec.files = Dir['CHANGELOG.md', 'CONTRIBUTING.md', 'LICENSE.md', 'README.md', 'multi_json.gemspec', 'lib/**/*']
|
11
|
+
spec.homepage = 'http://github.com/intridea/multi_json'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.name = 'multi_json'
|
14
|
+
spec.require_path = 'lib'
|
15
|
+
spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
|
16
|
+
spec.version = MultiJson::Version
|
17
|
+
|
18
|
+
spec.required_rubygems_version = '>= 1.3.5'
|
19
|
+
spec.add_development_dependency 'bundler', '~> 1.0'
|
20
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
=== 2.0.0 / 2013-12-21
|
2
|
+
|
3
|
+
- Drop Ruby 1.8 compatibility
|
4
|
+
- GH #21: Fix FilePart length calculation for Ruby 1.9 when filename contains
|
5
|
+
multibyte characters (hexfet)
|
6
|
+
- GH #20: Ensure upload responds to both #content_type and #original_filename
|
7
|
+
(Steven Davidovitz)
|
8
|
+
- GH #31: Support setting headers on any part of the request (Socrates Vicente)
|
9
|
+
- GH #30: Support array values for params (Gustav Ernberg)
|
10
|
+
- GH #32: Fix respond_to? signature (Leo Cassarani)
|
11
|
+
- GH #33: Update README to markdown (Jagtesh Chadha)
|
12
|
+
- GH #35: Improved handling of array-type parameters (Steffen Grunwald)
|
13
|
+
|
14
|
+
=== 1.2.0 / 2013-02-25
|
15
|
+
|
16
|
+
- #25: Ruby 2 compatibility (thanks mislav)
|
17
|
+
|
18
|
+
=== 1.1.5 / 2012-02-12
|
19
|
+
|
20
|
+
- Fix length/bytesize of parts in 1.9 (#7, #14) (Jason Moore)
|
21
|
+
- Allow CompositeIO objects to be re-read by rewinding, like other IO
|
22
|
+
objects. (Luke Redpath)
|
23
|
+
|
24
|
+
=== 1.1.4 / 2011-11-23
|
25
|
+
|
26
|
+
- Non-functional changes in release (switch to Bundler gem tasks)
|
27
|
+
|
28
|
+
=== 1.1.3 / 2011-07-25
|
29
|
+
|
30
|
+
- More configurable header specification for parts (Gerrit Riessen)
|
31
|
+
|
32
|
+
=== 1.1.2 / 2011-05-24
|
33
|
+
|
34
|
+
- Fix CRLF file part miscalculation (Johannes Wagener)
|
35
|
+
- Fix Epilogue CRLF issue (suggestion by Neil Spring)
|
36
|
+
|
37
|
+
=== 1.1.1 / 2011-05-13
|
38
|
+
|
39
|
+
- GH# 9: Fixed Ruby 1.9.2 StringIO bug (thanks Alex Koppel)
|
40
|
+
|
41
|
+
=== 1.1.0 / 2011-01-11
|
42
|
+
|
43
|
+
- API CHANGE: UploadIO.convert! removed in favor of UploadIO.new
|
44
|
+
(Jeff Hodges)
|
45
|
+
|
46
|
+
=== 1.0.1 / 2010-04-27
|
47
|
+
|
48
|
+
- Doc updates, make gemspec based on more modern Rubygems
|
49
|
+
|
50
|
+
=== 1.0 / 2009-02-12
|
51
|
+
|
52
|
+
- Many fixes from mlooney, seems to work now. Putting the 0.9 seal of
|
53
|
+
approval on it.
|
54
|
+
|
55
|
+
=== 0.1 / 2008-08-12
|
56
|
+
|
57
|
+
* 1 major enhancement
|
58
|
+
|
59
|
+
* Birthday!
|
60
|
+
|
@@ -0,0 +1,77 @@
|
|
1
|
+
## multipart-post
|
2
|
+
|
3
|
+
* http://github.com/nicksieger/multipart-post
|
4
|
+
|
5
|
+
![build status](https://travis-ci.org/nicksieger/multipart-post.png)
|
6
|
+
|
7
|
+
#### DESCRIPTION:
|
8
|
+
|
9
|
+
Adds a streamy multipart form post capability to Net::HTTP. Also
|
10
|
+
supports other methods besides POST.
|
11
|
+
|
12
|
+
#### FEATURES/PROBLEMS:
|
13
|
+
|
14
|
+
* Appears to actually work. A good feature to have.
|
15
|
+
* Encapsulates posting of file/binary parts and name/value parameter parts, similar to
|
16
|
+
most browsers' file upload forms.
|
17
|
+
* Provides an UploadIO helper class to prepare IO objects for inclusion in the params
|
18
|
+
hash of the multipart post object.
|
19
|
+
|
20
|
+
#### SYNOPSIS:
|
21
|
+
|
22
|
+
require 'net/http/post/multipart'
|
23
|
+
|
24
|
+
url = URI.parse('http://www.example.com/upload')
|
25
|
+
File.open("./image.jpg") do |jpg|
|
26
|
+
req = Net::HTTP::Post::Multipart.new url.path,
|
27
|
+
"file" => UploadIO.new(jpg, "image/jpeg", "image.jpg")
|
28
|
+
res = Net::HTTP.start(url.host, url.port) do |http|
|
29
|
+
http.request(req)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
To post multiple files or attachments, simply include multiple parameters with
|
34
|
+
UploadIO values:
|
35
|
+
|
36
|
+
require 'net/http/post/multipart'
|
37
|
+
|
38
|
+
url = URI.parse('http://www.example.com/upload')
|
39
|
+
req = Net::HTTP::Post::Multipart.new url.path,
|
40
|
+
"file1" => UploadIO.new(File.new("./image.jpg"), "image/jpeg", "image.jpg"),
|
41
|
+
"file2" => UploadIO.new(File.new("./image2.jpg"), "image/jpeg", "image2.jpg")
|
42
|
+
res = Net::HTTP.start(url.host, url.port) do |http|
|
43
|
+
http.request(req)
|
44
|
+
end
|
45
|
+
|
46
|
+
#### REQUIREMENTS:
|
47
|
+
|
48
|
+
None
|
49
|
+
|
50
|
+
#### INSTALL:
|
51
|
+
|
52
|
+
gem install multipart-post
|
53
|
+
|
54
|
+
#### LICENSE:
|
55
|
+
|
56
|
+
(The MIT License)
|
57
|
+
|
58
|
+
Copyright (c) 2007-2013 Nick Sieger <nick@nicksieger.com>
|
59
|
+
|
60
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
61
|
+
a copy of this software and associated documentation files (the
|
62
|
+
'Software'), to deal in the Software without restriction, including
|
63
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
64
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
65
|
+
permit persons to whom the Software is furnished to do so, subject to
|
66
|
+
the following conditions:
|
67
|
+
|
68
|
+
The above copyright notice and this permission notice shall be
|
69
|
+
included in all copies or substantial portions of the Software.
|
70
|
+
|
71
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
72
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
73
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
74
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
75
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
76
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
77
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,108 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2007-2012 Nick Sieger.
|
3
|
+
# See the file README.txt included with the distribution for
|
4
|
+
# software license details.
|
5
|
+
#++
|
6
|
+
|
7
|
+
# Concatenate together multiple IO objects into a single, composite IO object
|
8
|
+
# for purposes of reading as a single stream.
|
9
|
+
#
|
10
|
+
# Usage:
|
11
|
+
#
|
12
|
+
# crio = CompositeReadIO.new(StringIO.new('one'), StringIO.new('two'), StringIO.new('three'))
|
13
|
+
# puts crio.read # => "onetwothree"
|
14
|
+
#
|
15
|
+
class CompositeReadIO
|
16
|
+
# Create a new composite-read IO from the arguments, all of which should
|
17
|
+
# respond to #read in a manner consistent with IO.
|
18
|
+
def initialize(*ios)
|
19
|
+
@ios = ios.flatten
|
20
|
+
@index = 0
|
21
|
+
end
|
22
|
+
|
23
|
+
# Read from IOs in order until `length` bytes have been received.
|
24
|
+
def read(length = nil, outbuf = nil)
|
25
|
+
got_result = false
|
26
|
+
outbuf = outbuf ? outbuf.replace("") : ""
|
27
|
+
|
28
|
+
while io = current_io
|
29
|
+
if result = io.read(length)
|
30
|
+
got_result ||= !result.nil?
|
31
|
+
result.force_encoding("BINARY") if result.respond_to?(:force_encoding)
|
32
|
+
outbuf << result
|
33
|
+
length -= result.length if length
|
34
|
+
break if length == 0
|
35
|
+
end
|
36
|
+
advance_io
|
37
|
+
end
|
38
|
+
(!got_result && length) ? nil : outbuf
|
39
|
+
end
|
40
|
+
|
41
|
+
def rewind
|
42
|
+
@ios.each { |io| io.rewind }
|
43
|
+
@index = 0
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def current_io
|
49
|
+
@ios[@index]
|
50
|
+
end
|
51
|
+
|
52
|
+
def advance_io
|
53
|
+
@index += 1
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Convenience methods for dealing with files and IO that are to be uploaded.
|
58
|
+
class UploadIO
|
59
|
+
# Create an upload IO suitable for including in the params hash of a
|
60
|
+
# Net::HTTP::Post::Multipart.
|
61
|
+
#
|
62
|
+
# Can take two forms. The first accepts a filename and content type, and
|
63
|
+
# opens the file for reading (to be closed by finalizer).
|
64
|
+
#
|
65
|
+
# The second accepts an already-open IO, but also requires a third argument,
|
66
|
+
# the filename from which it was opened (particularly useful/recommended if
|
67
|
+
# uploading directly from a form in a framework, which often save the file to
|
68
|
+
# an arbitrarily named RackMultipart file in /tmp).
|
69
|
+
#
|
70
|
+
# Usage:
|
71
|
+
#
|
72
|
+
# UploadIO.new("file.txt", "text/plain")
|
73
|
+
# UploadIO.new(file_io, "text/plain", "file.txt")
|
74
|
+
#
|
75
|
+
attr_reader :content_type, :original_filename, :local_path, :io, :opts
|
76
|
+
|
77
|
+
def initialize(filename_or_io, content_type, filename = nil, opts = {})
|
78
|
+
io = filename_or_io
|
79
|
+
local_path = ""
|
80
|
+
if io.respond_to? :read
|
81
|
+
# in Ruby 1.9.2, StringIOs no longer respond to path
|
82
|
+
# (since they respond to :length, so we don't need their local path, see parts.rb:41)
|
83
|
+
local_path = filename_or_io.respond_to?(:path) ? filename_or_io.path : "local.path"
|
84
|
+
else
|
85
|
+
io = File.open(filename_or_io)
|
86
|
+
local_path = filename_or_io
|
87
|
+
end
|
88
|
+
filename ||= local_path
|
89
|
+
|
90
|
+
@content_type = content_type
|
91
|
+
@original_filename = File.basename(filename)
|
92
|
+
@local_path = local_path
|
93
|
+
@io = io
|
94
|
+
@opts = opts
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.convert!(io, content_type, original_filename, local_path)
|
98
|
+
raise ArgumentError, "convert! has been removed. You must now wrap IOs using:\nUploadIO.new(filename_or_io, content_type, filename=nil)\nPlease update your code."
|
99
|
+
end
|
100
|
+
|
101
|
+
def method_missing(*args)
|
102
|
+
@io.send(*args)
|
103
|
+
end
|
104
|
+
|
105
|
+
def respond_to?(meth, include_all = false)
|
106
|
+
@io.respond_to?(meth, include_all) || super(meth, include_all)
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2007-2013 Nick Sieger.
|
3
|
+
# See the file README.txt included with the distribution for
|
4
|
+
# software license details.
|
5
|
+
#++
|
6
|
+
|
7
|
+
require 'parts'
|
8
|
+
module Multipartable
|
9
|
+
DEFAULT_BOUNDARY = "-----------RubyMultipartPost"
|
10
|
+
def initialize(path, params, headers={}, boundary = DEFAULT_BOUNDARY)
|
11
|
+
headers = headers.clone # don't want to modify the original variable
|
12
|
+
parts_headers = headers.delete(:parts) || {}
|
13
|
+
super(path, headers)
|
14
|
+
parts = params.map do |k,v|
|
15
|
+
case v
|
16
|
+
when Array
|
17
|
+
v.map {|item| Parts::Part.new(boundary, k, item, parts_headers[k]) }
|
18
|
+
else
|
19
|
+
Parts::Part.new(boundary, k, v, parts_headers[k])
|
20
|
+
end
|
21
|
+
end.flatten
|
22
|
+
parts << Parts::EpiloguePart.new(boundary)
|
23
|
+
ios = parts.map {|p| p.to_io }
|
24
|
+
self.set_content_type(headers["Content-Type"] || "multipart/form-data",
|
25
|
+
{ "boundary" => boundary })
|
26
|
+
self.content_length = parts.inject(0) {|sum,i| sum + i.length }
|
27
|
+
self.body_stream = CompositeReadIO.new(*ios)
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2007-2012 Nick Sieger.
|
3
|
+
# See the file README.txt included with the distribution for
|
4
|
+
# software license details.
|
5
|
+
#++
|
6
|
+
|
7
|
+
require 'net/http'
|
8
|
+
require 'stringio'
|
9
|
+
require 'cgi'
|
10
|
+
require 'composite_io'
|
11
|
+
require 'multipartable'
|
12
|
+
require 'parts'
|
13
|
+
|
14
|
+
module Net #:nodoc:
|
15
|
+
class HTTP #:nodoc:
|
16
|
+
class Put
|
17
|
+
class Multipart < Put
|
18
|
+
include Multipartable
|
19
|
+
end
|
20
|
+
end
|
21
|
+
class Post #:nodoc:
|
22
|
+
class Multipart < Post
|
23
|
+
include Multipartable
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2007-2013 Nick Sieger.
|
3
|
+
# See the file README.txt included with the distribution for
|
4
|
+
# software license details.
|
5
|
+
#++
|
6
|
+
|
7
|
+
module Parts
|
8
|
+
module Part #:nodoc:
|
9
|
+
def self.new(boundary, name, value, headers = {})
|
10
|
+
headers ||= {} # avoid nil values
|
11
|
+
if file?(value)
|
12
|
+
FilePart.new(boundary, name, value, headers)
|
13
|
+
else
|
14
|
+
ParamPart.new(boundary, name, value, headers)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.file?(value)
|
19
|
+
value.respond_to?(:content_type) && value.respond_to?(:original_filename)
|
20
|
+
end
|
21
|
+
|
22
|
+
def length
|
23
|
+
@part.length
|
24
|
+
end
|
25
|
+
|
26
|
+
def to_io
|
27
|
+
@io
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class ParamPart
|
32
|
+
include Part
|
33
|
+
def initialize(boundary, name, value, headers = {})
|
34
|
+
@part = build_part(boundary, name, value, headers)
|
35
|
+
@io = StringIO.new(@part)
|
36
|
+
end
|
37
|
+
|
38
|
+
def length
|
39
|
+
@part.bytesize
|
40
|
+
end
|
41
|
+
|
42
|
+
def build_part(boundary, name, value, headers = {})
|
43
|
+
part = ''
|
44
|
+
part << "--#{boundary}\r\n"
|
45
|
+
part << "Content-Disposition: form-data; name=\"#{name.to_s}\"\r\n"
|
46
|
+
part << "Content-Type: #{headers["Content-Type"]}\r\n" if headers["Content-Type"]
|
47
|
+
part << "\r\n"
|
48
|
+
part << "#{value}\r\n"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# Represents a part to be filled from file IO.
|
53
|
+
class FilePart
|
54
|
+
include Part
|
55
|
+
attr_reader :length
|
56
|
+
def initialize(boundary, name, io, headers = {})
|
57
|
+
file_length = io.respond_to?(:length) ? io.length : File.size(io.local_path)
|
58
|
+
@head = build_head(boundary, name, io.original_filename, io.content_type, file_length,
|
59
|
+
io.respond_to?(:opts) ? io.opts.merge(headers) : headers)
|
60
|
+
@foot = "\r\n"
|
61
|
+
@length = @head.bytesize + file_length + @foot.length
|
62
|
+
@io = CompositeReadIO.new(StringIO.new(@head), io, StringIO.new(@foot))
|
63
|
+
end
|
64
|
+
|
65
|
+
def build_head(boundary, name, filename, type, content_len, opts = {}, headers = {})
|
66
|
+
trans_encoding = opts["Content-Transfer-Encoding"] || "binary"
|
67
|
+
content_disposition = opts["Content-Disposition"] || "form-data"
|
68
|
+
|
69
|
+
part = ''
|
70
|
+
part << "--#{boundary}\r\n"
|
71
|
+
part << "Content-Disposition: #{content_disposition}; name=\"#{name.to_s}\"; filename=\"#{filename}\"\r\n"
|
72
|
+
part << "Content-Length: #{content_len}\r\n"
|
73
|
+
if content_id = opts["Content-ID"]
|
74
|
+
part << "Content-ID: #{content_id}\r\n"
|
75
|
+
end
|
76
|
+
|
77
|
+
if headers["Content-Type"] != nil
|
78
|
+
part << "Content-Type: " + headers["Content-Type"] + "\r\n"
|
79
|
+
else
|
80
|
+
part << "Content-Type: #{type}\r\n"
|
81
|
+
end
|
82
|
+
|
83
|
+
part << "Content-Transfer-Encoding: #{trans_encoding}\r\n"
|
84
|
+
part << "\r\n"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Represents the epilogue or closing boundary.
|
89
|
+
class EpiloguePart
|
90
|
+
include Part
|
91
|
+
def initialize(boundary)
|
92
|
+
@part = "--#{boundary}--\r\n\r\n"
|
93
|
+
@io = StringIO.new(@part)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|