coingecko_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +6 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +38 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +44 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/coingecko_client.gemspec +34 -0
  14. data/lib/coingecko_client.rb +61 -0
  15. data/lib/coingecko_client/version.rb +3 -0
  16. data/vendor/bundle/ruby/2.7.0/bin/htmldiff +27 -0
  17. data/vendor/bundle/ruby/2.7.0/bin/ldiff +27 -0
  18. data/vendor/bundle/ruby/2.7.0/bin/rake +27 -0
  19. data/vendor/bundle/ruby/2.7.0/bin/rspec +27 -0
  20. data/vendor/bundle/ruby/2.7.0/bin/ruby_executable_hooks +25 -0
  21. data/vendor/bundle/ruby/2.7.0/cache/diff-lcs-1.4.3.gem +0 -0
  22. data/vendor/bundle/ruby/2.7.0/cache/excon-0.75.0.gem +0 -0
  23. data/vendor/bundle/ruby/2.7.0/cache/rake-12.3.3.gem +0 -0
  24. data/vendor/bundle/ruby/2.7.0/cache/rspec-3.9.0.gem +0 -0
  25. data/vendor/bundle/ruby/2.7.0/cache/rspec-core-3.9.2.gem +0 -0
  26. data/vendor/bundle/ruby/2.7.0/cache/rspec-expectations-3.9.2.gem +0 -0
  27. data/vendor/bundle/ruby/2.7.0/cache/rspec-mocks-3.9.1.gem +0 -0
  28. data/vendor/bundle/ruby/2.7.0/cache/rspec-support-3.9.3.gem +0 -0
  29. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/.rspec +1 -0
  30. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/Code-of-Conduct.md +74 -0
  31. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/Contributing.md +84 -0
  32. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/History.md +278 -0
  33. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/License.md +39 -0
  34. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/Manifest.txt +45 -0
  35. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/README.rdoc +84 -0
  36. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/Rakefile +57 -0
  37. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/autotest/discover.rb +3 -0
  38. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/bin/htmldiff +35 -0
  39. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/bin/ldiff +9 -0
  40. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/docs/COPYING.txt +339 -0
  41. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/docs/artistic.txt +127 -0
  42. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff-lcs.rb +3 -0
  43. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs.rb +732 -0
  44. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/array.rb +7 -0
  45. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/backports.rb +9 -0
  46. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/block.rb +37 -0
  47. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/callbacks.rb +325 -0
  48. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/change.rb +174 -0
  49. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/htmldiff.rb +150 -0
  50. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/hunk.rb +291 -0
  51. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/internals.rb +304 -0
  52. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/ldiff.rb +175 -0
  53. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/lib/diff/lcs/string.rb +5 -0
  54. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/change_spec.rb +89 -0
  55. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/diff_spec.rb +51 -0
  56. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/aX +1 -0
  57. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/bXaX +1 -0
  58. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ds1.csv +50 -0
  59. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ds2.csv +51 -0
  60. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ldiff/output.diff +4 -0
  61. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ldiff/output.diff-c +7 -0
  62. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ldiff/output.diff-e +3 -0
  63. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ldiff/output.diff-f +3 -0
  64. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/fixtures/ldiff/output.diff-u +5 -0
  65. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/hunk_spec.rb +72 -0
  66. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/issues_spec.rb +98 -0
  67. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/lcs_spec.rb +56 -0
  68. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/ldiff_spec.rb +86 -0
  69. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/patch_spec.rb +416 -0
  70. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/sdiff_spec.rb +214 -0
  71. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/spec_helper.rb +375 -0
  72. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/traverse_balanced_spec.rb +310 -0
  73. data/vendor/bundle/ruby/2.7.0/gems/diff-lcs-1.4.3/spec/traverse_sequences_spec.rb +139 -0
  74. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/CONTRIBUTING.md +23 -0
  75. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/CONTRIBUTORS.md +140 -0
  76. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/LICENSE.md +20 -0
  77. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/README.md +492 -0
  78. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/data/cacert.pem +3466 -0
  79. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/excon.gemspec +43 -0
  80. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon.rb +255 -0
  81. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/connection.rb +594 -0
  82. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/constants.rb +169 -0
  83. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/error.rb +229 -0
  84. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/extensions/uri.rb +34 -0
  85. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/headers.rb +84 -0
  86. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/instrumentors/logging_instrumentor.rb +48 -0
  87. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/instrumentors/standard_instrumentor.rb +21 -0
  88. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/base.rb +31 -0
  89. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/capture_cookies.rb +32 -0
  90. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/decompress.rb +37 -0
  91. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/escape_path.rb +12 -0
  92. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/expects.rb +25 -0
  93. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/idempotent.rb +57 -0
  94. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/instrumentor.rb +49 -0
  95. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/mock.rb +61 -0
  96. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/redirect_follower.rb +87 -0
  97. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/response_parser.rb +16 -0
  98. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/pretty_printer.rb +39 -0
  99. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/response.rb +231 -0
  100. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/socket.rb +306 -0
  101. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/ssl_socket.rb +184 -0
  102. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/test/plugin/server/exec.rb +23 -0
  103. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/test/plugin/server/puma.rb +20 -0
  104. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/test/plugin/server/unicorn.rb +35 -0
  105. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/test/plugin/server/webrick.rb +23 -0
  106. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/test/server.rb +106 -0
  107. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/unix_socket.rb +41 -0
  108. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/utils.rb +125 -0
  109. data/vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/version.rb +4 -0
  110. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/CONTRIBUTING.rdoc +43 -0
  111. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/Gemfile +3 -0
  112. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/History.rdoc +2344 -0
  113. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/MIT-LICENSE +21 -0
  114. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/README.rdoc +156 -0
  115. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/Rakefile +41 -0
  116. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/azure-pipelines.yml +11 -0
  117. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/bundle +105 -0
  118. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/console +7 -0
  119. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/rake +29 -0
  120. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/rdoc +29 -0
  121. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/rubocop +29 -0
  122. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/setup +6 -0
  123. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/command_line_usage.rdoc +158 -0
  124. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile1 +38 -0
  125. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile2 +35 -0
  126. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/a.c +6 -0
  127. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/b.c +6 -0
  128. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/main.c +11 -0
  129. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/glossary.rdoc +42 -0
  130. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/jamis.rb +592 -0
  131. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/proto_rake.rdoc +127 -0
  132. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/rake.1 +156 -0
  133. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/rakefile.rdoc +622 -0
  134. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/rational.rdoc +151 -0
  135. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/exe/rake +27 -0
  136. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake.rb +71 -0
  137. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/application.rb +824 -0
  138. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/backtrace.rb +24 -0
  139. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/clean.rb +78 -0
  140. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cloneable.rb +17 -0
  141. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cpu_counter.rb +107 -0
  142. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/default_loader.rb +15 -0
  143. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/dsl_definition.rb +195 -0
  144. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/early_time.rb +22 -0
  145. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/core.rb +26 -0
  146. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/string.rb +176 -0
  147. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_creation_task.rb +25 -0
  148. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_list.rb +435 -0
  149. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_task.rb +54 -0
  150. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils.rb +137 -0
  151. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb +145 -0
  152. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_chain.rb +57 -0
  153. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb +17 -0
  154. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/late_time.rb +18 -0
  155. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/linked_list.rb +112 -0
  156. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/loaders/makefile.rb +54 -0
  157. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/multi_task.rb +14 -0
  158. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/name_space.rb +38 -0
  159. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/packagetask.rb +207 -0
  160. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/phony.rb +16 -0
  161. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/private_reader.rb +21 -0
  162. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/promise.rb +100 -0
  163. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/pseudo_status.rb +30 -0
  164. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_module.rb +67 -0
  165. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +27 -0
  166. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
  167. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/scope.rb +43 -0
  168. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task.rb +413 -0
  169. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_argument_error.rb +8 -0
  170. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_arguments.rb +109 -0
  171. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_manager.rb +324 -0
  172. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/tasklib.rb +12 -0
  173. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/testtask.rb +224 -0
  174. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_history_display.rb +49 -0
  175. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_pool.rb +163 -0
  176. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb +23 -0
  177. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/version.rb +10 -0
  178. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/win32.rb +51 -0
  179. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/rake.gemspec +42 -0
  180. data/vendor/bundle/ruby/2.7.0/gems/rspec-3.9.0/LICENSE.md +27 -0
  181. data/vendor/bundle/ruby/2.7.0/gems/rspec-3.9.0/README.md +43 -0
  182. data/vendor/bundle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec.rb +3 -0
  183. data/vendor/bundle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec/version.rb +5 -0
  184. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/.document +5 -0
  185. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/.yardopts +8 -0
  186. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/Changelog.md +2291 -0
  187. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/LICENSE.md +26 -0
  188. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/README.md +384 -0
  189. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/exe/rspec +4 -0
  190. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/autorun.rb +3 -0
  191. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core.rb +186 -0
  192. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/backtrace_formatter.rb +65 -0
  193. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/coordinator.rb +62 -0
  194. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/example_minimizer.rb +173 -0
  195. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/fork_runner.rb +135 -0
  196. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/server.rb +61 -0
  197. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_command.rb +126 -0
  198. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_runner.rb +73 -0
  199. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/utilities.rb +58 -0
  200. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration.rb +2363 -0
  201. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration_options.rb +233 -0
  202. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/did_you_mean.rb +46 -0
  203. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/drb.rb +113 -0
  204. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/dsl.rb +98 -0
  205. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example.rb +656 -0
  206. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_group.rb +900 -0
  207. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_status_persister.rb +235 -0
  208. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/filter_manager.rb +231 -0
  209. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/flat_map.rb +20 -0
  210. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters.rb +273 -0
  211. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
  212. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_formatter.rb +70 -0
  213. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
  214. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
  215. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
  216. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/console_codes.rb +68 -0
  217. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
  218. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
  219. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb +511 -0
  220. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
  221. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  222. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/helpers.rb +110 -0
  223. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_formatter.rb +153 -0
  224. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_printer.rb +414 -0
  225. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
  226. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/json_formatter.rb +102 -0
  227. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  228. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/progress_formatter.rb +29 -0
  229. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/protocol.rb +182 -0
  230. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
  231. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
  232. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/hooks.rb +641 -0
  233. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/invocations.rb +87 -0
  234. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/memoized_helpers.rb +554 -0
  235. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata.rb +498 -0
  236. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata_filter.rb +255 -0
  237. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  238. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  239. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  240. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/null.rb +14 -0
  241. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  242. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  243. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/notifications.rb +521 -0
  244. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/option_parser.rb +316 -0
  245. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ordering.rb +158 -0
  246. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/output_wrapper.rb +29 -0
  247. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/pending.rb +165 -0
  248. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/profiler.rb +34 -0
  249. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer.rb +48 -0
  250. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/.rspec +1 -0
  251. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
  252. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/rake_task.rb +188 -0
  253. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/reporter.rb +265 -0
  254. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ruby_project.rb +53 -0
  255. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb +204 -0
  256. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/sandbox.rb +37 -0
  257. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/set.rb +54 -0
  258. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_context.rb +55 -0
  259. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_example_group.rb +271 -0
  260. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shell_escape.rb +49 -0
  261. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  262. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/version.rb +9 -0
  263. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/warnings.rb +40 -0
  264. data/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/world.rb +276 -0
  265. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.document +5 -0
  266. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.yardopts +6 -0
  267. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/Changelog.md +1191 -0
  268. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/LICENSE.md +25 -0
  269. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/README.md +320 -0
  270. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations.rb +82 -0
  271. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
  272. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/configuration.rb +215 -0
  273. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/expectation_target.rb +127 -0
  274. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/fail_with.rb +39 -0
  275. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/failure_aggregator.rb +194 -0
  276. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/handler.rb +170 -0
  277. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/minitest_integration.rb +58 -0
  278. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/syntax.rb +132 -0
  279. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/version.rb +8 -0
  280. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers.rb +1038 -0
  281. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/aliased_matcher.rb +116 -0
  282. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in.rb +52 -0
  283. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/all.rb +86 -0
  284. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
  285. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb +288 -0
  286. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_between.rb +77 -0
  287. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
  288. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
  289. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_within.rb +72 -0
  290. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/change.rb +428 -0
  291. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/compound.rb +276 -0
  292. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
  293. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/cover.rb +24 -0
  294. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eq.rb +40 -0
  295. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eql.rb +34 -0
  296. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/equal.rb +81 -0
  297. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/exist.rb +90 -0
  298. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +103 -0
  299. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
  300. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/include.rb +149 -0
  301. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/match.rb +106 -0
  302. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb +128 -0
  303. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/output.rb +200 -0
  304. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb +230 -0
  305. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/respond_to.rb +199 -0
  306. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/satisfy.rb +60 -0
  307. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
  308. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
  309. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/yield.rb +441 -0
  310. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/composable.rb +171 -0
  311. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/dsl.rb +540 -0
  312. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/english_phrasing.rb +58 -0
  313. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
  314. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/fail_matchers.rb +42 -0
  315. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/generated_descriptions.rb +41 -0
  316. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_delegator.rb +35 -0
  317. data/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_protocol.rb +99 -0
  318. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.document +5 -0
  319. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.yardopts +6 -0
  320. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/Changelog.md +1133 -0
  321. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/LICENSE.md +25 -0
  322. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/README.md +463 -0
  323. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks.rb +130 -0
  324. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance.rb +11 -0
  325. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/chain.rb +111 -0
  326. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
  327. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
  328. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
  329. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  330. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/proxy.rb +116 -0
  331. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/recorder.rb +294 -0
  332. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
  333. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
  334. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_list_matcher.rb +100 -0
  335. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_matchers.rb +322 -0
  336. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/configuration.rb +212 -0
  337. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/error_generator.rb +369 -0
  338. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/example_methods.rb +434 -0
  339. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/instance_method_stasher.rb +146 -0
  340. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/marshal_extension.rb +41 -0
  341. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
  342. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/have_received.rb +134 -0
  343. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive.rb +132 -0
  344. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
  345. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
  346. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_chain.rb +87 -0
  347. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_expectation.rb +751 -0
  348. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_double.rb +287 -0
  349. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_reference.rb +202 -0
  350. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/minitest_integration.rb +68 -0
  351. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/mutate_const.rb +339 -0
  352. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/object_reference.rb +149 -0
  353. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/order_group.rb +81 -0
  354. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/proxy.rb +503 -0
  355. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/space.rb +238 -0
  356. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/standalone.rb +3 -0
  357. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/syntax.rb +325 -0
  358. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/targets.rb +124 -0
  359. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/test_double.rb +171 -0
  360. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_double.rb +129 -0
  361. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
  362. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_proxy.rb +220 -0
  363. data/vendor/bundle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/version.rb +9 -0
  364. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/Changelog.md +302 -0
  365. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/LICENSE.md +23 -0
  366. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/README.md +40 -0
  367. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support.rb +149 -0
  368. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/caller_filter.rb +83 -0
  369. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/comparable_version.rb +46 -0
  370. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/differ.rb +215 -0
  371. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/directory_maker.rb +63 -0
  372. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/encoded_string.rb +161 -0
  373. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/fuzzy_matcher.rb +48 -0
  374. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/hunk_generator.rb +47 -0
  375. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/matcher_definition.rb +42 -0
  376. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/method_signature_verifier.rb +438 -0
  377. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/mutex.rb +73 -0
  378. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/object_formatter.rb +275 -0
  379. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/recursive_const_methods.rb +76 -0
  380. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/reentrant_mutex.rb +61 -0
  381. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/ruby_features.rb +190 -0
  382. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source.rb +75 -0
  383. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/location.rb +21 -0
  384. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/node.rb +110 -0
  385. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/token.rb +87 -0
  386. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec.rb +81 -0
  387. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
  388. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/formatting_support.rb +9 -0
  389. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/in_sub_process.rb +69 -0
  390. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/library_wide_checks.rb +150 -0
  391. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/shell_out.rb +89 -0
  392. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/stderr_splitter.rb +75 -0
  393. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/string_matcher.rb +46 -0
  394. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
  395. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
  396. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/version.rb +7 -0
  397. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/warnings.rb +39 -0
  398. data/vendor/bundle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/with_keywords_when_needed.rb +33 -0
  399. data/vendor/bundle/ruby/2.7.0/specifications/diff-lcs-1.4.3.gemspec +50 -0
  400. data/vendor/bundle/ruby/2.7.0/specifications/excon-0.75.0.gemspec +56 -0
  401. data/vendor/bundle/ruby/2.7.0/specifications/rake-12.3.3.gemspec +43 -0
  402. data/vendor/bundle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +39 -0
  403. data/vendor/bundle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +53 -0
  404. data/vendor/bundle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +44 -0
  405. data/vendor/bundle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +44 -0
  406. data/vendor/bundle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +36 -0
  407. metadata +480 -0
@@ -0,0 +1,140 @@
1
+ * Aaron Stone <aaron@serendipity.cx>
2
+ * Adam Esterline <adam@esterlines.com>
3
+ * Alexander Sandström <alexander@skovik.com>
4
+ * Andrew Katz <andrew.katz@outright.com>
5
+ * Andy Delcambre <adelcambre@gmail.com>
6
+ * Anshul Khandelwal <anshul@anshulkhandelwal.com>
7
+ * Ash Wilson <smashwilson@gmail.com>
8
+ * Ben Burkert <ben@benburkert.com>
9
+ * Benedikt Böhm <bb@xnull.de>
10
+ * Bo Jeanes <me@bjeanes.com>
11
+ * Brandur <brandur@mutelight.org>
12
+ * Brian D. Burns <iosctr@gmail.com>
13
+ * Brian Hartsock <brian.hartsock@gmail.com>
14
+ * Bryan Paxton <starbelly@pobox.com>
15
+ * Caio Chassot <dev@caiochassot.com>
16
+ * Caius Durling <dev@caius.name>
17
+ * Carl Hörberg <carl.hoerberg@gmail.com>
18
+ * Carl Hörberg <carl.hoerberg@gmail.com>
19
+ * Carlos Sanchez <csanchez@maestrodev.com>
20
+ * Casper Thomsen <ct@clearhaus.com>
21
+ * Chris Hanks <christopher.m.hanks@gmail.com>
22
+ * Claudio Poli <masterkain@gmail.com>
23
+ * Damien Mathieu <damien@heroku.com>
24
+ * Dan Hensgen <dan@methodhead.com>
25
+ * Dan Peterson <dpiddy@gmail.com>
26
+ * Dan Prince <dprince@redhat.com>
27
+ * Dane Harrigan <dane.harrigan@gmail.com>
28
+ * Dave Myron <therealdave.myron@gmail.com>
29
+ * Dave Newton <davelnewton@gmail.com>
30
+ * David Biehl <dbiehl@ncmedical.com>
31
+ * David Biehl <lazylodr@gmail.com>
32
+ * Dimitrij Denissenko <dimitrij@blacksquaremedia.com>
33
+ * Dominik Richter <dominik.richter@gmail.com>
34
+ * Doug McInnes <doug@dougmcinnes.com>
35
+ * Eugene Howe <eugene@xtreme-computers.net>
36
+ * Evan Phoenix <evan@fallingsnow.net>
37
+ * Fabian Wiesel <fabian.wiesel@sap.com>
38
+ * Federico Ravasio <ravasio.federico@gmail.com>
39
+ * Glenn Pratt <glennpratt@gmail.com>
40
+ * Graeme Nelson <graeme.nelson@gmail.com>
41
+ * Guillaume Balaine <igosuki@gmail.com>
42
+ * Hakan Ensari <hakan.ensari@papercavalier.com>
43
+ * Ian Neubert <ian@ianneubert.com>
44
+ * Jacob Atzen <jacob@incremental.dk>
45
+ * James Cox <james@imaj.es>
46
+ * James Watling <watling.james@gmail.com>
47
+ * Jean Mertz <jean@mertz.fm>
48
+ * Jeremy Hinegardner <jeremy@copiousfreetime.org>
49
+ * Jesse Kempf <jesse.kempf@opower.com>
50
+ * Joe Rafaniello <jrafanie@redhat.com>
51
+ * John Keiser <jkeiser@opscode.com>
52
+ * John Leach <john@brightbox.co.uk>
53
+ * Jonas Pfenniger <jonas@pfenniger.name>
54
+ * Jonathan Dance <github@wuputah.com>
55
+ * Jonathan Dance <jd@wuputah.com>
56
+ * Jonathan Roes <jroes@jroes.net>
57
+ * Joshua B. Smith <jbsmith@us.ibm.com>
58
+ * Joshua Gross <joshua@surfeasy.com>
59
+ * Joshua Mckinney <joshmckin@gmail.com>
60
+ * Joshua Napoli <jnapoli@swipely-napoli.home>
61
+ * Joshua Napoli <jnapoli@swipely-napoli.local>
62
+ * Kelly Mahan <kmahan@kmahan.com>
63
+ * Kensuke Nagae <kyanny@gmail.com>
64
+ * Konstantin Shabanov <etehtsea@gmail.com>
65
+ * Kyle Rames <kyle.rames@rackspace.com>
66
+ * Lewis Marshall <lewis@lmars.net>
67
+ * Lincoln Stoll <me@lstoll.net>
68
+ * Louis Sobel <sobel@mit.edu>
69
+ * Mahemoff <michael@mahemoff.com>
70
+ * Mathias Meyer <meyer@paperplanes.de>
71
+ * Matt Gauger <matt.gauger@gmail.com>
72
+ * Matt Sanders <matt@modal.org>
73
+ * Matt Sanders <matt@polycot.com>
74
+ * Matt Snyder <snyder2112@me.com>
75
+ * Matt Todd <chiology@gmail.com>
76
+ * Max Lincoln <max@devopsy.com>
77
+ * Michael Brodhead <mkb@engineyard.com>
78
+ * Michael Hale <mike@hales.ws>
79
+ * Michael Rowe <mrowe@mojain.com>
80
+ * Michael Rykov <mrykov@gmail.com>
81
+ * Mike Heffner <mikeh@fesnel.com>
82
+ * Myron Marston <myron.marston@gmail.com>
83
+ * Nathan Long <nathan.long@tma1.com>
84
+ * Nathan Sutton <nate@zencoder.com>
85
+ * Nick Osborn <nick.osborn@digital.cabinet-office.gov.uk>
86
+ * Nicolas Sanguinetti <contacto@nicolassanguinetti.info>
87
+ * Paul Gideon Dann <pdgiddie@gmail.com>
88
+ * Pavel <pavel.evst@gmail.com>
89
+ * Peter Meier <peter.meier@immerda.ch>
90
+ * Peter Weldon <peter.weldon@null.net>
91
+ * Peter Weldon <peter@lautus.net>
92
+ * Phil Ross <phil.ross@gmail.com>
93
+ * Richard Ramsden <richard@rramsden.ca>
94
+ * Ruslan Korolev <rs3@fastmail.com>
95
+ * Ruslan Korolev <rs41@gmx.com>
96
+ * Ruslan Kyrychuk <ruslan.kyrychuk@gmail.com>
97
+ * Ryan Bigg <radarlistener@fastmail.fm>
98
+ * Ryan Mohr <ryan.mohr@gmail.com>
99
+ * Sam Withrow <sam.withrow@curiousnation.org>
100
+ * Scott Gonyea <me@aitrus.org>
101
+ * Scott Gonyea <me@sgonyea.com>
102
+ * Scott Walkinshaw <scott.walkinshaw@gmail.com>
103
+ * Sean Cribbs <seancribbs@gmail.com>
104
+ * Sergio Rubio <rubiojr@frameos.org>
105
+ * Shai Rosenfeld <shaiguitar@gmail.com>
106
+ * Stefan Merettig <stefan-merettig@nuriaproject.org>
107
+ * Stephen Chu <github@stephenchu.com>
108
+ * Swanand Pagnis <swanandp@users.noreply.github.com>
109
+ * Terry Howe <terrylhowe@gmail.com>
110
+ * Thom Mahoney & Josh Lane <tmahoney@engineyard.com>
111
+ * Thom May <thom@digital-science.com>
112
+ * Tim Carey-Smith <tim@spork.in>
113
+ * Todd Lunter <tlunter@gmail.com>
114
+ * Tom Maher <tmaher@heroku.com>
115
+ * Tom Maher <tmaher@tursom.org>
116
+ * Trym Skaar <trym@tryms.no>
117
+ * Tuomas Silen <tuomas.silen@nodeta.fi>
118
+ * Victor Costan <costan@gmail.com>
119
+ * Viven <vivien.schilis@gmail.com>
120
+ * Wesley Beary <geemus+github@gmail.com>
121
+ * Wesley Beary <geemus@engineyard.com>
122
+ * Wesley Beary <geemus@gmail.com>
123
+ * Wesley Beary <wbeary@engineyard.com>
124
+ * Wesley Beary <wesley@heroku.com>
125
+ * Zach Anker <zanker@squareup.com>
126
+ * chrisrhoden <carhoden@gmail.com>
127
+ * dickeyxxx <jeff@dickeyxxx.com>
128
+ * geemus (Wesley Beary) <wbeary@engineyard.com>
129
+ * geemus <geemus@gmail.com>
130
+ * ggoodale <ggoodale@gmail.com>
131
+ * marios <marios@redhat.com>
132
+ * mkb <mkb@black-ice.org>
133
+ * phiggins <pete@peterhiggins.org>
134
+ * rin_ne <rinrin.ne@gmail.com>
135
+ * rinrinne <rinrin.ne@gmail.com>
136
+ * rkyrychuk <ruslan.kyrychuk@gmail.com>
137
+ * sshaw <skye.shaw@gmail.com>
138
+ * starbelly <starbelly@pobox.com>
139
+ * twrodriguez <tw.rodriguez@gmail.com>
140
+ * zimbatm <zimbatm@zimbatm.com>
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2009-2019 [CONTRIBUTORS.md](https://github.com/excon/excon/blob/master/CONTRIBUTORS.md)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,492 @@
1
+ # excon
2
+
3
+ Usable, fast, simple Ruby HTTP 1.1
4
+
5
+ Excon was designed to be simple, fast and performant. It works great as a general HTTP(s) client and is particularly well suited to usage in API clients.
6
+
7
+ [![Build Status](https://travis-ci.org/excon/excon.svg?branch=master)](https://travis-ci.org/excon/excon)
8
+ [![Gem Version](https://badge.fury.io/rb/excon.svg)](https://badge.fury.io/rb/excon)
9
+
10
+ * [Getting Started](#getting-started)
11
+ * [Options](#options)
12
+ * [Chunked Requests](#chunked-requests)
13
+ * [Pipelining Requests](#pipelining-requests)
14
+ * [Streaming Responses](#streaming-responses)
15
+ * [Proxy Support](#proxy-support)
16
+ * [Reusable ports](#reusable-ports)
17
+ * [Unix Socket Support](#unix-socket-support)
18
+ * [Stubs](#stubs)
19
+ * [Instrumentation](#instrumentation)
20
+ * [HTTPS client certificate](#https-client-certificate)
21
+ * [HTTPS/SSL Issues](#httpsssl-issues)
22
+ * [Getting Help](#getting-help)
23
+ * [Contributing](#contributing)
24
+ * [Plugins and Middlewares](#plugins-and-middlewares)
25
+ * [License](#license)
26
+
27
+ ## Getting Started
28
+
29
+ Install the gem.
30
+
31
+ ```
32
+ $ sudo gem install excon
33
+ ```
34
+
35
+ Require with rubygems.
36
+
37
+ ```ruby
38
+ require 'rubygems'
39
+ require 'excon'
40
+ ```
41
+
42
+ The easiest way to get started is by using one-off requests. Supported one-off request methods are `connect`, `delete`, `get`, `head`, `options`, `post`, `put`, and `trace`. Requests return a response object which has `body`, `headers`, `remote_ip` and `status` attributes.
43
+
44
+ ```ruby
45
+ response = Excon.get('http://geemus.com')
46
+ response.body # => "..."
47
+ response.headers # => {...}
48
+ response.remote_ip # => "..."
49
+ response.status # => 200
50
+ ```
51
+
52
+ For API clients or other ongoing usage, reuse a connection across multiple requests to share options and improve performance.
53
+
54
+ ```ruby
55
+ connection = Excon.new('http://geemus.com')
56
+ get_response = connection.get
57
+ post_response = connection.post(:path => '/foo')
58
+ delete_response = connection.delete(:path => '/bar')
59
+ ```
60
+
61
+ By default, each connection is non-persistent. This means that each request made against a connection behaves like a
62
+ one-off request. Each request will establish a socket connection to the server, then close the socket once the request
63
+ is complete.
64
+
65
+ To use a persistent connection, use the `:persistent` option:
66
+
67
+ ```ruby
68
+ connection = Excon.new('http://geemus.com', :persistent => true)
69
+ ```
70
+
71
+ The initial request will establish a socket connection to the server and leave the socket open. Subsequent requests
72
+ will reuse that socket. You may call `Connection#reset` at any time to close the underlying socket, and the next request
73
+ will establish a new socket connection.
74
+
75
+ You may also control persistence on a per-request basis by setting the `:persistent` option for each request.
76
+
77
+ ```ruby
78
+ connection = Excon.new('http://geemus.com') # non-persistent by default
79
+ connection.get # socket established, then closed
80
+ connection.get(:persistent => true) # socket established, left open
81
+ connection.get(:persistent => true) # socket reused
82
+ connection.get # socket reused, then closed
83
+
84
+ connection = Excon.new('http://geemus.com', :persistent => true)
85
+ connection.get # socket established, left open
86
+ connection.get(:persistent => false) # socket reused, then closed
87
+ connection.get(:persistent => false) # socket established, then closed
88
+ connection.get # socket established, left open
89
+ connection.get # socket reused
90
+ ```
91
+
92
+ Note that sending a request with `:persistent => false` to close the socket will also send `Connection: close` to inform
93
+ the server the connection is no longer needed. `Connection#reset` will simply close our end of the socket.
94
+
95
+
96
+ ## Options
97
+
98
+ Both one-off and persistent connections support many other options. The final options for a request are built up by starting with `Excon.defaults`, then merging in options from the connection and finally merging in any request options. In this way you have plenty of options on where and how to set options and can easily setup connections or defaults to match common options for a particular endpoint.
99
+
100
+ Here are a few common examples:
101
+
102
+ ```ruby
103
+ # Output debug info, similar to ENV['EXCON_DEBUG']
104
+ connection = Excon.new('http://geemus.com/', :debug_request => true, :debug_response => true)
105
+
106
+ # Custom headers
107
+ Excon.get('http://geemus.com', :headers => {'Authorization' => 'Basic 0123456789ABCDEF'})
108
+ connection.get(:headers => {'Authorization' => 'Basic 0123456789ABCDEF'})
109
+
110
+ # Changing query strings
111
+ connection = Excon.new('http://geemus.com/')
112
+ connection.get(:query => {:foo => 'bar'})
113
+
114
+ # POST body encoded with application/x-www-form-urlencoded
115
+ Excon.post('http://geemus.com',
116
+ :body => 'language=ruby&class=fog',
117
+ :headers => { "Content-Type" => "application/x-www-form-urlencoded" })
118
+
119
+ # same again, but using URI to build the body of parameters
120
+ Excon.post('http://geemus.com',
121
+ :body => URI.encode_www_form(:language => 'ruby', :class => 'fog'),
122
+ :headers => { "Content-Type" => "application/x-www-form-urlencoded" })
123
+
124
+ # request takes a method option, accepting either a symbol or string
125
+ connection.request(:method => :get)
126
+ connection.request(:method => 'GET')
127
+
128
+ # expect one or more status codes, or raise an error
129
+ connection.request(:expects => [200, 201], :method => :get)
130
+
131
+ # this request can be repeated safely, so retry on errors up to 4 times
132
+ connection.request(:idempotent => true)
133
+
134
+ # this request can be repeated safely, retry up to 6 times
135
+ connection.request(:idempotent => true, :retry_limit => 6)
136
+
137
+ # this request can be repeated safely, retry up to 6 times and sleep 5 seconds
138
+ # in between each retry
139
+ connection.request(:idempotent => true, :retry_limit => 6, :retry_interval => 5)
140
+
141
+ # set longer read_timeout (default is 60 seconds)
142
+ connection.request(:read_timeout => 360)
143
+
144
+ # set longer write_timeout (default is 60 seconds)
145
+ connection.request(:write_timeout => 360)
146
+
147
+ # Enable the socket option TCP_NODELAY on the underlying socket.
148
+ #
149
+ # This can improve response time when sending frequent short
150
+ # requests in time-sensitive scenarios.
151
+ #
152
+ connection = Excon.new('http://geemus.com/', :tcp_nodelay => true)
153
+
154
+ # set longer connect_timeout (default is 60 seconds)
155
+ connection = Excon.new('http://geemus.com/', :connect_timeout => 360)
156
+
157
+ # opt-out of nonblocking operations for performance and/or as a workaround
158
+ connection = Excon.new('http://geemus.com/', :nonblock => false)
159
+
160
+ # use basic authentication by supplying credentials in the URL or as parameters
161
+ connection = Excon.new('http://username:password@secure.geemus.com')
162
+ # Note: username & password is unescaped for request, so you should provide escaped values here
163
+ # i. e. instead of `password: 'pa%%word'` you should use `password: Excon::Utils.escape_uri('pa%%word')`,
164
+ # which return `pa%25%25word`
165
+ connection = Excon.new('http://secure.geemus.com',
166
+ :user => 'username', :password => 'password')
167
+
168
+ # use custom uri parser
169
+ require 'addressable/uri'
170
+ connection = Excon.new('http://geemus.com/', uri_parser: Addressable::URI)
171
+ ```
172
+
173
+ Compared to web browsers and other http client libraries, e.g. curl, Excon is a bit more low-level and doesn't assume much by default. If you are seeing different results compared to other clients, the following options might help:
174
+
175
+ ```ruby
176
+ # opt-in to omitting port from http:80 and https:443
177
+ connection = Excon.new('http://geemus.com/', :omit_default_port => true)
178
+
179
+ # accept gzip encoding
180
+ connection = Excon.new('http://geemus.com/', :headers => { "Accept-Encoding" => "gzip" })
181
+
182
+ # turn off peer verification (less secure)
183
+ Excon.defaults[:ssl_verify_peer] = false
184
+ connection = Excon.new('https://...')
185
+ ```
186
+
187
+ ## Chunked Requests
188
+
189
+ You can make `Transfer-Encoding: chunked` requests by passing a block that will deliver chunks, delivering an empty chunk to signal completion.
190
+
191
+ ```ruby
192
+ file = File.open('data')
193
+
194
+ chunker = lambda do
195
+ # Excon.defaults[:chunk_size] defaults to 1048576, ie 1MB
196
+ # to_s will convert the nil received after everything is read to the final empty chunk
197
+ file.read(Excon.defaults[:chunk_size]).to_s
198
+ end
199
+
200
+ Excon.post('http://geemus.com', :request_block => chunker)
201
+
202
+ file.close
203
+ ```
204
+
205
+ Iterating in this way allows you to have more granular control over writes and to write things where you can not calculate the overall length up front.
206
+
207
+ ## Pipelining Requests
208
+
209
+ You can make use of HTTP pipelining to improve performance. Instead of the normal request/response cycle, pipelining sends a series of requests and then receives a series of responses. You can take advantage of this using the `requests` method, which takes an array of params where each is a hash like request would receive and returns an array of responses.
210
+
211
+ ```ruby
212
+ connection = Excon.new('http://geemus.com/')
213
+ connection.requests([{:method => :get}, {:method => :get}])
214
+ ```
215
+
216
+ By default, each call to `requests` will use a separate persistent socket connection. To make multiple `requests` calls
217
+ using a single persistent connection, set `:persistent => true` when establishing the connection.
218
+
219
+ For large numbers of simultaneous requests please consider using the `batch_requests` method. This will automatically slice up the requests into batches based on the file descriptor limit of your operating system. The results are the same as the `requests` method, but using this method can help prevent timeout errors.
220
+
221
+ ```ruby
222
+ large_array_of_requests = [{:method => :get, :path => 'some_path'}, { ... }] # Hundreds of items
223
+ connection.batch_requests(large_array_of_requests)
224
+ ```
225
+
226
+ ## Streaming Responses
227
+
228
+ You can stream responses by passing a block that will receive each chunk.
229
+
230
+ ```ruby
231
+ streamer = lambda do |chunk, remaining_bytes, total_bytes|
232
+ puts chunk
233
+ puts "Remaining: #{remaining_bytes.to_f / total_bytes}%"
234
+ end
235
+
236
+ Excon.get('http://geemus.com', :response_block => streamer)
237
+ ```
238
+
239
+ Iterating over each chunk will allow you to do work on the response incrementally without buffering the entire response first. For very large responses this can lead to significant memory savings.
240
+
241
+ ## Proxy Support
242
+
243
+ You can specify a proxy URL that Excon will use with both HTTP and HTTPS connections:
244
+
245
+ ```ruby
246
+ connection = Excon.new('http://geemus.com', :proxy => 'http://my.proxy:3128')
247
+ connection.request(:method => 'GET')
248
+
249
+ Excon.get('http://geemus.com', :proxy => 'http://my.proxy:3128')
250
+ ```
251
+
252
+ The proxy URL must be fully specified, including scheme (e.g. "http://") and port.
253
+
254
+ Proxy support must be set when establishing a connection object and cannot be overridden in individual requests.
255
+
256
+ NOTE: Excon will use `HTTP_PROXY` and `HTTPS_PROXY` environment variables. If set they will take precedence over any :proxy option specified in code. If "HTTPS_PROXY" is not set, "HTTP_PROXY" will be used for both HTTP and HTTPS connections. To disable this behavior, set the `NO_PROXY` environment variable and other environment variable proxy settings will be disregarded.
257
+
258
+ ## Reusable ports
259
+
260
+ For advanced cases where you'd like to reuse the local port assigned to the excon socket in another socket, use the `:reuseaddr` option.
261
+
262
+ ```ruby
263
+ connection = Excon.new('http://geemus.com', :reuseaddr => true)
264
+ connection.get
265
+
266
+ s = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
267
+ s.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, true)
268
+ if defined?(Socket::SO_REUSEPORT)
269
+ s.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEPORT, true)
270
+ end
271
+
272
+ s.bind(Socket.pack_sockaddr_in(connection.local_port, connection.local_address))
273
+ s.connect(Socket.pack_sockaddr_in(80, '1.2.3.4'))
274
+ puts s.read
275
+ s.close
276
+ ```
277
+
278
+ ## Unix Socket Support
279
+
280
+ The Unix socket will work for one-off requests and multiuse connections. A Unix socket path must be provided separate from the resource path.
281
+
282
+ ```ruby
283
+ connection = Excon.new('unix:///', :socket => '/tmp/unicorn.sock')
284
+ connection.request(:method => :get, :path => '/ping')
285
+
286
+ Excon.get('unix:///ping', :socket => '/tmp/unicorn.sock')
287
+ ```
288
+
289
+ NOTE: Proxies will be ignored when using a Unix socket, since a Unix socket has to be local.
290
+
291
+ ## Stubs
292
+
293
+ You can stub out requests for testing purposes by enabling mock mode on a connection.
294
+
295
+ ```ruby
296
+ connection = Excon.new('http://example.com', :mock => true)
297
+ ```
298
+
299
+ Or by enabling mock mode for a request.
300
+
301
+ ```ruby
302
+ connection.request(:method => :get, :path => 'example', :mock => true)
303
+ ```
304
+
305
+ Add stubs by providing the request attributes to match and response attributes to return. Response params can be specified as either a hash or block which will yield with the request params.
306
+
307
+ ```ruby
308
+ Excon.stub({}, {:body => 'body', :status => 200})
309
+ Excon.stub({}, lambda {|request_params| {:body => request_params[:body], :status => 200}})
310
+ ```
311
+
312
+ Omitted attributes are assumed to match, so this stub will match *any* request and return an Excon::Response with a body of 'body' and status of 200. You can add whatever stubs you might like this way and they will be checked against in the order they were added, if none of them match then excon will raise an `Excon::Errors::StubNotFound` error to let you know.
313
+
314
+ If you want to allow unstubbed requests without raising `StubNotFound`, set the `allow_unstubbed_requests` option either globally or per request.
315
+
316
+ ```ruby
317
+ connection = Excon.new('http://example.com', :mock => true, :allow_unstubbed_requests => true)
318
+ ```
319
+
320
+ To remove a previously defined stub, or all stubs:
321
+
322
+ ```ruby
323
+ Excon.unstub({}) # remove first/oldest stub matching {}
324
+ Excon.stubs.clear # remove all stubs
325
+ ```
326
+
327
+ For example, if using RSpec for your test suite you can clear stubs after running each example:
328
+
329
+ ```ruby
330
+ config.after(:each) do
331
+ Excon.stubs.clear
332
+ end
333
+ ```
334
+
335
+ You can also modify `Excon.defaults` to set a stub for all requests, so for a test suite you might do this:
336
+
337
+ ```ruby
338
+ # Mock by default and stub any request as success
339
+ config.before(:all) do
340
+ Excon.defaults[:mock] = true
341
+ Excon.stub({}, {:body => 'Fallback', :status => 200})
342
+ # Add your own stubs here or in specific tests...
343
+ end
344
+ ```
345
+
346
+ By default stubs are shared globally, to make stubs unique to each thread, use `Excon.defaults[:stubs] = :local`.
347
+
348
+ ## Instrumentation
349
+
350
+ Excon calls can be timed using the [ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) API.
351
+
352
+ ```ruby
353
+ connection = Excon.new(
354
+ 'http://geemus.com',
355
+ :instrumentor => ActiveSupport::Notifications
356
+ )
357
+ ```
358
+
359
+ Excon will then instrument each request, retry, and error. The corresponding events are named `excon.request`, `excon.retry`, and `excon.error` respectively.
360
+
361
+ ```ruby
362
+ ActiveSupport::Notifications.subscribe(/excon/) do |*args|
363
+ puts "Excon did stuff!"
364
+ end
365
+ ```
366
+
367
+ If you prefer to label each event with a namespace other than "excon", you may specify
368
+ an alternate name in the constructor:
369
+
370
+ ```ruby
371
+ connection = Excon.new(
372
+ 'http://geemus.com',
373
+ :instrumentor => ActiveSupport::Notifications,
374
+ :instrumentor_name => 'my_app'
375
+ )
376
+ ```
377
+
378
+ Note: Excon's ActiveSupport::Notifications implementation has the following event format: `<namespace>.<event>` which is the opposite of the Rails' implementation.
379
+
380
+ ActiveSupport provides a [subscriber](http://api.rubyonrails.org/classes/ActiveSupport/Subscriber.html) interface which lets you attach a subscriber to a namespace. Due to the incompability above, you won't be able to attach a subscriber to the "excon" namespace out of the box.
381
+
382
+ If you want this functionality, you can use a simple adapter such as this one:
383
+
384
+ ```ruby
385
+ class ExconToRailsInstrumentor
386
+ def self.instrument(name, datum, &block)
387
+ namespace, *event = name.split(".")
388
+ rails_name = [event, namespace].flatten.join(".")
389
+ ActiveSupport::Notifications.instrument(rails_name, datum, &block)
390
+ end
391
+ end
392
+ ```
393
+
394
+ If you don't want to add ActiveSupport to your application, simply define a class which implements the same `#instrument` method like so:
395
+
396
+ ```ruby
397
+ class SimpleInstrumentor
398
+ class << self
399
+ attr_accessor :events
400
+
401
+ def instrument(name, params = {}, &block)
402
+ puts "#{name} just happened."
403
+ yield if block_given?
404
+ end
405
+ end
406
+ end
407
+ ```
408
+
409
+ The #instrument method will be called for each HTTP request, response, retry, and error.
410
+
411
+ For debugging purposes you can also use `Excon::StandardInstrumentor` to output all events to stderr. This can also be specified by setting the `EXCON_DEBUG` ENV var.
412
+
413
+ See [the documentation for ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) for more detail on using the subscription interface. See excon's [instrumentation_test.rb](https://github.com/excon/excon/blob/master/tests/middlewares/instrumentation_tests.rb) for more examples of instrumenting excon.
414
+
415
+ ## HTTPS client certificate
416
+
417
+ You can supply a client side certificate if the server requires it for authentication:
418
+
419
+ ```ruby
420
+ connection = Excon.new('https://example.com',
421
+ client_cert: 'mycert.pem',
422
+ client_key: 'mycert.key',
423
+ client_key_pass: 'my pass phrase')
424
+ ```
425
+
426
+ `client_key_pass` is optional.
427
+
428
+ If you already have loaded the certificate and key into memory, then pass it through like:
429
+
430
+ ```ruby
431
+ client_cert_data = File.load 'mycert.pem'
432
+ client_key_data = File.load 'mycert.key'
433
+
434
+ connection = Excon.new('https://example.com',
435
+ client_cert_data: client_cert_data,
436
+ client_key_data: client_key_data)
437
+ ```
438
+
439
+ This can be useful if your program has already loaded the assets through
440
+ another mechanism (E.g. a remote API call to a secure K:V system like Vault).
441
+
442
+ ## HTTPS/SSL Issues
443
+
444
+ By default excon will try to verify peer certificates when using HTTPS. Unfortunately on some operating systems the defaults will not work. This will likely manifest itself as something like `Excon::Errors::CertificateError: SSL_connect returned=1 ...`
445
+
446
+ If you have the misfortune of running into this problem you have a couple options. If you have certificates but they aren't being auto-discovered, you can specify the path to your certificates:
447
+
448
+ ```ruby
449
+ Excon.defaults[:ssl_ca_path] = '/path/to/certs'
450
+ ```
451
+
452
+ Failing that, you can turn off peer verification (less secure):
453
+
454
+ ```ruby
455
+ Excon.defaults[:ssl_verify_peer] = false
456
+ ```
457
+
458
+ Either of these should allow you to work around the socket error and continue with your work.
459
+
460
+ ## Getting Help
461
+
462
+ * Ask specific questions on [Stack Overflow](http://stackoverflow.com/questions/tagged/excon).
463
+ * Report bugs and discuss potential features in [Github issues](https://github.com/excon/excon/issues).
464
+
465
+ ## Contributing
466
+
467
+ Please refer to [CONTRIBUTING.md](https://github.com/excon/excon/blob/master/CONTRIBUTING.md).
468
+
469
+ # Plugins and Middlewares
470
+
471
+ Using Excon's [Middleware system][middleware], you can easily extend Excon's
472
+ functionality with your own. The following plugins extend Excon in their own
473
+ way:
474
+
475
+ * [excon-addressable](https://github.com/JeanMertz/excon-addressable)
476
+
477
+ Set [addressable](https://github.com/sporkmonger/addressable) as the default
478
+ URI parser, and add support for [URI templating][templating].
479
+
480
+ * [excon-hypermedia](https://github.com/JeanMertz/excon-hypermedia)
481
+
482
+ Teaches Excon to talk with [HyperMedia APIs][hypermedia]. Allowing you to use
483
+ all of Excon's functionality, while traversing APIs in an easy and
484
+ self-discovering way.
485
+
486
+ ## License
487
+
488
+ Please refer to [LICENSE.md](https://github.com/excon/excon/blob/master/LICENSE.md).
489
+
490
+ [middleware]: lib/excon/middlewares/base.rb
491
+ [hypermedia]: https://en.wikipedia.org/wiki/HATEOAS
492
+ [templating]: https://www.rfc-editor.org/rfc/rfc6570.txt