mercadopago-custom-checkout 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +5 -5
  2. data/.gs/bin/rake +12 -8
  3. data/.gs/specifications/rake-10.5.0.gemspec +24 -28
  4. data/.tool-versions +1 -0
  5. data/lib/mercadopago/custom_checkout/version.rb +1 -1
  6. data/mercadopago-custom-checkout.gemspec +3 -3
  7. metadata +14 -125
  8. data/.gs/cache/faraday-0.9.2.gem +0 -0
  9. data/.gs/cache/minitest-5.9.0.gem +0 -0
  10. data/.gs/cache/multi_json-1.12.1.gem +0 -0
  11. data/.gs/cache/multipart-post-2.0.0.gem +0 -0
  12. data/.gs/gems/faraday-0.9.2/LICENSE.md +0 -20
  13. data/.gs/gems/faraday-0.9.2/README.md +0 -245
  14. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http.rb +0 -237
  15. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http_ssl_patch.rb +0 -56
  16. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -66
  17. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony.rb +0 -100
  18. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/excon.rb +0 -81
  19. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/httpclient.rb +0 -117
  20. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb +0 -130
  21. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb +0 -49
  22. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/patron.rb +0 -78
  23. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/rack.rb +0 -58
  24. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/test.rb +0 -162
  25. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/typhoeus.rb +0 -123
  26. data/.gs/gems/faraday-0.9.2/lib/faraday/adapter.rb +0 -46
  27. data/.gs/gems/faraday-0.9.2/lib/faraday/autoload.rb +0 -84
  28. data/.gs/gems/faraday-0.9.2/lib/faraday/connection.rb +0 -437
  29. data/.gs/gems/faraday-0.9.2/lib/faraday/error.rb +0 -53
  30. data/.gs/gems/faraday-0.9.2/lib/faraday/middleware.rb +0 -37
  31. data/.gs/gems/faraday-0.9.2/lib/faraday/options.rb +0 -359
  32. data/.gs/gems/faraday-0.9.2/lib/faraday/parameters.rb +0 -197
  33. data/.gs/gems/faraday-0.9.2/lib/faraday/rack_builder.rb +0 -213
  34. data/.gs/gems/faraday-0.9.2/lib/faraday/request/authorization.rb +0 -42
  35. data/.gs/gems/faraday-0.9.2/lib/faraday/request/basic_authentication.rb +0 -13
  36. data/.gs/gems/faraday-0.9.2/lib/faraday/request/instrumentation.rb +0 -36
  37. data/.gs/gems/faraday-0.9.2/lib/faraday/request/multipart.rb +0 -63
  38. data/.gs/gems/faraday-0.9.2/lib/faraday/request/retry.rb +0 -154
  39. data/.gs/gems/faraday-0.9.2/lib/faraday/request/token_authentication.rb +0 -15
  40. data/.gs/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb +0 -36
  41. data/.gs/gems/faraday-0.9.2/lib/faraday/request.rb +0 -92
  42. data/.gs/gems/faraday-0.9.2/lib/faraday/response/logger.rb +0 -59
  43. data/.gs/gems/faraday-0.9.2/lib/faraday/response/raise_error.rb +0 -21
  44. data/.gs/gems/faraday-0.9.2/lib/faraday/response.rb +0 -93
  45. data/.gs/gems/faraday-0.9.2/lib/faraday/upload_io.rb +0 -67
  46. data/.gs/gems/faraday-0.9.2/lib/faraday/utils.rb +0 -309
  47. data/.gs/gems/faraday-0.9.2/lib/faraday.rb +0 -268
  48. data/.gs/gems/minitest-5.9.0/.autotest +0 -34
  49. data/.gs/gems/minitest-5.9.0/History.rdoc +0 -1176
  50. data/.gs/gems/minitest-5.9.0/Manifest.txt +0 -26
  51. data/.gs/gems/minitest-5.9.0/README.rdoc +0 -656
  52. data/.gs/gems/minitest-5.9.0/Rakefile +0 -72
  53. data/.gs/gems/minitest-5.9.0/design_rationale.rb +0 -52
  54. data/.gs/gems/minitest-5.9.0/lib/hoe/minitest.rb +0 -26
  55. data/.gs/gems/minitest-5.9.0/lib/minitest/assertions.rb +0 -674
  56. data/.gs/gems/minitest-5.9.0/lib/minitest/autorun.rb +0 -13
  57. data/.gs/gems/minitest-5.9.0/lib/minitest/benchmark.rb +0 -424
  58. data/.gs/gems/minitest-5.9.0/lib/minitest/expectations.rb +0 -284
  59. data/.gs/gems/minitest-5.9.0/lib/minitest/hell.rb +0 -17
  60. data/.gs/gems/minitest-5.9.0/lib/minitest/mock.rb +0 -232
  61. data/.gs/gems/minitest-5.9.0/lib/minitest/parallel.rb +0 -69
  62. data/.gs/gems/minitest-5.9.0/lib/minitest/pride.rb +0 -4
  63. data/.gs/gems/minitest-5.9.0/lib/minitest/pride_plugin.rb +0 -142
  64. data/.gs/gems/minitest-5.9.0/lib/minitest/spec.rb +0 -331
  65. data/.gs/gems/minitest-5.9.0/lib/minitest/test.rb +0 -284
  66. data/.gs/gems/minitest-5.9.0/lib/minitest/unit.rb +0 -45
  67. data/.gs/gems/minitest-5.9.0/lib/minitest.rb +0 -815
  68. data/.gs/gems/minitest-5.9.0/test/minitest/metametameta.rb +0 -90
  69. data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_benchmark.rb +0 -137
  70. data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_mock.rb +0 -512
  71. data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_reporter.rb +0 -281
  72. data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_spec.rb +0 -967
  73. data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_test.rb +0 -1983
  74. data/.gs/gems/multi_json-1.12.1/CHANGELOG.md +0 -245
  75. data/.gs/gems/multi_json-1.12.1/CONTRIBUTING.md +0 -46
  76. data/.gs/gems/multi_json-1.12.1/LICENSE.md +0 -20
  77. data/.gs/gems/multi_json-1.12.1/README.md +0 -121
  78. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapter.rb +0 -49
  79. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapter_error.rb +0 -15
  80. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/gson.rb +0 -20
  81. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/jr_jackson.rb +0 -25
  82. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_common.rb +0 -23
  83. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_gem.rb +0 -11
  84. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_pure.rb +0 -11
  85. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/nsjsonserialization.rb +0 -32
  86. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/oj.rb +0 -25
  87. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/ok_json.rb +0 -23
  88. data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb +0 -19
  89. data/.gs/gems/multi_json-1.12.1/lib/multi_json/convertible_hash_keys.rb +0 -43
  90. data/.gs/gems/multi_json-1.12.1/lib/multi_json/options.rb +0 -39
  91. data/.gs/gems/multi_json-1.12.1/lib/multi_json/options_cache.rb +0 -29
  92. data/.gs/gems/multi_json-1.12.1/lib/multi_json/parse_error.rb +0 -17
  93. data/.gs/gems/multi_json-1.12.1/lib/multi_json/vendor/okjson.rb +0 -606
  94. data/.gs/gems/multi_json-1.12.1/lib/multi_json/version.rb +0 -17
  95. data/.gs/gems/multi_json-1.12.1/lib/multi_json.rb +0 -161
  96. data/.gs/gems/multi_json-1.12.1/multi_json.gemspec +0 -20
  97. data/.gs/gems/multipart-post-2.0.0/.gitignore +0 -6
  98. data/.gs/gems/multipart-post-2.0.0/.travis.yml +0 -7
  99. data/.gs/gems/multipart-post-2.0.0/Gemfile +0 -14
  100. data/.gs/gems/multipart-post-2.0.0/History.txt +0 -60
  101. data/.gs/gems/multipart-post-2.0.0/Manifest.txt +0 -9
  102. data/.gs/gems/multipart-post-2.0.0/README.md +0 -77
  103. data/.gs/gems/multipart-post-2.0.0/Rakefile +0 -9
  104. data/.gs/gems/multipart-post-2.0.0/lib/composite_io.rb +0 -108
  105. data/.gs/gems/multipart-post-2.0.0/lib/multipart_post.rb +0 -9
  106. data/.gs/gems/multipart-post-2.0.0/lib/multipartable.rb +0 -29
  107. data/.gs/gems/multipart-post-2.0.0/lib/net/http/post/multipart.rb +0 -27
  108. data/.gs/gems/multipart-post-2.0.0/lib/parts.rb +0 -96
  109. data/.gs/gems/multipart-post-2.0.0/multipart-post.gemspec +0 -22
  110. data/.gs/gems/multipart-post-2.0.0/test/multibyte.txt +0 -1
  111. data/.gs/gems/multipart-post-2.0.0/test/net/http/post/test_multipart.rb +0 -110
  112. data/.gs/gems/multipart-post-2.0.0/test/test_composite_io.rb +0 -115
  113. data/.gs/gems/multipart-post-2.0.0/test/test_parts.rb +0 -86
  114. data/.gs/specifications/faraday-0.9.2.gemspec +0 -31
  115. data/.gs/specifications/minitest-5.9.0.gemspec +0 -39
  116. data/.gs/specifications/multi_json-1.12.1.gemspec +0 -33
  117. data/.gs/specifications/multipart-post-2.0.0.gemspec +0 -22
  118. data/.ruby-version +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c847503b7963a234e56100da1061e04e1e46ae45
4
- data.tar.gz: 12908be981e0ffff53f4f4d0fb58d46f70837f83
2
+ SHA256:
3
+ metadata.gz: 72565a3042df27d5cf475424a6a5b40daec4537fc3dbe2bcf3b24352330d50e1
4
+ data.tar.gz: dbe7ac046c4c9bc9689afff4fb218a3f7c3bed2d276dcd9d53f7ea7e5607dc54
5
5
  SHA512:
6
- metadata.gz: 35d82303e76abdfcd317743e1c6c1965143843292685d08b580e74986212140ac8c41c7cf61e8f8b980e0f2c74fb71694c2348d815bacab7118e6d90591e0274
7
- data.tar.gz: 82c488dfe40c4f65089464df5a1017e689950aa3d5f65f58a9f9744e464d14f3c7fbbcb02bf2eb6399d88b9413722a36ff30b9363eefb2a71162a242869651aa
6
+ metadata.gz: 681fc714d1f41f006b660e8138c84f55a32665fc8109c71fca9318a9ae8f7b25f219058293281d628bc751f3f003b7725108789eef91b32c83407f10d27fa16c
7
+ data.tar.gz: f93d425baeb6fa6b0aa55870a085ddf2caa586667e20c596d8fbcc1c071089700321aa66cdef2e0338f5e561d1f8f1aefb5008e1a1b097747ddc32c784929e48
data/.gs/bin/rake CHANGED
@@ -8,16 +8,20 @@
8
8
 
9
9
  require 'rubygems'
10
10
 
11
- version = ">= 0"
11
+ version = ">= 0.a"
12
12
 
13
- if ARGV.first
14
- str = ARGV.first
15
- str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
16
- if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
17
- version = $1
13
+ str = ARGV.first
14
+ if str
15
+ str = str.b[/\A_(.*)_\z/, 1]
16
+ if str and Gem::Version.correct?(str)
17
+ version = str
18
18
  ARGV.shift
19
19
  end
20
20
  end
21
21
 
22
- gem 'rake', version
23
- load Gem.bin_path('rake', 'rake', version)
22
+ if Gem.respond_to?(:activate_bin_path)
23
+ load Gem.activate_bin_path('rake', 'rake', version)
24
+ else
25
+ gem "rake", version
26
+ load Gem.bin_path("rake", "rake", version)
27
+ end
@@ -2,42 +2,38 @@
2
2
  # stub: rake 10.5.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "rake"
5
+ s.name = "rake".freeze
6
6
  s.version = "10.5.0"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2") if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib"]
10
- s.authors = ["Eric Hodel", "Jim Weirich"]
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib".freeze]
10
+ s.authors = ["Eric Hodel".freeze, "Jim Weirich".freeze]
11
11
  s.date = "2016-01-13"
12
- s.description = "Rake is a Make-like program implemented in Ruby. Tasks and dependencies are\nspecified in standard Ruby syntax.\n\nRake has the following features:\n\n* Rakefiles (rake's version of Makefiles) are completely defined in\n standard Ruby syntax. No XML files to edit. No quirky Makefile\n syntax to worry about (is that a tab or a space?)\n\n* Users can specify tasks with prerequisites.\n\n* Rake supports rule patterns to synthesize implicit tasks.\n\n* Flexible FileLists that act like arrays but know about manipulating\n file names and paths.\n\n* A library of prepackaged tasks to make building rakefiles easier. For example,\n tasks for building tarballs and publishing to FTP or SSH sites. (Formerly\n tasks for building RDoc and Gems were included in rake but they're now\n available in RDoc and RubyGems respectively.)\n\n* Supports parallel execution of tasks."
13
- s.email = ["drbrain@segment7.net", ""]
14
- s.executables = ["rake"]
15
- s.extra_rdoc_files = ["CONTRIBUTING.rdoc", "History.rdoc", "Manifest.txt", "README.rdoc", "doc/command_line_usage.rdoc", "doc/glossary.rdoc", "doc/proto_rake.rdoc", "doc/rakefile.rdoc", "doc/rational.rdoc", "doc/release_notes/rake-0.4.14.rdoc", "doc/release_notes/rake-0.4.15.rdoc", "doc/release_notes/rake-0.5.0.rdoc", "doc/release_notes/rake-0.5.3.rdoc", "doc/release_notes/rake-0.5.4.rdoc", "doc/release_notes/rake-0.6.0.rdoc", "doc/release_notes/rake-0.7.0.rdoc", "doc/release_notes/rake-0.7.1.rdoc", "doc/release_notes/rake-0.7.2.rdoc", "doc/release_notes/rake-0.7.3.rdoc", "doc/release_notes/rake-0.8.0.rdoc", "doc/release_notes/rake-0.8.2.rdoc", "doc/release_notes/rake-0.8.3.rdoc", "doc/release_notes/rake-0.8.4.rdoc", "doc/release_notes/rake-0.8.5.rdoc", "doc/release_notes/rake-0.8.6.rdoc", "doc/release_notes/rake-0.8.7.rdoc", "doc/release_notes/rake-0.9.0.rdoc", "doc/release_notes/rake-0.9.1.rdoc", "doc/release_notes/rake-0.9.2.2.rdoc", "doc/release_notes/rake-0.9.2.rdoc", "doc/release_notes/rake-0.9.3.rdoc", "doc/release_notes/rake-0.9.4.rdoc", "doc/release_notes/rake-0.9.5.rdoc", "doc/release_notes/rake-0.9.6.rdoc", "doc/release_notes/rake-10.0.0.rdoc", "doc/release_notes/rake-10.0.1.rdoc", "doc/release_notes/rake-10.0.2.rdoc", "doc/release_notes/rake-10.0.3.rdoc", "doc/release_notes/rake-10.1.0.rdoc", "MIT-LICENSE"]
16
- s.files = ["CONTRIBUTING.rdoc", "History.rdoc", "MIT-LICENSE", "Manifest.txt", "README.rdoc", "bin/rake", "doc/command_line_usage.rdoc", "doc/glossary.rdoc", "doc/proto_rake.rdoc", "doc/rakefile.rdoc", "doc/rational.rdoc", "doc/release_notes/rake-0.4.14.rdoc", "doc/release_notes/rake-0.4.15.rdoc", "doc/release_notes/rake-0.5.0.rdoc", "doc/release_notes/rake-0.5.3.rdoc", "doc/release_notes/rake-0.5.4.rdoc", "doc/release_notes/rake-0.6.0.rdoc", "doc/release_notes/rake-0.7.0.rdoc", "doc/release_notes/rake-0.7.1.rdoc", "doc/release_notes/rake-0.7.2.rdoc", "doc/release_notes/rake-0.7.3.rdoc", "doc/release_notes/rake-0.8.0.rdoc", "doc/release_notes/rake-0.8.2.rdoc", "doc/release_notes/rake-0.8.3.rdoc", "doc/release_notes/rake-0.8.4.rdoc", "doc/release_notes/rake-0.8.5.rdoc", "doc/release_notes/rake-0.8.6.rdoc", "doc/release_notes/rake-0.8.7.rdoc", "doc/release_notes/rake-0.9.0.rdoc", "doc/release_notes/rake-0.9.1.rdoc", "doc/release_notes/rake-0.9.2.2.rdoc", "doc/release_notes/rake-0.9.2.rdoc", "doc/release_notes/rake-0.9.3.rdoc", "doc/release_notes/rake-0.9.4.rdoc", "doc/release_notes/rake-0.9.5.rdoc", "doc/release_notes/rake-0.9.6.rdoc", "doc/release_notes/rake-10.0.0.rdoc", "doc/release_notes/rake-10.0.1.rdoc", "doc/release_notes/rake-10.0.2.rdoc", "doc/release_notes/rake-10.0.3.rdoc", "doc/release_notes/rake-10.1.0.rdoc"]
17
- s.homepage = "https://github.com/ruby/rake"
18
- s.licenses = ["MIT"]
19
- s.rdoc_options = ["--main", "README.rdoc"]
20
- s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
21
- s.rubygems_version = "2.4.5.1"
22
- s.summary = "Rake is a Make-like program implemented in Ruby"
12
+ s.description = "Rake is a Make-like program implemented in Ruby. Tasks and dependencies are\nspecified in standard Ruby syntax.\n\nRake has the following features:\n\n* Rakefiles (rake's version of Makefiles) are completely defined in\n standard Ruby syntax. No XML files to edit. No quirky Makefile\n syntax to worry about (is that a tab or a space?)\n\n* Users can specify tasks with prerequisites.\n\n* Rake supports rule patterns to synthesize implicit tasks.\n\n* Flexible FileLists that act like arrays but know about manipulating\n file names and paths.\n\n* A library of prepackaged tasks to make building rakefiles easier. For example,\n tasks for building tarballs and publishing to FTP or SSH sites. (Formerly\n tasks for building RDoc and Gems were included in rake but they're now\n available in RDoc and RubyGems respectively.)\n\n* Supports parallel execution of tasks.".freeze
13
+ s.email = ["drbrain@segment7.net".freeze, "".freeze]
14
+ s.executables = ["rake".freeze]
15
+ s.extra_rdoc_files = ["CONTRIBUTING.rdoc".freeze, "History.rdoc".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "doc/command_line_usage.rdoc".freeze, "doc/glossary.rdoc".freeze, "doc/proto_rake.rdoc".freeze, "doc/rakefile.rdoc".freeze, "doc/rational.rdoc".freeze, "doc/release_notes/rake-0.4.14.rdoc".freeze, "doc/release_notes/rake-0.4.15.rdoc".freeze, "doc/release_notes/rake-0.5.0.rdoc".freeze, "doc/release_notes/rake-0.5.3.rdoc".freeze, "doc/release_notes/rake-0.5.4.rdoc".freeze, "doc/release_notes/rake-0.6.0.rdoc".freeze, "doc/release_notes/rake-0.7.0.rdoc".freeze, "doc/release_notes/rake-0.7.1.rdoc".freeze, "doc/release_notes/rake-0.7.2.rdoc".freeze, "doc/release_notes/rake-0.7.3.rdoc".freeze, "doc/release_notes/rake-0.8.0.rdoc".freeze, "doc/release_notes/rake-0.8.2.rdoc".freeze, "doc/release_notes/rake-0.8.3.rdoc".freeze, "doc/release_notes/rake-0.8.4.rdoc".freeze, "doc/release_notes/rake-0.8.5.rdoc".freeze, "doc/release_notes/rake-0.8.6.rdoc".freeze, "doc/release_notes/rake-0.8.7.rdoc".freeze, "doc/release_notes/rake-0.9.0.rdoc".freeze, "doc/release_notes/rake-0.9.1.rdoc".freeze, "doc/release_notes/rake-0.9.2.2.rdoc".freeze, "doc/release_notes/rake-0.9.2.rdoc".freeze, "doc/release_notes/rake-0.9.3.rdoc".freeze, "doc/release_notes/rake-0.9.4.rdoc".freeze, "doc/release_notes/rake-0.9.5.rdoc".freeze, "doc/release_notes/rake-0.9.6.rdoc".freeze, "doc/release_notes/rake-10.0.0.rdoc".freeze, "doc/release_notes/rake-10.0.1.rdoc".freeze, "doc/release_notes/rake-10.0.2.rdoc".freeze, "doc/release_notes/rake-10.0.3.rdoc".freeze, "doc/release_notes/rake-10.1.0.rdoc".freeze, "MIT-LICENSE".freeze]
16
+ s.files = ["CONTRIBUTING.rdoc".freeze, "History.rdoc".freeze, "MIT-LICENSE".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "bin/rake".freeze, "doc/command_line_usage.rdoc".freeze, "doc/glossary.rdoc".freeze, "doc/proto_rake.rdoc".freeze, "doc/rakefile.rdoc".freeze, "doc/rational.rdoc".freeze, "doc/release_notes/rake-0.4.14.rdoc".freeze, "doc/release_notes/rake-0.4.15.rdoc".freeze, "doc/release_notes/rake-0.5.0.rdoc".freeze, "doc/release_notes/rake-0.5.3.rdoc".freeze, "doc/release_notes/rake-0.5.4.rdoc".freeze, "doc/release_notes/rake-0.6.0.rdoc".freeze, "doc/release_notes/rake-0.7.0.rdoc".freeze, "doc/release_notes/rake-0.7.1.rdoc".freeze, "doc/release_notes/rake-0.7.2.rdoc".freeze, "doc/release_notes/rake-0.7.3.rdoc".freeze, "doc/release_notes/rake-0.8.0.rdoc".freeze, "doc/release_notes/rake-0.8.2.rdoc".freeze, "doc/release_notes/rake-0.8.3.rdoc".freeze, "doc/release_notes/rake-0.8.4.rdoc".freeze, "doc/release_notes/rake-0.8.5.rdoc".freeze, "doc/release_notes/rake-0.8.6.rdoc".freeze, "doc/release_notes/rake-0.8.7.rdoc".freeze, "doc/release_notes/rake-0.9.0.rdoc".freeze, "doc/release_notes/rake-0.9.1.rdoc".freeze, "doc/release_notes/rake-0.9.2.2.rdoc".freeze, "doc/release_notes/rake-0.9.2.rdoc".freeze, "doc/release_notes/rake-0.9.3.rdoc".freeze, "doc/release_notes/rake-0.9.4.rdoc".freeze, "doc/release_notes/rake-0.9.5.rdoc".freeze, "doc/release_notes/rake-0.9.6.rdoc".freeze, "doc/release_notes/rake-10.0.0.rdoc".freeze, "doc/release_notes/rake-10.0.1.rdoc".freeze, "doc/release_notes/rake-10.0.2.rdoc".freeze, "doc/release_notes/rake-10.0.3.rdoc".freeze, "doc/release_notes/rake-10.1.0.rdoc".freeze]
17
+ s.homepage = "https://github.com/ruby/rake".freeze
18
+ s.licenses = ["MIT".freeze]
19
+ s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
20
+ s.required_ruby_version = Gem::Requirement.new(">= 1.8.7".freeze)
21
+ s.rubygems_version = "3.1.6".freeze
22
+ s.summary = "Rake is a Make-like program implemented in Ruby".freeze
23
23
 
24
- s.installed_by_version = "2.4.5.1" if s.respond_to? :installed_by_version
24
+ s.installed_by_version = "3.1.6" if s.respond_to? :installed_by_version
25
25
 
26
26
  if s.respond_to? :specification_version then
27
27
  s.specification_version = 4
28
+ end
28
29
 
29
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
30
- s.add_development_dependency(%q<minitest>, ["~> 5.8"])
31
- s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
32
- s.add_development_dependency(%q<hoe>, ["~> 3.14"])
33
- else
34
- s.add_dependency(%q<minitest>, ["~> 5.8"])
35
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
36
- s.add_dependency(%q<hoe>, ["~> 3.14"])
37
- end
30
+ if s.respond_to? :add_runtime_dependency then
31
+ s.add_development_dependency(%q<minitest>.freeze, ["~> 5.8"])
32
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.0"])
33
+ s.add_development_dependency(%q<hoe>.freeze, ["~> 3.14"])
38
34
  else
39
- s.add_dependency(%q<minitest>, ["~> 5.8"])
40
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
41
- s.add_dependency(%q<hoe>, ["~> 3.14"])
35
+ s.add_dependency(%q<minitest>.freeze, ["~> 5.8"])
36
+ s.add_dependency(%q<rdoc>.freeze, ["~> 4.0"])
37
+ s.add_dependency(%q<hoe>.freeze, ["~> 3.14"])
42
38
  end
43
39
  end
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.7
@@ -1,5 +1,5 @@
1
1
  module MercadoPago
2
2
  module CustomCheckout
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -21,10 +21,10 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency "pry"
23
23
  spec.add_development_dependency "httplog"
24
- spec.add_development_dependency "bundler", "~> 1.12"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler"
25
+ spec.add_development_dependency "rake", ">= 12.3.3"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
27
27
 
28
- spec.add_dependency "faraday", [">= 0.8", "< 0.13"]
28
+ spec.add_dependency "faraday", [">= 0.8", "< 3"]
29
29
  spec.add_dependency "multi_json", "~> 1.3"
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadopago-custom-checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Cavilliotti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-25 00:00:00.000000000 Z
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.12'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.12'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: 12.3.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: 12.3.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: '0.8'
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
- version: '0.13'
92
+ version: '3'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '0.8'
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
- version: '0.13'
102
+ version: '3'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: multi_json
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -124,113 +124,7 @@ extra_rdoc_files: []
124
124
  files:
125
125
  - ".gitignore"
126
126
  - ".gs/bin/rake"
127
- - ".gs/cache/faraday-0.9.2.gem"
128
- - ".gs/cache/minitest-5.9.0.gem"
129
- - ".gs/cache/multi_json-1.12.1.gem"
130
- - ".gs/cache/multipart-post-2.0.0.gem"
131
127
  - ".gs/cache/rake-10.5.0.gem"
132
- - ".gs/gems/faraday-0.9.2/LICENSE.md"
133
- - ".gs/gems/faraday-0.9.2/README.md"
134
- - ".gs/gems/faraday-0.9.2/lib/faraday.rb"
135
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter.rb"
136
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http.rb"
137
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http_ssl_patch.rb"
138
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony.rb"
139
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony/parallel_manager.rb"
140
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/excon.rb"
141
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/httpclient.rb"
142
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb"
143
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb"
144
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/patron.rb"
145
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/rack.rb"
146
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/test.rb"
147
- - ".gs/gems/faraday-0.9.2/lib/faraday/adapter/typhoeus.rb"
148
- - ".gs/gems/faraday-0.9.2/lib/faraday/autoload.rb"
149
- - ".gs/gems/faraday-0.9.2/lib/faraday/connection.rb"
150
- - ".gs/gems/faraday-0.9.2/lib/faraday/error.rb"
151
- - ".gs/gems/faraday-0.9.2/lib/faraday/middleware.rb"
152
- - ".gs/gems/faraday-0.9.2/lib/faraday/options.rb"
153
- - ".gs/gems/faraday-0.9.2/lib/faraday/parameters.rb"
154
- - ".gs/gems/faraday-0.9.2/lib/faraday/rack_builder.rb"
155
- - ".gs/gems/faraday-0.9.2/lib/faraday/request.rb"
156
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/authorization.rb"
157
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/basic_authentication.rb"
158
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/instrumentation.rb"
159
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/multipart.rb"
160
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/retry.rb"
161
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/token_authentication.rb"
162
- - ".gs/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb"
163
- - ".gs/gems/faraday-0.9.2/lib/faraday/response.rb"
164
- - ".gs/gems/faraday-0.9.2/lib/faraday/response/logger.rb"
165
- - ".gs/gems/faraday-0.9.2/lib/faraday/response/raise_error.rb"
166
- - ".gs/gems/faraday-0.9.2/lib/faraday/upload_io.rb"
167
- - ".gs/gems/faraday-0.9.2/lib/faraday/utils.rb"
168
- - ".gs/gems/minitest-5.9.0/.autotest"
169
- - ".gs/gems/minitest-5.9.0/History.rdoc"
170
- - ".gs/gems/minitest-5.9.0/Manifest.txt"
171
- - ".gs/gems/minitest-5.9.0/README.rdoc"
172
- - ".gs/gems/minitest-5.9.0/Rakefile"
173
- - ".gs/gems/minitest-5.9.0/design_rationale.rb"
174
- - ".gs/gems/minitest-5.9.0/lib/hoe/minitest.rb"
175
- - ".gs/gems/minitest-5.9.0/lib/minitest.rb"
176
- - ".gs/gems/minitest-5.9.0/lib/minitest/assertions.rb"
177
- - ".gs/gems/minitest-5.9.0/lib/minitest/autorun.rb"
178
- - ".gs/gems/minitest-5.9.0/lib/minitest/benchmark.rb"
179
- - ".gs/gems/minitest-5.9.0/lib/minitest/expectations.rb"
180
- - ".gs/gems/minitest-5.9.0/lib/minitest/hell.rb"
181
- - ".gs/gems/minitest-5.9.0/lib/minitest/mock.rb"
182
- - ".gs/gems/minitest-5.9.0/lib/minitest/parallel.rb"
183
- - ".gs/gems/minitest-5.9.0/lib/minitest/pride.rb"
184
- - ".gs/gems/minitest-5.9.0/lib/minitest/pride_plugin.rb"
185
- - ".gs/gems/minitest-5.9.0/lib/minitest/spec.rb"
186
- - ".gs/gems/minitest-5.9.0/lib/minitest/test.rb"
187
- - ".gs/gems/minitest-5.9.0/lib/minitest/unit.rb"
188
- - ".gs/gems/minitest-5.9.0/test/minitest/metametameta.rb"
189
- - ".gs/gems/minitest-5.9.0/test/minitest/test_minitest_benchmark.rb"
190
- - ".gs/gems/minitest-5.9.0/test/minitest/test_minitest_mock.rb"
191
- - ".gs/gems/minitest-5.9.0/test/minitest/test_minitest_reporter.rb"
192
- - ".gs/gems/minitest-5.9.0/test/minitest/test_minitest_spec.rb"
193
- - ".gs/gems/minitest-5.9.0/test/minitest/test_minitest_test.rb"
194
- - ".gs/gems/multi_json-1.12.1/CHANGELOG.md"
195
- - ".gs/gems/multi_json-1.12.1/CONTRIBUTING.md"
196
- - ".gs/gems/multi_json-1.12.1/LICENSE.md"
197
- - ".gs/gems/multi_json-1.12.1/README.md"
198
- - ".gs/gems/multi_json-1.12.1/lib/multi_json.rb"
199
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapter.rb"
200
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapter_error.rb"
201
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/gson.rb"
202
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/jr_jackson.rb"
203
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_common.rb"
204
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_gem.rb"
205
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_pure.rb"
206
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/nsjsonserialization.rb"
207
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/oj.rb"
208
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/ok_json.rb"
209
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb"
210
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/convertible_hash_keys.rb"
211
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/options.rb"
212
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/options_cache.rb"
213
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/parse_error.rb"
214
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/vendor/okjson.rb"
215
- - ".gs/gems/multi_json-1.12.1/lib/multi_json/version.rb"
216
- - ".gs/gems/multi_json-1.12.1/multi_json.gemspec"
217
- - ".gs/gems/multipart-post-2.0.0/.gitignore"
218
- - ".gs/gems/multipart-post-2.0.0/.travis.yml"
219
- - ".gs/gems/multipart-post-2.0.0/Gemfile"
220
- - ".gs/gems/multipart-post-2.0.0/History.txt"
221
- - ".gs/gems/multipart-post-2.0.0/Manifest.txt"
222
- - ".gs/gems/multipart-post-2.0.0/README.md"
223
- - ".gs/gems/multipart-post-2.0.0/Rakefile"
224
- - ".gs/gems/multipart-post-2.0.0/lib/composite_io.rb"
225
- - ".gs/gems/multipart-post-2.0.0/lib/multipart_post.rb"
226
- - ".gs/gems/multipart-post-2.0.0/lib/multipartable.rb"
227
- - ".gs/gems/multipart-post-2.0.0/lib/net/http/post/multipart.rb"
228
- - ".gs/gems/multipart-post-2.0.0/lib/parts.rb"
229
- - ".gs/gems/multipart-post-2.0.0/multipart-post.gemspec"
230
- - ".gs/gems/multipart-post-2.0.0/test/multibyte.txt"
231
- - ".gs/gems/multipart-post-2.0.0/test/net/http/post/test_multipart.rb"
232
- - ".gs/gems/multipart-post-2.0.0/test/test_composite_io.rb"
233
- - ".gs/gems/multipart-post-2.0.0/test/test_parts.rb"
234
128
  - ".gs/gems/rake-10.5.0/.autotest"
235
129
  - ".gs/gems/rake-10.5.0/.rubocop.yml"
236
130
  - ".gs/gems/rake-10.5.0/.togglerc"
@@ -397,13 +291,9 @@ files:
397
291
  - ".gs/gems/rake-10.5.0/test/test_rake_win32.rb"
398
292
  - ".gs/gems/rake-10.5.0/test/test_thread_history_display.rb"
399
293
  - ".gs/gems/rake-10.5.0/test/test_trace_output.rb"
400
- - ".gs/specifications/faraday-0.9.2.gemspec"
401
- - ".gs/specifications/minitest-5.9.0.gemspec"
402
- - ".gs/specifications/multi_json-1.12.1.gemspec"
403
- - ".gs/specifications/multipart-post-2.0.0.gemspec"
404
294
  - ".gs/specifications/rake-10.5.0.gemspec"
405
295
  - ".rubocop.yml"
406
- - ".ruby-version"
296
+ - ".tool-versions"
407
297
  - ".travis.yml"
408
298
  - CODE_OF_CONDUCT.md
409
299
  - Gemfile
@@ -447,8 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
337
  - !ruby/object:Gem::Version
448
338
  version: '0'
449
339
  requirements: []
450
- rubyforge_project:
451
- rubygems_version: 2.5.2
340
+ rubygems_version: 3.1.6
452
341
  signing_key:
453
342
  specification_version: 4
454
343
  summary: Client for the MercadoPago API
Binary file
Binary file
Binary file
Binary file
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009-2015 Rick Olson, Zack Hobson
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,245 +0,0 @@
1
- # Faraday
2
-
3
- Faraday is an HTTP client lib that provides a common interface over many
4
- adapters (such as Net::HTTP) and embraces the concept of Rack middleware when
5
- processing the request/response cycle.
6
-
7
- Faraday supports these adapters:
8
-
9
- * [Net::HTTP][net_http] _(default)_
10
- * [Net::HTTP::Persistent][persistent]
11
- * [Excon][]
12
- * [Typhoeus][]
13
- * [Patron][]
14
- * [EventMachine][]
15
- * [HTTPClient][]
16
-
17
- It also includes a Rack adapter for hitting loaded Rack applications through
18
- Rack::Test, and a Test adapter for stubbing requests by hand.
19
-
20
- ## Usage
21
-
22
- ```ruby
23
- conn = Faraday.new(:url => 'http://sushi.com') do |faraday|
24
- faraday.request :url_encoded # form-encode POST params
25
- faraday.response :logger # log requests to STDOUT
26
- faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
27
- end
28
-
29
- ## GET ##
30
-
31
- response = conn.get '/nigiri/sake.json' # GET http://sushi.com/nigiri/sake.json
32
- response.body
33
-
34
- conn.get '/nigiri', { :name => 'Maguro' } # GET http://sushi.com/nigiri?name=Maguro
35
-
36
- conn.get do |req| # GET http://sushi.com/search?page=2&limit=100
37
- req.url '/search', :page => 2
38
- req.params['limit'] = 100
39
- end
40
-
41
- ## POST ##
42
-
43
- conn.post '/nigiri', { :name => 'Maguro' } # POST "name=maguro" to http://sushi.com/nigiri
44
-
45
- # post payload as JSON instead of "www-form-urlencoded" encoding:
46
- conn.post do |req|
47
- req.url '/nigiri'
48
- req.headers['Content-Type'] = 'application/json'
49
- req.body = '{ "name": "Unagi" }'
50
- end
51
-
52
- ## Per-request options ##
53
-
54
- conn.get do |req|
55
- req.url '/search'
56
- req.options.timeout = 5 # open/read timeout in seconds
57
- req.options.open_timeout = 2 # connection open timeout in seconds
58
- end
59
- ```
60
-
61
- If you don't need to set up anything, you can roll with just the default middleware
62
- stack and default adapter (see [Faraday::RackBuilder#initialize](https://github.com/lostisland/faraday/blob/master/lib/faraday/rack_builder.rb)):
63
-
64
- ```ruby
65
- response = Faraday.get 'http://sushi.com/nigiri/sake.json'
66
- ```
67
-
68
- ### Changing how parameters are serialized
69
-
70
- Sometimes you need to send the same URL parameter multiple times with different
71
- values. This requires manually setting the parameter encoder and can be done on
72
- either per-connection or per-request basis.
73
-
74
- ```ruby
75
- # per-connection setting
76
- conn = Faraday.new :params_encoder => Faraday::FlatParamsEncoder
77
-
78
- conn.get do |req|
79
- # per-request setting:
80
- # req.options.params_encoder = my_encoder
81
- req.params['roll'] = ['california', 'philadelphia']
82
- end
83
- # GET 'http://sushi.com?roll=california&roll=philadelphia'
84
- ```
85
-
86
- The value of Faraday `params_encoder` can be any object that responds to:
87
-
88
- * `encode(hash) #=> String`
89
- * `decode(string) #=> Hash`
90
-
91
- The encoder will affect both how query strings are processed and how POST bodies
92
- get serialized. The default encoder is Faraday::NestedParamsEncoder.
93
-
94
- ## Advanced middleware usage
95
-
96
- The order in which middleware is stacked is important. Like with Rack, the
97
- first middleware on the list wraps all others, while the last middleware is the
98
- innermost one, so that must be the adapter.
99
-
100
- ```ruby
101
- Faraday.new(...) do |conn|
102
- # POST/PUT params encoders:
103
- conn.request :multipart
104
- conn.request :url_encoded
105
-
106
- conn.adapter :net_http
107
- end
108
- ```
109
-
110
- This request middleware setup affects POST/PUT requests in the following way:
111
-
112
- 1. `Request::Multipart` checks for files in the payload, otherwise leaves
113
- everything untouched;
114
- 2. `Request::UrlEncoded` encodes as "application/x-www-form-urlencoded" if not
115
- already encoded or of another type
116
-
117
- Swapping middleware means giving the other priority. Specifying the
118
- "Content-Type" for the request is explicitly stating which middleware should
119
- process it.
120
-
121
- Examples:
122
-
123
- ```ruby
124
- # uploading a file:
125
- payload[:profile_pic] = Faraday::UploadIO.new('/path/to/avatar.jpg', 'image/jpeg')
126
-
127
- # "Multipart" middleware detects files and encodes with "multipart/form-data":
128
- conn.put '/profile', payload
129
- ```
130
-
131
- ## Writing middleware
132
-
133
- Middleware are classes that implement a `call` instance method. They hook into
134
- the request/response cycle.
135
-
136
- ```ruby
137
- def call(request_env)
138
- # do something with the request
139
- # request_env[:request_headers].merge!(...)
140
-
141
- @app.call(request_env).on_complete do |response_env|
142
- # do something with the response
143
- # response_env[:response_headers].merge!(...)
144
- end
145
- end
146
- ```
147
-
148
- It's important to do all processing of the response only in the `on_complete`
149
- block. This enables middleware to work in parallel mode where requests are
150
- asynchronous.
151
-
152
- The `env` is a hash with symbol keys that contains info about the request and,
153
- later, response. Some keys are:
154
-
155
- ```
156
- # request phase
157
- :method - :get, :post, ...
158
- :url - URI for the current request; also contains GET parameters
159
- :body - POST parameters for :post/:put requests
160
- :request_headers
161
-
162
- # response phase
163
- :status - HTTP response status code, such as 200
164
- :body - the response body
165
- :response_headers
166
- ```
167
-
168
- ## Using Faraday for testing
169
-
170
- ```ruby
171
- # It's possible to define stubbed request outside a test adapter block.
172
- stubs = Faraday::Adapter::Test::Stubs.new do |stub|
173
- stub.get('/tamago') { |env| [200, {}, 'egg'] }
174
- end
175
-
176
- # You can pass stubbed request to the test adapter or define them in a block
177
- # or a combination of the two.
178
- test = Faraday.new do |builder|
179
- builder.adapter :test, stubs do |stub|
180
- stub.get('/ebi') { |env| [ 200, {}, 'shrimp' ]}
181
- end
182
- end
183
-
184
- # It's also possible to stub additional requests after the connection has
185
- # been initialized. This is useful for testing.
186
- stubs.get('/uni') { |env| [ 200, {}, 'urchin' ]}
187
-
188
- resp = test.get '/tamago'
189
- resp.body # => 'egg'
190
- resp = test.get '/ebi'
191
- resp.body # => 'shrimp'
192
- resp = test.get '/uni'
193
- resp.body # => 'urchin'
194
- resp = test.get '/else' #=> raises "no such stub" error
195
-
196
- # If you like, you can treat your stubs as mocks by verifying that all of
197
- # the stubbed calls were made. NOTE that this feature is still fairly
198
- # experimental: It will not verify the order or count of any stub, only that
199
- # it was called once during the course of the test.
200
- stubs.verify_stubbed_calls
201
- ```
202
-
203
- ## TODO
204
-
205
- * support streaming requests/responses
206
- * better stubbing API
207
-
208
- ## Supported Ruby versions
209
-
210
- This library aims to support and is [tested against][travis] the following Ruby
211
- implementations:
212
-
213
- * Ruby 1.8.7+
214
- * [JRuby][] 1.7+
215
- * [Rubinius][] 2+
216
-
217
- If something doesn't work on one of these Ruby versions, it's a bug.
218
-
219
- This library may inadvertently work (or seem to work) on other Ruby
220
- implementations, however support will only be provided for the versions listed
221
- above.
222
-
223
- If you would like this library to support another Ruby version, you may
224
- volunteer to be a maintainer. Being a maintainer entails making sure all tests
225
- run and pass on that implementation. When something breaks on your
226
- implementation, you will be responsible for providing patches in a timely
227
- fashion. If critical issues for a particular implementation exist at the time
228
- of a major release, support for that Ruby version may be dropped.
229
-
230
- ## Copyright
231
-
232
- Copyright (c) 2009-2013 [Rick Olson](mailto:technoweenie@gmail.com), Zack Hobson.
233
- See [LICENSE][] for details.
234
-
235
- [net_http]: http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html
236
- [persistent]: https://github.com/drbrain/net-http-persistent
237
- [travis]: http://travis-ci.org/lostisland/faraday
238
- [excon]: https://github.com/geemus/excon#readme
239
- [typhoeus]: https://github.com/typhoeus/typhoeus#readme
240
- [patron]: http://toland.github.com/patron/
241
- [eventmachine]: https://github.com/igrigorik/em-http-request#readme
242
- [httpclient]: https://github.com/nahi/httpclient
243
- [jruby]: http://jruby.org/
244
- [rubinius]: http://rubini.us/
245
- [license]: LICENSE.md