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
@@ -1,90 +0,0 @@
1
- require "tempfile"
2
- require "stringio"
3
- require "minitest/autorun"
4
-
5
- class Minitest::Test
6
- def clean s
7
- s.gsub(/^ {6}/, "")
8
- end
9
- end
10
-
11
- class MetaMetaMetaTestCase < Minitest::Test
12
- attr_accessor :reporter, :output, :tu
13
-
14
- def run_tu_with_fresh_reporter flags = %w[--seed 42]
15
- options = Minitest.process_args flags
16
-
17
- @output = StringIO.new("")
18
-
19
- self.reporter = Minitest::CompositeReporter.new
20
- reporter << Minitest::SummaryReporter.new(@output, options)
21
- reporter << Minitest::ProgressReporter.new(@output, options)
22
-
23
- reporter.start
24
-
25
- yield(reporter) if block_given?
26
-
27
- @tus ||= [@tu]
28
- @tus.each do |tu|
29
- Minitest::Runnable.runnables.delete tu
30
-
31
- tu.run reporter, options
32
- end
33
-
34
- reporter.report
35
- end
36
-
37
- def first_reporter
38
- reporter.reporters.first
39
- end
40
-
41
- def assert_report expected, flags = %w[--seed 42], &block
42
- header = clean <<-EOM
43
- Run options: #{flags.map { |s| s =~ /\|/ ? s.inspect : s }.join " "}
44
-
45
- # Running:
46
-
47
- EOM
48
-
49
- run_tu_with_fresh_reporter flags, &block
50
-
51
- output = normalize_output @output.string.dup
52
-
53
- assert_equal header + expected, output
54
- end
55
-
56
- def normalize_output output
57
- output.sub!(/Finished in .*/, "Finished in 0.00")
58
- output.sub!(/Loaded suite .*/, "Loaded suite blah")
59
-
60
- output.gsub!(/ = \d+.\d\d s = /, " = 0.00 s = ")
61
- output.gsub!(/0x[A-Fa-f0-9]+/, "0xXXX")
62
- output.gsub!(/ +$/, "")
63
-
64
- if windows? then
65
- output.gsub!(/\[(?:[A-Za-z]:)?[^\]:]+:\d+\]/, "[FILE:LINE]")
66
- output.gsub!(/^(\s+)(?:[A-Za-z]:)?[^:]+:\d+:in/, '\1FILE:LINE:in')
67
- else
68
- output.gsub!(/\[[^\]:]+:\d+\]/, "[FILE:LINE]")
69
- output.gsub!(/^(\s+)[^:]+:\d+:in/, '\1FILE:LINE:in')
70
- end
71
-
72
- output
73
- end
74
-
75
- def restore_env
76
- old_value = ENV["MT_NO_SKIP_MSG"]
77
- ENV.delete "MT_NO_SKIP_MSG"
78
-
79
- yield
80
- ensure
81
- ENV["MT_NO_SKIP_MSG"] = old_value
82
- end
83
-
84
- def setup
85
- super
86
- srand 42
87
- Minitest::Test.reset
88
- @tu = nil
89
- end
90
- end
@@ -1,137 +0,0 @@
1
- require "minitest/autorun"
2
- require "minitest/benchmark"
3
-
4
- ##
5
- # Used to verify data:
6
- # http://www.wolframalpha.com/examples/RegressionAnalysis.html
7
-
8
- class TestMinitestBenchmark < Minitest::Test
9
- def test_cls_bench_exp
10
- assert_equal [2, 4, 8, 16, 32], Minitest::Benchmark.bench_exp(2, 32, 2)
11
- end
12
-
13
- def test_cls_bench_linear
14
- assert_equal [2, 4, 6, 8, 10], Minitest::Benchmark.bench_linear(2, 10, 2)
15
- end
16
-
17
- def test_cls_runnable_methods
18
- assert_equal [], Minitest::Benchmark.runnable_methods
19
-
20
- c = Class.new(Minitest::Benchmark) do
21
- def bench_blah
22
- end
23
- end
24
-
25
- assert_equal ["bench_blah"], c.runnable_methods
26
- end
27
-
28
- def test_cls_bench_range
29
- assert_equal [1, 10, 100, 1_000, 10_000], Minitest::Benchmark.bench_range
30
- end
31
-
32
- def test_fit_exponential_clean
33
- x = [1.0, 2.0, 3.0, 4.0, 5.0]
34
- y = x.map { |n| 1.1 * Math.exp(2.1 * n) }
35
-
36
- assert_fit :exponential, x, y, 1.0, 1.1, 2.1
37
- end
38
-
39
- def test_fit_exponential_noisy
40
- x = [1.0, 1.9, 2.6, 3.4, 5.0]
41
- y = [12, 10, 8.2, 6.9, 5.9]
42
-
43
- # verified with Numbers and R
44
- assert_fit :exponential, x, y, 0.95, 13.81148, -0.1820
45
- end
46
-
47
- def test_fit_logarithmic_clean
48
- x = [1.0, 2.0, 3.0, 4.0, 5.0]
49
- y = x.map { |n| 1.1 + 2.1 * Math.log(n) }
50
-
51
- assert_fit :logarithmic, x, y, 1.0, 1.1, 2.1
52
- end
53
-
54
- def test_fit_logarithmic_noisy
55
- x = [1.0, 2.0, 3.0, 4.0, 5.0]
56
- # Generated with
57
- # y = x.map { |n| jitter = 0.999 + 0.002 * rand; (Math.log(n) ) * jitter }
58
- y = [0.0, 0.6935, 1.0995, 1.3873, 1.6097]
59
-
60
- assert_fit :logarithmic, x, y, 0.95, 0, 1
61
- end
62
-
63
- def test_fit_constant_clean
64
- x = (1..5).to_a
65
- y = [5.0, 5.0, 5.0, 5.0, 5.0]
66
-
67
- assert_fit :linear, x, y, nil, 5.0, 0
68
- end
69
-
70
- def test_fit_constant_noisy
71
- x = (1..5).to_a
72
- y = [1.0, 1.2, 1.0, 0.8, 1.0]
73
-
74
- # verified in numbers and R
75
- assert_fit :linear, x, y, nil, 1.12, -0.04
76
- end
77
-
78
- def test_fit_linear_clean
79
- # y = m * x + b where m = 2.2, b = 3.1
80
- x = (1..5).to_a
81
- y = x.map { |n| 2.2 * n + 3.1 }
82
-
83
- assert_fit :linear, x, y, 1.0, 3.1, 2.2
84
- end
85
-
86
- def test_fit_linear_noisy
87
- x = [ 60, 61, 62, 63, 65]
88
- y = [3.1, 3.6, 3.8, 4.0, 4.1]
89
-
90
- # verified in numbers and R
91
- assert_fit :linear, x, y, 0.8315, -7.9635, 0.1878
92
- end
93
-
94
- def test_fit_power_clean
95
- # y = A x ** B, where B = b and A = e ** a
96
- # if, A = 1, B = 2, then
97
-
98
- x = [1.0, 2.0, 3.0, 4.0, 5.0]
99
- y = [1.0, 4.0, 9.0, 16.0, 25.0]
100
-
101
- assert_fit :power, x, y, 1.0, 1.0, 2.0
102
- end
103
-
104
- def test_fit_power_noisy
105
- # from www.engr.uidaho.edu/thompson/courses/ME330/lecture/least_squares.html
106
- x = [10, 12, 15, 17, 20, 22, 25, 27, 30, 32, 35]
107
- y = [95, 105, 125, 141, 173, 200, 253, 298, 385, 459, 602]
108
-
109
- # verified in numbers
110
- assert_fit :power, x, y, 0.90, 2.6217, 1.4556
111
-
112
- # income to % of households below income amount
113
- # http://library.wolfram.com/infocenter/Conferences/6461/PowerLaws.nb
114
- x = [15_000, 25_000, 35_000, 50_000, 75_000, 100_000]
115
- y = [0.154, 0.283, 0.402, 0.55, 0.733, 0.843]
116
-
117
- # verified in numbers
118
- assert_fit :power, x, y, 0.96, 3.119e-5, 0.8959
119
- end
120
-
121
- def assert_fit msg, x, y, fit, exp_a, exp_b
122
- bench = Minitest::Benchmark.new :blah
123
-
124
- a, b, rr = bench.send "fit_#{msg}", x, y
125
-
126
- assert_operator rr, :>=, fit if fit
127
- assert_in_delta exp_a, a
128
- assert_in_delta exp_b, b
129
- end
130
- end
131
-
132
- describe "my class Bench" do
133
- klass = self
134
- it "should provide bench methods" do
135
- klass.must_respond_to :bench
136
- end
137
- end