acfs 1.7.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +144 -116
  3. data/README.md +19 -24
  4. data/acfs.gemspec +7 -10
  5. data/lib/acfs/collections/paginatable.rb +11 -11
  6. data/lib/acfs/configuration.rb +1 -1
  7. data/lib/acfs/errors.rb +6 -6
  8. data/lib/acfs/global.rb +2 -2
  9. data/lib/acfs/location.rb +1 -1
  10. data/lib/acfs/resource/attributes/uuid.rb +1 -1
  11. data/lib/acfs/resource/attributes.rb +1 -1
  12. data/lib/acfs/resource/dirty.rb +1 -1
  13. data/lib/acfs/resource/operational.rb +4 -4
  14. data/lib/acfs/resource/query_methods.rb +3 -3
  15. data/lib/acfs/response/status.rb +1 -1
  16. data/lib/acfs/service/middleware.rb +2 -2
  17. data/lib/acfs/singleton_resource.rb +2 -2
  18. data/lib/acfs/stub.rb +1 -1
  19. data/lib/acfs/version.rb +2 -2
  20. data/lib/acfs/yard.rb +1 -0
  21. data/spec/acfs/adapter/typhoeus_spec.rb +3 -3
  22. data/spec/acfs/configuration_spec.rb +1 -1
  23. data/spec/acfs/global_spec.rb +5 -5
  24. data/spec/acfs/location_spec.rb +1 -1
  25. data/spec/acfs/middleware/json_spec.rb +1 -1
  26. data/spec/acfs/middleware/message_pack_spec.rb +1 -1
  27. data/spec/acfs/operation_spec.rb +1 -1
  28. data/spec/acfs/resource/attributes/boolean_spec.rb +31 -31
  29. data/spec/acfs/resource/attributes/date_time_spec.rb +9 -9
  30. data/spec/acfs/resource/attributes/dict_spec.rb +10 -10
  31. data/spec/acfs/resource/attributes/float_spec.rb +11 -11
  32. data/spec/acfs/resource/attributes/integer_spec.rb +6 -6
  33. data/spec/acfs/resource/attributes/list_spec.rb +1 -1
  34. data/spec/acfs/resource/attributes/uuid_spec.rb +8 -8
  35. data/spec/acfs/resource/attributes_spec.rb +8 -8
  36. data/spec/acfs/resource/dirty_spec.rb +1 -1
  37. data/spec/acfs/resource/persistence_spec.rb +7 -7
  38. data/spec/acfs/resource/query_methods_spec.rb +1 -1
  39. data/spec/acfs/runner_spec.rb +12 -12
  40. data/spec/acfs/stub_spec.rb +13 -18
  41. data/spec/acfs_spec.rb +4 -4
  42. data/spec/spec_helper.rb +9 -5
  43. data/spec/support/hash.rb +1 -1
  44. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/LICENSE +21 -0
  45. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/README.md +23 -0
  46. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/rubocop-config.gemspec +31 -0
  47. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/CHANGELOG.md +205 -0
  48. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/MIT-LICENSE +21 -0
  49. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/README.rdoc +57 -0
  50. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/CHANGELOG.md +67 -0
  51. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/MIT-LICENSE +21 -0
  52. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/README.rdoc +40 -0
  53. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/CHANGELOG.md +110 -0
  54. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/MIT-LICENSE +21 -0
  55. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/README.rdoc +266 -0
  56. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/CHANGELOG.md +157 -0
  57. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/MIT-LICENSE +20 -0
  58. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/README.rdoc +40 -0
  59. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +301 -0
  60. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +202 -0
  61. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +121 -0
  62. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/addressable.gemspec +28 -0
  63. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/MIT-LICENSE +21 -0
  64. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/README.md +243 -0
  65. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/appraisal.gemspec +29 -0
  66. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt +22 -0
  67. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md +48 -0
  68. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +138 -0
  69. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/benchmark.gemspec +32 -0
  70. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE +56 -0
  71. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/bigdecimal.gemspec +57 -0
  72. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/MIT-LICENSE +20 -0
  73. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/README.md +258 -0
  74. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/builder.gemspec +49 -0
  75. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +603 -0
  76. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +21 -0
  77. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +407 -0
  78. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/LICENSE +20 -0
  79. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/README.md +167 -0
  80. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/connection_pool.gemspec +24 -0
  81. data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/LICENSE +20 -0
  82. data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/README.md +43 -0
  83. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/LICENSE +18 -0
  84. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/README.md +192 -0
  85. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/crass.gemspec +31 -0
  86. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/License.md +41 -0
  87. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/README.rdoc +84 -0
  88. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt +22 -0
  89. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/drb.gemspec +41 -0
  90. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/CHANGELOG +111 -0
  91. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/MIT-LICENSE +21 -0
  92. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/README.rdoc +151 -0
  93. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  94. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE +20 -0
  95. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md +118 -0
  96. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/ethon.gemspec +26 -0
  97. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/CHANGELOG.md +465 -0
  98. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE +24 -0
  99. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE.SPECS +22 -0
  100. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/README.md +137 -0
  101. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/ffi.gemspec +42 -0
  102. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/LICENSE +19 -0
  103. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/README.md +298 -0
  104. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/changelog.md +119 -0
  105. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/hashdiff.gemspec +39 -0
  106. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/MIT-LICENSE +20 -0
  107. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/README.md +127 -0
  108. data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/README.md +195 -0
  109. data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/json.gemspec +64 -0
  110. data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/README.md +104 -0
  111. data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/logger.gemspec +28 -0
  112. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/CHANGELOG.md +591 -0
  113. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/MIT-LICENSE.txt +23 -0
  114. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/README.md +410 -0
  115. data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.4/README.rdoc +835 -0
  116. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +275 -0
  117. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +20 -0
  118. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +121 -0
  119. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE-DEPENDENCIES.md +2224 -0
  120. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE.md +9 -0
  121. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/README.md +293 -0
  122. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/CHANGELOG.md +491 -0
  123. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/LICENSE.txt +22 -0
  124. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/README.md +222 -0
  125. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
  126. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
  127. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
  128. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/CHANGELOG.md +998 -0
  129. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/MIT-LICENSE +20 -0
  130. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/README.md +328 -0
  131. data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/license.md +72 -0
  132. data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/readme.md +47 -0
  133. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/MIT-LICENSE.txt +20 -0
  134. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/README.md +139 -0
  135. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/MIT-LICENSE +23 -0
  136. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/README.md +91 -0
  137. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/CHANGELOG.md +255 -0
  138. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/MIT-LICENSE +23 -0
  139. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/README.md +267 -0
  140. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
  141. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc +155 -0
  142. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/rake.gemspec +101 -0
  143. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +21 -0
  144. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +107 -0
  145. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
  146. data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/LICENSE.txt +22 -0
  147. data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/README.md +57 -0
  148. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/LICENSE.md +27 -0
  149. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/README.md +47 -0
  150. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/Changelog.md +68 -0
  151. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/LICENSE.txt +27 -0
  152. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/README.md +76 -0
  153. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/rspec-collection_matchers.gemspec +33 -0
  154. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/Changelog.md +2415 -0
  155. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/LICENSE.md +26 -0
  156. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/README.md +389 -0
  157. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/Changelog.md +1352 -0
  158. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/LICENSE.md +25 -0
  159. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/README.md +326 -0
  160. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/Changelog.md +73 -0
  161. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/LICENSE.txt +27 -0
  162. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/README.md +104 -0
  163. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/rspec-its.gemspec +31 -0
  164. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/Changelog.md +1299 -0
  165. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/LICENSE.md +25 -0
  166. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/README.md +465 -0
  167. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/Changelog.md +408 -0
  168. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/LICENSE.md +23 -0
  169. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/README.md +40 -0
  170. data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +72 -0
  171. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/LICENSE.md +20 -0
  172. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/README.md +45 -0
  173. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/thor.gemspec +33 -0
  174. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md +410 -0
  175. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE +22 -0
  176. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md +588 -0
  177. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/typhoeus.gemspec +25 -0
  178. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +19 -0
  179. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +406 -0
  180. data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.2/README.md +55 -0
  181. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/LICENSE +20 -0
  182. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/README.md +42 -0
  183. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/CHANGELOG.md +2104 -0
  184. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/LICENSE +20 -0
  185. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/README.md +1222 -0
  186. data/vendor/bundle/ruby/3.4.0/specifications/actionpack-8.0.1.gemspec +36 -0
  187. data/vendor/bundle/ruby/3.4.0/specifications/actionview-8.0.1.gemspec +33 -0
  188. data/vendor/bundle/ruby/3.4.0/specifications/activemodel-8.0.1.gemspec +26 -0
  189. data/vendor/bundle/ruby/3.4.0/specifications/activesupport-8.0.1.gemspec +38 -0
  190. data/vendor/bundle/ruby/3.4.0/specifications/addressable-2.8.7.gemspec +30 -0
  191. data/vendor/bundle/ruby/3.4.0/specifications/appraisal-2.5.0.gemspec +31 -0
  192. data/vendor/bundle/ruby/3.4.0/specifications/base64-0.2.0.gemspec +23 -0
  193. data/vendor/bundle/ruby/3.4.0/specifications/benchmark-0.4.0.gemspec +23 -0
  194. data/vendor/bundle/ruby/3.4.0/specifications/bigdecimal-3.1.9.gemspec +25 -0
  195. data/vendor/bundle/ruby/3.4.0/specifications/builder-3.3.0.gemspec +22 -0
  196. data/vendor/bundle/ruby/3.4.0/specifications/concurrent-ruby-1.3.5.gemspec +24 -0
  197. data/vendor/bundle/ruby/3.4.0/specifications/connection_pool-2.5.0.gemspec +28 -0
  198. data/vendor/bundle/ruby/3.4.0/specifications/crack-1.0.0.gemspec +27 -0
  199. data/vendor/bundle/ruby/3.4.0/specifications/crass-1.0.6.gemspec +27 -0
  200. data/vendor/bundle/ruby/3.4.0/specifications/diff-lcs-1.5.1.gemspec +37 -0
  201. data/vendor/bundle/ruby/3.4.0/specifications/drb-2.2.1.gemspec +22 -0
  202. data/vendor/bundle/ruby/3.4.0/specifications/erubi-1.13.1.gemspec +29 -0
  203. data/vendor/bundle/ruby/3.4.0/specifications/ethon-0.16.0.gemspec +24 -0
  204. data/vendor/bundle/ruby/3.4.0/specifications/ffi-1.17.1-x86_64-linux-gnu.gemspec +31 -0
  205. data/vendor/bundle/ruby/3.4.0/specifications/hashdiff-1.1.2.gemspec +30 -0
  206. data/vendor/bundle/ruby/3.4.0/specifications/i18n-1.14.6.gemspec +27 -0
  207. data/vendor/bundle/ruby/3.4.0/specifications/json-2.9.1.gemspec +0 -0
  208. data/vendor/bundle/ruby/3.4.0/specifications/logger-1.6.5.gemspec +22 -0
  209. data/vendor/bundle/ruby/3.4.0/specifications/loofah-2.24.0.gemspec +27 -0
  210. data/vendor/bundle/ruby/3.4.0/specifications/minitest-5.25.4.gemspec +31 -0
  211. data/vendor/bundle/ruby/3.4.0/specifications/multi_json-1.15.0.gemspec +26 -0
  212. data/vendor/bundle/ruby/3.4.0/specifications/nokogiri-1.18.1-x86_64-linux-gnu.gemspec +31 -0
  213. data/vendor/bundle/ruby/3.4.0/specifications/public_suffix-6.0.1.gemspec +24 -0
  214. data/vendor/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
  215. data/vendor/bundle/ruby/3.4.0/specifications/rack-3.1.8.gemspec +31 -0
  216. data/vendor/bundle/ruby/3.4.0/specifications/rack-session-2.1.0.gemspec +30 -0
  217. data/vendor/bundle/ruby/3.4.0/specifications/rack-test-2.2.0.gemspec +29 -0
  218. data/vendor/bundle/ruby/3.4.0/specifications/rails-dom-testing-2.2.0.gemspec +28 -0
  219. data/vendor/bundle/ruby/3.4.0/specifications/rails-html-sanitizer-1.6.2.gemspec +27 -0
  220. data/vendor/bundle/ruby/3.4.0/specifications/rake-13.2.1.gemspec +26 -0
  221. data/vendor/bundle/ruby/3.4.0/specifications/rake-release-1.3.0.gemspec +26 -0
  222. data/vendor/bundle/ruby/3.4.0/specifications/rexml-3.4.0.gemspec +25 -0
  223. data/vendor/bundle/ruby/3.4.0/specifications/rspec-3.13.0.gemspec +31 -0
  224. data/vendor/bundle/ruby/3.4.0/specifications/rspec-collection_matchers-1.2.1.gemspec +27 -0
  225. data/vendor/bundle/ruby/3.4.0/specifications/rspec-core-3.13.2.gemspec +39 -0
  226. data/vendor/bundle/ruby/3.4.0/specifications/rspec-expectations-3.13.3.gemspec +33 -0
  227. data/vendor/bundle/ruby/3.4.0/specifications/rspec-its-2.0.0.gemspec +27 -0
  228. data/vendor/bundle/ruby/3.4.0/specifications/rspec-mocks-3.13.2.gemspec +33 -0
  229. data/vendor/bundle/ruby/3.4.0/specifications/rspec-support-3.13.2.gemspec +29 -0
  230. data/vendor/bundle/ruby/3.4.0/specifications/securerandom-0.4.1.gemspec +23 -0
  231. data/vendor/bundle/ruby/3.4.0/specifications/thor-1.3.2.gemspec +28 -0
  232. data/vendor/bundle/ruby/3.4.0/specifications/typhoeus-1.4.1.gemspec +24 -0
  233. data/vendor/bundle/ruby/3.4.0/specifications/tzinfo-2.0.6.gemspec +30 -0
  234. data/vendor/bundle/ruby/3.4.0/specifications/uri-1.0.2.gemspec +23 -0
  235. data/vendor/bundle/ruby/3.4.0/specifications/useragent-0.16.11.gemspec +25 -0
  236. data/vendor/bundle/ruby/3.4.0/specifications/webmock-3.24.0.gemspec +45 -0
  237. metadata +204 -67
@@ -0,0 +1,588 @@
1
+ # Typhoeus [![CI](https://github.com/typhoeus/typhoeus/actions/workflows/ci.yml/badge.svg)](https://github.com/typhoeus/typhoeus/actions/workflows/ci.yml) [![Experimental](https://github.com/typhoeus/typhoeus/actions/workflows/experimental.yml/badge.svg)](https://github.com/typhoeus/typhoeus/actions/workflows/experimental.yml) [![Code Climate](https://img.shields.io/codeclimate/maintainability/typhoeus/typhoeus.svg)](https://codeclimate.com/github/typhoeus/typhoeus) [![Gem Version](https://img.shields.io/gem/v/typhoeus.svg)](https://rubygems.org/gems/typhoeus)
2
+
3
+ Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.
4
+
5
+ ## Example
6
+
7
+ A single request:
8
+
9
+ ```ruby
10
+ Typhoeus.get("www.example.com", followlocation: true)
11
+ ```
12
+
13
+ Parallel requests:
14
+
15
+ ```ruby
16
+ hydra = Typhoeus::Hydra.new
17
+ 10.times.map{ hydra.queue(Typhoeus::Request.new("www.example.com", followlocation: true)) }
18
+ hydra.run
19
+ ```
20
+
21
+ ## Installation
22
+ Run:
23
+ ```
24
+ bundle add typhoeus
25
+ ```
26
+
27
+ Or install it yourself as:
28
+
29
+ ```
30
+ gem install typhoeus
31
+ ```
32
+
33
+ ## Project Tracking
34
+
35
+ * [API Documentation](https://rubydoc.info/github/typhoeus/typhoeus/frames/Typhoeus) (GitHub master)
36
+
37
+ ## Usage
38
+
39
+ ### Introduction
40
+
41
+ The primary interface for Typhoeus is comprised of three classes: Request, Response, and Hydra. Request represents an HTTP request object, response represents an HTTP response, and Hydra manages making parallel HTTP connections.
42
+
43
+ ```ruby
44
+ request = Typhoeus::Request.new(
45
+ "www.example.com",
46
+ method: :post,
47
+ body: "this is a request body",
48
+ params: { field1: "a field" },
49
+ headers: { Accept: "text/html" }
50
+ )
51
+ ```
52
+
53
+ We can see from this that the first argument is the url. The second is a set of options.
54
+ The options are all optional. The default for `:method` is `:get`.
55
+
56
+ When you want to send URL parameters, you can use `:params` hash to do so. Please note that in case of you should send a request via `x-www-form-urlencoded` parameters, you need to use `:body` hash instead. `params` are for URL parameters and `:body` is for the request body.
57
+
58
+ #### Sending requests through the proxy
59
+
60
+ Add a proxy url to the list of options:
61
+
62
+ ```ruby
63
+ options = {proxy: 'http://myproxy.org'}
64
+ req = Typhoeus::Request.new(url, options)
65
+ ```
66
+
67
+ If your proxy requires authentication, add it with `proxyuserpwd` option key:
68
+
69
+ ```ruby
70
+ options = {proxy: 'http://proxyurl.com', proxyuserpwd: 'user:password'}
71
+ req = Typhoeus::Request.new(url, options)
72
+ ```
73
+
74
+ Note that `proxyuserpwd` is a colon-separated username and password, in the vein of basic auth `userpwd` option.
75
+
76
+
77
+ You can run the query either on its own or through the hydra:
78
+
79
+ ``` ruby
80
+ request.run
81
+ #=> <Typhoeus::Response ... >
82
+ ```
83
+
84
+ ```ruby
85
+ hydra = Typhoeus::Hydra.hydra
86
+ hydra.queue(request)
87
+ hydra.run
88
+ ```
89
+
90
+ The response object will be set after the request is run.
91
+
92
+ ```ruby
93
+ response = request.response
94
+ response.code
95
+ response.total_time
96
+ response.headers
97
+ response.body
98
+ ```
99
+
100
+ ### Making Quick Requests
101
+
102
+ Typhoeus has some convenience methods for performing single HTTP requests. The arguments are the same as those you pass into the request constructor.
103
+
104
+ ```ruby
105
+ Typhoeus.get("www.example.com")
106
+ Typhoeus.head("www.example.com")
107
+ Typhoeus.put("www.example.com/posts/1", body: "whoo, a body")
108
+ Typhoeus.patch("www.example.com/posts/1", body: "a new body")
109
+ Typhoeus.post("www.example.com/posts", body: { title: "test post", content: "this is my test"})
110
+ Typhoeus.delete("www.example.com/posts/1")
111
+ Typhoeus.options("www.example.com")
112
+ ```
113
+ #### Sending params in the body with PUT
114
+ When using POST the content-type is set automatically to 'application/x-www-form-urlencoded'. That's not the case for any other method like PUT, PATCH, HEAD and so on, irrespective of whether you are using body or not. To get the same result as POST, i.e. a hash in the body coming through as params in the receiver, you need to set the content-type as shown below:
115
+ ```ruby
116
+ Typhoeus.put("www.example.com/posts/1",
117
+ headers: {'Content-Type'=> "application/x-www-form-urlencoded"},
118
+ body: {title:"test post updated title", content: "this is my updated content"}
119
+ )
120
+ ```
121
+
122
+ ### Handling HTTP errors
123
+
124
+ You can query the response object to figure out if you had a successful
125
+ request or not. Here’s some example code that you might use to handle errors.
126
+ The callbacks are executed right after the request is finished, make sure to define
127
+ them before running the request.
128
+
129
+ ```ruby
130
+ request = Typhoeus::Request.new("www.example.com", followlocation: true)
131
+
132
+ request.on_complete do |response|
133
+ if response.success?
134
+ # hell yeah
135
+ elsif response.timed_out?
136
+ # aw hell no
137
+ log("got a time out")
138
+ elsif response.code == 0
139
+ # Could not get an http response, something's wrong.
140
+ log(response.return_message)
141
+ else
142
+ # Received a non-successful http response.
143
+ log("HTTP request failed: " + response.code.to_s)
144
+ end
145
+ end
146
+
147
+ request.run
148
+ ```
149
+
150
+ This also works with serial (blocking) requests in the same fashion. Both
151
+ serial and parallel requests return a Response object.
152
+
153
+ ### Handling file uploads
154
+
155
+ A File object can be passed as a param for a POST request to handle uploading
156
+ files to the server. Typhoeus will upload the file as the original file name
157
+ and use Mime::Types to set the content type.
158
+
159
+ ```ruby
160
+ Typhoeus.post(
161
+ "http://localhost:3000/posts",
162
+ body: {
163
+ title: "test post",
164
+ content: "this is my test",
165
+ file: File.open("thesis.txt","r")
166
+ }
167
+ )
168
+ ```
169
+
170
+ ### Streaming the response body
171
+
172
+ Typhoeus can stream responses. When you're expecting a large response,
173
+ set the `on_body` callback on a request. Typhoeus will yield to the callback
174
+ with chunks of the response, as they're read. When you set an `on_body` callback,
175
+ Typhoeus will not store the complete response.
176
+
177
+ ```ruby
178
+ downloaded_file = File.open 'huge.iso', 'wb'
179
+ request = Typhoeus::Request.new("www.example.com/huge.iso")
180
+ request.on_headers do |response|
181
+ if response.code != 200
182
+ raise "Request failed"
183
+ end
184
+ end
185
+ request.on_body do |chunk|
186
+ downloaded_file.write(chunk)
187
+ end
188
+ request.on_complete do |response|
189
+ downloaded_file.close
190
+ # Note that response.body is ""
191
+ end
192
+ request.run
193
+ ```
194
+
195
+ If you need to interrupt the stream halfway,
196
+ you can return the `:abort` symbol from the `on_body` block, example:
197
+
198
+ ```ruby
199
+ request.on_body do |chunk|
200
+ buffer << chunk
201
+ :abort if buffer.size > 1024 * 1024
202
+ end
203
+ ```
204
+
205
+ This will properly stop the stream internally and avoid any memory leak which
206
+ may happen if you interrupt with something like a `return`, `throw` or `raise`.
207
+
208
+ ### Making Parallel Requests
209
+
210
+ Generally, you should be running requests through hydra. Here is how that looks:
211
+
212
+ ```ruby
213
+ hydra = Typhoeus::Hydra.hydra
214
+
215
+ first_request = Typhoeus::Request.new("http://example.com/posts/1")
216
+ first_request.on_complete do |response|
217
+ third_url = response.body
218
+ third_request = Typhoeus::Request.new(third_url)
219
+ hydra.queue third_request
220
+ end
221
+ second_request = Typhoeus::Request.new("http://example.com/posts/2")
222
+
223
+ hydra.queue first_request
224
+ hydra.queue second_request
225
+ hydra.run # this is a blocking call that returns once all requests are complete
226
+ ```
227
+
228
+ The execution of that code goes something like this. The first and second requests are built and queued. When hydra is run the first and second requests run in parallel. When the first request completes, the third request is then built and queued, in this example based on the result of the first request. The moment it is queued Hydra starts executing it. Meanwhile the second request would continue to run (or it could have completed before the first). Once the third request is done, `hydra.run` returns.
229
+
230
+ How to get an array of response bodies back after executing a queue:
231
+
232
+ ```ruby
233
+ hydra = Typhoeus::Hydra.new
234
+ requests = 10.times.map {
235
+ request = Typhoeus::Request.new("www.example.com", followlocation: true)
236
+ hydra.queue(request)
237
+ request
238
+ }
239
+ hydra.run
240
+
241
+ responses = requests.map { |request|
242
+ request.response.body
243
+ }
244
+ ```
245
+ `hydra.run` is a blocking request. You can also use the `on_complete` callback to handle each request as it completes:
246
+
247
+ ```ruby
248
+ hydra = Typhoeus::Hydra.new
249
+ 10.times do
250
+ request = Typhoeus::Request.new("www.example.com", followlocation: true)
251
+ request.on_complete do |response|
252
+ #do_something_with response
253
+ end
254
+ hydra.queue(request)
255
+ end
256
+ hydra.run
257
+ ```
258
+
259
+ ### Making Parallel Requests with Faraday + Typhoeus
260
+
261
+ ```ruby
262
+ require 'faraday'
263
+
264
+ conn = Faraday.new(:url => 'http://httppage.com') do |builder|
265
+ builder.request :url_encoded
266
+ builder.response :logger
267
+ builder.adapter :typhoeus
268
+ end
269
+
270
+ conn.in_parallel do
271
+ response1 = conn.get('/first')
272
+ response2 = conn.get('/second')
273
+
274
+ # these will return nil here since the
275
+ # requests have not been completed
276
+ response1.body
277
+ response2.body
278
+ end
279
+
280
+ # after it has been completed the response information is fully available
281
+ # response1.status, etc
282
+ response1.body
283
+ response2.body
284
+ ```
285
+
286
+ ### Specifying Max Concurrency
287
+
288
+ Hydra will also handle how many requests you can make in parallel. Things will get flakey if you try to make too many requests at the same time. The built in limit is 200. When more requests than that are queued up, hydra will save them for later and start the requests as others are finished. You can raise or lower the concurrency limit through the Hydra constructor.
289
+
290
+ ```ruby
291
+ Typhoeus::Hydra.new(max_concurrency: 20)
292
+ ```
293
+
294
+ ### Memoization
295
+
296
+ Hydra memoizes requests within a single run call. You have to enable memoization.
297
+ This will result in a single request being issued. However, the on_complete handlers of both will be called.
298
+
299
+ ```ruby
300
+ Typhoeus::Config.memoize = true
301
+
302
+ hydra = Typhoeus::Hydra.new(max_concurrency: 1)
303
+ 2.times do
304
+ hydra.queue Typhoeus::Request.new("www.example.com")
305
+ end
306
+ hydra.run
307
+ ```
308
+
309
+ This will result in two requests.
310
+
311
+ ```ruby
312
+ Typhoeus::Config.memoize = false
313
+
314
+ hydra = Typhoeus::Hydra.new(max_concurrency: 1)
315
+ 2.times do
316
+ hydra.queue Typhoeus::Request.new("www.example.com")
317
+ end
318
+ hydra.run
319
+ ```
320
+
321
+ ### Caching
322
+
323
+ Typhoeus includes built in support for caching. In the following example, if there is a cache hit, the cached object is passed to the on_complete handler of the request object.
324
+
325
+ ```ruby
326
+ class Cache
327
+ def initialize
328
+ @memory = {}
329
+ end
330
+
331
+ def get(request)
332
+ @memory[request]
333
+ end
334
+
335
+ def set(request, response)
336
+ @memory[request] = response
337
+ end
338
+ end
339
+
340
+ Typhoeus::Config.cache = Cache.new
341
+
342
+ Typhoeus.get("www.example.com").cached?
343
+ #=> false
344
+ Typhoeus.get("www.example.com").cached?
345
+ #=> true
346
+ ```
347
+
348
+ For use with [Dalli](https://github.com/mperham/dalli):
349
+
350
+ ```ruby
351
+ require "typhoeus/cache/dalli"
352
+
353
+ dalli = Dalli::Client.new(...)
354
+ Typhoeus::Config.cache = Typhoeus::Cache::Dalli.new(dalli)
355
+ ```
356
+
357
+ For use with Rails:
358
+
359
+ ```ruby
360
+ require "typhoeus/cache/rails"
361
+
362
+ Typhoeus::Config.cache = Typhoeus::Cache::Rails.new
363
+ ```
364
+
365
+ For use with [Redis](https://github.com/redis/redis-rb):
366
+
367
+ ```ruby
368
+ require "typhoeus/cache/redis"
369
+
370
+ redis = Redis.new(...)
371
+ Typhoeus::Config.cache = Typhoeus::Cache::Redis.new(redis)
372
+ ```
373
+
374
+ All three of these adapters take an optional keyword argument `default_ttl`, which sets a default
375
+ TTL on cached responses (in seconds), for requests which do not have a cache TTL set.
376
+
377
+ You may also selectively choose not to cache by setting `cache` to `false` on a request or to use
378
+ a different adapter.
379
+
380
+ ```ruby
381
+ cache = Cache.new
382
+ Typhoeus.get("www.example.com", cache: cache)
383
+ ```
384
+
385
+ ### Direct Stubbing
386
+
387
+ Hydra allows you to stub out specific urls and patterns to avoid hitting
388
+ remote servers while testing.
389
+
390
+ ```ruby
391
+ response = Typhoeus::Response.new(code: 200, body: "{'name' : 'paul'}")
392
+ Typhoeus.stub('www.example.com').and_return(response)
393
+
394
+ Typhoeus.get("www.example.com") == response
395
+ #=> true
396
+ ```
397
+
398
+ The queued request will hit the stub. You can also specify a regex to match urls.
399
+
400
+ ```ruby
401
+ response = Typhoeus::Response.new(code: 200, body: "{'name' : 'paul'}")
402
+ Typhoeus.stub(/example/).and_return(response)
403
+
404
+ Typhoeus.get("www.example.com") == response
405
+ #=> true
406
+ ```
407
+
408
+ You may also specify an array for the stub to return sequentially.
409
+
410
+ ```ruby
411
+ Typhoeus.stub('www.example.com').and_return([response1, response2])
412
+
413
+ Typhoeus.get('www.example.com') == response1 #=> true
414
+ Typhoeus.get('www.example.com') == response2 #=> true
415
+ ```
416
+
417
+ When testing make sure to clear your expectations or the stubs will persist between tests. The following can be included in your spec_helper.rb file to do this automatically.
418
+
419
+ ```ruby
420
+ RSpec.configure do |config|
421
+ config.before :each do
422
+ Typhoeus::Expectation.clear
423
+ end
424
+ end
425
+ ```
426
+
427
+ ### Timeouts
428
+
429
+ No exceptions are raised on HTTP timeouts. You can check whether a request timed out with the following method:
430
+
431
+ ```ruby
432
+ Typhoeus.get("www.example.com", timeout: 1).timed_out?
433
+ ```
434
+
435
+ Timed out responses also have their success? method return false.
436
+
437
+ There are two different timeouts available: [`timeout`](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT)
438
+ and [`connecttimeout`](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCONNECTTIMEOUT).
439
+ `timeout` is the time limit for the entire request in seconds.
440
+ `connecttimeout` is the time limit for just the connection phase, again in seconds.
441
+
442
+ There are two additional more fine grained options `timeout_ms` and
443
+ `connecttimeout_ms`. These options offer millisecond precision but are not always available (for instance on linux if `nosignal` is not set to true).
444
+
445
+ When you pass a floating point `timeout` (or `connecttimeout`) Typhoeus will set `timeout_ms` for you if it has not been defined. The actual timeout values passed to curl will always be rounded up.
446
+
447
+ DNS timeouts of less than one second are not supported unless curl is compiled with an asynchronous resolver.
448
+
449
+ The default `timeout` is 0 (zero) which means curl never times out during transfer. The default `connecttimeout` is 300 seconds. A `connecttimeout` of 0 will also result in the default `connecttimeout` of 300 seconds.
450
+
451
+ ### Following Redirections
452
+
453
+ Use `followlocation: true`, eg:
454
+
455
+ ```ruby
456
+ Typhoeus.get("www.example.com", followlocation: true)
457
+ ```
458
+
459
+ ### Basic Authentication
460
+
461
+ ```ruby
462
+ Typhoeus::Request.get("www.example.com", userpwd: "user:password")
463
+ ```
464
+
465
+ ### Compression
466
+
467
+ ```ruby
468
+ Typhoeus.get("www.example.com", accept_encoding: "gzip")
469
+ ```
470
+
471
+ The above has a different behavior than setting the header directly in the header hash, eg:
472
+ ```ruby
473
+ Typhoeus.get("www.example.com", headers: {"Accept-Encoding" => "gzip"})
474
+ ```
475
+
476
+ Setting the header hash directly will not include the `--compressed` flag in the libcurl command and therefore libcurl will not decompress the response. If you want the `--compressed` flag to be added automatically, set `:accept_encoding` Typhoeus option.
477
+
478
+
479
+ ### Cookies
480
+
481
+ ```ruby
482
+ Typhoeus::Request.get("www.example.com", cookiefile: "/path/to/file", cookiejar: "/path/to/file")
483
+ ```
484
+
485
+ Here, `cookiefile` is a file to read cookies from, and `cookiejar` is a file to write received cookies to.
486
+ If you just want cookies enabled, you need to pass the same filename for both options.
487
+
488
+ ### Other CURL options
489
+
490
+ Are available and documented [here](http://rubydoc.info/github/typhoeus/ethon/Ethon/Easy/Options)
491
+
492
+ ### SSL
493
+
494
+ SSL comes built in to libcurl so it’s in Typhoeus as well. If you pass in a
495
+ url with "https" it should just work assuming that you have your [cert
496
+ bundle](http://curl.haxx.se/docs/caextract.html) in order and the server is
497
+ verifiable. You must also have libcurl built with SSL support enabled. You can
498
+ check that by doing this:
499
+
500
+ ```
501
+ curl --version
502
+ ```
503
+
504
+ Now, even if you have libcurl built with OpenSSL you may still have a messed
505
+ up cert bundle or if you’re hitting a non-verifiable SSL server then you’ll
506
+ have to disable peer verification to make SSL work. Like this:
507
+
508
+ ```ruby
509
+ Typhoeus.get("https://www.example.com", ssl_verifypeer: false)
510
+ ```
511
+
512
+ If you are getting "SSL: certificate subject name does not match target host
513
+ name" from curl (ex:- you are trying to access to b.c.host.com when the
514
+ certificate subject is \*.host.com). You can disable host verification. Like
515
+ this:
516
+
517
+ ```ruby
518
+ # host checking enabled
519
+ Typhoeus.get("https://www.example.com", ssl_verifyhost: 2)
520
+ # host checking disabled
521
+ Typhoeus.get("https://www.example.com", ssl_verifyhost: 0)
522
+ ```
523
+
524
+ ### Verbose debug output
525
+
526
+ It’s sometimes useful to see verbose output from curl. You can enable it on a per-request basis:
527
+
528
+ ```ruby
529
+ Typhoeus.get("http://example.com", verbose: true)
530
+ ```
531
+
532
+ or globally:
533
+
534
+ ```ruby
535
+ Typhoeus::Config.verbose = true
536
+ ```
537
+
538
+ Just remember that libcurl prints it’s debug output to the console (to
539
+ STDERR), so you’ll need to run your scripts from the console to see it.
540
+
541
+ ### Default User Agent Header
542
+
543
+ In many cases, all HTTP requests made by an application require the same User-Agent header set. Instead of supplying it on a per-request basis by supplying a custom header, it is possible to override it for all requests using:
544
+
545
+
546
+ ```ruby
547
+ Typhoeus::Config.user_agent = "custom user agent"
548
+ ```
549
+
550
+ ### Running the specs
551
+
552
+ Running the specs should be as easy as:
553
+
554
+ ```
555
+ bundle install
556
+ bundle exec rake
557
+ ```
558
+ ## Semantic Versioning
559
+
560
+ This project conforms to [semver](http://semver.org/).
561
+
562
+ ## LICENSE
563
+
564
+ (The MIT License)
565
+
566
+ Copyright © 2009-2010 [Paul Dix](http://www.pauldix.net/)
567
+
568
+ Copyright © 2011-2012 [David Balatero](https://github.com/dbalatero/)
569
+
570
+ Copyright © 2012-2016 [Hans Hasselberg](http://github.com/i0rek/)
571
+
572
+ Permission is hereby granted, free of charge, to any person obtaining a
573
+ copy of this software and associated documentation files (the "Software"),
574
+ to deal in the Software without restriction, including without
575
+ limitation the rights to use, copy, modify, merge, publish, distribute,
576
+ sublicense, and/or sell copies of the Software, and to permit persons
577
+ to whom the Software is furnished to do so, subject to the following conditions:
578
+
579
+ The above copyright notice and this permission notice shall be included
580
+ in all copies or substantial portions of the Software.
581
+
582
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
583
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
584
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
585
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
586
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
587
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
588
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ lib = File.expand_path('../lib/', __FILE__)
3
+ $:.unshift lib unless $:.include?(lib)
4
+
5
+ require 'typhoeus/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "typhoeus"
9
+ s.version = Typhoeus::VERSION
10
+ s.platform = Gem::Platform::RUBY
11
+ s.authors = ["David Balatero", "Paul Dix", "Hans Hasselberg"]
12
+ s.email = ["hans.hasselberg@gmail.com"]
13
+ s.homepage = "https://github.com/typhoeus/typhoeus"
14
+ s.summary = "Parallel HTTP library on top of libcurl multi."
15
+ s.description = %q{Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.}
16
+
17
+ s.required_rubygems_version = ">= 1.3.6"
18
+ s.license = 'MIT'
19
+
20
+ s.add_dependency('ethon', [">= 0.9.0"])
21
+
22
+ s.files = `git ls-files`.split("\n")
23
+ s.test_files = `git ls-files -- spec/*`.split("\n")
24
+ s.require_path = 'lib'
25
+ end
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2005-2023 Philip Ross
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.