vrpayment-ruby-sdk 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/lib/vrpayment-ruby-sdk/api/charge_flow_service_api.rb +1 -1
  4. data/lib/vrpayment-ruby-sdk/api/human_user_service_api.rb +1 -1
  5. data/lib/vrpayment-ruby-sdk/api/subscription_suspension_service_api.rb +8 -18
  6. data/lib/vrpayment-ruby-sdk/api/transaction_iframe_service_api.rb +1 -1
  7. data/lib/vrpayment-ruby-sdk/api/transaction_lightbox_service_api.rb +1 -1
  8. data/lib/vrpayment-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +1 -1
  9. data/lib/vrpayment-ruby-sdk/api/transaction_payment_page_service_api.rb +1 -1
  10. data/lib/vrpayment-ruby-sdk/api/transaction_service_api.rb +1 -1
  11. data/lib/vrpayment-ruby-sdk/api_client.rb +1 -1
  12. data/lib/vrpayment-ruby-sdk/models/abstract_payment_link_update.rb +13 -1
  13. data/lib/vrpayment-ruby-sdk/models/pan_type.rb +1 -0
  14. data/lib/vrpayment-ruby-sdk/models/payment_link.rb +13 -1
  15. data/lib/vrpayment-ruby-sdk/models/payment_link_active.rb +13 -1
  16. data/lib/vrpayment-ruby-sdk/models/payment_link_create.rb +13 -1
  17. data/lib/vrpayment-ruby-sdk/models/payment_link_update.rb +13 -1
  18. data/lib/vrpayment-ruby-sdk/models/scope.rb +51 -1
  19. data/lib/vrpayment-ruby-sdk/models/wallet_type.rb +34 -4
  20. data/lib/vrpayment-ruby-sdk/version.rb +1 -1
  21. data/vendor/bundle/ruby/3.3.0/cache/ethon-0.15.0.gem +0 -0
  22. data/vendor/bundle/ruby/3.3.0/cache/json-2.15.1.gem +0 -0
  23. data/vendor/bundle/ruby/3.3.0/cache/typhoeus-1.5.0.gem +0 -0
  24. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{json-2.13.0 → json-2.15.1}/gem_make.out +10 -10
  25. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/json/ext/generator.so +0 -0
  26. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/json/ext/parser.so +0 -0
  27. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{json-2.13.0 → json-2.15.1}/mkmf.log +11 -10
  28. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/.github/workflows/ruby.yml +2 -2
  29. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/CHANGELOG.md +0 -3
  30. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/README.md +0 -23
  31. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/classes.rb +2 -12
  32. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/options.rb +3 -4
  33. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/callbacks.rb +1 -2
  34. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/informations.rb +0 -3
  35. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/response_callbacks.rb +1 -6
  36. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/version.rb +1 -1
  37. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/callbacks_spec.rb +0 -22
  38. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/informations_spec.rb +0 -6
  39. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/mirror_spec.rb +1 -1
  40. data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/operations_spec.rb +0 -3
  41. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/CHANGES.md +50 -9
  42. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/README.md +3 -1
  43. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/fbuffer/fbuffer.h +31 -5
  44. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/generator/generator.c +134 -104
  45. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/parser/parser.c +58 -8
  46. data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/simd/conf.rb +24 -0
  47. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/simd/simd.h +47 -46
  48. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/vendor/fpconv.c +12 -11
  49. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/core.rb +1 -0
  50. data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/string.rb +35 -0
  51. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/common.rb +49 -23
  52. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/ext/generator/state.rb +7 -14
  53. data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/ext/generator.so +0 -0
  54. data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/ext/parser.so +0 -0
  55. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/generic_object.rb +0 -8
  56. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/truffle_ruby/generator.rb +63 -45
  57. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/version.rb +1 -1
  58. data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json.rb +23 -1
  59. data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/CHANGELOG.md +43 -1
  60. data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/expectation.rb +4 -2
  61. data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/responseable.rb +1 -1
  62. data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/version.rb +1 -1
  63. data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/typhoeus.gemspec +14 -4
  64. data/vendor/bundle/ruby/3.3.0/specifications/{ethon-0.16.0.gemspec → ethon-0.15.0.gemspec} +3 -3
  65. data/vendor/bundle/ruby/3.3.0/specifications/{json-2.13.0.gemspec → json-2.15.1.gemspec} +0 -0
  66. data/vendor/bundle/ruby/3.3.0/specifications/{typhoeus-1.4.1.gemspec → typhoeus-1.5.0.gemspec} +7 -5
  67. metadata +205 -252
  68. data/vendor/bundle/ruby/3.3.0/cache/ethon-0.16.0.gem +0 -0
  69. data/vendor/bundle/ruby/3.3.0/cache/json-2.13.0.gem +0 -0
  70. data/vendor/bundle/ruby/3.3.0/cache/typhoeus-1.4.1.gem +0 -0
  71. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.13.0/json/ext/generator.so +0 -0
  72. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.13.0/json/ext/parser.so +0 -0
  73. data/vendor/bundle/ruby/3.3.0/gems/json-2.13.0/ext/json/ext/simd/conf.rb +0 -20
  74. data/vendor/bundle/ruby/3.3.0/gems/json-2.13.0/lib/json/ext/generator.so +0 -0
  75. data/vendor/bundle/ruby/3.3.0/gems/json-2.13.0/lib/json/ext/parser.so +0 -0
  76. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/.github/workflows/ci.yml +0 -30
  77. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/.github/workflows/experimental.yml +0 -33
  78. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/.gitignore +0 -8
  79. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/.rspec +0 -4
  80. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/Gemfile +0 -36
  81. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/Guardfile +0 -9
  82. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/Rakefile +0 -38
  83. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/perf/profile.rb +0 -14
  84. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/perf/vs_nethttp.rb +0 -64
  85. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/rack/typhoeus/middleware/params_decoder/helper_spec.rb +0 -156
  86. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/rack/typhoeus/middleware/params_decoder_spec.rb +0 -31
  87. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/spec_helper.rb +0 -29
  88. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/support/localhost_server.rb +0 -94
  89. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/support/memory_cache.rb +0 -15
  90. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/support/server.rb +0 -116
  91. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/adapters/faraday_spec.rb +0 -339
  92. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/cache/dalli_spec.rb +0 -41
  93. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/cache/redis_spec.rb +0 -41
  94. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/config_spec.rb +0 -15
  95. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/easy_factory_spec.rb +0 -143
  96. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/errors/no_stub_spec.rb +0 -13
  97. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/expectation_spec.rb +0 -280
  98. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/addable_spec.rb +0 -22
  99. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/before_spec.rb +0 -98
  100. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/block_connection_spec.rb +0 -18
  101. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/cacheable_spec.rb +0 -88
  102. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/memoizable_spec.rb +0 -53
  103. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/queueable_spec.rb +0 -98
  104. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/runnable_spec.rb +0 -137
  105. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/stubbable_spec.rb +0 -48
  106. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra_spec.rb +0 -22
  107. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/pool_spec.rb +0 -137
  108. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/actions_spec.rb +0 -19
  109. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/before_spec.rb +0 -93
  110. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/block_connection_spec.rb +0 -75
  111. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/cacheable_spec.rb +0 -94
  112. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/callbacks_spec.rb +0 -91
  113. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/marshal_spec.rb +0 -60
  114. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/memoizable_spec.rb +0 -34
  115. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/operations_spec.rb +0 -101
  116. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/responseable_spec.rb +0 -13
  117. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/stubbable_spec.rb +0 -45
  118. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request_spec.rb +0 -256
  119. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/header_spec.rb +0 -147
  120. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/informations_spec.rb +0 -323
  121. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/status_spec.rb +0 -256
  122. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response_spec.rb +0 -100
  123. data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus_spec.rb +0 -105
  124. /data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{json-2.13.0 → json-2.15.1}/gem.build_complete +0 -0
  125. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/.gitignore +0 -0
  126. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/.rspec +0 -0
  127. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/Gemfile +0 -0
  128. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/Guardfile +0 -0
  129. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/LICENSE +0 -0
  130. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/Rakefile +0 -0
  131. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/ethon.gemspec +0 -0
  132. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curl.rb +0 -0
  133. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/codes.rb +0 -0
  134. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/constants.rb +0 -0
  135. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/form_options.rb +0 -0
  136. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/functions.rb +0 -0
  137. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/infos.rb +0 -0
  138. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/messages.rb +0 -0
  139. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/curls/settings.rb +0 -0
  140. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/debug_info.rb +0 -0
  141. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/features.rb +0 -0
  142. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/form.rb +0 -0
  143. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/header.rb +0 -0
  144. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/actionable.rb +0 -0
  145. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/custom.rb +0 -0
  146. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/delete.rb +0 -0
  147. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/get.rb +0 -0
  148. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/head.rb +0 -0
  149. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/options.rb +0 -0
  150. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/patch.rb +0 -0
  151. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/post.rb +0 -0
  152. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/postable.rb +0 -0
  153. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/put.rb +0 -0
  154. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http/putable.rb +0 -0
  155. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/http.rb +0 -0
  156. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/mirror.rb +0 -0
  157. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/operations.rb +0 -0
  158. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/options.rb +0 -0
  159. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/params.rb +0 -0
  160. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/queryable.rb +0 -0
  161. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy/util.rb +0 -0
  162. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/easy.rb +0 -0
  163. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/ethon_error.rb +0 -0
  164. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/global_init.rb +0 -0
  165. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/invalid_option.rb +0 -0
  166. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/invalid_value.rb +0 -0
  167. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/multi_add.rb +0 -0
  168. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  169. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/multi_remove.rb +0 -0
  170. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  171. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors/select.rb +0 -0
  172. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/errors.rb +0 -0
  173. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/libc.rb +0 -0
  174. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/loggable.rb +0 -0
  175. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/multi/operations.rb +0 -0
  176. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/multi/options.rb +0 -0
  177. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/multi/stack.rb +0 -0
  178. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon/multi.rb +0 -0
  179. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/lib/ethon.rb +0 -0
  180. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/profile/benchmarks.rb +0 -0
  181. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/profile/memory_leaks.rb +0 -0
  182. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/profile/perf_spec_helper.rb +0 -0
  183. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/profile/support/memory_test_helpers.rb +0 -0
  184. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/profile/support/os_memory_leak_tracker.rb +0 -0
  185. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
  186. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/curl_spec.rb +0 -0
  187. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
  188. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/features_spec.rb +0 -0
  189. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/form_spec.rb +0 -0
  190. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/header_spec.rb +0 -0
  191. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
  192. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
  193. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/get_spec.rb +0 -0
  194. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/head_spec.rb +0 -0
  195. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/options_spec.rb +0 -0
  196. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
  197. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/post_spec.rb +0 -0
  198. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http/put_spec.rb +0 -0
  199. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/http_spec.rb +0 -0
  200. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/options_spec.rb +0 -0
  201. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/queryable_spec.rb +0 -0
  202. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
  203. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy/util_spec.rb +0 -0
  204. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/easy_spec.rb +0 -0
  205. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/libc_spec.rb +0 -0
  206. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/loggable_spec.rb +0 -0
  207. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/multi/operations_spec.rb +0 -0
  208. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/multi/options_spec.rb +0 -0
  209. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/multi/stack_spec.rb +0 -0
  210. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/ethon/multi_spec.rb +0 -0
  211. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/spec_helper.rb +0 -0
  212. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/support/localhost_server.rb +0 -0
  213. /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.16.0 → ethon-0.15.0}/spec/support/server.rb +0 -0
  214. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/BSDL +0 -0
  215. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/COPYING +0 -0
  216. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/LEGAL +0 -0
  217. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/generator/Makefile +0 -0
  218. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/generator/extconf.rb +0 -0
  219. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/parser/Makefile +0 -0
  220. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/parser/extconf.rb +0 -0
  221. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/ext/json/ext/vendor/jeaiii-ltoa.h +0 -0
  222. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/json.gemspec +0 -0
  223. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/bigdecimal.rb +0 -0
  224. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/complex.rb +0 -0
  225. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/date.rb +0 -0
  226. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/date_time.rb +0 -0
  227. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/exception.rb +0 -0
  228. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/ostruct.rb +0 -0
  229. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/range.rb +0 -0
  230. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/rational.rb +0 -0
  231. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/regexp.rb +0 -0
  232. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/set.rb +0 -0
  233. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/struct.rb +0 -0
  234. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/symbol.rb +0 -0
  235. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/add/time.rb +0 -0
  236. /data/vendor/bundle/ruby/3.3.0/gems/{json-2.13.0 → json-2.15.1}/lib/json/ext.rb +0 -0
  237. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/CONTRIBUTING.md +0 -0
  238. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/LICENSE +0 -0
  239. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/README.md +0 -0
  240. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/UPGRADE.md +0 -0
  241. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -0
  242. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/rack/typhoeus/middleware/params_decoder.rb +0 -0
  243. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/rack/typhoeus.rb +0 -0
  244. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/adapters/faraday.rb +0 -0
  245. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/cache/dalli.rb +0 -0
  246. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/cache/rails.rb +0 -0
  247. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/cache/redis.rb +0 -0
  248. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/config.rb +0 -0
  249. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/easy_factory.rb +0 -0
  250. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/errors/no_stub.rb +0 -0
  251. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/errors/typhoeus_error.rb +0 -0
  252. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/errors.rb +0 -0
  253. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/addable.rb +0 -0
  254. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/before.rb +0 -0
  255. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/block_connection.rb +0 -0
  256. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/cacheable.rb +0 -0
  257. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/memoizable.rb +0 -0
  258. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/queueable.rb +0 -0
  259. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/runnable.rb +0 -0
  260. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/stubbable.rb +0 -0
  261. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra.rb +0 -0
  262. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/pool.rb +0 -0
  263. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/railtie.rb +0 -0
  264. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/actions.rb +0 -0
  265. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/before.rb +0 -0
  266. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/block_connection.rb +0 -0
  267. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/cacheable.rb +0 -0
  268. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/callbacks.rb +0 -0
  269. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/marshal.rb +0 -0
  270. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/memoizable.rb +0 -0
  271. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/operations.rb +0 -0
  272. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/streamable.rb +0 -0
  273. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/stubbable.rb +0 -0
  274. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request.rb +0 -0
  275. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/cacheable.rb +0 -0
  276. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/header.rb +0 -0
  277. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/informations.rb +0 -0
  278. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/status.rb +0 -0
  279. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response.rb +0 -0
  280. /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus.rb +0 -0
@@ -1,30 +0,0 @@
1
- name: CI
2
- on: [push, pull_request]
3
- jobs:
4
- build:
5
- env:
6
- BUNDLE_GEMFILE: Gemfile
7
- runs-on: ${{ matrix.os }}-latest
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- os: [ubuntu, macos]
12
- ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', truffleruby]
13
- steps:
14
- - uses: actions/checkout@v3
15
- - name: Install libcurl header
16
- run: |
17
- if ${{ matrix.os == 'macos' }}
18
- then
19
- brew install curl
20
- else
21
- sudo apt update && sudo apt install -y --no-install-recommends libcurl4-openssl-dev
22
- fi
23
- - name: Set up Ruby ${{ matrix.ruby-version }}
24
- uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: ${{ matrix.ruby-version }}
27
- bundler-cache: true
28
- - name: Run tests
29
- run: |
30
- bundle exec rake
@@ -1,33 +0,0 @@
1
- name: Experimental
2
- on: [push, pull_request]
3
- jobs:
4
- build:
5
- env:
6
- BUNDLE_GEMFILE: Gemfile
7
- runs-on: ${{ matrix.os }}-latest
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- os: [ubuntu, macos]
12
- ruby-version:
13
- - ruby-head
14
- - jruby-head
15
- - truffleruby-head
16
- steps:
17
- - uses: actions/checkout@v3
18
- - name: Install libcurl header
19
- run: |
20
- if ${{ matrix.os == 'macos' }}
21
- then
22
- brew install curl
23
- else
24
- sudo apt update && sudo apt install -y --no-install-recommends libcurl4-openssl-dev
25
- fi
26
- - name: Set up Ruby ${{ matrix.ruby-version }}
27
- uses: ruby/setup-ruby@v1
28
- with:
29
- ruby-version: ${{ matrix.ruby-version }}
30
- bundler-cache: true
31
- - name: Run tests
32
- run: |
33
- bundle exec rake
@@ -1,8 +0,0 @@
1
- *.gem
2
- Gemfile.lock
3
- doc/
4
- .yardoc
5
- .rvmrc
6
- coverage
7
- check.sh
8
- tags
@@ -1,4 +0,0 @@
1
- --tty
2
- --color
3
- --format documentation
4
- --backtrace
@@ -1,36 +0,0 @@
1
- source "https://rubygems.org"
2
- gemspec
3
-
4
- if Gem.ruby_version < Gem::Version.new("2.0.0")
5
- gem "rake", "< 11"
6
- gem "json", "< 2"
7
- else
8
- gem "json"
9
- gem "rake"
10
- end
11
-
12
- group :development, :test do
13
- gem "rspec", "~> 3.0"
14
-
15
- gem "sinatra", "~> 1.3"
16
-
17
- if Gem.ruby_version >= Gem::Version.new("1.9.0")
18
- gem "faraday", ">= 0.9", "< 2.0"
19
- gem "dalli", "~> 2.0"
20
- end
21
-
22
- if Gem.ruby_version >= Gem::Version.new("3.0.0")
23
- gem 'webrick'
24
- end
25
-
26
- gem "redis", "~> 3.0"
27
-
28
- if RUBY_PLATFORM == "java"
29
- gem "spoon"
30
- end
31
-
32
- unless ENV["CI"]
33
- gem "guard-rspec", "~> 0.7"
34
- gem 'rb-fsevent', '~> 0.9.1'
35
- end
36
- end
@@ -1,9 +0,0 @@
1
- # vim:set filetype=ruby:
2
- guard(
3
- "rspec",
4
- all_after_pass: false,
5
- cli: "--fail-fast --tty --format documentation --colour") do
6
-
7
- watch(%r{^spec/.+_spec\.rb$})
8
- watch(%r{^lib/(.+)\.rb$}) { |match| "spec/#{match[1]}_spec.rb" }
9
- end
@@ -1,38 +0,0 @@
1
- require "bundler"
2
- Bundler.setup
3
-
4
- require "rake"
5
- require "rspec/core/rake_task"
6
- $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
7
- require "typhoeus/version"
8
-
9
- task :gem => :build
10
- task :build do
11
- system "gem build typhoeus.gemspec"
12
- end
13
-
14
- task :install => :build do
15
- system "gem install typhoeus-#{Typhoeus::VERSION}.gem"
16
- end
17
-
18
- task :release => :build do
19
- system "git tag -a v#{Typhoeus::VERSION} -m 'Tagging #{Typhoeus::VERSION}'"
20
- system "git push --tags"
21
- system "gem push typhoeus-#{Typhoeus::VERSION}.gem"
22
- end
23
-
24
- RSpec::Core::RakeTask.new(:spec) do |t|
25
- t.verbose = false
26
- t.ruby_opts = "-W -I./spec -rspec_helper"
27
- end
28
-
29
- desc "Start up the test servers"
30
- task :start do
31
- require_relative 'spec/support/boot'
32
- begin
33
- Boot.start_servers(:rake)
34
- rescue Exception
35
- end
36
- end
37
-
38
- task :default => :spec
@@ -1,14 +0,0 @@
1
- require 'typhoeus'
2
- require 'ruby-prof'
3
-
4
- calls = 50
5
- base_url = "http://127.0.0.1:3000/"
6
-
7
- RubyProf.start
8
- calls.times do |i|
9
- Typhoeus::Request.get(base_url+i.to_s)
10
- end
11
- result = RubyProf.stop
12
-
13
- printer = RubyProf::FlatPrinter.new(result)
14
- printer.print(STDOUT)
@@ -1,64 +0,0 @@
1
- require 'typhoeus'
2
- require 'net/http'
3
- require 'open-uri'
4
- require 'benchmark'
5
-
6
- URL = "http://localhost:300"
7
- hydra = Typhoeus::Hydra.new(max_concurrency: 3)
8
-
9
- if defined? require_relative
10
- require_relative '../spec/support/localhost_server.rb'
11
- require_relative '../spec/support/server.rb'
12
- else
13
- require '../spec/support/localhost_server.rb'
14
- require '../spec/support/server.rb'
15
- end
16
- LocalhostServer.new(TESTSERVER.new, 3000)
17
- LocalhostServer.new(TESTSERVER.new, 3001)
18
- LocalhostServer.new(TESTSERVER.new, 3002)
19
-
20
- def url_for(i)
21
- "#{URL}#{i%3}/"
22
- end
23
-
24
- Benchmark.bm do |bm|
25
-
26
- [1000].each do |calls|
27
- puts "[ #{calls} requests ]"
28
-
29
- bm.report("net/http ") do
30
- calls.times do |i|
31
- uri = URI.parse(url_for(i))
32
- Net::HTTP.get_response(uri)
33
- end
34
- end
35
-
36
- bm.report("open ") do
37
- calls.times do |i|
38
- open(url_for(i))
39
- end
40
- end
41
-
42
- bm.report("request ") do
43
- calls.times do |i|
44
- Typhoeus::Request.get(url_for(i))
45
- end
46
- end
47
-
48
- bm.report("hydra ") do
49
- calls.times do |i|
50
- hydra.queue(Typhoeus::Request.new(url_for(i)))
51
- end
52
- hydra.run
53
- end
54
-
55
- bm.report("hydra memoize ") do
56
- Typhoeus::Config.memoize = true
57
- calls.times do |i|
58
- hydra.queue(Typhoeus::Request.new(url_for(i)))
59
- end
60
- hydra.run
61
- Typhoeus::Config.memoize = false
62
- end
63
- end
64
- end
@@ -1,156 +0,0 @@
1
- require 'spec_helper'
2
- require "rack/typhoeus"
3
-
4
- describe "Rack::Typhoeus::Middleware::ParamsDecoder::Helper" do
5
-
6
- let(:klass) do
7
- Class.new do
8
- include Rack::Typhoeus::Middleware::ParamsDecoder::Helper
9
- end.new
10
- end
11
-
12
- describe "#decode" do
13
- let(:decoded) { klass.decode(params) }
14
- let(:params) { { :array => {'0' => :a, '1' => :b } } }
15
-
16
- it "decodes" do
17
- expect(decoded[:array]).to match_array([:a, :b])
18
- end
19
-
20
- it "doesn't modify" do
21
- expect(decoded).to_not be(params)
22
- end
23
- end
24
-
25
- describe "#decode!" do
26
- let(:decoded) { klass.decode!(params) }
27
-
28
- context "when hash" do
29
- context "when encoded" do
30
- context "when simple" do
31
- let(:params) { { :array => {'0' => :a, '1' => :b } } }
32
-
33
- it "decodes" do
34
- expect(decoded[:array]).to match_array([:a, :b])
35
- end
36
-
37
- it "modifies" do
38
- expect(decoded).to eq(params)
39
- end
40
- end
41
-
42
- context "when longer and more complex" do
43
- let(:params) do
44
- {
45
- :ids => {
46
- "0" => "407304",
47
- "1" => "407305",
48
- "2" => "407306",
49
- "3" => "407307",
50
- "4" => "407308",
51
- "5" => "407309",
52
- "6" => "407310",
53
- "7" => "407311",
54
- "8" => "407312",
55
- "9" => "407313",
56
- "10" => "327012"
57
- }
58
- }
59
- end
60
-
61
- it "decodes ensuring arrays maintain their original order" do
62
- expect(decoded[:ids]).to eq(["407304", "407305", "407306", "407307", "407308", "407309", "407310", "407311", "407312", "407313", "327012"])
63
- end
64
- end
65
-
66
- context "when nested" do
67
- let(:params) do
68
- { :array => { '0' => 0, '1' => { '0' => 'sub0', '1' => 'sub1' } } }
69
- end
70
-
71
- it "decodes" do
72
- expect(decoded[:array]).to include(0)
73
- expect(decoded[:array].find{|e| e.is_a?(Array)}).to(
74
- match_array(['sub0', 'sub1'])
75
- )
76
- end
77
-
78
- it "modifies" do
79
- expect(decoded).to eq(params)
80
- end
81
- end
82
- end
83
-
84
- context "when not encoded" do
85
- let(:params) { {:a => :a} }
86
-
87
- it "doesn't modify" do
88
- expect(decoded).to be(params)
89
- end
90
- end
91
- end
92
-
93
- context "when no hash" do
94
- let(:params) { "a" }
95
-
96
- it "returns self" do
97
- expect(decoded).to be(params)
98
- end
99
- end
100
- end
101
-
102
- describe "#encoded?" do
103
- let(:encoded) { klass.send(:encoded?, params) }
104
-
105
- context "when there is only one key" do
106
- context "and its 0" do
107
- let(:params){ {'0' => 1} }
108
- it 'returns true' do
109
- expect(encoded).to be_truthy
110
- end
111
- end
112
- context "and its not 0" do
113
- let(:params){ {'some-key' => 1}}
114
- it 'returns false' do
115
- expect(encoded).to be_falsey
116
- end
117
- end
118
- end
119
-
120
- context "when keys are ascending numbers starting with zero" do
121
- let(:params) { Hash[12.times.map {|i| [i, (i+65).chr]}] }
122
-
123
- it "returns true" do
124
- expect(encoded).to be_truthy
125
- end
126
- end
127
-
128
- context "when keys are not ascending numbers starting with zero" do
129
- let(:params) { {:a => 1} }
130
-
131
- it "returns false" do
132
- expect(encoded).to be_falsey
133
- end
134
- end
135
- end
136
-
137
- describe "#convert" do
138
- let(:converted) { klass.send(:convert, params) }
139
-
140
- context "when encoded" do
141
- let(:params) { {'0' => :a, '1' => :b} }
142
-
143
- it "returns values" do
144
- expect(converted).to match_array([:a, :b])
145
- end
146
- end
147
-
148
- context "when not encoded" do
149
- let(:params) { {:a => :a} }
150
-
151
- it "returns unmodified" do
152
- expect(converted).to be(params)
153
- end
154
- end
155
- end
156
- end
@@ -1,31 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "Rack::Typhoeus::Middleware::ParamsDecoder" do
4
-
5
- before(:all) do
6
- require "rack/typhoeus"
7
- end
8
-
9
- let(:app) do
10
- double
11
- end
12
-
13
- let(:env) do
14
- double
15
- end
16
-
17
- let(:klass) do
18
- Rack::Typhoeus::Middleware::ParamsDecoder
19
- end
20
-
21
- describe "#call" do
22
- end
23
-
24
- context "when requesting" do
25
- let(:response) { Typhoeus.get("localhost:3001", :params => {:x => [:a]}) }
26
-
27
- it "transforms parameters" do
28
- expect(response.body).to include("query_hash\":{\"x\":[\"a\"]}")
29
- end
30
- end
31
- end
@@ -1,29 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
3
-
4
- require "bundler"
5
- Bundler.setup
6
- require "typhoeus"
7
- require "rspec"
8
-
9
- Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each { |f| require f }
10
-
11
- RSpec.configure do |config|
12
- config.order = :rand
13
-
14
- config.before(:suite) do
15
- LocalhostServer.new(TESTSERVER.new, 3001)
16
- end
17
-
18
- config.after do
19
- Typhoeus::Pool.clear
20
- Typhoeus::Expectation.clear
21
- Typhoeus.before.clear
22
- Typhoeus.on_complete.clear
23
- Typhoeus.on_success.clear
24
- Typhoeus.on_failure.clear
25
- Typhoeus::Config.verbose = false
26
- Typhoeus::Config.block_connection = false
27
- Typhoeus::Config.memoize = false
28
- end
29
- end
@@ -1,94 +0,0 @@
1
- require 'rack'
2
- require 'rack/handler/webrick'
3
- require 'net/http'
4
-
5
- # The code for this is inspired by Capybara's server:
6
- # http://github.com/jnicklas/capybara/blob/0.3.9/lib/capybara/server.rb
7
- class LocalhostServer
8
- READY_MESSAGE = "Server ready"
9
-
10
- class Identify
11
- def initialize(app)
12
- @app = app
13
- end
14
-
15
- def call(env)
16
- if env["PATH_INFO"] == "/__identify__"
17
- [200, {}, [LocalhostServer::READY_MESSAGE]]
18
- else
19
- @app.call(env)
20
- end
21
- end
22
- end
23
-
24
- attr_reader :port
25
-
26
- def initialize(rack_app, port = nil)
27
- @port = port || find_available_port
28
- @rack_app = rack_app
29
- concurrently { boot }
30
- wait_until(10, "Boot failed.") { booted? }
31
- end
32
-
33
- private
34
-
35
- def find_available_port
36
- server = TCPServer.new('127.0.0.1', 0)
37
- server.addr[1]
38
- ensure
39
- server.close if server
40
- end
41
-
42
- def boot
43
- # Use WEBrick since it's part of the ruby standard library and is available on all ruby interpreters.
44
- options = { :Port => port }
45
- options.merge!(:AccessLog => [], :Logger => WEBrick::BasicLog.new(StringIO.new)) unless ENV['VERBOSE_SERVER']
46
- Rack::Handler::WEBrick.run(Identify.new(@rack_app), options)
47
- end
48
-
49
- def booted?
50
- res = ::Net::HTTP.get_response("localhost", '/__identify__', port)
51
- if res.is_a?(::Net::HTTPSuccess) or res.is_a?(::Net::HTTPRedirection)
52
- return res.body == READY_MESSAGE
53
- end
54
- rescue Errno::ECONNREFUSED, Errno::EBADF
55
- return false
56
- end
57
-
58
- def concurrently
59
- if should_use_subprocess?
60
- pid = Process.fork do
61
- trap(:INT) { ::Rack::Handler::WEBrick.shutdown }
62
- yield
63
- exit # manually exit; otherwise this sub-process will re-run the specs that haven't run yet.
64
- end
65
-
66
- at_exit do
67
- Process.kill('INT', pid)
68
- begin
69
- Process.wait(pid)
70
- rescue Errno::ECHILD
71
- # ignore this error...I think it means the child process has already exited.
72
- end
73
- end
74
- else
75
- Thread.new { yield }
76
- end
77
- end
78
-
79
- def should_use_subprocess?
80
- # !ENV['THREADED']
81
- false
82
- end
83
-
84
- def wait_until(timeout, error_message, &block)
85
- start_time = Time.now
86
-
87
- while true
88
- return if yield
89
- raise TimeoutError.new(error_message) if (Time.now - start_time) > timeout
90
- sleep(0.05)
91
- end
92
- end
93
- end
94
-
@@ -1,15 +0,0 @@
1
- class MemoryCache
2
- attr_reader :memory
3
-
4
- def initialize
5
- @memory = {}
6
- end
7
-
8
- def get(request)
9
- memory[request]
10
- end
11
-
12
- def set(request, response)
13
- memory[request] = response
14
- end
15
- end
@@ -1,116 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'json'
3
- require 'zlib'
4
- require 'sinatra/base'
5
- require 'rack/typhoeus'
6
-
7
- TESTSERVER = Sinatra.new do
8
- set :logging, false
9
- use Rack::Typhoeus::Middleware::ParamsDecoder
10
-
11
- fail_count = 0
12
-
13
- post '/file' do
14
- {
15
- 'content-type' => params[:file][:type],
16
- 'filename' => params[:file][:filename],
17
- 'content' => params[:file][:tempfile].read,
18
- 'request-content-type' => request.env['CONTENT_TYPE']
19
- }.to_json
20
- end
21
-
22
- get '/multiple-headers' do
23
- [200, { 'Set-Cookie' => %w[ foo bar ], 'Content-Type' => 'text/plain' }, ['']]
24
- end
25
-
26
- get '/cookies-test' do
27
- [200, { 'Set-Cookie' => %w(foo=bar bar=foo), 'Content-Type' => 'text/plain' }, ['']]
28
- end
29
-
30
- get '/cookies-test2' do
31
- [200, { 'Set-Cookie' => %w(foo2=bar bar2=foo), 'Content-Type' => 'text/plain' }, ['']]
32
- end
33
-
34
- get '/fail/:number' do
35
- if fail_count >= params[:number].to_i
36
- "ok"
37
- else
38
- fail_count += 1
39
- error 500, "oh noes!"
40
- end
41
- end
42
-
43
- get '/fail_forever' do
44
- error 500, "oh noes!"
45
- end
46
-
47
- get '/redirect' do
48
- redirect '/'
49
- end
50
-
51
- get '/bad_redirect' do
52
- redirect '/bad_redirect'
53
- end
54
-
55
- get '/auth_basic/:username/:password' do
56
- @auth ||= Rack::Auth::Basic::Request.new(request.env)
57
- # Check that we've got a basic auth, and that it's credentials match the ones
58
- # provided in the request
59
- if @auth.provided? && @auth.basic? && @auth.credentials == [ params[:username], params[:password] ]
60
- # auth is valid - confirm it
61
- true
62
- else
63
- # invalid auth - request the authentication
64
- response['WWW-Authenticate'] = %(Basic realm="Testing HTTP Auth")
65
- throw(:halt, [401, "Not authorized\n"])
66
- end
67
- end
68
-
69
- get '/auth_ntlm' do
70
- # we're just checking for the existence if NTLM auth header here. It's validation
71
- # is too troublesome and really doesn't bother is much, it's up to libcurl to make
72
- # it valid
73
- response['WWW-Authenticate'] = 'NTLM'
74
- is_ntlm_auth = /^NTLM/ =~ request.env['HTTP_AUTHORIZATION']
75
- true if is_ntlm_auth
76
- throw(:halt, [401, "Not authorized\n"]) if !is_ntlm_auth
77
- end
78
-
79
- get '/gzipped' do
80
- req_env = request.env.to_json
81
- z = Zlib::Deflate.new
82
- gzipped_env = z.deflate(req_env, Zlib::FINISH)
83
- z.close
84
- response['Content-Encoding'] = 'gzip'
85
- gzipped_env
86
- end
87
-
88
- get '/**' do
89
- sleep params["delay"].to_i if params.has_key?("delay")
90
- request.env.merge!(:body => request.body.read).to_json
91
- end
92
-
93
- head '/**' do
94
- sleep params["delay"].to_i if params.has_key?("delay")
95
- end
96
-
97
- put '/**' do
98
- request.env.merge!(:body => request.body.read).to_json
99
- end
100
-
101
- post '/**' do
102
- request.env.merge!(:body => request.body.read).to_json
103
- end
104
-
105
- delete '/**' do
106
- request.env.merge!(:body => request.body.read).to_json
107
- end
108
-
109
- patch '/**' do
110
- request.env.merge!(:body => request.body.read).to_json
111
- end
112
-
113
- options '/**' do
114
- request.env.merge!(:body => request.body.read).to_json
115
- end
116
- end