postfinancecheckout-ruby-sdk 3.0.2 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1268) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +35 -0
  3. data/LICENSE +1 -1
  4. data/README.md +7 -3
  5. data/lib/postfinancecheckout-ruby-sdk/api/account_service_api.rb +30 -0
  6. data/lib/postfinancecheckout-ruby-sdk/api/analytics_query_service_api.rb +411 -0
  7. data/lib/postfinancecheckout-ruby-sdk/api/application_user_service_api.rb +30 -0
  8. data/lib/postfinancecheckout-ruby-sdk/api/bank_account_service_api.rb +15 -0
  9. data/lib/postfinancecheckout-ruby-sdk/api/bank_transaction_service_api.rb +15 -0
  10. data/lib/postfinancecheckout-ruby-sdk/api/charge_attempt_service_api.rb +15 -0
  11. data/lib/postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api.rb +15 -0
  12. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +15 -0
  13. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api.rb +20 -0
  14. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_service_api.rb +161 -0
  15. data/lib/postfinancecheckout-ruby-sdk/api/condition_type_service_api.rb +10 -0
  16. data/lib/postfinancecheckout-ruby-sdk/api/country_service_api.rb +5 -0
  17. data/lib/postfinancecheckout-ruby-sdk/api/country_state_service_api.rb +10 -0
  18. data/lib/postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api.rb +15 -0
  19. data/lib/postfinancecheckout-ruby-sdk/api/currency_service_api.rb +5 -0
  20. data/lib/postfinancecheckout-ruby-sdk/api/customer_address_service_api.rb +35 -0
  21. data/lib/postfinancecheckout-ruby-sdk/api/customer_comment_service_api.rb +40 -0
  22. data/lib/postfinancecheckout-ruby-sdk/api/customer_service_api.rb +30 -0
  23. data/lib/postfinancecheckout-ruby-sdk/api/delivery_indication_service_api.rb +25 -0
  24. data/lib/postfinancecheckout-ruby-sdk/api/document_template_service_api.rb +15 -0
  25. data/lib/postfinancecheckout-ruby-sdk/api/document_template_type_service_api.rb +10 -0
  26. data/lib/postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +15 -0
  27. data/lib/postfinancecheckout-ruby-sdk/api/human_user_service_api.rb +35 -0
  28. data/lib/postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +15 -0
  29. data/lib/postfinancecheckout-ruby-sdk/api/invoice_reconciliation_record_invoice_link_service_api.rb +376 -0
  30. data/lib/postfinancecheckout-ruby-sdk/api/invoice_reconciliation_record_service_api.rb +429 -0
  31. data/lib/postfinancecheckout-ruby-sdk/api/invoice_reimbursement_service_api.rb +373 -0
  32. data/lib/postfinancecheckout-ruby-sdk/api/label_description_group_service_api.rb +10 -0
  33. data/lib/postfinancecheckout-ruby-sdk/api/label_description_service_api.rb +10 -0
  34. data/lib/postfinancecheckout-ruby-sdk/api/language_service_api.rb +5 -0
  35. data/lib/postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api.rb +15 -0
  36. data/lib/postfinancecheckout-ruby-sdk/api/manual_task_service_api.rb +15 -0
  37. data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api.rb +15 -0
  38. data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_service_api.rb +10 -0
  39. data/lib/postfinancecheckout-ruby-sdk/api/payment_link_service_api.rb +30 -0
  40. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api.rb +10 -0
  41. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api.rb +15 -0
  42. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_service_api.rb +10 -0
  43. data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api.rb +15 -0
  44. data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_service_api.rb +10 -0
  45. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_service_api.rb +288 -0
  46. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api.rb +12 -2
  47. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_transaction_summary_service_api.rb +295 -0
  48. data/lib/postfinancecheckout-ruby-sdk/api/permission_service_api.rb +10 -0
  49. data/lib/postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api.rb +15 -0
  50. data/lib/postfinancecheckout-ruby-sdk/api/refund_comment_service_api.rb +35 -0
  51. data/lib/postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +15 -0
  52. data/lib/postfinancecheckout-ruby-sdk/api/refund_service_api.rb +40 -0
  53. data/lib/postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api.rb +20 -0
  54. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api.rb +20 -0
  55. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api.rb +25 -0
  56. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api.rb +35 -0
  57. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +25 -0
  58. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api.rb +15 -0
  59. data/lib/postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api.rb +15 -0
  60. data/lib/postfinancecheckout-ruby-sdk/api/space_service_api.rb +30 -0
  61. data/lib/postfinancecheckout-ruby-sdk/api/static_value_service_api.rb +10 -0
  62. data/lib/postfinancecheckout-ruby-sdk/api/token_service_api.rb +50 -0
  63. data/lib/postfinancecheckout-ruby-sdk/api/token_version_service_api.rb +20 -0
  64. data/lib/postfinancecheckout-ruby-sdk/api/transaction_comment_service_api.rb +35 -0
  65. data/lib/postfinancecheckout-ruby-sdk/api/transaction_completion_service_api.rb +35 -0
  66. data/lib/postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api.rb +5 -0
  67. data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api.rb +35 -0
  68. data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api.rb +45 -0
  69. data/lib/postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api.rb +5 -0
  70. data/lib/postfinancecheckout-ruby-sdk/api/transaction_line_item_version_service_api.rb +295 -0
  71. data/lib/postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +5 -0
  72. data/lib/postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api.rb +5 -0
  73. data/lib/postfinancecheckout-ruby-sdk/api/transaction_service_api.rb +92 -64
  74. data/lib/postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api.rb +10 -0
  75. data/lib/postfinancecheckout-ruby-sdk/api/transaction_void_service_api.rb +25 -0
  76. data/lib/postfinancecheckout-ruby-sdk/api/user_account_role_service_api.rb +15 -0
  77. data/lib/postfinancecheckout-ruby-sdk/api/user_space_role_service_api.rb +15 -0
  78. data/lib/postfinancecheckout-ruby-sdk/api/webhook_listener_service_api.rb +30 -0
  79. data/lib/postfinancecheckout-ruby-sdk/api/webhook_url_service_api.rb +30 -0
  80. data/lib/postfinancecheckout-ruby-sdk/api_client.rb +21 -3
  81. data/lib/postfinancecheckout-ruby-sdk/configuration.rb +6 -3
  82. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_pending.rb +11 -11
  83. data/lib/postfinancecheckout-ruby-sdk/models/analytics_query.rb +272 -0
  84. data/lib/postfinancecheckout-ruby-sdk/models/analytics_query_execution.rb +293 -0
  85. data/lib/postfinancecheckout-ruby-sdk/models/analytics_query_execution_state.rb +37 -0
  86. data/lib/postfinancecheckout-ruby-sdk/models/analytics_query_result_batch.rb +225 -0
  87. data/lib/postfinancecheckout-ruby-sdk/models/analytics_schema_column.rb +263 -0
  88. data/lib/postfinancecheckout-ruby-sdk/models/analytics_schema_table.rb +215 -0
  89. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt.rb +24 -4
  90. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record.rb +571 -0
  91. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +241 -0
  92. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +36 -0
  93. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_state.rb +38 -0
  94. data/lib/postfinancecheckout-ruby-sdk/models/{transaction_line_item_update_request.rb → invoice_reconciliation_record_type.rb} +27 -20
  95. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement.rb +391 -0
  96. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_state.rb +38 -0
  97. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_with_refund_reference.rb +401 -0
  98. data/lib/postfinancecheckout-ruby-sdk/models/line_item_type.rb +1 -0
  99. data/lib/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file.rb +281 -0
  100. data/lib/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file_state.rb +40 -0
  101. data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration.rb +11 -1
  102. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +11 -1
  103. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_dcc_transaction_sum.rb +261 -0
  104. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +8 -8
  105. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version.rb +11 -1
  106. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_state.rb +1 -0
  107. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_sum.rb +291 -0
  108. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_summary.rb +285 -0
  109. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_summary_fetch_request.rb +221 -0
  110. data/lib/postfinancecheckout-ruby-sdk/models/rendered_document.rb +17 -5
  111. data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt.rb +17 -5
  112. data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_transaction_summary.rb +215 -0
  113. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber.rb +30 -0
  114. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_active.rb +30 -0
  115. data/lib/postfinancecheckout-ruby-sdk/models/space_address.rb +51 -1
  116. data/lib/postfinancecheckout-ruby-sdk/models/space_address_create.rb +51 -1
  117. data/lib/postfinancecheckout-ruby-sdk/models/transaction.rb +26 -16
  118. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +26 -1
  119. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_request.rb +26 -1
  120. data/lib/postfinancecheckout-ruby-sdk/models/transaction_create.rb +12 -12
  121. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version.rb +93 -1
  122. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version_create.rb +228 -0
  123. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version_state.rb +38 -0
  124. data/lib/postfinancecheckout-ruby-sdk/models/transaction_pending.rb +11 -11
  125. data/lib/postfinancecheckout-ruby-sdk/models/wallet_type.rb +34 -0
  126. data/lib/postfinancecheckout-ruby-sdk/version.rb +1 -1
  127. data/lib/postfinancecheckout-ruby-sdk.rb +30 -1
  128. data/test/condition_type_service_test.rb +2 -0
  129. data/test/transaction_create_service_test.rb +2 -0
  130. data/test/transaction_payment_page_service_test.rb +2 -0
  131. data/vendor/bundle/ruby/2.7.0/bin/rake +27 -0
  132. data/vendor/bundle/ruby/2.7.0/cache/addressable-2.8.1.gem +0 -0
  133. data/vendor/bundle/ruby/2.7.0/cache/ethon-0.16.0.gem +0 -0
  134. data/vendor/bundle/ruby/2.7.0/cache/ffi-1.15.5.gem +0 -0
  135. data/vendor/bundle/ruby/2.7.0/cache/json-2.6.3.gem +0 -0
  136. data/vendor/bundle/ruby/2.7.0/cache/power_assert-2.0.3.gem +0 -0
  137. data/vendor/bundle/ruby/2.7.0/cache/public_suffix-5.0.1.gem +0 -0
  138. data/vendor/bundle/ruby/2.7.0/cache/rake-12.3.3.gem +0 -0
  139. data/vendor/bundle/ruby/2.7.0/cache/test-unit-3.2.9.gem +0 -0
  140. data/vendor/bundle/ruby/2.7.0/cache/typhoeus-1.4.0.gem +0 -0
  141. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.5/ffi_c.so +0 -0
  142. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.5/gem.build_complete +0 -0
  143. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.5/gem_make.out +43 -0
  144. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.5/mkmf.log +232 -0
  145. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/json-2.6.3/gem.build_complete +0 -0
  146. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/json-2.6.3/gem_make.out +13 -0
  147. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/json-2.6.3/json/ext/generator.so +0 -0
  148. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/json-2.6.3/json/ext/parser.so +0 -0
  149. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/json-2.6.3/mkmf.log +120 -0
  150. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/CHANGELOG.md +262 -0
  151. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/Gemfile +30 -0
  152. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/LICENSE.txt +202 -0
  153. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/README.md +121 -0
  154. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/Rakefile +34 -0
  155. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/data/unicode.data +0 -0
  156. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable/idna/native.rb +60 -0
  157. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable/idna/pure.rb +677 -0
  158. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable/idna.rb +26 -0
  159. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable/template.rb +1030 -0
  160. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable/uri.rb +2560 -0
  161. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable/version.rb +31 -0
  162. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/lib/addressable.rb +4 -0
  163. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/spec/addressable/idna_spec.rb +301 -0
  164. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/spec/addressable/net_http_compat_spec.rb +29 -0
  165. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/spec/addressable/security_spec.rb +58 -0
  166. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/spec/addressable/template_spec.rb +1468 -0
  167. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/spec/addressable/uri_spec.rb +6745 -0
  168. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/spec/spec_helper.rb +33 -0
  169. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/clobber.rake +4 -0
  170. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/gem.rake +95 -0
  171. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/git.rake +47 -0
  172. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/metrics.rake +24 -0
  173. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/profile.rake +72 -0
  174. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/rspec.rake +23 -0
  175. data/vendor/bundle/ruby/2.7.0/gems/addressable-2.8.1/tasks/yard.rake +29 -0
  176. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/.github/workflows/ruby.yml +41 -0
  177. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/.gitignore +8 -0
  178. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/.rspec +3 -0
  179. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  180. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/Gemfile +43 -0
  181. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/Guardfile +10 -0
  182. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/LICENSE +20 -0
  183. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/README.md +118 -0
  184. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/Rakefile +40 -0
  185. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/ethon.gemspec +26 -0
  186. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curl.rb +90 -0
  187. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/classes.rb +65 -0
  188. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/codes.rb +122 -0
  189. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/constants.rb +80 -0
  190. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/form_options.rb +37 -0
  191. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/functions.rb +58 -0
  192. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/infos.rb +151 -0
  193. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/messages.rb +19 -0
  194. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/options.rb +503 -0
  195. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/curls/settings.rb +12 -0
  196. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/callbacks.rb +149 -0
  197. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/debug_info.rb +47 -0
  198. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/features.rb +31 -0
  199. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/form.rb +107 -0
  200. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/header.rb +61 -0
  201. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/actionable.rb +157 -0
  202. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/custom.rb +29 -0
  203. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/delete.rb +25 -0
  204. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/get.rb +24 -0
  205. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/head.rb +24 -0
  206. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/options.rb +24 -0
  207. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/patch.rb +24 -0
  208. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/post.rb +26 -0
  209. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/postable.rb +32 -0
  210. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/put.rb +27 -0
  211. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http/putable.rb +25 -0
  212. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/http.rb +68 -0
  213. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/informations.rb +116 -0
  214. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/mirror.rb +36 -0
  215. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/operations.rb +64 -0
  216. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/options.rb +50 -0
  217. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/params.rb +29 -0
  218. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/queryable.rb +154 -0
  219. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/response_callbacks.rb +136 -0
  220. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy/util.rb +28 -0
  221. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/easy.rb +315 -0
  222. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/ethon_error.rb +9 -0
  223. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/global_init.rb +13 -0
  224. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/invalid_option.rb +13 -0
  225. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/invalid_value.rb +13 -0
  226. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/multi_add.rb +12 -0
  227. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/multi_fdset.rb +12 -0
  228. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/multi_remove.rb +12 -0
  229. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/multi_timeout.rb +13 -0
  230. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors/select.rb +13 -0
  231. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/errors.rb +17 -0
  232. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/libc.rb +21 -0
  233. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/loggable.rb +59 -0
  234. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/multi/operations.rb +228 -0
  235. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/multi/options.rb +117 -0
  236. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/multi/stack.rb +49 -0
  237. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/multi.rb +126 -0
  238. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon/version.rb +6 -0
  239. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/lib/ethon.rb +36 -0
  240. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/profile/benchmarks.rb +104 -0
  241. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/profile/memory_leaks.rb +114 -0
  242. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/profile/perf_spec_helper.rb +37 -0
  243. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/profile/support/memory_test_helpers.rb +76 -0
  244. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/profile/support/os_memory_leak_tracker.rb +48 -0
  245. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/profile/support/ruby_object_leak_tracker.rb +49 -0
  246. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/curl_spec.rb +38 -0
  247. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/callbacks_spec.rb +81 -0
  248. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/debug_info_spec.rb +54 -0
  249. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/features_spec.rb +24 -0
  250. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/form_spec.rb +104 -0
  251. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/header_spec.rb +79 -0
  252. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/custom_spec.rb +177 -0
  253. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/delete_spec.rb +21 -0
  254. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/get_spec.rb +126 -0
  255. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/head_spec.rb +80 -0
  256. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/options_spec.rb +51 -0
  257. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/patch_spec.rb +51 -0
  258. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/post_spec.rb +317 -0
  259. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http/put_spec.rb +168 -0
  260. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/http_spec.rb +64 -0
  261. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/informations_spec.rb +126 -0
  262. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/mirror_spec.rb +47 -0
  263. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/operations_spec.rb +271 -0
  264. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/options_spec.rb +193 -0
  265. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/queryable_spec.rb +235 -0
  266. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/response_callbacks_spec.rb +152 -0
  267. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy/util_spec.rb +28 -0
  268. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/easy_spec.rb +203 -0
  269. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/libc_spec.rb +14 -0
  270. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/loggable_spec.rb +22 -0
  271. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/multi/operations_spec.rb +298 -0
  272. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/multi/options_spec.rb +182 -0
  273. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/multi/stack_spec.rb +80 -0
  274. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/ethon/multi_spec.rb +152 -0
  275. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/spec_helper.rb +28 -0
  276. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/support/localhost_server.rb +95 -0
  277. data/vendor/bundle/ruby/2.7.0/gems/ethon-0.16.0/spec/support/server.rb +115 -0
  278. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/CHANGELOG.md +338 -0
  279. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/COPYING +49 -0
  280. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/Gemfile +14 -0
  281. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/LICENSE +24 -0
  282. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/LICENSE.SPECS +22 -0
  283. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/README.md +136 -0
  284. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/Rakefile +191 -0
  285. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/.sitearchdir.time +0 -0
  286. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.c +1104 -0
  287. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.h +175 -0
  288. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
  289. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.c +162 -0
  290. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.h +59 -0
  291. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
  292. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.c +360 -0
  293. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
  294. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Call.c +487 -0
  295. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Call.h +107 -0
  296. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
  297. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.c +333 -0
  298. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.h +59 -0
  299. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
  300. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.c +334 -0
  301. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.h +98 -0
  302. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
  303. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Function.c +917 -0
  304. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Function.h +83 -0
  305. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
  306. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.c +266 -0
  307. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
  308. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/LastError.c +225 -0
  309. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/LastError.h +47 -0
  310. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
  311. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.c +65 -0
  312. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.h +47 -0
  313. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
  314. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +266 -0
  315. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.c +168 -0
  316. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.h +59 -0
  317. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
  318. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.c +192 -0
  319. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.h +49 -0
  320. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
  321. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.c +348 -0
  322. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.h +56 -0
  323. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
  324. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Platform.c +78 -0
  325. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Platform.h +45 -0
  326. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
  327. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.c +507 -0
  328. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.h +59 -0
  329. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
  330. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Struct.c +822 -0
  331. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Struct.h +112 -0
  332. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
  333. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.c +145 -0
  334. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.h +55 -0
  335. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
  336. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.c +700 -0
  337. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
  338. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Thread.c +129 -0
  339. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Thread.h +76 -0
  340. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
  341. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Type.c +379 -0
  342. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Type.h +61 -0
  343. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
  344. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Types.c +138 -0
  345. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Types.h +88 -0
  346. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
  347. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.c +303 -0
  348. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
  349. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/compat.h +82 -0
  350. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/extconf.h +7 -0
  351. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/extconf.rb +98 -0
  352. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ffi.c +93 -0
  353. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
  354. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
  355. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.appveyor.yml +66 -0
  356. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.gitattributes +4 -0
  357. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.github/issue_template.md +10 -0
  358. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.gitignore +38 -0
  359. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/ar-lib +270 -0
  360. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/bfin-sim.exp +58 -0
  361. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +14 -0
  362. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/build-in-container.sh +12 -0
  363. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/build.sh +142 -0
  364. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/compile +351 -0
  365. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/install.sh +71 -0
  366. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/m32r-sim.exp +58 -0
  367. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/moxie-sim.exp +60 -0
  368. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/or1k-sim.exp +58 -0
  369. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +58 -0
  370. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/site.exp +27 -0
  371. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis/wine-sim.exp +55 -0
  372. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/.travis.yml +83 -0
  373. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/ChangeLog.old +7407 -0
  374. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/LICENSE +21 -0
  375. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +353 -0
  376. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/Makefile.am +150 -0
  377. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/Makefile.in +2060 -0
  378. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/README.md +486 -0
  379. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/acinclude.m4 +479 -0
  380. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/autogen.sh +2 -0
  381. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/config.guess +1687 -0
  382. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/config.sub +1851 -0
  383. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/configure +22050 -0
  384. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/configure.ac +415 -0
  385. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/configure.host +318 -0
  386. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/doc/Makefile.am +3 -0
  387. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/doc/Makefile.in +815 -0
  388. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/doc/libffi.texi +997 -0
  389. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/doc/version.texi +4 -0
  390. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/fficonfig.h.in +223 -0
  391. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +201 -0
  392. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/include/Makefile.am +9 -0
  393. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/include/Makefile.in +608 -0
  394. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/include/ffi.h.in +523 -0
  395. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/include/ffi_cfi.h +55 -0
  396. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/include/ffi_common.h +153 -0
  397. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/install-sh +518 -0
  398. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libffi.map.in +76 -0
  399. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libffi.pc.in +11 -0
  400. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +997 -0
  401. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libtool-ldflags +106 -0
  402. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libtool-version +29 -0
  403. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/ltmain.sh +11251 -0
  404. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/asmcfi.m4 +13 -0
  405. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_append_flag.m4 +50 -0
  406. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +194 -0
  407. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +122 -0
  408. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +53 -0
  409. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +88 -0
  410. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_configure_args.m4 +49 -0
  411. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +302 -0
  412. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +267 -0
  413. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +89 -0
  414. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/m4/ax_require_defined.m4 +37 -0
  415. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/make_sunver.pl +333 -0
  416. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/man/Makefile.am +8 -0
  417. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/man/Makefile.in +562 -0
  418. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/man/ffi.3 +41 -0
  419. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/man/ffi_call.3 +103 -0
  420. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/man/ffi_prep_cif.3 +68 -0
  421. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +73 -0
  422. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/missing +215 -0
  423. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +33 -0
  424. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +130 -0
  425. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +57 -0
  426. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +4 -0
  427. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +511 -0
  428. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/fficonfig.h +219 -0
  429. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/msvcc.sh +353 -0
  430. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/aarch64/ffi.c +1025 -0
  431. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/aarch64/ffitarget.h +97 -0
  432. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/aarch64/internal.h +68 -0
  433. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/aarch64/sysv.S +451 -0
  434. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +506 -0
  435. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/alpha/ffi.c +521 -0
  436. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/alpha/ffitarget.h +57 -0
  437. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/alpha/internal.h +23 -0
  438. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/alpha/osf.S +282 -0
  439. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arc/arcompact.S +135 -0
  440. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arc/ffi.c +266 -0
  441. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arc/ffitarget.h +53 -0
  442. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arm/ffi.c +876 -0
  443. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arm/ffitarget.h +89 -0
  444. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arm/internal.h +7 -0
  445. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arm/sysv.S +385 -0
  446. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +311 -0
  447. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/avr32/ffi.c +423 -0
  448. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/avr32/ffitarget.h +55 -0
  449. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/avr32/sysv.S +208 -0
  450. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/bfin/ffi.c +196 -0
  451. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/bfin/ffitarget.h +43 -0
  452. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/bfin/sysv.S +179 -0
  453. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/closures.c +1021 -0
  454. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/cris/ffi.c +386 -0
  455. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/cris/ffitarget.h +56 -0
  456. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/cris/sysv.S +215 -0
  457. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/csky/ffi.c +395 -0
  458. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/csky/ffitarget.h +63 -0
  459. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/csky/sysv.S +371 -0
  460. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/debug.c +64 -0
  461. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/dlmalloc.c +5166 -0
  462. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/frv/eabi.S +128 -0
  463. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/frv/ffi.c +292 -0
  464. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/frv/ffitarget.h +62 -0
  465. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/ia64/ffi.c +604 -0
  466. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/ia64/ffitarget.h +56 -0
  467. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/ia64/ia64_flags.h +40 -0
  468. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/ia64/unix.S +567 -0
  469. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/java_raw_api.c +374 -0
  470. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/kvx/asm.h +5 -0
  471. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/kvx/ffi.c +273 -0
  472. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/kvx/ffitarget.h +75 -0
  473. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/kvx/sysv.S +127 -0
  474. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m32r/ffi.c +232 -0
  475. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m32r/ffitarget.h +53 -0
  476. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m32r/sysv.S +121 -0
  477. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m68k/ffi.c +362 -0
  478. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m68k/ffitarget.h +54 -0
  479. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m68k/sysv.S +357 -0
  480. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m88k/ffi.c +400 -0
  481. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m88k/ffitarget.h +49 -0
  482. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/m88k/obsd.S +209 -0
  483. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/metag/ffi.c +330 -0
  484. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/metag/ffitarget.h +53 -0
  485. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/metag/sysv.S +311 -0
  486. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/microblaze/ffi.c +321 -0
  487. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/microblaze/ffitarget.h +53 -0
  488. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/microblaze/sysv.S +302 -0
  489. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/mips/ffi.c +1134 -0
  490. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/mips/ffitarget.h +244 -0
  491. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/mips/n32.S +663 -0
  492. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/mips/o32.S +504 -0
  493. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/moxie/eabi.S +101 -0
  494. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/moxie/ffi.c +285 -0
  495. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/moxie/ffitarget.h +52 -0
  496. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/nios2/ffi.c +304 -0
  497. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/nios2/ffitarget.h +52 -0
  498. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/nios2/sysv.S +136 -0
  499. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/or1k/ffi.c +328 -0
  500. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/or1k/ffitarget.h +58 -0
  501. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/or1k/sysv.S +107 -0
  502. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/pa/ffi.c +674 -0
  503. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/pa/ffitarget.h +80 -0
  504. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/pa/hpux32.S +370 -0
  505. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/pa/linux.S +380 -0
  506. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/aix.S +566 -0
  507. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/aix_closure.S +694 -0
  508. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/asm.h +125 -0
  509. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/darwin.S +378 -0
  510. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +571 -0
  511. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ffi.c +175 -0
  512. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +1452 -0
  513. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +1153 -0
  514. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +105 -0
  515. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +923 -0
  516. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ffitarget.h +204 -0
  517. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/linux64.S +291 -0
  518. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +564 -0
  519. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +397 -0
  520. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/powerpc/sysv.S +173 -0
  521. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/prep_cif.c +263 -0
  522. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/raw_api.c +267 -0
  523. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/riscv/ffi.c +481 -0
  524. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/riscv/ffitarget.h +69 -0
  525. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/riscv/sysv.S +293 -0
  526. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/s390/ffi.c +756 -0
  527. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/s390/ffitarget.h +70 -0
  528. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/s390/internal.h +11 -0
  529. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/s390/sysv.S +325 -0
  530. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sh/ffi.c +717 -0
  531. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sh/ffitarget.h +54 -0
  532. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sh/sysv.S +850 -0
  533. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sh64/ffi.c +469 -0
  534. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sh64/ffitarget.h +58 -0
  535. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sh64/sysv.S +539 -0
  536. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sparc/ffi.c +468 -0
  537. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sparc/ffi64.c +608 -0
  538. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sparc/ffitarget.h +81 -0
  539. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sparc/internal.h +26 -0
  540. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sparc/v8.S +443 -0
  541. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/sparc/v9.S +440 -0
  542. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/tile/ffi.c +355 -0
  543. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/tile/ffitarget.h +65 -0
  544. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/tile/tile.S +360 -0
  545. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/types.c +108 -0
  546. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/vax/elfbsd.S +195 -0
  547. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/vax/ffi.c +276 -0
  548. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/vax/ffitarget.h +49 -0
  549. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/asmnames.h +30 -0
  550. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/ffi.c +770 -0
  551. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/ffi64.c +895 -0
  552. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/ffitarget.h +160 -0
  553. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/ffiw64.c +318 -0
  554. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/internal.h +29 -0
  555. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/internal64.h +22 -0
  556. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/sysv.S +1138 -0
  557. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/sysv_intel.S +995 -0
  558. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/unix64.S +621 -0
  559. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/win64.S +241 -0
  560. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/x86/win64_intel.S +238 -0
  561. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/xtensa/ffi.c +298 -0
  562. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/xtensa/ffitarget.h +53 -0
  563. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/src/xtensa/sysv.S +258 -0
  564. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/stamp-h.in +1 -0
  565. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/Makefile.am +122 -0
  566. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/Makefile.in +648 -0
  567. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/config/default.exp +1 -0
  568. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/lib/libffi.exp +660 -0
  569. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +283 -0
  570. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +45 -0
  571. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/Makefile +28 -0
  572. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/README +78 -0
  573. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/alignof.h +50 -0
  574. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +63 -0
  575. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +1745 -0
  576. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +2885 -0
  577. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +743 -0
  578. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +46 -0
  579. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c +46 -0
  580. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +54 -0
  581. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +26 -0
  582. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +138 -0
  583. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/float.c +59 -0
  584. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +60 -0
  585. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +61 -0
  586. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +74 -0
  587. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +62 -0
  588. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +107 -0
  589. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/many.c +59 -0
  590. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +57 -0
  591. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +70 -0
  592. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +78 -0
  593. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +52 -0
  594. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +46 -0
  595. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +127 -0
  596. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +59 -0
  597. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +114 -0
  598. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +36 -0
  599. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +43 -0
  600. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +42 -0
  601. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +35 -0
  602. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +36 -0
  603. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +49 -0
  604. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +42 -0
  605. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +34 -0
  606. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +41 -0
  607. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +43 -0
  608. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +36 -0
  609. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +38 -0
  610. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +38 -0
  611. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +38 -0
  612. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +44 -0
  613. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +49 -0
  614. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +49 -0
  615. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +55 -0
  616. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +67 -0
  617. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +57 -0
  618. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +67 -0
  619. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +60 -0
  620. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +64 -0
  621. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +66 -0
  622. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +64 -0
  623. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +74 -0
  624. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +81 -0
  625. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +68 -0
  626. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +61 -0
  627. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +196 -0
  628. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +121 -0
  629. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +123 -0
  630. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +125 -0
  631. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +67 -0
  632. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +89 -0
  633. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +81 -0
  634. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +81 -0
  635. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +82 -0
  636. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +89 -0
  637. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +92 -0
  638. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +90 -0
  639. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +95 -0
  640. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +55 -0
  641. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +94 -0
  642. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +95 -0
  643. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +96 -0
  644. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +102 -0
  645. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +89 -0
  646. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +91 -0
  647. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +93 -0
  648. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +113 -0
  649. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +90 -0
  650. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +95 -0
  651. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +90 -0
  652. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +90 -0
  653. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +95 -0
  654. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +98 -0
  655. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +90 -0
  656. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +109 -0
  657. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +98 -0
  658. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +124 -0
  659. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +113 -0
  660. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +99 -0
  661. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +117 -0
  662. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +97 -0
  663. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +88 -0
  664. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +90 -0
  665. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +91 -0
  666. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +93 -0
  667. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +91 -0
  668. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +92 -0
  669. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +132 -0
  670. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +115 -0
  671. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +95 -0
  672. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +91 -0
  673. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +91 -0
  674. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +92 -0
  675. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +91 -0
  676. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +91 -0
  677. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +93 -0
  678. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +66 -0
  679. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c +43 -0
  680. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +61 -0
  681. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +42 -0
  682. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +105 -0
  683. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +61 -0
  684. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c +70 -0
  685. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c +55 -0
  686. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +74 -0
  687. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +74 -0
  688. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +86 -0
  689. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +91 -0
  690. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +74 -0
  691. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +86 -0
  692. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +74 -0
  693. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +142 -0
  694. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +44 -0
  695. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +42 -0
  696. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +42 -0
  697. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +114 -0
  698. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +42 -0
  699. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar_va.c +44 -0
  700. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +43 -0
  701. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +45 -0
  702. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +45 -0
  703. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +47 -0
  704. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +43 -0
  705. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort_va.c +44 -0
  706. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c +36 -0
  707. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +138 -0
  708. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +343 -0
  709. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +152 -0
  710. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +161 -0
  711. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +134 -0
  712. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +121 -0
  713. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +110 -0
  714. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +111 -0
  715. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +111 -0
  716. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +112 -0
  717. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +131 -0
  718. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +111 -0
  719. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +131 -0
  720. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +131 -0
  721. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c +90 -0
  722. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c +145 -0
  723. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c +148 -0
  724. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +124 -0
  725. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +125 -0
  726. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +70 -0
  727. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +117 -0
  728. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +54 -0
  729. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +91 -0
  730. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +10 -0
  731. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +10 -0
  732. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +10 -0
  733. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +42 -0
  734. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +10 -0
  735. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +10 -0
  736. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +10 -0
  737. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +71 -0
  738. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +10 -0
  739. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +10 -0
  740. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +10 -0
  741. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +80 -0
  742. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +10 -0
  743. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +16 -0
  744. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +10 -0
  745. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +36 -0
  746. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +51 -0
  747. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +7 -0
  748. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +7 -0
  749. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +7 -0
  750. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +10 -0
  751. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +10 -0
  752. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +86 -0
  753. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +10 -0
  754. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +1 -0
  755. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +78 -0
  756. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +10 -0
  757. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +10 -0
  758. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +10 -0
  759. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +37 -0
  760. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +41 -0
  761. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +10 -0
  762. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +10 -0
  763. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +10 -0
  764. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +44 -0
  765. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +10 -0
  766. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +10 -0
  767. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +10 -0
  768. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +10 -0
  769. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +10 -0
  770. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +10 -0
  771. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +34 -0
  772. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +28 -0
  773. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +1 -0
  774. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +36 -0
  775. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +19 -0
  776. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi.bsd.mk +40 -0
  777. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi.darwin.mk +105 -0
  778. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi.gnu.mk +32 -0
  779. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi.mk +18 -0
  780. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi.vc.mk +26 -0
  781. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi.vc64.mk +26 -0
  782. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/rbffi.h +55 -0
  783. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/rbffi_endian.h +59 -0
  784. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ffi.gemspec +42 -0
  785. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/abstract_memory.rb +44 -0
  786. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/autopointer.rb +203 -0
  787. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/buffer.rb +4 -0
  788. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/callback.rb +4 -0
  789. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/data_converter.rb +67 -0
  790. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/enum.rb +296 -0
  791. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/errno.rb +43 -0
  792. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/ffi.rb +47 -0
  793. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/io.rb +62 -0
  794. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/library.rb +592 -0
  795. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/managedstruct.rb +84 -0
  796. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/memorypointer.rb +1 -0
  797. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/aarch64-darwin/types.conf +130 -0
  798. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/aarch64-freebsd/types.conf +128 -0
  799. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/aarch64-freebsd12/types.conf +181 -0
  800. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/aarch64-linux/types.conf +104 -0
  801. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/aarch64-openbsd/types.conf +134 -0
  802. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/arm-freebsd/types.conf +152 -0
  803. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/arm-freebsd12/types.conf +152 -0
  804. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/arm-linux/types.conf +132 -0
  805. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-cygwin/types.conf +3 -0
  806. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-darwin/types.conf +100 -0
  807. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-freebsd/types.conf +152 -0
  808. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-freebsd12/types.conf +152 -0
  809. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-gnu/types.conf +107 -0
  810. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-linux/types.conf +103 -0
  811. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-netbsd/types.conf +126 -0
  812. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-openbsd/types.conf +128 -0
  813. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-solaris/types.conf +122 -0
  814. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/i386-windows/types.conf +52 -0
  815. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/ia64-linux/types.conf +104 -0
  816. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mips-linux/types.conf +102 -0
  817. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mips64-linux/types.conf +104 -0
  818. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mips64el-linux/types.conf +104 -0
  819. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mipsel-linux/types.conf +102 -0
  820. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mipsisa32r6-linux/types.conf +102 -0
  821. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mipsisa32r6el-linux/types.conf +102 -0
  822. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mipsisa64r6-linux/types.conf +104 -0
  823. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/mipsisa64r6el-linux/types.conf +104 -0
  824. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/powerpc-aix/types.conf +180 -0
  825. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/powerpc-darwin/types.conf +100 -0
  826. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/powerpc-linux/types.conf +130 -0
  827. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/powerpc-openbsd/types.conf +156 -0
  828. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/powerpc64-linux/types.conf +104 -0
  829. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/powerpc64le-linux/types.conf +100 -0
  830. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/riscv64-linux/types.conf +104 -0
  831. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/s390-linux/types.conf +102 -0
  832. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/s390x-linux/types.conf +102 -0
  833. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/sparc-linux/types.conf +102 -0
  834. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/sparc-solaris/types.conf +128 -0
  835. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/sparc64-linux/types.conf +102 -0
  836. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/sparcv9-openbsd/types.conf +156 -0
  837. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/sparcv9-solaris/types.conf +128 -0
  838. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-cygwin/types.conf +3 -0
  839. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-darwin/types.conf +130 -0
  840. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-dragonflybsd/types.conf +130 -0
  841. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-freebsd/types.conf +128 -0
  842. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-freebsd12/types.conf +158 -0
  843. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-haiku/types.conf +117 -0
  844. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-linux/types.conf +132 -0
  845. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-msys/types.conf +119 -0
  846. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-netbsd/types.conf +128 -0
  847. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-openbsd/types.conf +134 -0
  848. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-solaris/types.conf +122 -0
  849. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform/x86_64-windows/types.conf +52 -0
  850. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/platform.rb +185 -0
  851. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/pointer.rb +167 -0
  852. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/struct.rb +316 -0
  853. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/struct_by_reference.rb +72 -0
  854. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/struct_layout.rb +96 -0
  855. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/struct_layout_builder.rb +227 -0
  856. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/tools/const_generator.rb +232 -0
  857. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/tools/generator.rb +105 -0
  858. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/tools/generator_task.rb +32 -0
  859. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/tools/struct_generator.rb +195 -0
  860. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/tools/types_generator.rb +137 -0
  861. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/types.rb +194 -0
  862. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/union.rb +43 -0
  863. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/variadic.rb +69 -0
  864. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi/version.rb +3 -0
  865. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi.rb +27 -0
  866. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
  867. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/rakelib/ffi_gem_helper.rb +65 -0
  868. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/getlogin.rb +8 -0
  869. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/getpid.rb +8 -0
  870. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/gettimeofday.rb +18 -0
  871. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/hello.rb +8 -0
  872. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/inotify.rb +60 -0
  873. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/pty.rb +75 -0
  874. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/samples/qsort.rb +20 -0
  875. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/CHANGES.md +457 -0
  876. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/LICENSE +56 -0
  877. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/README.md +425 -0
  878. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/VERSION +1 -0
  879. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/Makefile +202 -0
  880. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/fbuffer/fbuffer.h +187 -0
  881. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  882. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +267 -0
  883. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/depend +1 -0
  884. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/extconf.rb +4 -0
  885. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/generator.c +1608 -0
  886. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/generator.h +174 -0
  887. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/generator.o +0 -0
  888. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/generator/generator.so +0 -0
  889. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  890. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +267 -0
  891. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/depend +1 -0
  892. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/extconf.rb +32 -0
  893. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/parser.c +3347 -0
  894. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/parser.h +96 -0
  895. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/parser.o +0 -0
  896. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/parser.rl +986 -0
  897. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/parser.so +0 -0
  898. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/extconf.rb +3 -0
  899. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/json.gemspec +67 -0
  900. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/bigdecimal.rb +29 -0
  901. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/complex.rb +28 -0
  902. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/core.rb +12 -0
  903. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/date.rb +34 -0
  904. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/date_time.rb +50 -0
  905. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/exception.rb +31 -0
  906. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/ostruct.rb +31 -0
  907. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/range.rb +29 -0
  908. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/rational.rb +27 -0
  909. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/regexp.rb +30 -0
  910. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/set.rb +29 -0
  911. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/struct.rb +30 -0
  912. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/symbol.rb +25 -0
  913. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/add/time.rb +38 -0
  914. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/common.rb +703 -0
  915. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/ext/generator.so +0 -0
  916. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/ext/parser.so +0 -0
  917. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/ext.rb +15 -0
  918. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/generic_object.rb +71 -0
  919. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/pure/generator.rb +479 -0
  920. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/pure/parser.rb +337 -0
  921. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/pure.rb +15 -0
  922. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/version.rb +9 -0
  923. data/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json.rb +583 -0
  924. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/.github/dependabot.yml +6 -0
  925. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/.github/workflows/ci.yml +32 -0
  926. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/.gitignore +9 -0
  927. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/BSDL +22 -0
  928. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/COPYING +57 -0
  929. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/Gemfile +9 -0
  930. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/LEGAL +4 -0
  931. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/README.md +98 -0
  932. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/Rakefile +59 -0
  933. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/colorize.rb +7 -0
  934. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/configuration.rb +46 -0
  935. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/context.rb +233 -0
  936. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/enable_tracepoint_events.rb +60 -0
  937. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/inspector.rb +66 -0
  938. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/parser.rb +251 -0
  939. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert/version.rb +3 -0
  940. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/lib/power_assert.rb +91 -0
  941. data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.3/power_assert.gemspec +31 -0
  942. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.github/FUNDING.yml +12 -0
  943. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.github/dependabot.yml +19 -0
  944. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.github/workflows/psl-update.yml +38 -0
  945. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.github/workflows/release.yml +18 -0
  946. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.github/workflows/tests.yml +29 -0
  947. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.gitignore +8 -0
  948. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.rubocop.yml +37 -0
  949. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.rubocop_opinionated.yml +135 -0
  950. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/.yardopts +1 -0
  951. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/2.0-Upgrade.md +52 -0
  952. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/CHANGELOG.md +432 -0
  953. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/Gemfile +14 -0
  954. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/LICENSE.txt +22 -0
  955. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/README.md +217 -0
  956. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/Rakefile +52 -0
  957. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/SECURITY.md +104 -0
  958. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/bin/console +15 -0
  959. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/data/list.txt +14189 -0
  960. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/lib/public_suffix/domain.rb +235 -0
  961. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/lib/public_suffix/errors.rb +41 -0
  962. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/lib/public_suffix/list.rb +247 -0
  963. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/lib/public_suffix/rule.rb +350 -0
  964. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/lib/public_suffix/version.rb +15 -0
  965. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/lib/public_suffix.rb +177 -0
  966. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/public_suffix.gemspec +29 -0
  967. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/.empty +2 -0
  968. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/acceptance_test.rb +131 -0
  969. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/benchmarks/bm_find.rb +66 -0
  970. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/benchmarks/bm_find_all.rb +102 -0
  971. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/benchmarks/bm_names.rb +91 -0
  972. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/benchmarks/bm_select.rb +26 -0
  973. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/benchmarks/bm_select_incremental.rb +25 -0
  974. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/benchmarks/bm_valid.rb +101 -0
  975. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/profilers/domain_profiler.rb +12 -0
  976. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/profilers/find_profiler.rb +12 -0
  977. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/profilers/find_profiler_jp.rb +12 -0
  978. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/profilers/initialization_profiler.rb +11 -0
  979. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/profilers/list_profsize.rb +11 -0
  980. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/profilers/object_binsize.rb +57 -0
  981. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/psl_test.rb +52 -0
  982. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/test_helper.rb +10 -0
  983. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/tests.txt +98 -0
  984. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/unit/domain_test.rb +106 -0
  985. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/unit/errors_test.rb +25 -0
  986. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/unit/list_test.rb +241 -0
  987. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/unit/public_suffix_test.rb +188 -0
  988. data/vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/test/unit/rule_test.rb +222 -0
  989. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/CONTRIBUTING.rdoc +43 -0
  990. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/Gemfile +3 -0
  991. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/History.rdoc +2344 -0
  992. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/MIT-LICENSE +21 -0
  993. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/README.rdoc +156 -0
  994. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/Rakefile +41 -0
  995. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/azure-pipelines.yml +11 -0
  996. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/bundle +105 -0
  997. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/console +7 -0
  998. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/rake +29 -0
  999. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/rdoc +29 -0
  1000. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/rubocop +29 -0
  1001. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/bin/setup +6 -0
  1002. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/command_line_usage.rdoc +158 -0
  1003. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile1 +38 -0
  1004. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile2 +35 -0
  1005. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/a.c +6 -0
  1006. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/b.c +6 -0
  1007. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/example/main.c +11 -0
  1008. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/glossary.rdoc +42 -0
  1009. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/jamis.rb +592 -0
  1010. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/proto_rake.rdoc +127 -0
  1011. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/rake.1 +156 -0
  1012. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/rakefile.rdoc +622 -0
  1013. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/doc/rational.rdoc +151 -0
  1014. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/exe/rake +27 -0
  1015. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/application.rb +824 -0
  1016. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/backtrace.rb +24 -0
  1017. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/clean.rb +78 -0
  1018. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cloneable.rb +17 -0
  1019. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cpu_counter.rb +107 -0
  1020. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/default_loader.rb +15 -0
  1021. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/dsl_definition.rb +195 -0
  1022. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/early_time.rb +22 -0
  1023. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/core.rb +26 -0
  1024. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/string.rb +176 -0
  1025. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_creation_task.rb +25 -0
  1026. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_list.rb +435 -0
  1027. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_task.rb +54 -0
  1028. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils.rb +137 -0
  1029. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb +145 -0
  1030. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_chain.rb +57 -0
  1031. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb +17 -0
  1032. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/late_time.rb +18 -0
  1033. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/linked_list.rb +112 -0
  1034. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/loaders/makefile.rb +54 -0
  1035. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/multi_task.rb +14 -0
  1036. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/name_space.rb +38 -0
  1037. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/packagetask.rb +207 -0
  1038. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/phony.rb +16 -0
  1039. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/private_reader.rb +21 -0
  1040. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/promise.rb +100 -0
  1041. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/pseudo_status.rb +30 -0
  1042. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_module.rb +67 -0
  1043. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +27 -0
  1044. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
  1045. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/scope.rb +43 -0
  1046. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task.rb +413 -0
  1047. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_argument_error.rb +8 -0
  1048. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_arguments.rb +109 -0
  1049. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_manager.rb +324 -0
  1050. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/tasklib.rb +12 -0
  1051. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/testtask.rb +224 -0
  1052. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_history_display.rb +49 -0
  1053. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_pool.rb +163 -0
  1054. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb +23 -0
  1055. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/version.rb +10 -0
  1056. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/win32.rb +51 -0
  1057. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/lib/rake.rb +71 -0
  1058. data/vendor/bundle/ruby/2.7.0/gems/rake-12.3.3/rake.gemspec +42 -0
  1059. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/COPYING +67 -0
  1060. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/GPL +339 -0
  1061. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/LGPL +502 -0
  1062. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/PSFL +271 -0
  1063. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/README.md +101 -0
  1064. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/Rakefile +80 -0
  1065. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/doc/text/getting-started.md +246 -0
  1066. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/doc/text/how-to.md +90 -0
  1067. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/doc/text/news.md +1374 -0
  1068. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb +25 -0
  1069. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/assertions.rb +2249 -0
  1070. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/attribute-matcher.rb +26 -0
  1071. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/attribute.rb +226 -0
  1072. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/auto-runner-loader.rb +17 -0
  1073. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/autorunner.rb +533 -0
  1074. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/code-snippet-fetcher.rb +58 -0
  1075. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/collector/descendant.rb +19 -0
  1076. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/collector/dir.rb +108 -0
  1077. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/collector/load.rb +199 -0
  1078. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/collector/objectspace.rb +34 -0
  1079. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/collector/xml.rb +249 -0
  1080. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/collector.rb +73 -0
  1081. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/color-scheme.rb +198 -0
  1082. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/color.rb +134 -0
  1083. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/data-sets.rb +116 -0
  1084. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/data.rb +371 -0
  1085. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/diff.rb +746 -0
  1086. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/error.rb +158 -0
  1087. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/exception-handler.rb +82 -0
  1088. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/failure.rb +169 -0
  1089. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/fault-location-detector.rb +100 -0
  1090. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/fixture.rb +298 -0
  1091. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/notification.rb +136 -0
  1092. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/omission.rb +195 -0
  1093. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/pending.rb +154 -0
  1094. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/priority.rb +192 -0
  1095. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/runner/console.rb +84 -0
  1096. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/runner/emacs.rb +8 -0
  1097. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/runner/xml.rb +15 -0
  1098. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/test-suite-creator.rb +103 -0
  1099. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/testcase.rb +862 -0
  1100. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/testresult.rb +132 -0
  1101. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/testsuite.rb +175 -0
  1102. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/console/outputlevel.rb +15 -0
  1103. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/console/testrunner.rb +750 -0
  1104. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/emacs/testrunner.rb +49 -0
  1105. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/testrunner.rb +53 -0
  1106. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/testrunnermediator.rb +114 -0
  1107. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/testrunnerutilities.rb +41 -0
  1108. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/ui/xml/testrunner.rb +224 -0
  1109. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/util/backtracefilter.rb +59 -0
  1110. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/util/method-owner-finder.rb +28 -0
  1111. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/util/observable.rb +90 -0
  1112. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/util/output.rb +31 -0
  1113. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/util/procwrapper.rb +48 -0
  1114. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/version.rb +5 -0
  1115. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit.rb +505 -0
  1116. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test-unit.rb +34 -0
  1117. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/sample/adder.rb +13 -0
  1118. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/sample/subtracter.rb +12 -0
  1119. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/sample/test_adder.rb +20 -0
  1120. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/sample/test_subtracter.rb +20 -0
  1121. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/sample/test_user.rb +23 -0
  1122. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/collector/test-descendant.rb +182 -0
  1123. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/collector/test-load.rb +442 -0
  1124. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/collector/test_dir.rb +407 -0
  1125. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/collector/test_objectspace.rb +102 -0
  1126. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/header-label.csv +3 -0
  1127. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/header-label.tsv +3 -0
  1128. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/header.csv +3 -0
  1129. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/header.tsv +3 -0
  1130. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/no-header.csv +2 -0
  1131. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/no-header.tsv +2 -0
  1132. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/fixtures/plus.csv +3 -0
  1133. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/run-test.rb +22 -0
  1134. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-assertions.rb +2180 -0
  1135. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-attribute-matcher.rb +38 -0
  1136. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-attribute.rb +123 -0
  1137. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-code-snippet.rb +37 -0
  1138. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-color-scheme.rb +82 -0
  1139. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-color.rb +47 -0
  1140. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-data.rb +419 -0
  1141. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-diff.rb +518 -0
  1142. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-emacs-runner.rb +60 -0
  1143. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-error.rb +26 -0
  1144. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-failure.rb +33 -0
  1145. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-fault-location-detector.rb +163 -0
  1146. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-fixture.rb +713 -0
  1147. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-notification.rb +33 -0
  1148. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-omission.rb +81 -0
  1149. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-pending.rb +70 -0
  1150. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-priority.rb +173 -0
  1151. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-test-case.rb +1279 -0
  1152. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-test-result.rb +113 -0
  1153. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-test-suite-creator.rb +97 -0
  1154. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/test-test-suite.rb +151 -0
  1155. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/testunit-test-util.rb +31 -0
  1156. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb +20 -0
  1157. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/util/test-method-owner-finder.rb +38 -0
  1158. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/util/test-output.rb +11 -0
  1159. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/util/test_backtracefilter.rb +52 -0
  1160. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/util/test_observable.rb +102 -0
  1161. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/util/test_procwrapper.rb +36 -0
  1162. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/.gitignore +8 -0
  1163. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/.rspec +4 -0
  1164. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/.travis.yml +26 -0
  1165. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/CHANGELOG.md +406 -0
  1166. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/CONTRIBUTING.md +20 -0
  1167. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/Gemfile +32 -0
  1168. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/Guardfile +9 -0
  1169. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/LICENSE +22 -0
  1170. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/README.md +584 -0
  1171. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/Rakefile +38 -0
  1172. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/UPGRADE.md +55 -0
  1173. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/rack/typhoeus/middleware/params_decoder/helper.rb +76 -0
  1174. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/rack/typhoeus/middleware/params_decoder.rb +57 -0
  1175. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/rack/typhoeus.rb +1 -0
  1176. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/adapters/faraday.rb +180 -0
  1177. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/cache/dalli.rb +28 -0
  1178. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/cache/rails.rb +28 -0
  1179. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/cache/redis.rb +35 -0
  1180. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/config.rb +69 -0
  1181. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb +180 -0
  1182. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/errors/no_stub.rb +12 -0
  1183. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/errors/typhoeus_error.rb +8 -0
  1184. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/errors.rb +9 -0
  1185. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/expectation.rb +217 -0
  1186. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/addable.rb +23 -0
  1187. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/before.rb +31 -0
  1188. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/block_connection.rb +35 -0
  1189. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/cacheable.rb +15 -0
  1190. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/memoizable.rb +56 -0
  1191. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/queueable.rb +83 -0
  1192. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/runnable.rb +19 -0
  1193. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/stubbable.rb +28 -0
  1194. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra.rb +95 -0
  1195. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/pool.rb +70 -0
  1196. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/railtie.rb +12 -0
  1197. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/actions.rb +125 -0
  1198. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb +30 -0
  1199. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/block_connection.rb +52 -0
  1200. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/cacheable.rb +38 -0
  1201. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/callbacks.rb +151 -0
  1202. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/marshal.rb +22 -0
  1203. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/memoizable.rb +38 -0
  1204. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/operations.rb +40 -0
  1205. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/responseable.rb +29 -0
  1206. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/streamable.rb +34 -0
  1207. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/stubbable.rb +30 -0
  1208. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request.rb +221 -0
  1209. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/response/cacheable.rb +14 -0
  1210. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/response/header.rb +105 -0
  1211. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/response/informations.rb +248 -0
  1212. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/response/status.rb +106 -0
  1213. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/response.rb +68 -0
  1214. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/version.rb +5 -0
  1215. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus.rb +143 -0
  1216. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/perf/profile.rb +14 -0
  1217. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/perf/vs_nethttp.rb +64 -0
  1218. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/rack/typhoeus/middleware/params_decoder/helper_spec.rb +156 -0
  1219. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/rack/typhoeus/middleware/params_decoder_spec.rb +31 -0
  1220. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/spec_helper.rb +29 -0
  1221. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/support/localhost_server.rb +94 -0
  1222. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb +15 -0
  1223. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/support/server.rb +116 -0
  1224. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/adapters/faraday_spec.rb +339 -0
  1225. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/cache/dalli_spec.rb +41 -0
  1226. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/cache/redis_spec.rb +41 -0
  1227. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/config_spec.rb +15 -0
  1228. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/easy_factory_spec.rb +143 -0
  1229. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/errors/no_stub_spec.rb +13 -0
  1230. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/expectation_spec.rb +280 -0
  1231. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/addable_spec.rb +22 -0
  1232. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/before_spec.rb +98 -0
  1233. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/block_connection_spec.rb +18 -0
  1234. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/cacheable_spec.rb +88 -0
  1235. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/memoizable_spec.rb +53 -0
  1236. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/queueable_spec.rb +98 -0
  1237. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/runnable_spec.rb +137 -0
  1238. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra/stubbable_spec.rb +48 -0
  1239. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/hydra_spec.rb +22 -0
  1240. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/pool_spec.rb +137 -0
  1241. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/actions_spec.rb +19 -0
  1242. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/before_spec.rb +93 -0
  1243. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/block_connection_spec.rb +75 -0
  1244. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/cacheable_spec.rb +94 -0
  1245. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/callbacks_spec.rb +91 -0
  1246. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/marshal_spec.rb +60 -0
  1247. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/memoizable_spec.rb +34 -0
  1248. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/operations_spec.rb +101 -0
  1249. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/responseable_spec.rb +13 -0
  1250. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request/stubbable_spec.rb +45 -0
  1251. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/request_spec.rb +232 -0
  1252. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/response/header_spec.rb +147 -0
  1253. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/response/informations_spec.rb +283 -0
  1254. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/response/status_spec.rb +256 -0
  1255. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus/response_spec.rb +100 -0
  1256. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/spec/typhoeus_spec.rb +105 -0
  1257. data/vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/typhoeus.gemspec +25 -0
  1258. data/vendor/bundle/ruby/2.7.0/specifications/addressable-2.8.1.gemspec +37 -0
  1259. data/vendor/bundle/ruby/2.7.0/specifications/ethon-0.16.0.gemspec +30 -0
  1260. data/vendor/bundle/ruby/2.7.0/specifications/ffi-1.15.5.gemspec +42 -0
  1261. data/vendor/bundle/ruby/2.7.0/specifications/json-2.6.3.gemspec +0 -0
  1262. data/vendor/bundle/ruby/2.7.0/specifications/power_assert-2.0.3.gemspec +46 -0
  1263. data/vendor/bundle/ruby/2.7.0/specifications/public_suffix-5.0.1.gemspec +24 -0
  1264. data/vendor/bundle/ruby/2.7.0/specifications/rake-12.3.3.gemspec +43 -0
  1265. data/vendor/bundle/ruby/2.7.0/specifications/test-unit-3.2.9.gemspec +41 -0
  1266. data/vendor/bundle/ruby/2.7.0/specifications/typhoeus-1.4.0.gemspec +30 -0
  1267. metadata +1182 -17
  1268. data/lib/.DS_Store +0 -0
@@ -0,0 +1,2560 @@
1
+ # frozen_string_literal: true
2
+
3
+ #--
4
+ # Copyright (C) Bob Aman
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #++
18
+
19
+
20
+ require "addressable/version"
21
+ require "addressable/idna"
22
+ require "public_suffix"
23
+
24
+ ##
25
+ # Addressable is a library for processing links and URIs.
26
+ module Addressable
27
+ ##
28
+ # This is an implementation of a URI parser based on
29
+ # <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>,
30
+ # <a href="http://www.ietf.org/rfc/rfc3987.txt">RFC 3987</a>.
31
+ class URI
32
+ ##
33
+ # Raised if something other than a uri is supplied.
34
+ class InvalidURIError < StandardError
35
+ end
36
+
37
+ ##
38
+ # Container for the character classes specified in
39
+ # <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>.
40
+ #
41
+ # Note: Concatenated and interpolated `String`s are not affected by the
42
+ # `frozen_string_literal` directive and must be frozen explicitly.
43
+ #
44
+ # Interpolated `String`s *were* frozen this way before Ruby 3.0:
45
+ # https://bugs.ruby-lang.org/issues/17104
46
+ module CharacterClasses
47
+ ALPHA = "a-zA-Z"
48
+ DIGIT = "0-9"
49
+ GEN_DELIMS = "\\:\\/\\?\\#\\[\\]\\@"
50
+ SUB_DELIMS = "\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\="
51
+ RESERVED = (GEN_DELIMS + SUB_DELIMS).freeze
52
+ UNRESERVED = (ALPHA + DIGIT + "\\-\\.\\_\\~").freeze
53
+ PCHAR = (UNRESERVED + SUB_DELIMS + "\\:\\@").freeze
54
+ SCHEME = (ALPHA + DIGIT + "\\-\\+\\.").freeze
55
+ HOST = (UNRESERVED + SUB_DELIMS + "\\[\\:\\]").freeze
56
+ AUTHORITY = (PCHAR + "\\[\\:\\]").freeze
57
+ PATH = (PCHAR + "\\/").freeze
58
+ QUERY = (PCHAR + "\\/\\?").freeze
59
+ FRAGMENT = (PCHAR + "\\/\\?").freeze
60
+ end
61
+
62
+ module NormalizeCharacterClasses
63
+ HOST = /[^#{CharacterClasses::HOST}]/
64
+ UNRESERVED = /[^#{CharacterClasses::UNRESERVED}]/
65
+ PCHAR = /[^#{CharacterClasses::PCHAR}]/
66
+ SCHEME = /[^#{CharacterClasses::SCHEME}]/
67
+ FRAGMENT = /[^#{CharacterClasses::FRAGMENT}]/
68
+ QUERY = %r{[^a-zA-Z0-9\-\.\_\~\!\$\'\(\)\*\+\,\=\:\@\/\?%]|%(?!2B|2b)}
69
+ end
70
+
71
+ SLASH = '/'
72
+ EMPTY_STR = ''
73
+
74
+ URIREGEX = /^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/
75
+
76
+ PORT_MAPPING = {
77
+ "http" => 80,
78
+ "https" => 443,
79
+ "ftp" => 21,
80
+ "tftp" => 69,
81
+ "sftp" => 22,
82
+ "ssh" => 22,
83
+ "svn+ssh" => 22,
84
+ "telnet" => 23,
85
+ "nntp" => 119,
86
+ "gopher" => 70,
87
+ "wais" => 210,
88
+ "ldap" => 389,
89
+ "prospero" => 1525
90
+ }.freeze
91
+
92
+ ##
93
+ # Returns a URI object based on the parsed string.
94
+ #
95
+ # @param [String, Addressable::URI, #to_str] uri
96
+ # The URI string to parse.
97
+ # No parsing is performed if the object is already an
98
+ # <code>Addressable::URI</code>.
99
+ #
100
+ # @return [Addressable::URI] The parsed URI.
101
+ def self.parse(uri)
102
+ # If we were given nil, return nil.
103
+ return nil unless uri
104
+ # If a URI object is passed, just return itself.
105
+ return uri.dup if uri.kind_of?(self)
106
+
107
+ # If a URI object of the Ruby standard library variety is passed,
108
+ # convert it to a string, then parse the string.
109
+ # We do the check this way because we don't want to accidentally
110
+ # cause a missing constant exception to be thrown.
111
+ if uri.class.name =~ /^URI\b/
112
+ uri = uri.to_s
113
+ end
114
+
115
+ # Otherwise, convert to a String
116
+ begin
117
+ uri = uri.to_str
118
+ rescue TypeError, NoMethodError
119
+ raise TypeError, "Can't convert #{uri.class} into String."
120
+ end if not uri.is_a? String
121
+
122
+ # This Regexp supplied as an example in RFC 3986, and it works great.
123
+ scan = uri.scan(URIREGEX)
124
+ fragments = scan[0]
125
+ scheme = fragments[1]
126
+ authority = fragments[3]
127
+ path = fragments[4]
128
+ query = fragments[6]
129
+ fragment = fragments[8]
130
+ user = nil
131
+ password = nil
132
+ host = nil
133
+ port = nil
134
+ if authority != nil
135
+ # The Regexp above doesn't split apart the authority.
136
+ userinfo = authority[/^([^\[\]]*)@/, 1]
137
+ if userinfo != nil
138
+ user = userinfo.strip[/^([^:]*):?/, 1]
139
+ password = userinfo.strip[/:(.*)$/, 1]
140
+ end
141
+ host = authority.sub(
142
+ /^([^\[\]]*)@/, EMPTY_STR
143
+ ).sub(
144
+ /:([^:@\[\]]*?)$/, EMPTY_STR
145
+ )
146
+ port = authority[/:([^:@\[\]]*?)$/, 1]
147
+ end
148
+ if port == EMPTY_STR
149
+ port = nil
150
+ end
151
+
152
+ return new(
153
+ :scheme => scheme,
154
+ :user => user,
155
+ :password => password,
156
+ :host => host,
157
+ :port => port,
158
+ :path => path,
159
+ :query => query,
160
+ :fragment => fragment
161
+ )
162
+ end
163
+
164
+ ##
165
+ # Converts an input to a URI. The input does not have to be a valid
166
+ # URI — the method will use heuristics to guess what URI was intended.
167
+ # This is not standards-compliant, merely user-friendly.
168
+ #
169
+ # @param [String, Addressable::URI, #to_str] uri
170
+ # The URI string to parse.
171
+ # No parsing is performed if the object is already an
172
+ # <code>Addressable::URI</code>.
173
+ # @param [Hash] hints
174
+ # A <code>Hash</code> of hints to the heuristic parser.
175
+ # Defaults to <code>{:scheme => "http"}</code>.
176
+ #
177
+ # @return [Addressable::URI] The parsed URI.
178
+ def self.heuristic_parse(uri, hints={})
179
+ # If we were given nil, return nil.
180
+ return nil unless uri
181
+ # If a URI object is passed, just return itself.
182
+ return uri.dup if uri.kind_of?(self)
183
+
184
+ # If a URI object of the Ruby standard library variety is passed,
185
+ # convert it to a string, then parse the string.
186
+ # We do the check this way because we don't want to accidentally
187
+ # cause a missing constant exception to be thrown.
188
+ if uri.class.name =~ /^URI\b/
189
+ uri = uri.to_s
190
+ end
191
+
192
+ if !uri.respond_to?(:to_str)
193
+ raise TypeError, "Can't convert #{uri.class} into String."
194
+ end
195
+ # Otherwise, convert to a String
196
+ uri = uri.to_str.dup.strip
197
+ hints = {
198
+ :scheme => "http"
199
+ }.merge(hints)
200
+ case uri
201
+ when /^http:\//i
202
+ uri.sub!(/^http:\/+/i, "http://")
203
+ when /^https:\//i
204
+ uri.sub!(/^https:\/+/i, "https://")
205
+ when /^feed:\/+http:\//i
206
+ uri.sub!(/^feed:\/+http:\/+/i, "feed:http://")
207
+ when /^feed:\//i
208
+ uri.sub!(/^feed:\/+/i, "feed://")
209
+ when %r[^file:/{4}]i
210
+ uri.sub!(%r[^file:/+]i, "file:////")
211
+ when %r[^file://localhost/]i
212
+ uri.sub!(%r[^file://localhost/+]i, "file:///")
213
+ when %r[^file:/+]i
214
+ uri.sub!(%r[^file:/+]i, "file:///")
215
+ when /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/
216
+ uri.sub!(/^/, hints[:scheme] + "://")
217
+ when /\A\d+\..*:\d+\z/
218
+ uri = "#{hints[:scheme]}://#{uri}"
219
+ end
220
+ match = uri.match(URIREGEX)
221
+ fragments = match.captures
222
+ authority = fragments[3]
223
+ if authority && authority.length > 0
224
+ new_authority = authority.tr("\\", "/").gsub(" ", "%20")
225
+ # NOTE: We want offset 4, not 3!
226
+ offset = match.offset(4)
227
+ uri = uri.dup
228
+ uri[offset[0]...offset[1]] = new_authority
229
+ end
230
+ parsed = self.parse(uri)
231
+ if parsed.scheme =~ /^[^\/?#\.]+\.[^\/?#]+$/
232
+ parsed = self.parse(hints[:scheme] + "://" + uri)
233
+ end
234
+ if parsed.path.include?(".")
235
+ if parsed.path[/\b@\b/]
236
+ parsed.scheme = "mailto" unless parsed.scheme
237
+ elsif new_host = parsed.path[/^([^\/]+\.[^\/]*)/, 1]
238
+ parsed.defer_validation do
239
+ new_path = parsed.path.sub(
240
+ Regexp.new("^" + Regexp.escape(new_host)), EMPTY_STR)
241
+ parsed.host = new_host
242
+ parsed.path = new_path
243
+ parsed.scheme = hints[:scheme] unless parsed.scheme
244
+ end
245
+ end
246
+ end
247
+ return parsed
248
+ end
249
+
250
+ ##
251
+ # Converts a path to a file scheme URI. If the path supplied is
252
+ # relative, it will be returned as a relative URI. If the path supplied
253
+ # is actually a non-file URI, it will parse the URI as if it had been
254
+ # parsed with <code>Addressable::URI.parse</code>. Handles all of the
255
+ # various Microsoft-specific formats for specifying paths.
256
+ #
257
+ # @param [String, Addressable::URI, #to_str] path
258
+ # Typically a <code>String</code> path to a file or directory, but
259
+ # will return a sensible return value if an absolute URI is supplied
260
+ # instead.
261
+ #
262
+ # @return [Addressable::URI]
263
+ # The parsed file scheme URI or the original URI if some other URI
264
+ # scheme was provided.
265
+ #
266
+ # @example
267
+ # base = Addressable::URI.convert_path("/absolute/path/")
268
+ # uri = Addressable::URI.convert_path("relative/path")
269
+ # (base + uri).to_s
270
+ # #=> "file:///absolute/path/relative/path"
271
+ #
272
+ # Addressable::URI.convert_path(
273
+ # "c:\\windows\\My Documents 100%20\\foo.txt"
274
+ # ).to_s
275
+ # #=> "file:///c:/windows/My%20Documents%20100%20/foo.txt"
276
+ #
277
+ # Addressable::URI.convert_path("http://example.com/").to_s
278
+ # #=> "http://example.com/"
279
+ def self.convert_path(path)
280
+ # If we were given nil, return nil.
281
+ return nil unless path
282
+ # If a URI object is passed, just return itself.
283
+ return path if path.kind_of?(self)
284
+ if !path.respond_to?(:to_str)
285
+ raise TypeError, "Can't convert #{path.class} into String."
286
+ end
287
+ # Otherwise, convert to a String
288
+ path = path.to_str.strip
289
+
290
+ path.sub!(/^file:\/?\/?/, EMPTY_STR) if path =~ /^file:\/?\/?/
291
+ path = SLASH + path if path =~ /^([a-zA-Z])[\|:]/
292
+ uri = self.parse(path)
293
+
294
+ if uri.scheme == nil
295
+ # Adjust windows-style uris
296
+ uri.path.sub!(/^\/?([a-zA-Z])[\|:][\\\/]/) do
297
+ "/#{$1.downcase}:/"
298
+ end
299
+ uri.path.tr!("\\", SLASH)
300
+ if File.exist?(uri.path) &&
301
+ File.stat(uri.path).directory?
302
+ uri.path.chomp!(SLASH)
303
+ uri.path = uri.path + '/'
304
+ end
305
+
306
+ # If the path is absolute, set the scheme and host.
307
+ if uri.path.start_with?(SLASH)
308
+ uri.scheme = "file"
309
+ uri.host = EMPTY_STR
310
+ end
311
+ uri.normalize!
312
+ end
313
+
314
+ return uri
315
+ end
316
+
317
+ ##
318
+ # Joins several URIs together.
319
+ #
320
+ # @param [String, Addressable::URI, #to_str] *uris
321
+ # The URIs to join.
322
+ #
323
+ # @return [Addressable::URI] The joined URI.
324
+ #
325
+ # @example
326
+ # base = "http://example.com/"
327
+ # uri = Addressable::URI.parse("relative/path")
328
+ # Addressable::URI.join(base, uri)
329
+ # #=> #<Addressable::URI:0xcab390 URI:http://example.com/relative/path>
330
+ def self.join(*uris)
331
+ uri_objects = uris.collect do |uri|
332
+ if !uri.respond_to?(:to_str)
333
+ raise TypeError, "Can't convert #{uri.class} into String."
334
+ end
335
+ uri.kind_of?(self) ? uri : self.parse(uri.to_str)
336
+ end
337
+ result = uri_objects.shift.dup
338
+ for uri in uri_objects
339
+ result.join!(uri)
340
+ end
341
+ return result
342
+ end
343
+
344
+ ##
345
+ # Tables used to optimize encoding operations in `self.encode_component`
346
+ # and `self.normalize_component`
347
+ SEQUENCE_ENCODING_TABLE = Hash.new do |hash, sequence|
348
+ hash[sequence] = sequence.unpack("C*").map do |c|
349
+ format("%02x", c)
350
+ end.join
351
+ end
352
+
353
+ SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE = Hash.new do |hash, sequence|
354
+ hash[sequence] = sequence.unpack("C*").map do |c|
355
+ format("%%%02X", c)
356
+ end.join
357
+ end
358
+
359
+ ##
360
+ # Percent encodes a URI component.
361
+ #
362
+ # @param [String, #to_str] component The URI component to encode.
363
+ #
364
+ # @param [String, Regexp] character_class
365
+ # The characters which are not percent encoded. If a <code>String</code>
366
+ # is passed, the <code>String</code> must be formatted as a regular
367
+ # expression character class. (Do not include the surrounding square
368
+ # brackets.) For example, <code>"b-zB-Z0-9"</code> would cause
369
+ # everything but the letters 'b' through 'z' and the numbers '0' through
370
+ # '9' to be percent encoded. If a <code>Regexp</code> is passed, the
371
+ # value <code>/[^b-zB-Z0-9]/</code> would have the same effect. A set of
372
+ # useful <code>String</code> values may be found in the
373
+ # <code>Addressable::URI::CharacterClasses</code> module. The default
374
+ # value is the reserved plus unreserved character classes specified in
375
+ # <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>.
376
+ #
377
+ # @param [Regexp] upcase_encoded
378
+ # A string of characters that may already be percent encoded, and whose
379
+ # encodings should be upcased. This allows normalization of percent
380
+ # encodings for characters not included in the
381
+ # <code>character_class</code>.
382
+ #
383
+ # @return [String] The encoded component.
384
+ #
385
+ # @example
386
+ # Addressable::URI.encode_component("simple/example", "b-zB-Z0-9")
387
+ # => "simple%2Fex%61mple"
388
+ # Addressable::URI.encode_component("simple/example", /[^b-zB-Z0-9]/)
389
+ # => "simple%2Fex%61mple"
390
+ # Addressable::URI.encode_component(
391
+ # "simple/example", Addressable::URI::CharacterClasses::UNRESERVED
392
+ # )
393
+ # => "simple%2Fexample"
394
+ def self.encode_component(component, character_class=
395
+ CharacterClasses::RESERVED + CharacterClasses::UNRESERVED,
396
+ upcase_encoded='')
397
+ return nil if component.nil?
398
+
399
+ begin
400
+ if component.kind_of?(Symbol) ||
401
+ component.kind_of?(Numeric) ||
402
+ component.kind_of?(TrueClass) ||
403
+ component.kind_of?(FalseClass)
404
+ component = component.to_s
405
+ else
406
+ component = component.to_str
407
+ end
408
+ rescue TypeError, NoMethodError
409
+ raise TypeError, "Can't convert #{component.class} into String."
410
+ end if !component.is_a? String
411
+
412
+ if ![String, Regexp].include?(character_class.class)
413
+ raise TypeError,
414
+ "Expected String or Regexp, got #{character_class.inspect}"
415
+ end
416
+ if character_class.kind_of?(String)
417
+ character_class = /[^#{character_class}]/
418
+ end
419
+ # We can't perform regexps on invalid UTF sequences, but
420
+ # here we need to, so switch to ASCII.
421
+ component = component.dup
422
+ component.force_encoding(Encoding::ASCII_8BIT)
423
+ # Avoiding gsub! because there are edge cases with frozen strings
424
+ component = component.gsub(character_class) do |sequence|
425
+ SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE[sequence]
426
+ end
427
+ if upcase_encoded.length > 0
428
+ upcase_encoded_chars = upcase_encoded.chars.map do |char|
429
+ SEQUENCE_ENCODING_TABLE[char]
430
+ end
431
+ component = component.gsub(/%(#{upcase_encoded_chars.join('|')})/,
432
+ &:upcase)
433
+ end
434
+ return component
435
+ end
436
+
437
+ class << self
438
+ alias_method :escape_component, :encode_component
439
+ end
440
+
441
+ ##
442
+ # Unencodes any percent encoded characters within a URI component.
443
+ # This method may be used for unencoding either components or full URIs,
444
+ # however, it is recommended to use the <code>unencode_component</code>
445
+ # alias when unencoding components.
446
+ #
447
+ # @param [String, Addressable::URI, #to_str] uri
448
+ # The URI or component to unencode.
449
+ #
450
+ # @param [Class] return_type
451
+ # The type of object to return.
452
+ # This value may only be set to <code>String</code> or
453
+ # <code>Addressable::URI</code>. All other values are invalid. Defaults
454
+ # to <code>String</code>.
455
+ #
456
+ # @param [String] leave_encoded
457
+ # A string of characters to leave encoded. If a percent encoded character
458
+ # in this list is encountered then it will remain percent encoded.
459
+ #
460
+ # @return [String, Addressable::URI]
461
+ # The unencoded component or URI.
462
+ # The return type is determined by the <code>return_type</code>
463
+ # parameter.
464
+ def self.unencode(uri, return_type=String, leave_encoded='')
465
+ return nil if uri.nil?
466
+
467
+ begin
468
+ uri = uri.to_str
469
+ rescue NoMethodError, TypeError
470
+ raise TypeError, "Can't convert #{uri.class} into String."
471
+ end if !uri.is_a? String
472
+ if ![String, ::Addressable::URI].include?(return_type)
473
+ raise TypeError,
474
+ "Expected Class (String or Addressable::URI), " +
475
+ "got #{return_type.inspect}"
476
+ end
477
+
478
+ result = uri.gsub(/%[0-9a-f]{2}/i) do |sequence|
479
+ c = sequence[1..3].to_i(16).chr
480
+ c.force_encoding(sequence.encoding)
481
+ leave_encoded.include?(c) ? sequence : c
482
+ end
483
+
484
+ result.force_encoding("utf-8")
485
+ if return_type == String
486
+ return result
487
+ elsif return_type == ::Addressable::URI
488
+ return ::Addressable::URI.parse(result)
489
+ end
490
+ end
491
+
492
+ class << self
493
+ alias_method :unescape, :unencode
494
+ alias_method :unencode_component, :unencode
495
+ alias_method :unescape_component, :unencode
496
+ end
497
+
498
+
499
+ ##
500
+ # Normalizes the encoding of a URI component.
501
+ #
502
+ # @param [String, #to_str] component The URI component to encode.
503
+ #
504
+ # @param [String, Regexp] character_class
505
+ # The characters which are not percent encoded. If a <code>String</code>
506
+ # is passed, the <code>String</code> must be formatted as a regular
507
+ # expression character class. (Do not include the surrounding square
508
+ # brackets.) For example, <code>"b-zB-Z0-9"</code> would cause
509
+ # everything but the letters 'b' through 'z' and the numbers '0'
510
+ # through '9' to be percent encoded. If a <code>Regexp</code> is passed,
511
+ # the value <code>/[^b-zB-Z0-9]/</code> would have the same effect. A
512
+ # set of useful <code>String</code> values may be found in the
513
+ # <code>Addressable::URI::CharacterClasses</code> module. The default
514
+ # value is the reserved plus unreserved character classes specified in
515
+ # <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>.
516
+ #
517
+ # @param [String] leave_encoded
518
+ # When <code>character_class</code> is a <code>String</code> then
519
+ # <code>leave_encoded</code> is a string of characters that should remain
520
+ # percent encoded while normalizing the component; if they appear percent
521
+ # encoded in the original component, then they will be upcased ("%2f"
522
+ # normalized to "%2F") but otherwise left alone.
523
+ #
524
+ # @return [String] The normalized component.
525
+ #
526
+ # @example
527
+ # Addressable::URI.normalize_component("simpl%65/%65xampl%65", "b-zB-Z")
528
+ # => "simple%2Fex%61mple"
529
+ # Addressable::URI.normalize_component(
530
+ # "simpl%65/%65xampl%65", /[^b-zB-Z]/
531
+ # )
532
+ # => "simple%2Fex%61mple"
533
+ # Addressable::URI.normalize_component(
534
+ # "simpl%65/%65xampl%65",
535
+ # Addressable::URI::CharacterClasses::UNRESERVED
536
+ # )
537
+ # => "simple%2Fexample"
538
+ # Addressable::URI.normalize_component(
539
+ # "one%20two%2fthree%26four",
540
+ # "0-9a-zA-Z &/",
541
+ # "/"
542
+ # )
543
+ # => "one two%2Fthree&four"
544
+ def self.normalize_component(component, character_class=
545
+ CharacterClasses::RESERVED + CharacterClasses::UNRESERVED,
546
+ leave_encoded='')
547
+ return nil if component.nil?
548
+
549
+ begin
550
+ component = component.to_str
551
+ rescue NoMethodError, TypeError
552
+ raise TypeError, "Can't convert #{component.class} into String."
553
+ end if !component.is_a? String
554
+
555
+ if ![String, Regexp].include?(character_class.class)
556
+ raise TypeError,
557
+ "Expected String or Regexp, got #{character_class.inspect}"
558
+ end
559
+ if character_class.kind_of?(String)
560
+ leave_re = if leave_encoded.length > 0
561
+ character_class = "#{character_class}%" unless character_class.include?('%')
562
+
563
+ "|%(?!#{leave_encoded.chars.flat_map do |char|
564
+ seq = SEQUENCE_ENCODING_TABLE[char]
565
+ [seq.upcase, seq.downcase]
566
+ end.join('|')})"
567
+ end
568
+
569
+ character_class = if leave_re
570
+ /[^#{character_class}]#{leave_re}/
571
+ else
572
+ /[^#{character_class}]/
573
+ end
574
+ end
575
+ # We can't perform regexps on invalid UTF sequences, but
576
+ # here we need to, so switch to ASCII.
577
+ component = component.dup
578
+ component.force_encoding(Encoding::ASCII_8BIT)
579
+ unencoded = self.unencode_component(component, String, leave_encoded)
580
+ begin
581
+ encoded = self.encode_component(
582
+ Addressable::IDNA.unicode_normalize_kc(unencoded),
583
+ character_class,
584
+ leave_encoded
585
+ )
586
+ rescue ArgumentError
587
+ encoded = self.encode_component(unencoded)
588
+ end
589
+ encoded.force_encoding(Encoding::UTF_8)
590
+ return encoded
591
+ end
592
+
593
+ ##
594
+ # Percent encodes any special characters in the URI.
595
+ #
596
+ # @param [String, Addressable::URI, #to_str] uri
597
+ # The URI to encode.
598
+ #
599
+ # @param [Class] return_type
600
+ # The type of object to return.
601
+ # This value may only be set to <code>String</code> or
602
+ # <code>Addressable::URI</code>. All other values are invalid. Defaults
603
+ # to <code>String</code>.
604
+ #
605
+ # @return [String, Addressable::URI]
606
+ # The encoded URI.
607
+ # The return type is determined by the <code>return_type</code>
608
+ # parameter.
609
+ def self.encode(uri, return_type=String)
610
+ return nil if uri.nil?
611
+
612
+ begin
613
+ uri = uri.to_str
614
+ rescue NoMethodError, TypeError
615
+ raise TypeError, "Can't convert #{uri.class} into String."
616
+ end if !uri.is_a? String
617
+
618
+ if ![String, ::Addressable::URI].include?(return_type)
619
+ raise TypeError,
620
+ "Expected Class (String or Addressable::URI), " +
621
+ "got #{return_type.inspect}"
622
+ end
623
+ uri_object = uri.kind_of?(self) ? uri : self.parse(uri)
624
+ encoded_uri = Addressable::URI.new(
625
+ :scheme => self.encode_component(uri_object.scheme,
626
+ Addressable::URI::CharacterClasses::SCHEME),
627
+ :authority => self.encode_component(uri_object.authority,
628
+ Addressable::URI::CharacterClasses::AUTHORITY),
629
+ :path => self.encode_component(uri_object.path,
630
+ Addressable::URI::CharacterClasses::PATH),
631
+ :query => self.encode_component(uri_object.query,
632
+ Addressable::URI::CharacterClasses::QUERY),
633
+ :fragment => self.encode_component(uri_object.fragment,
634
+ Addressable::URI::CharacterClasses::FRAGMENT)
635
+ )
636
+ if return_type == String
637
+ return encoded_uri.to_s
638
+ elsif return_type == ::Addressable::URI
639
+ return encoded_uri
640
+ end
641
+ end
642
+
643
+ class << self
644
+ alias_method :escape, :encode
645
+ end
646
+
647
+ ##
648
+ # Normalizes the encoding of a URI. Characters within a hostname are
649
+ # not percent encoded to allow for internationalized domain names.
650
+ #
651
+ # @param [String, Addressable::URI, #to_str] uri
652
+ # The URI to encode.
653
+ #
654
+ # @param [Class] return_type
655
+ # The type of object to return.
656
+ # This value may only be set to <code>String</code> or
657
+ # <code>Addressable::URI</code>. All other values are invalid. Defaults
658
+ # to <code>String</code>.
659
+ #
660
+ # @return [String, Addressable::URI]
661
+ # The encoded URI.
662
+ # The return type is determined by the <code>return_type</code>
663
+ # parameter.
664
+ def self.normalized_encode(uri, return_type=String)
665
+ begin
666
+ uri = uri.to_str
667
+ rescue NoMethodError, TypeError
668
+ raise TypeError, "Can't convert #{uri.class} into String."
669
+ end if !uri.is_a? String
670
+
671
+ if ![String, ::Addressable::URI].include?(return_type)
672
+ raise TypeError,
673
+ "Expected Class (String or Addressable::URI), " +
674
+ "got #{return_type.inspect}"
675
+ end
676
+ uri_object = uri.kind_of?(self) ? uri : self.parse(uri)
677
+ components = {
678
+ :scheme => self.unencode_component(uri_object.scheme),
679
+ :user => self.unencode_component(uri_object.user),
680
+ :password => self.unencode_component(uri_object.password),
681
+ :host => self.unencode_component(uri_object.host),
682
+ :port => (uri_object.port.nil? ? nil : uri_object.port.to_s),
683
+ :path => self.unencode_component(uri_object.path),
684
+ :query => self.unencode_component(uri_object.query),
685
+ :fragment => self.unencode_component(uri_object.fragment)
686
+ }
687
+ components.each do |key, value|
688
+ if value != nil
689
+ begin
690
+ components[key] =
691
+ Addressable::IDNA.unicode_normalize_kc(value.to_str)
692
+ rescue ArgumentError
693
+ # Likely a malformed UTF-8 character, skip unicode normalization
694
+ components[key] = value.to_str
695
+ end
696
+ end
697
+ end
698
+ encoded_uri = Addressable::URI.new(
699
+ :scheme => self.encode_component(components[:scheme],
700
+ Addressable::URI::CharacterClasses::SCHEME),
701
+ :user => self.encode_component(components[:user],
702
+ Addressable::URI::CharacterClasses::UNRESERVED),
703
+ :password => self.encode_component(components[:password],
704
+ Addressable::URI::CharacterClasses::UNRESERVED),
705
+ :host => components[:host],
706
+ :port => components[:port],
707
+ :path => self.encode_component(components[:path],
708
+ Addressable::URI::CharacterClasses::PATH),
709
+ :query => self.encode_component(components[:query],
710
+ Addressable::URI::CharacterClasses::QUERY),
711
+ :fragment => self.encode_component(components[:fragment],
712
+ Addressable::URI::CharacterClasses::FRAGMENT)
713
+ )
714
+ if return_type == String
715
+ return encoded_uri.to_s
716
+ elsif return_type == ::Addressable::URI
717
+ return encoded_uri
718
+ end
719
+ end
720
+
721
+ ##
722
+ # Encodes a set of key/value pairs according to the rules for the
723
+ # <code>application/x-www-form-urlencoded</code> MIME type.
724
+ #
725
+ # @param [#to_hash, #to_ary] form_values
726
+ # The form values to encode.
727
+ #
728
+ # @param [TrueClass, FalseClass] sort
729
+ # Sort the key/value pairs prior to encoding.
730
+ # Defaults to <code>false</code>.
731
+ #
732
+ # @return [String]
733
+ # The encoded value.
734
+ def self.form_encode(form_values, sort=false)
735
+ if form_values.respond_to?(:to_hash)
736
+ form_values = form_values.to_hash.to_a
737
+ elsif form_values.respond_to?(:to_ary)
738
+ form_values = form_values.to_ary
739
+ else
740
+ raise TypeError, "Can't convert #{form_values.class} into Array."
741
+ end
742
+
743
+ form_values = form_values.inject([]) do |accu, (key, value)|
744
+ if value.kind_of?(Array)
745
+ value.each do |v|
746
+ accu << [key.to_s, v.to_s]
747
+ end
748
+ else
749
+ accu << [key.to_s, value.to_s]
750
+ end
751
+ accu
752
+ end
753
+
754
+ if sort
755
+ # Useful for OAuth and optimizing caching systems
756
+ form_values = form_values.sort
757
+ end
758
+ escaped_form_values = form_values.map do |(key, value)|
759
+ # Line breaks are CRLF pairs
760
+ [
761
+ self.encode_component(
762
+ key.gsub(/(\r\n|\n|\r)/, "\r\n"),
763
+ CharacterClasses::UNRESERVED
764
+ ).gsub("%20", "+"),
765
+ self.encode_component(
766
+ value.gsub(/(\r\n|\n|\r)/, "\r\n"),
767
+ CharacterClasses::UNRESERVED
768
+ ).gsub("%20", "+")
769
+ ]
770
+ end
771
+ return escaped_form_values.map do |(key, value)|
772
+ "#{key}=#{value}"
773
+ end.join("&")
774
+ end
775
+
776
+ ##
777
+ # Decodes a <code>String</code> according to the rules for the
778
+ # <code>application/x-www-form-urlencoded</code> MIME type.
779
+ #
780
+ # @param [String, #to_str] encoded_value
781
+ # The form values to decode.
782
+ #
783
+ # @return [Array]
784
+ # The decoded values.
785
+ # This is not a <code>Hash</code> because of the possibility for
786
+ # duplicate keys.
787
+ def self.form_unencode(encoded_value)
788
+ if !encoded_value.respond_to?(:to_str)
789
+ raise TypeError, "Can't convert #{encoded_value.class} into String."
790
+ end
791
+ encoded_value = encoded_value.to_str
792
+ split_values = encoded_value.split("&").map do |pair|
793
+ pair.split("=", 2)
794
+ end
795
+ return split_values.map do |(key, value)|
796
+ [
797
+ key ? self.unencode_component(
798
+ key.gsub("+", "%20")).gsub(/(\r\n|\n|\r)/, "\n") : nil,
799
+ value ? (self.unencode_component(
800
+ value.gsub("+", "%20")).gsub(/(\r\n|\n|\r)/, "\n")) : nil
801
+ ]
802
+ end
803
+ end
804
+
805
+ ##
806
+ # Creates a new uri object from component parts.
807
+ #
808
+ # @option [String, #to_str] scheme The scheme component.
809
+ # @option [String, #to_str] user The user component.
810
+ # @option [String, #to_str] password The password component.
811
+ # @option [String, #to_str] userinfo
812
+ # The userinfo component. If this is supplied, the user and password
813
+ # components must be omitted.
814
+ # @option [String, #to_str] host The host component.
815
+ # @option [String, #to_str] port The port component.
816
+ # @option [String, #to_str] authority
817
+ # The authority component. If this is supplied, the user, password,
818
+ # userinfo, host, and port components must be omitted.
819
+ # @option [String, #to_str] path The path component.
820
+ # @option [String, #to_str] query The query component.
821
+ # @option [String, #to_str] fragment The fragment component.
822
+ #
823
+ # @return [Addressable::URI] The constructed URI object.
824
+ def initialize(options={})
825
+ if options.has_key?(:authority)
826
+ if (options.keys & [:userinfo, :user, :password, :host, :port]).any?
827
+ raise ArgumentError,
828
+ "Cannot specify both an authority and any of the components " +
829
+ "within the authority."
830
+ end
831
+ end
832
+ if options.has_key?(:userinfo)
833
+ if (options.keys & [:user, :password]).any?
834
+ raise ArgumentError,
835
+ "Cannot specify both a userinfo and either the user or password."
836
+ end
837
+ end
838
+
839
+ self.defer_validation do
840
+ # Bunch of crazy logic required because of the composite components
841
+ # like userinfo and authority.
842
+ self.scheme = options[:scheme] if options[:scheme]
843
+ self.user = options[:user] if options[:user]
844
+ self.password = options[:password] if options[:password]
845
+ self.userinfo = options[:userinfo] if options[:userinfo]
846
+ self.host = options[:host] if options[:host]
847
+ self.port = options[:port] if options[:port]
848
+ self.authority = options[:authority] if options[:authority]
849
+ self.path = options[:path] if options[:path]
850
+ self.query = options[:query] if options[:query]
851
+ self.query_values = options[:query_values] if options[:query_values]
852
+ self.fragment = options[:fragment] if options[:fragment]
853
+ end
854
+ self.to_s
855
+ end
856
+
857
+ ##
858
+ # Freeze URI, initializing instance variables.
859
+ #
860
+ # @return [Addressable::URI] The frozen URI object.
861
+ def freeze
862
+ self.normalized_scheme
863
+ self.normalized_user
864
+ self.normalized_password
865
+ self.normalized_userinfo
866
+ self.normalized_host
867
+ self.normalized_port
868
+ self.normalized_authority
869
+ self.normalized_site
870
+ self.normalized_path
871
+ self.normalized_query
872
+ self.normalized_fragment
873
+ self.hash
874
+ super
875
+ end
876
+
877
+ ##
878
+ # The scheme component for this URI.
879
+ #
880
+ # @return [String] The scheme component.
881
+ def scheme
882
+ return defined?(@scheme) ? @scheme : nil
883
+ end
884
+
885
+ ##
886
+ # The scheme component for this URI, normalized.
887
+ #
888
+ # @return [String] The scheme component, normalized.
889
+ def normalized_scheme
890
+ return nil unless self.scheme
891
+ @normalized_scheme ||= begin
892
+ if self.scheme =~ /^\s*ssh\+svn\s*$/i
893
+ "svn+ssh".dup
894
+ else
895
+ Addressable::URI.normalize_component(
896
+ self.scheme.strip.downcase,
897
+ Addressable::URI::NormalizeCharacterClasses::SCHEME
898
+ )
899
+ end
900
+ end
901
+ # All normalized values should be UTF-8
902
+ force_utf8_encoding_if_needed(@normalized_scheme)
903
+ @normalized_scheme
904
+ end
905
+
906
+ ##
907
+ # Sets the scheme component for this URI.
908
+ #
909
+ # @param [String, #to_str] new_scheme The new scheme component.
910
+ def scheme=(new_scheme)
911
+ if new_scheme && !new_scheme.respond_to?(:to_str)
912
+ raise TypeError, "Can't convert #{new_scheme.class} into String."
913
+ elsif new_scheme
914
+ new_scheme = new_scheme.to_str
915
+ end
916
+ if new_scheme && new_scheme !~ /\A[a-z][a-z0-9\.\+\-]*\z/i
917
+ raise InvalidURIError, "Invalid scheme format: '#{new_scheme}'"
918
+ end
919
+ @scheme = new_scheme
920
+ @scheme = nil if @scheme.to_s.strip.empty?
921
+
922
+ # Reset dependent values
923
+ remove_instance_variable(:@normalized_scheme) if defined?(@normalized_scheme)
924
+ remove_composite_values
925
+
926
+ # Ensure we haven't created an invalid URI
927
+ validate()
928
+ end
929
+
930
+ ##
931
+ # The user component for this URI.
932
+ #
933
+ # @return [String] The user component.
934
+ def user
935
+ return defined?(@user) ? @user : nil
936
+ end
937
+
938
+ ##
939
+ # The user component for this URI, normalized.
940
+ #
941
+ # @return [String] The user component, normalized.
942
+ def normalized_user
943
+ return nil unless self.user
944
+ return @normalized_user if defined?(@normalized_user)
945
+ @normalized_user ||= begin
946
+ if normalized_scheme =~ /https?/ && self.user.strip.empty? &&
947
+ (!self.password || self.password.strip.empty?)
948
+ nil
949
+ else
950
+ Addressable::URI.normalize_component(
951
+ self.user.strip,
952
+ Addressable::URI::NormalizeCharacterClasses::UNRESERVED
953
+ )
954
+ end
955
+ end
956
+ # All normalized values should be UTF-8
957
+ force_utf8_encoding_if_needed(@normalized_user)
958
+ @normalized_user
959
+ end
960
+
961
+ ##
962
+ # Sets the user component for this URI.
963
+ #
964
+ # @param [String, #to_str] new_user The new user component.
965
+ def user=(new_user)
966
+ if new_user && !new_user.respond_to?(:to_str)
967
+ raise TypeError, "Can't convert #{new_user.class} into String."
968
+ end
969
+ @user = new_user ? new_user.to_str : nil
970
+
971
+ # You can't have a nil user with a non-nil password
972
+ if password != nil
973
+ @user = EMPTY_STR if @user.nil?
974
+ end
975
+
976
+ # Reset dependent values
977
+ remove_instance_variable(:@userinfo) if defined?(@userinfo)
978
+ remove_instance_variable(:@normalized_userinfo) if defined?(@normalized_userinfo)
979
+ remove_instance_variable(:@authority) if defined?(@authority)
980
+ remove_instance_variable(:@normalized_user) if defined?(@normalized_user)
981
+ remove_composite_values
982
+
983
+ # Ensure we haven't created an invalid URI
984
+ validate()
985
+ end
986
+
987
+ ##
988
+ # The password component for this URI.
989
+ #
990
+ # @return [String] The password component.
991
+ def password
992
+ return defined?(@password) ? @password : nil
993
+ end
994
+
995
+ ##
996
+ # The password component for this URI, normalized.
997
+ #
998
+ # @return [String] The password component, normalized.
999
+ def normalized_password
1000
+ return nil unless self.password
1001
+ return @normalized_password if defined?(@normalized_password)
1002
+ @normalized_password ||= begin
1003
+ if self.normalized_scheme =~ /https?/ && self.password.strip.empty? &&
1004
+ (!self.user || self.user.strip.empty?)
1005
+ nil
1006
+ else
1007
+ Addressable::URI.normalize_component(
1008
+ self.password.strip,
1009
+ Addressable::URI::NormalizeCharacterClasses::UNRESERVED
1010
+ )
1011
+ end
1012
+ end
1013
+ # All normalized values should be UTF-8
1014
+ force_utf8_encoding_if_needed(@normalized_password)
1015
+ @normalized_password
1016
+ end
1017
+
1018
+ ##
1019
+ # Sets the password component for this URI.
1020
+ #
1021
+ # @param [String, #to_str] new_password The new password component.
1022
+ def password=(new_password)
1023
+ if new_password && !new_password.respond_to?(:to_str)
1024
+ raise TypeError, "Can't convert #{new_password.class} into String."
1025
+ end
1026
+ @password = new_password ? new_password.to_str : nil
1027
+
1028
+ # You can't have a nil user with a non-nil password
1029
+ @password ||= nil
1030
+ @user ||= nil
1031
+ if @password != nil
1032
+ @user = EMPTY_STR if @user.nil?
1033
+ end
1034
+
1035
+ # Reset dependent values
1036
+ remove_instance_variable(:@userinfo) if defined?(@userinfo)
1037
+ remove_instance_variable(:@normalized_userinfo) if defined?(@normalized_userinfo)
1038
+ remove_instance_variable(:@authority) if defined?(@authority)
1039
+ remove_instance_variable(:@normalized_password) if defined?(@normalized_password)
1040
+ remove_composite_values
1041
+
1042
+ # Ensure we haven't created an invalid URI
1043
+ validate()
1044
+ end
1045
+
1046
+ ##
1047
+ # The userinfo component for this URI.
1048
+ # Combines the user and password components.
1049
+ #
1050
+ # @return [String] The userinfo component.
1051
+ def userinfo
1052
+ current_user = self.user
1053
+ current_password = self.password
1054
+ (current_user || current_password) && @userinfo ||= begin
1055
+ if current_user && current_password
1056
+ "#{current_user}:#{current_password}"
1057
+ elsif current_user && !current_password
1058
+ "#{current_user}"
1059
+ end
1060
+ end
1061
+ end
1062
+
1063
+ ##
1064
+ # The userinfo component for this URI, normalized.
1065
+ #
1066
+ # @return [String] The userinfo component, normalized.
1067
+ def normalized_userinfo
1068
+ return nil unless self.userinfo
1069
+ return @normalized_userinfo if defined?(@normalized_userinfo)
1070
+ @normalized_userinfo ||= begin
1071
+ current_user = self.normalized_user
1072
+ current_password = self.normalized_password
1073
+ if !current_user && !current_password
1074
+ nil
1075
+ elsif current_user && current_password
1076
+ "#{current_user}:#{current_password}".dup
1077
+ elsif current_user && !current_password
1078
+ "#{current_user}".dup
1079
+ end
1080
+ end
1081
+ # All normalized values should be UTF-8
1082
+ force_utf8_encoding_if_needed(@normalized_userinfo)
1083
+ @normalized_userinfo
1084
+ end
1085
+
1086
+ ##
1087
+ # Sets the userinfo component for this URI.
1088
+ #
1089
+ # @param [String, #to_str] new_userinfo The new userinfo component.
1090
+ def userinfo=(new_userinfo)
1091
+ if new_userinfo && !new_userinfo.respond_to?(:to_str)
1092
+ raise TypeError, "Can't convert #{new_userinfo.class} into String."
1093
+ end
1094
+ new_user, new_password = if new_userinfo
1095
+ [
1096
+ new_userinfo.to_str.strip[/^(.*):/, 1],
1097
+ new_userinfo.to_str.strip[/:(.*)$/, 1]
1098
+ ]
1099
+ else
1100
+ [nil, nil]
1101
+ end
1102
+
1103
+ # Password assigned first to ensure validity in case of nil
1104
+ self.password = new_password
1105
+ self.user = new_user
1106
+
1107
+ # Reset dependent values
1108
+ remove_instance_variable(:@authority) if defined?(@authority)
1109
+ remove_composite_values
1110
+
1111
+ # Ensure we haven't created an invalid URI
1112
+ validate()
1113
+ end
1114
+
1115
+ ##
1116
+ # The host component for this URI.
1117
+ #
1118
+ # @return [String] The host component.
1119
+ def host
1120
+ return defined?(@host) ? @host : nil
1121
+ end
1122
+
1123
+ ##
1124
+ # The host component for this URI, normalized.
1125
+ #
1126
+ # @return [String] The host component, normalized.
1127
+ def normalized_host
1128
+ return nil unless self.host
1129
+
1130
+ @normalized_host ||= begin
1131
+ if !self.host.strip.empty?
1132
+ result = ::Addressable::IDNA.to_ascii(
1133
+ URI.unencode_component(self.host.strip.downcase)
1134
+ )
1135
+ if result =~ /[^\.]\.$/
1136
+ # Single trailing dots are unnecessary.
1137
+ result = result[0...-1]
1138
+ end
1139
+ result = Addressable::URI.normalize_component(
1140
+ result,
1141
+ NormalizeCharacterClasses::HOST
1142
+ )
1143
+ result
1144
+ else
1145
+ EMPTY_STR.dup
1146
+ end
1147
+ end
1148
+ # All normalized values should be UTF-8
1149
+ force_utf8_encoding_if_needed(@normalized_host)
1150
+ @normalized_host
1151
+ end
1152
+
1153
+ ##
1154
+ # Sets the host component for this URI.
1155
+ #
1156
+ # @param [String, #to_str] new_host The new host component.
1157
+ def host=(new_host)
1158
+ if new_host && !new_host.respond_to?(:to_str)
1159
+ raise TypeError, "Can't convert #{new_host.class} into String."
1160
+ end
1161
+ @host = new_host ? new_host.to_str : nil
1162
+
1163
+ # Reset dependent values
1164
+ remove_instance_variable(:@authority) if defined?(@authority)
1165
+ remove_instance_variable(:@normalized_host) if defined?(@normalized_host)
1166
+ remove_composite_values
1167
+
1168
+ # Ensure we haven't created an invalid URI
1169
+ validate()
1170
+ end
1171
+
1172
+ ##
1173
+ # This method is same as URI::Generic#host except
1174
+ # brackets for IPv6 (and 'IPvFuture') addresses are removed.
1175
+ #
1176
+ # @see Addressable::URI#host
1177
+ #
1178
+ # @return [String] The hostname for this URI.
1179
+ def hostname
1180
+ v = self.host
1181
+ /\A\[(.*)\]\z/ =~ v ? $1 : v
1182
+ end
1183
+
1184
+ ##
1185
+ # This method is same as URI::Generic#host= except
1186
+ # the argument can be a bare IPv6 address (or 'IPvFuture').
1187
+ #
1188
+ # @see Addressable::URI#host=
1189
+ #
1190
+ # @param [String, #to_str] new_hostname The new hostname for this URI.
1191
+ def hostname=(new_hostname)
1192
+ if new_hostname &&
1193
+ (new_hostname.respond_to?(:ipv4?) || new_hostname.respond_to?(:ipv6?))
1194
+ new_hostname = new_hostname.to_s
1195
+ elsif new_hostname && !new_hostname.respond_to?(:to_str)
1196
+ raise TypeError, "Can't convert #{new_hostname.class} into String."
1197
+ end
1198
+ v = new_hostname ? new_hostname.to_str : nil
1199
+ v = "[#{v}]" if /\A\[.*\]\z/ !~ v && /:/ =~ v
1200
+ self.host = v
1201
+ end
1202
+
1203
+ ##
1204
+ # Returns the top-level domain for this host.
1205
+ #
1206
+ # @example
1207
+ # Addressable::URI.parse("http://www.example.co.uk").tld # => "co.uk"
1208
+ def tld
1209
+ PublicSuffix.parse(self.host, ignore_private: true).tld
1210
+ end
1211
+
1212
+ ##
1213
+ # Sets the top-level domain for this URI.
1214
+ #
1215
+ # @param [String, #to_str] new_tld The new top-level domain.
1216
+ def tld=(new_tld)
1217
+ replaced_tld = host.sub(/#{tld}\z/, new_tld)
1218
+ self.host = PublicSuffix::Domain.new(replaced_tld).to_s
1219
+ end
1220
+
1221
+ ##
1222
+ # Returns the public suffix domain for this host.
1223
+ #
1224
+ # @example
1225
+ # Addressable::URI.parse("http://www.example.co.uk").domain # => "example.co.uk"
1226
+ def domain
1227
+ PublicSuffix.domain(self.host, ignore_private: true)
1228
+ end
1229
+
1230
+ ##
1231
+ # The authority component for this URI.
1232
+ # Combines the user, password, host, and port components.
1233
+ #
1234
+ # @return [String] The authority component.
1235
+ def authority
1236
+ self.host && @authority ||= begin
1237
+ authority = String.new
1238
+ if self.userinfo != nil
1239
+ authority << "#{self.userinfo}@"
1240
+ end
1241
+ authority << self.host
1242
+ if self.port != nil
1243
+ authority << ":#{self.port}"
1244
+ end
1245
+ authority
1246
+ end
1247
+ end
1248
+
1249
+ ##
1250
+ # The authority component for this URI, normalized.
1251
+ #
1252
+ # @return [String] The authority component, normalized.
1253
+ def normalized_authority
1254
+ return nil unless self.authority
1255
+ @normalized_authority ||= begin
1256
+ authority = String.new
1257
+ if self.normalized_userinfo != nil
1258
+ authority << "#{self.normalized_userinfo}@"
1259
+ end
1260
+ authority << self.normalized_host
1261
+ if self.normalized_port != nil
1262
+ authority << ":#{self.normalized_port}"
1263
+ end
1264
+ authority
1265
+ end
1266
+ # All normalized values should be UTF-8
1267
+ force_utf8_encoding_if_needed(@normalized_authority)
1268
+ @normalized_authority
1269
+ end
1270
+
1271
+ ##
1272
+ # Sets the authority component for this URI.
1273
+ #
1274
+ # @param [String, #to_str] new_authority The new authority component.
1275
+ def authority=(new_authority)
1276
+ if new_authority
1277
+ if !new_authority.respond_to?(:to_str)
1278
+ raise TypeError, "Can't convert #{new_authority.class} into String."
1279
+ end
1280
+ new_authority = new_authority.to_str
1281
+ new_userinfo = new_authority[/^([^\[\]]*)@/, 1]
1282
+ if new_userinfo
1283
+ new_user = new_userinfo.strip[/^([^:]*):?/, 1]
1284
+ new_password = new_userinfo.strip[/:(.*)$/, 1]
1285
+ end
1286
+ new_host = new_authority.sub(
1287
+ /^([^\[\]]*)@/, EMPTY_STR
1288
+ ).sub(
1289
+ /:([^:@\[\]]*?)$/, EMPTY_STR
1290
+ )
1291
+ new_port =
1292
+ new_authority[/:([^:@\[\]]*?)$/, 1]
1293
+ end
1294
+
1295
+ # Password assigned first to ensure validity in case of nil
1296
+ self.password = defined?(new_password) ? new_password : nil
1297
+ self.user = defined?(new_user) ? new_user : nil
1298
+ self.host = defined?(new_host) ? new_host : nil
1299
+ self.port = defined?(new_port) ? new_port : nil
1300
+
1301
+ # Reset dependent values
1302
+ remove_instance_variable(:@userinfo) if defined?(@userinfo)
1303
+ remove_instance_variable(:@normalized_userinfo) if defined?(@normalized_userinfo)
1304
+ remove_composite_values
1305
+
1306
+ # Ensure we haven't created an invalid URI
1307
+ validate()
1308
+ end
1309
+
1310
+ ##
1311
+ # The origin for this URI, serialized to ASCII, as per
1312
+ # RFC 6454, section 6.2.
1313
+ #
1314
+ # @return [String] The serialized origin.
1315
+ def origin
1316
+ if self.scheme && self.authority
1317
+ if self.normalized_port
1318
+ "#{self.normalized_scheme}://#{self.normalized_host}" +
1319
+ ":#{self.normalized_port}"
1320
+ else
1321
+ "#{self.normalized_scheme}://#{self.normalized_host}"
1322
+ end
1323
+ else
1324
+ "null"
1325
+ end
1326
+ end
1327
+
1328
+ ##
1329
+ # Sets the origin for this URI, serialized to ASCII, as per
1330
+ # RFC 6454, section 6.2. This assignment will reset the `userinfo`
1331
+ # component.
1332
+ #
1333
+ # @param [String, #to_str] new_origin The new origin component.
1334
+ def origin=(new_origin)
1335
+ if new_origin
1336
+ if !new_origin.respond_to?(:to_str)
1337
+ raise TypeError, "Can't convert #{new_origin.class} into String."
1338
+ end
1339
+ new_origin = new_origin.to_str
1340
+ new_scheme = new_origin[/^([^:\/?#]+):\/\//, 1]
1341
+ unless new_scheme
1342
+ raise InvalidURIError, 'An origin cannot omit the scheme.'
1343
+ end
1344
+ new_host = new_origin[/:\/\/([^\/?#:]+)/, 1]
1345
+ unless new_host
1346
+ raise InvalidURIError, 'An origin cannot omit the host.'
1347
+ end
1348
+ new_port = new_origin[/:([^:@\[\]\/]*?)$/, 1]
1349
+ end
1350
+
1351
+ self.scheme = defined?(new_scheme) ? new_scheme : nil
1352
+ self.host = defined?(new_host) ? new_host : nil
1353
+ self.port = defined?(new_port) ? new_port : nil
1354
+ self.userinfo = nil
1355
+
1356
+ # Reset dependent values
1357
+ remove_instance_variable(:@userinfo) if defined?(@userinfo)
1358
+ remove_instance_variable(:@normalized_userinfo) if defined?(@normalized_userinfo)
1359
+ remove_instance_variable(:@authority) if defined?(@authority)
1360
+ remove_instance_variable(:@normalized_authority) if defined?(@normalized_authority)
1361
+ remove_composite_values
1362
+
1363
+ # Ensure we haven't created an invalid URI
1364
+ validate()
1365
+ end
1366
+
1367
+ # Returns an array of known ip-based schemes. These schemes typically
1368
+ # use a similar URI form:
1369
+ # <code>//<user>:<password>@<host>:<port>/<url-path></code>
1370
+ def self.ip_based_schemes
1371
+ return self.port_mapping.keys
1372
+ end
1373
+
1374
+ # Returns a hash of common IP-based schemes and their default port
1375
+ # numbers. Adding new schemes to this hash, as necessary, will allow
1376
+ # for better URI normalization.
1377
+ def self.port_mapping
1378
+ PORT_MAPPING
1379
+ end
1380
+
1381
+ ##
1382
+ # The port component for this URI.
1383
+ # This is the port number actually given in the URI. This does not
1384
+ # infer port numbers from default values.
1385
+ #
1386
+ # @return [Integer] The port component.
1387
+ def port
1388
+ return defined?(@port) ? @port : nil
1389
+ end
1390
+
1391
+ ##
1392
+ # The port component for this URI, normalized.
1393
+ #
1394
+ # @return [Integer] The port component, normalized.
1395
+ def normalized_port
1396
+ return nil unless self.port
1397
+ return @normalized_port if defined?(@normalized_port)
1398
+ @normalized_port ||= begin
1399
+ if URI.port_mapping[self.normalized_scheme] == self.port
1400
+ nil
1401
+ else
1402
+ self.port
1403
+ end
1404
+ end
1405
+ end
1406
+
1407
+ ##
1408
+ # Sets the port component for this URI.
1409
+ #
1410
+ # @param [String, Integer, #to_s] new_port The new port component.
1411
+ def port=(new_port)
1412
+ if new_port != nil && new_port.respond_to?(:to_str)
1413
+ new_port = Addressable::URI.unencode_component(new_port.to_str)
1414
+ end
1415
+
1416
+ if new_port.respond_to?(:valid_encoding?) && !new_port.valid_encoding?
1417
+ raise InvalidURIError, "Invalid encoding in port"
1418
+ end
1419
+
1420
+ if new_port != nil && !(new_port.to_s =~ /^\d+$/)
1421
+ raise InvalidURIError,
1422
+ "Invalid port number: #{new_port.inspect}"
1423
+ end
1424
+
1425
+ @port = new_port.to_s.to_i
1426
+ @port = nil if @port == 0
1427
+
1428
+ # Reset dependent values
1429
+ remove_instance_variable(:@authority) if defined?(@authority)
1430
+ remove_instance_variable(:@normalized_port) if defined?(@normalized_port)
1431
+ remove_composite_values
1432
+
1433
+ # Ensure we haven't created an invalid URI
1434
+ validate()
1435
+ end
1436
+
1437
+ ##
1438
+ # The inferred port component for this URI.
1439
+ # This method will normalize to the default port for the URI's scheme if
1440
+ # the port isn't explicitly specified in the URI.
1441
+ #
1442
+ # @return [Integer] The inferred port component.
1443
+ def inferred_port
1444
+ if self.port.to_i == 0
1445
+ self.default_port
1446
+ else
1447
+ self.port.to_i
1448
+ end
1449
+ end
1450
+
1451
+ ##
1452
+ # The default port for this URI's scheme.
1453
+ # This method will always returns the default port for the URI's scheme
1454
+ # regardless of the presence of an explicit port in the URI.
1455
+ #
1456
+ # @return [Integer] The default port.
1457
+ def default_port
1458
+ URI.port_mapping[self.scheme.strip.downcase] if self.scheme
1459
+ end
1460
+
1461
+ ##
1462
+ # The combination of components that represent a site.
1463
+ # Combines the scheme, user, password, host, and port components.
1464
+ # Primarily useful for HTTP and HTTPS.
1465
+ #
1466
+ # For example, <code>"http://example.com/path?query"</code> would have a
1467
+ # <code>site</code> value of <code>"http://example.com"</code>.
1468
+ #
1469
+ # @return [String] The components that identify a site.
1470
+ def site
1471
+ (self.scheme || self.authority) && @site ||= begin
1472
+ site_string = "".dup
1473
+ site_string << "#{self.scheme}:" if self.scheme != nil
1474
+ site_string << "//#{self.authority}" if self.authority != nil
1475
+ site_string
1476
+ end
1477
+ end
1478
+
1479
+ ##
1480
+ # The normalized combination of components that represent a site.
1481
+ # Combines the scheme, user, password, host, and port components.
1482
+ # Primarily useful for HTTP and HTTPS.
1483
+ #
1484
+ # For example, <code>"http://example.com/path?query"</code> would have a
1485
+ # <code>site</code> value of <code>"http://example.com"</code>.
1486
+ #
1487
+ # @return [String] The normalized components that identify a site.
1488
+ def normalized_site
1489
+ return nil unless self.site
1490
+ @normalized_site ||= begin
1491
+ site_string = "".dup
1492
+ if self.normalized_scheme != nil
1493
+ site_string << "#{self.normalized_scheme}:"
1494
+ end
1495
+ if self.normalized_authority != nil
1496
+ site_string << "//#{self.normalized_authority}"
1497
+ end
1498
+ site_string
1499
+ end
1500
+ # All normalized values should be UTF-8
1501
+ force_utf8_encoding_if_needed(@normalized_site)
1502
+ @normalized_site
1503
+ end
1504
+
1505
+ ##
1506
+ # Sets the site value for this URI.
1507
+ #
1508
+ # @param [String, #to_str] new_site The new site value.
1509
+ def site=(new_site)
1510
+ if new_site
1511
+ if !new_site.respond_to?(:to_str)
1512
+ raise TypeError, "Can't convert #{new_site.class} into String."
1513
+ end
1514
+ new_site = new_site.to_str
1515
+ # These two regular expressions derived from the primary parsing
1516
+ # expression
1517
+ self.scheme = new_site[/^(?:([^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?$/, 1]
1518
+ self.authority = new_site[
1519
+ /^(?:(?:[^:\/?#]+):)?(?:\/\/([^\/?#]*))?$/, 1
1520
+ ]
1521
+ else
1522
+ self.scheme = nil
1523
+ self.authority = nil
1524
+ end
1525
+ end
1526
+
1527
+ ##
1528
+ # The path component for this URI.
1529
+ #
1530
+ # @return [String] The path component.
1531
+ def path
1532
+ return defined?(@path) ? @path : EMPTY_STR
1533
+ end
1534
+
1535
+ NORMPATH = /^(?!\/)[^\/:]*:.*$/
1536
+ ##
1537
+ # The path component for this URI, normalized.
1538
+ #
1539
+ # @return [String] The path component, normalized.
1540
+ def normalized_path
1541
+ @normalized_path ||= begin
1542
+ path = self.path.to_s
1543
+ if self.scheme == nil && path =~ NORMPATH
1544
+ # Relative paths with colons in the first segment are ambiguous.
1545
+ path = path.sub(":", "%2F")
1546
+ end
1547
+ # String#split(delimeter, -1) uses the more strict splitting behavior
1548
+ # found by default in Python.
1549
+ result = path.strip.split(SLASH, -1).map do |segment|
1550
+ Addressable::URI.normalize_component(
1551
+ segment,
1552
+ Addressable::URI::NormalizeCharacterClasses::PCHAR
1553
+ )
1554
+ end.join(SLASH)
1555
+
1556
+ result = URI.normalize_path(result)
1557
+ if result.empty? &&
1558
+ ["http", "https", "ftp", "tftp"].include?(self.normalized_scheme)
1559
+ result = SLASH.dup
1560
+ end
1561
+ result
1562
+ end
1563
+ # All normalized values should be UTF-8
1564
+ force_utf8_encoding_if_needed(@normalized_path)
1565
+ @normalized_path
1566
+ end
1567
+
1568
+ ##
1569
+ # Sets the path component for this URI.
1570
+ #
1571
+ # @param [String, #to_str] new_path The new path component.
1572
+ def path=(new_path)
1573
+ if new_path && !new_path.respond_to?(:to_str)
1574
+ raise TypeError, "Can't convert #{new_path.class} into String."
1575
+ end
1576
+ @path = (new_path || EMPTY_STR).to_str
1577
+ if !@path.empty? && @path[0..0] != SLASH && host != nil
1578
+ @path = "/#{@path}"
1579
+ end
1580
+
1581
+ # Reset dependent values
1582
+ remove_instance_variable(:@normalized_path) if defined?(@normalized_path)
1583
+ remove_composite_values
1584
+
1585
+ # Ensure we haven't created an invalid URI
1586
+ validate()
1587
+ end
1588
+
1589
+ ##
1590
+ # The basename, if any, of the file in the path component.
1591
+ #
1592
+ # @return [String] The path's basename.
1593
+ def basename
1594
+ # Path cannot be nil
1595
+ return File.basename(self.path).sub(/;[^\/]*$/, EMPTY_STR)
1596
+ end
1597
+
1598
+ ##
1599
+ # The extname, if any, of the file in the path component.
1600
+ # Empty string if there is no extension.
1601
+ #
1602
+ # @return [String] The path's extname.
1603
+ def extname
1604
+ return nil unless self.path
1605
+ return File.extname(self.basename)
1606
+ end
1607
+
1608
+ ##
1609
+ # The query component for this URI.
1610
+ #
1611
+ # @return [String] The query component.
1612
+ def query
1613
+ return defined?(@query) ? @query : nil
1614
+ end
1615
+
1616
+ ##
1617
+ # The query component for this URI, normalized.
1618
+ #
1619
+ # @return [String] The query component, normalized.
1620
+ def normalized_query(*flags)
1621
+ return nil unless self.query
1622
+ return @normalized_query if defined?(@normalized_query)
1623
+ @normalized_query ||= begin
1624
+ modified_query_class = Addressable::URI::CharacterClasses::QUERY.dup
1625
+ # Make sure possible key-value pair delimiters are escaped.
1626
+ modified_query_class.sub!("\\&", "").sub!("\\;", "")
1627
+ pairs = (query || "").split("&", -1)
1628
+ pairs.delete_if(&:empty?).uniq! if flags.include?(:compacted)
1629
+ pairs.sort! if flags.include?(:sorted)
1630
+ component = pairs.map do |pair|
1631
+ Addressable::URI.normalize_component(
1632
+ pair,
1633
+ Addressable::URI::NormalizeCharacterClasses::QUERY,
1634
+ "+"
1635
+ )
1636
+ end.join("&")
1637
+ component == "" ? nil : component
1638
+ end
1639
+ # All normalized values should be UTF-8
1640
+ force_utf8_encoding_if_needed(@normalized_query)
1641
+ @normalized_query
1642
+ end
1643
+
1644
+ ##
1645
+ # Sets the query component for this URI.
1646
+ #
1647
+ # @param [String, #to_str] new_query The new query component.
1648
+ def query=(new_query)
1649
+ if new_query && !new_query.respond_to?(:to_str)
1650
+ raise TypeError, "Can't convert #{new_query.class} into String."
1651
+ end
1652
+ @query = new_query ? new_query.to_str : nil
1653
+
1654
+ # Reset dependent values
1655
+ remove_instance_variable(:@normalized_query) if defined?(@normalized_query)
1656
+ remove_composite_values
1657
+ end
1658
+
1659
+ ##
1660
+ # Converts the query component to a Hash value.
1661
+ #
1662
+ # @param [Class] return_type The return type desired. Value must be either
1663
+ # `Hash` or `Array`.
1664
+ #
1665
+ # @return [Hash, Array, nil] The query string parsed as a Hash or Array
1666
+ # or nil if the query string is blank.
1667
+ #
1668
+ # @example
1669
+ # Addressable::URI.parse("?one=1&two=2&three=3").query_values
1670
+ # #=> {"one" => "1", "two" => "2", "three" => "3"}
1671
+ # Addressable::URI.parse("?one=two&one=three").query_values(Array)
1672
+ # #=> [["one", "two"], ["one", "three"]]
1673
+ # Addressable::URI.parse("?one=two&one=three").query_values(Hash)
1674
+ # #=> {"one" => "three"}
1675
+ # Addressable::URI.parse("?").query_values
1676
+ # #=> {}
1677
+ # Addressable::URI.parse("").query_values
1678
+ # #=> nil
1679
+ def query_values(return_type=Hash)
1680
+ empty_accumulator = Array == return_type ? [] : {}
1681
+ if return_type != Hash && return_type != Array
1682
+ raise ArgumentError, "Invalid return type. Must be Hash or Array."
1683
+ end
1684
+ return nil if self.query == nil
1685
+ split_query = self.query.split("&").map do |pair|
1686
+ pair.split("=", 2) if pair && !pair.empty?
1687
+ end.compact
1688
+ return split_query.inject(empty_accumulator.dup) do |accu, pair|
1689
+ # I'd rather use key/value identifiers instead of array lookups,
1690
+ # but in this case I really want to maintain the exact pair structure,
1691
+ # so it's best to make all changes in-place.
1692
+ pair[0] = URI.unencode_component(pair[0])
1693
+ if pair[1].respond_to?(:to_str)
1694
+ value = pair[1].to_str
1695
+ # I loathe the fact that I have to do this. Stupid HTML 4.01.
1696
+ # Treating '+' as a space was just an unbelievably bad idea.
1697
+ # There was nothing wrong with '%20'!
1698
+ # If it ain't broke, don't fix it!
1699
+ value = value.tr("+", " ") if ["http", "https", nil].include?(scheme)
1700
+ pair[1] = URI.unencode_component(value)
1701
+ end
1702
+ if return_type == Hash
1703
+ accu[pair[0]] = pair[1]
1704
+ else
1705
+ accu << pair
1706
+ end
1707
+ accu
1708
+ end
1709
+ end
1710
+
1711
+ ##
1712
+ # Sets the query component for this URI from a Hash object.
1713
+ # An empty Hash or Array will result in an empty query string.
1714
+ #
1715
+ # @param [Hash, #to_hash, Array] new_query_values The new query values.
1716
+ #
1717
+ # @example
1718
+ # uri.query_values = {:a => "a", :b => ["c", "d", "e"]}
1719
+ # uri.query
1720
+ # # => "a=a&b=c&b=d&b=e"
1721
+ # uri.query_values = [['a', 'a'], ['b', 'c'], ['b', 'd'], ['b', 'e']]
1722
+ # uri.query
1723
+ # # => "a=a&b=c&b=d&b=e"
1724
+ # uri.query_values = [['a', 'a'], ['b', ['c', 'd', 'e']]]
1725
+ # uri.query
1726
+ # # => "a=a&b=c&b=d&b=e"
1727
+ # uri.query_values = [['flag'], ['key', 'value']]
1728
+ # uri.query
1729
+ # # => "flag&key=value"
1730
+ def query_values=(new_query_values)
1731
+ if new_query_values == nil
1732
+ self.query = nil
1733
+ return nil
1734
+ end
1735
+
1736
+ if !new_query_values.is_a?(Array)
1737
+ if !new_query_values.respond_to?(:to_hash)
1738
+ raise TypeError,
1739
+ "Can't convert #{new_query_values.class} into Hash."
1740
+ end
1741
+ new_query_values = new_query_values.to_hash
1742
+ new_query_values = new_query_values.map do |key, value|
1743
+ key = key.to_s if key.kind_of?(Symbol)
1744
+ [key, value]
1745
+ end
1746
+ # Useful default for OAuth and caching.
1747
+ # Only to be used for non-Array inputs. Arrays should preserve order.
1748
+ new_query_values.sort!
1749
+ end
1750
+
1751
+ # new_query_values have form [['key1', 'value1'], ['key2', 'value2']]
1752
+ buffer = "".dup
1753
+ new_query_values.each do |key, value|
1754
+ encoded_key = URI.encode_component(
1755
+ key, CharacterClasses::UNRESERVED
1756
+ )
1757
+ if value == nil
1758
+ buffer << "#{encoded_key}&"
1759
+ elsif value.kind_of?(Array)
1760
+ value.each do |sub_value|
1761
+ encoded_value = URI.encode_component(
1762
+ sub_value, CharacterClasses::UNRESERVED
1763
+ )
1764
+ buffer << "#{encoded_key}=#{encoded_value}&"
1765
+ end
1766
+ else
1767
+ encoded_value = URI.encode_component(
1768
+ value, CharacterClasses::UNRESERVED
1769
+ )
1770
+ buffer << "#{encoded_key}=#{encoded_value}&"
1771
+ end
1772
+ end
1773
+ self.query = buffer.chop
1774
+ end
1775
+
1776
+ ##
1777
+ # The HTTP request URI for this URI. This is the path and the
1778
+ # query string.
1779
+ #
1780
+ # @return [String] The request URI required for an HTTP request.
1781
+ def request_uri
1782
+ return nil if self.absolute? && self.scheme !~ /^https?$/i
1783
+ return (
1784
+ (!self.path.empty? ? self.path : SLASH) +
1785
+ (self.query ? "?#{self.query}" : EMPTY_STR)
1786
+ )
1787
+ end
1788
+
1789
+ ##
1790
+ # Sets the HTTP request URI for this URI.
1791
+ #
1792
+ # @param [String, #to_str] new_request_uri The new HTTP request URI.
1793
+ def request_uri=(new_request_uri)
1794
+ if !new_request_uri.respond_to?(:to_str)
1795
+ raise TypeError, "Can't convert #{new_request_uri.class} into String."
1796
+ end
1797
+ if self.absolute? && self.scheme !~ /^https?$/i
1798
+ raise InvalidURIError,
1799
+ "Cannot set an HTTP request URI for a non-HTTP URI."
1800
+ end
1801
+ new_request_uri = new_request_uri.to_str
1802
+ path_component = new_request_uri[/^([^\?]*)\??(?:.*)$/, 1]
1803
+ query_component = new_request_uri[/^(?:[^\?]*)\?(.*)$/, 1]
1804
+ path_component = path_component.to_s
1805
+ path_component = (!path_component.empty? ? path_component : SLASH)
1806
+ self.path = path_component
1807
+ self.query = query_component
1808
+
1809
+ # Reset dependent values
1810
+ remove_composite_values
1811
+ end
1812
+
1813
+ ##
1814
+ # The fragment component for this URI.
1815
+ #
1816
+ # @return [String] The fragment component.
1817
+ def fragment
1818
+ return defined?(@fragment) ? @fragment : nil
1819
+ end
1820
+
1821
+ ##
1822
+ # The fragment component for this URI, normalized.
1823
+ #
1824
+ # @return [String] The fragment component, normalized.
1825
+ def normalized_fragment
1826
+ return nil unless self.fragment
1827
+ return @normalized_fragment if defined?(@normalized_fragment)
1828
+ @normalized_fragment ||= begin
1829
+ component = Addressable::URI.normalize_component(
1830
+ self.fragment,
1831
+ Addressable::URI::NormalizeCharacterClasses::FRAGMENT
1832
+ )
1833
+ component == "" ? nil : component
1834
+ end
1835
+ # All normalized values should be UTF-8
1836
+ force_utf8_encoding_if_needed(@normalized_fragment)
1837
+ @normalized_fragment
1838
+ end
1839
+
1840
+ ##
1841
+ # Sets the fragment component for this URI.
1842
+ #
1843
+ # @param [String, #to_str] new_fragment The new fragment component.
1844
+ def fragment=(new_fragment)
1845
+ if new_fragment && !new_fragment.respond_to?(:to_str)
1846
+ raise TypeError, "Can't convert #{new_fragment.class} into String."
1847
+ end
1848
+ @fragment = new_fragment ? new_fragment.to_str : nil
1849
+
1850
+ # Reset dependent values
1851
+ remove_instance_variable(:@normalized_fragment) if defined?(@normalized_fragment)
1852
+ remove_composite_values
1853
+
1854
+ # Ensure we haven't created an invalid URI
1855
+ validate()
1856
+ end
1857
+
1858
+ ##
1859
+ # Determines if the scheme indicates an IP-based protocol.
1860
+ #
1861
+ # @return [TrueClass, FalseClass]
1862
+ # <code>true</code> if the scheme indicates an IP-based protocol.
1863
+ # <code>false</code> otherwise.
1864
+ def ip_based?
1865
+ if self.scheme
1866
+ return URI.ip_based_schemes.include?(
1867
+ self.scheme.strip.downcase)
1868
+ end
1869
+ return false
1870
+ end
1871
+
1872
+ ##
1873
+ # Determines if the URI is relative.
1874
+ #
1875
+ # @return [TrueClass, FalseClass]
1876
+ # <code>true</code> if the URI is relative. <code>false</code>
1877
+ # otherwise.
1878
+ def relative?
1879
+ return self.scheme.nil?
1880
+ end
1881
+
1882
+ ##
1883
+ # Determines if the URI is absolute.
1884
+ #
1885
+ # @return [TrueClass, FalseClass]
1886
+ # <code>true</code> if the URI is absolute. <code>false</code>
1887
+ # otherwise.
1888
+ def absolute?
1889
+ return !relative?
1890
+ end
1891
+
1892
+ ##
1893
+ # Joins two URIs together.
1894
+ #
1895
+ # @param [String, Addressable::URI, #to_str] The URI to join with.
1896
+ #
1897
+ # @return [Addressable::URI] The joined URI.
1898
+ def join(uri)
1899
+ if !uri.respond_to?(:to_str)
1900
+ raise TypeError, "Can't convert #{uri.class} into String."
1901
+ end
1902
+ if !uri.kind_of?(URI)
1903
+ # Otherwise, convert to a String, then parse.
1904
+ uri = URI.parse(uri.to_str)
1905
+ end
1906
+ if uri.to_s.empty?
1907
+ return self.dup
1908
+ end
1909
+
1910
+ joined_scheme = nil
1911
+ joined_user = nil
1912
+ joined_password = nil
1913
+ joined_host = nil
1914
+ joined_port = nil
1915
+ joined_path = nil
1916
+ joined_query = nil
1917
+ joined_fragment = nil
1918
+
1919
+ # Section 5.2.2 of RFC 3986
1920
+ if uri.scheme != nil
1921
+ joined_scheme = uri.scheme
1922
+ joined_user = uri.user
1923
+ joined_password = uri.password
1924
+ joined_host = uri.host
1925
+ joined_port = uri.port
1926
+ joined_path = URI.normalize_path(uri.path)
1927
+ joined_query = uri.query
1928
+ else
1929
+ if uri.authority != nil
1930
+ joined_user = uri.user
1931
+ joined_password = uri.password
1932
+ joined_host = uri.host
1933
+ joined_port = uri.port
1934
+ joined_path = URI.normalize_path(uri.path)
1935
+ joined_query = uri.query
1936
+ else
1937
+ if uri.path == nil || uri.path.empty?
1938
+ joined_path = self.path
1939
+ if uri.query != nil
1940
+ joined_query = uri.query
1941
+ else
1942
+ joined_query = self.query
1943
+ end
1944
+ else
1945
+ if uri.path[0..0] == SLASH
1946
+ joined_path = URI.normalize_path(uri.path)
1947
+ else
1948
+ base_path = self.path.dup
1949
+ base_path = EMPTY_STR if base_path == nil
1950
+ base_path = URI.normalize_path(base_path)
1951
+
1952
+ # Section 5.2.3 of RFC 3986
1953
+ #
1954
+ # Removes the right-most path segment from the base path.
1955
+ if base_path.include?(SLASH)
1956
+ base_path.sub!(/\/[^\/]+$/, SLASH)
1957
+ else
1958
+ base_path = EMPTY_STR
1959
+ end
1960
+
1961
+ # If the base path is empty and an authority segment has been
1962
+ # defined, use a base path of SLASH
1963
+ if base_path.empty? && self.authority != nil
1964
+ base_path = SLASH
1965
+ end
1966
+
1967
+ joined_path = URI.normalize_path(base_path + uri.path)
1968
+ end
1969
+ joined_query = uri.query
1970
+ end
1971
+ joined_user = self.user
1972
+ joined_password = self.password
1973
+ joined_host = self.host
1974
+ joined_port = self.port
1975
+ end
1976
+ joined_scheme = self.scheme
1977
+ end
1978
+ joined_fragment = uri.fragment
1979
+
1980
+ return self.class.new(
1981
+ :scheme => joined_scheme,
1982
+ :user => joined_user,
1983
+ :password => joined_password,
1984
+ :host => joined_host,
1985
+ :port => joined_port,
1986
+ :path => joined_path,
1987
+ :query => joined_query,
1988
+ :fragment => joined_fragment
1989
+ )
1990
+ end
1991
+ alias_method :+, :join
1992
+
1993
+ ##
1994
+ # Destructive form of <code>join</code>.
1995
+ #
1996
+ # @param [String, Addressable::URI, #to_str] The URI to join with.
1997
+ #
1998
+ # @return [Addressable::URI] The joined URI.
1999
+ #
2000
+ # @see Addressable::URI#join
2001
+ def join!(uri)
2002
+ replace_self(self.join(uri))
2003
+ end
2004
+
2005
+ ##
2006
+ # Merges a URI with a <code>Hash</code> of components.
2007
+ # This method has different behavior from <code>join</code>. Any
2008
+ # components present in the <code>hash</code> parameter will override the
2009
+ # original components. The path component is not treated specially.
2010
+ #
2011
+ # @param [Hash, Addressable::URI, #to_hash] The components to merge with.
2012
+ #
2013
+ # @return [Addressable::URI] The merged URI.
2014
+ #
2015
+ # @see Hash#merge
2016
+ def merge(hash)
2017
+ if !hash.respond_to?(:to_hash)
2018
+ raise TypeError, "Can't convert #{hash.class} into Hash."
2019
+ end
2020
+ hash = hash.to_hash
2021
+
2022
+ if hash.has_key?(:authority)
2023
+ if (hash.keys & [:userinfo, :user, :password, :host, :port]).any?
2024
+ raise ArgumentError,
2025
+ "Cannot specify both an authority and any of the components " +
2026
+ "within the authority."
2027
+ end
2028
+ end
2029
+ if hash.has_key?(:userinfo)
2030
+ if (hash.keys & [:user, :password]).any?
2031
+ raise ArgumentError,
2032
+ "Cannot specify both a userinfo and either the user or password."
2033
+ end
2034
+ end
2035
+
2036
+ uri = self.class.new
2037
+ uri.defer_validation do
2038
+ # Bunch of crazy logic required because of the composite components
2039
+ # like userinfo and authority.
2040
+ uri.scheme =
2041
+ hash.has_key?(:scheme) ? hash[:scheme] : self.scheme
2042
+ if hash.has_key?(:authority)
2043
+ uri.authority =
2044
+ hash.has_key?(:authority) ? hash[:authority] : self.authority
2045
+ end
2046
+ if hash.has_key?(:userinfo)
2047
+ uri.userinfo =
2048
+ hash.has_key?(:userinfo) ? hash[:userinfo] : self.userinfo
2049
+ end
2050
+ if !hash.has_key?(:userinfo) && !hash.has_key?(:authority)
2051
+ uri.user =
2052
+ hash.has_key?(:user) ? hash[:user] : self.user
2053
+ uri.password =
2054
+ hash.has_key?(:password) ? hash[:password] : self.password
2055
+ end
2056
+ if !hash.has_key?(:authority)
2057
+ uri.host =
2058
+ hash.has_key?(:host) ? hash[:host] : self.host
2059
+ uri.port =
2060
+ hash.has_key?(:port) ? hash[:port] : self.port
2061
+ end
2062
+ uri.path =
2063
+ hash.has_key?(:path) ? hash[:path] : self.path
2064
+ uri.query =
2065
+ hash.has_key?(:query) ? hash[:query] : self.query
2066
+ uri.fragment =
2067
+ hash.has_key?(:fragment) ? hash[:fragment] : self.fragment
2068
+ end
2069
+
2070
+ return uri
2071
+ end
2072
+
2073
+ ##
2074
+ # Destructive form of <code>merge</code>.
2075
+ #
2076
+ # @param [Hash, Addressable::URI, #to_hash] The components to merge with.
2077
+ #
2078
+ # @return [Addressable::URI] The merged URI.
2079
+ #
2080
+ # @see Addressable::URI#merge
2081
+ def merge!(uri)
2082
+ replace_self(self.merge(uri))
2083
+ end
2084
+
2085
+ ##
2086
+ # Returns the shortest normalized relative form of this URI that uses the
2087
+ # supplied URI as a base for resolution. Returns an absolute URI if
2088
+ # necessary. This is effectively the opposite of <code>route_to</code>.
2089
+ #
2090
+ # @param [String, Addressable::URI, #to_str] uri The URI to route from.
2091
+ #
2092
+ # @return [Addressable::URI]
2093
+ # The normalized relative URI that is equivalent to the original URI.
2094
+ def route_from(uri)
2095
+ uri = URI.parse(uri).normalize
2096
+ normalized_self = self.normalize
2097
+ if normalized_self.relative?
2098
+ raise ArgumentError, "Expected absolute URI, got: #{self.to_s}"
2099
+ end
2100
+ if uri.relative?
2101
+ raise ArgumentError, "Expected absolute URI, got: #{uri.to_s}"
2102
+ end
2103
+ if normalized_self == uri
2104
+ return Addressable::URI.parse("##{normalized_self.fragment}")
2105
+ end
2106
+ components = normalized_self.to_hash
2107
+ if normalized_self.scheme == uri.scheme
2108
+ components[:scheme] = nil
2109
+ if normalized_self.authority == uri.authority
2110
+ components[:user] = nil
2111
+ components[:password] = nil
2112
+ components[:host] = nil
2113
+ components[:port] = nil
2114
+ if normalized_self.path == uri.path
2115
+ components[:path] = nil
2116
+ if normalized_self.query == uri.query
2117
+ components[:query] = nil
2118
+ end
2119
+ else
2120
+ if uri.path != SLASH and components[:path]
2121
+ self_splitted_path = split_path(components[:path])
2122
+ uri_splitted_path = split_path(uri.path)
2123
+ self_dir = self_splitted_path.shift
2124
+ uri_dir = uri_splitted_path.shift
2125
+ while !self_splitted_path.empty? && !uri_splitted_path.empty? and self_dir == uri_dir
2126
+ self_dir = self_splitted_path.shift
2127
+ uri_dir = uri_splitted_path.shift
2128
+ end
2129
+ components[:path] = (uri_splitted_path.fill('..') + [self_dir] + self_splitted_path).join(SLASH)
2130
+ end
2131
+ end
2132
+ end
2133
+ end
2134
+ # Avoid network-path references.
2135
+ if components[:host] != nil
2136
+ components[:scheme] = normalized_self.scheme
2137
+ end
2138
+ return Addressable::URI.new(
2139
+ :scheme => components[:scheme],
2140
+ :user => components[:user],
2141
+ :password => components[:password],
2142
+ :host => components[:host],
2143
+ :port => components[:port],
2144
+ :path => components[:path],
2145
+ :query => components[:query],
2146
+ :fragment => components[:fragment]
2147
+ )
2148
+ end
2149
+
2150
+ ##
2151
+ # Returns the shortest normalized relative form of the supplied URI that
2152
+ # uses this URI as a base for resolution. Returns an absolute URI if
2153
+ # necessary. This is effectively the opposite of <code>route_from</code>.
2154
+ #
2155
+ # @param [String, Addressable::URI, #to_str] uri The URI to route to.
2156
+ #
2157
+ # @return [Addressable::URI]
2158
+ # The normalized relative URI that is equivalent to the supplied URI.
2159
+ def route_to(uri)
2160
+ return URI.parse(uri).route_from(self)
2161
+ end
2162
+
2163
+ ##
2164
+ # Returns a normalized URI object.
2165
+ #
2166
+ # NOTE: This method does not attempt to fully conform to specifications.
2167
+ # It exists largely to correct other people's failures to read the
2168
+ # specifications, and also to deal with caching issues since several
2169
+ # different URIs may represent the same resource and should not be
2170
+ # cached multiple times.
2171
+ #
2172
+ # @return [Addressable::URI] The normalized URI.
2173
+ def normalize
2174
+ # This is a special exception for the frequently misused feed
2175
+ # URI scheme.
2176
+ if normalized_scheme == "feed"
2177
+ if self.to_s =~ /^feed:\/*http:\/*/
2178
+ return URI.parse(
2179
+ self.to_s[/^feed:\/*(http:\/*.*)/, 1]
2180
+ ).normalize
2181
+ end
2182
+ end
2183
+
2184
+ return self.class.new(
2185
+ :scheme => normalized_scheme,
2186
+ :authority => normalized_authority,
2187
+ :path => normalized_path,
2188
+ :query => normalized_query,
2189
+ :fragment => normalized_fragment
2190
+ )
2191
+ end
2192
+
2193
+ ##
2194
+ # Destructively normalizes this URI object.
2195
+ #
2196
+ # @return [Addressable::URI] The normalized URI.
2197
+ #
2198
+ # @see Addressable::URI#normalize
2199
+ def normalize!
2200
+ replace_self(self.normalize)
2201
+ end
2202
+
2203
+ ##
2204
+ # Creates a URI suitable for display to users. If semantic attacks are
2205
+ # likely, the application should try to detect these and warn the user.
2206
+ # See <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>,
2207
+ # section 7.6 for more information.
2208
+ #
2209
+ # @return [Addressable::URI] A URI suitable for display purposes.
2210
+ def display_uri
2211
+ display_uri = self.normalize
2212
+ display_uri.host = ::Addressable::IDNA.to_unicode(display_uri.host)
2213
+ return display_uri
2214
+ end
2215
+
2216
+ ##
2217
+ # Returns <code>true</code> if the URI objects are equal. This method
2218
+ # normalizes both URIs before doing the comparison, and allows comparison
2219
+ # against <code>Strings</code>.
2220
+ #
2221
+ # @param [Object] uri The URI to compare.
2222
+ #
2223
+ # @return [TrueClass, FalseClass]
2224
+ # <code>true</code> if the URIs are equivalent, <code>false</code>
2225
+ # otherwise.
2226
+ def ===(uri)
2227
+ if uri.respond_to?(:normalize)
2228
+ uri_string = uri.normalize.to_s
2229
+ else
2230
+ begin
2231
+ uri_string = ::Addressable::URI.parse(uri).normalize.to_s
2232
+ rescue InvalidURIError, TypeError
2233
+ return false
2234
+ end
2235
+ end
2236
+ return self.normalize.to_s == uri_string
2237
+ end
2238
+
2239
+ ##
2240
+ # Returns <code>true</code> if the URI objects are equal. This method
2241
+ # normalizes both URIs before doing the comparison.
2242
+ #
2243
+ # @param [Object] uri The URI to compare.
2244
+ #
2245
+ # @return [TrueClass, FalseClass]
2246
+ # <code>true</code> if the URIs are equivalent, <code>false</code>
2247
+ # otherwise.
2248
+ def ==(uri)
2249
+ return false unless uri.kind_of?(URI)
2250
+ return self.normalize.to_s == uri.normalize.to_s
2251
+ end
2252
+
2253
+ ##
2254
+ # Returns <code>true</code> if the URI objects are equal. This method
2255
+ # does NOT normalize either URI before doing the comparison.
2256
+ #
2257
+ # @param [Object] uri The URI to compare.
2258
+ #
2259
+ # @return [TrueClass, FalseClass]
2260
+ # <code>true</code> if the URIs are equivalent, <code>false</code>
2261
+ # otherwise.
2262
+ def eql?(uri)
2263
+ return false unless uri.kind_of?(URI)
2264
+ return self.to_s == uri.to_s
2265
+ end
2266
+
2267
+ ##
2268
+ # A hash value that will make a URI equivalent to its normalized
2269
+ # form.
2270
+ #
2271
+ # @return [Integer] A hash of the URI.
2272
+ def hash
2273
+ @hash ||= self.to_s.hash * -1
2274
+ end
2275
+
2276
+ ##
2277
+ # Clones the URI object.
2278
+ #
2279
+ # @return [Addressable::URI] The cloned URI.
2280
+ def dup
2281
+ duplicated_uri = self.class.new(
2282
+ :scheme => self.scheme ? self.scheme.dup : nil,
2283
+ :user => self.user ? self.user.dup : nil,
2284
+ :password => self.password ? self.password.dup : nil,
2285
+ :host => self.host ? self.host.dup : nil,
2286
+ :port => self.port,
2287
+ :path => self.path ? self.path.dup : nil,
2288
+ :query => self.query ? self.query.dup : nil,
2289
+ :fragment => self.fragment ? self.fragment.dup : nil
2290
+ )
2291
+ return duplicated_uri
2292
+ end
2293
+
2294
+ ##
2295
+ # Omits components from a URI.
2296
+ #
2297
+ # @param [Symbol] *components The components to be omitted.
2298
+ #
2299
+ # @return [Addressable::URI] The URI with components omitted.
2300
+ #
2301
+ # @example
2302
+ # uri = Addressable::URI.parse("http://example.com/path?query")
2303
+ # #=> #<Addressable::URI:0xcc5e7a URI:http://example.com/path?query>
2304
+ # uri.omit(:scheme, :authority)
2305
+ # #=> #<Addressable::URI:0xcc4d86 URI:/path?query>
2306
+ def omit(*components)
2307
+ invalid_components = components - [
2308
+ :scheme, :user, :password, :userinfo, :host, :port, :authority,
2309
+ :path, :query, :fragment
2310
+ ]
2311
+ unless invalid_components.empty?
2312
+ raise ArgumentError,
2313
+ "Invalid component names: #{invalid_components.inspect}."
2314
+ end
2315
+ duplicated_uri = self.dup
2316
+ duplicated_uri.defer_validation do
2317
+ components.each do |component|
2318
+ duplicated_uri.send((component.to_s + "=").to_sym, nil)
2319
+ end
2320
+ duplicated_uri.user = duplicated_uri.normalized_user
2321
+ end
2322
+ duplicated_uri
2323
+ end
2324
+
2325
+ ##
2326
+ # Destructive form of omit.
2327
+ #
2328
+ # @param [Symbol] *components The components to be omitted.
2329
+ #
2330
+ # @return [Addressable::URI] The URI with components omitted.
2331
+ #
2332
+ # @see Addressable::URI#omit
2333
+ def omit!(*components)
2334
+ replace_self(self.omit(*components))
2335
+ end
2336
+
2337
+ ##
2338
+ # Determines if the URI is an empty string.
2339
+ #
2340
+ # @return [TrueClass, FalseClass]
2341
+ # Returns <code>true</code> if empty, <code>false</code> otherwise.
2342
+ def empty?
2343
+ return self.to_s.empty?
2344
+ end
2345
+
2346
+ ##
2347
+ # Converts the URI to a <code>String</code>.
2348
+ #
2349
+ # @return [String] The URI's <code>String</code> representation.
2350
+ def to_s
2351
+ if self.scheme == nil && self.path != nil && !self.path.empty? &&
2352
+ self.path =~ NORMPATH
2353
+ raise InvalidURIError,
2354
+ "Cannot assemble URI string with ambiguous path: '#{self.path}'"
2355
+ end
2356
+ @uri_string ||= begin
2357
+ uri_string = String.new
2358
+ uri_string << "#{self.scheme}:" if self.scheme != nil
2359
+ uri_string << "//#{self.authority}" if self.authority != nil
2360
+ uri_string << self.path.to_s
2361
+ uri_string << "?#{self.query}" if self.query != nil
2362
+ uri_string << "##{self.fragment}" if self.fragment != nil
2363
+ uri_string.force_encoding(Encoding::UTF_8)
2364
+ uri_string
2365
+ end
2366
+ end
2367
+
2368
+ ##
2369
+ # URI's are glorified <code>Strings</code>. Allow implicit conversion.
2370
+ alias_method :to_str, :to_s
2371
+
2372
+ ##
2373
+ # Returns a Hash of the URI components.
2374
+ #
2375
+ # @return [Hash] The URI as a <code>Hash</code> of components.
2376
+ def to_hash
2377
+ return {
2378
+ :scheme => self.scheme,
2379
+ :user => self.user,
2380
+ :password => self.password,
2381
+ :host => self.host,
2382
+ :port => self.port,
2383
+ :path => self.path,
2384
+ :query => self.query,
2385
+ :fragment => self.fragment
2386
+ }
2387
+ end
2388
+
2389
+ ##
2390
+ # Returns a <code>String</code> representation of the URI object's state.
2391
+ #
2392
+ # @return [String] The URI object's state, as a <code>String</code>.
2393
+ def inspect
2394
+ sprintf("#<%s:%#0x URI:%s>", URI.to_s, self.object_id, self.to_s)
2395
+ end
2396
+
2397
+ ##
2398
+ # This method allows you to make several changes to a URI simultaneously,
2399
+ # which separately would cause validation errors, but in conjunction,
2400
+ # are valid. The URI will be revalidated as soon as the entire block has
2401
+ # been executed.
2402
+ #
2403
+ # @param [Proc] block
2404
+ # A set of operations to perform on a given URI.
2405
+ def defer_validation
2406
+ raise LocalJumpError, "No block given." unless block_given?
2407
+ @validation_deferred = true
2408
+ yield
2409
+ @validation_deferred = false
2410
+ validate
2411
+ return nil
2412
+ end
2413
+
2414
+ protected
2415
+ SELF_REF = '.'
2416
+ PARENT = '..'
2417
+
2418
+ RULE_2A = /\/\.\/|\/\.$/
2419
+ RULE_2B_2C = /\/([^\/]*)\/\.\.\/|\/([^\/]*)\/\.\.$/
2420
+ RULE_2D = /^\.\.?\/?/
2421
+ RULE_PREFIXED_PARENT = /^\/\.\.?\/|^(\/\.\.?)+\/?$/
2422
+
2423
+ ##
2424
+ # Resolves paths to their simplest form.
2425
+ #
2426
+ # @param [String] path The path to normalize.
2427
+ #
2428
+ # @return [String] The normalized path.
2429
+ def self.normalize_path(path)
2430
+ # Section 5.2.4 of RFC 3986
2431
+
2432
+ return if path.nil?
2433
+ normalized_path = path.dup
2434
+ loop do
2435
+ mod ||= normalized_path.gsub!(RULE_2A, SLASH)
2436
+
2437
+ pair = normalized_path.match(RULE_2B_2C)
2438
+ if pair
2439
+ parent = pair[1]
2440
+ current = pair[2]
2441
+ else
2442
+ parent = nil
2443
+ current = nil
2444
+ end
2445
+
2446
+ regexp = "/#{Regexp.escape(parent.to_s)}/\\.\\./|"
2447
+ regexp += "(/#{Regexp.escape(current.to_s)}/\\.\\.$)"
2448
+
2449
+ if pair && ((parent != SELF_REF && parent != PARENT) ||
2450
+ (current != SELF_REF && current != PARENT))
2451
+ mod ||= normalized_path.gsub!(Regexp.new(regexp), SLASH)
2452
+ end
2453
+
2454
+ mod ||= normalized_path.gsub!(RULE_2D, EMPTY_STR)
2455
+ # Non-standard, removes prefixed dotted segments from path.
2456
+ mod ||= normalized_path.gsub!(RULE_PREFIXED_PARENT, SLASH)
2457
+ break if mod.nil?
2458
+ end
2459
+
2460
+ normalized_path
2461
+ end
2462
+
2463
+ ##
2464
+ # Ensures that the URI is valid.
2465
+ def validate
2466
+ return if !!@validation_deferred
2467
+ if self.scheme != nil && self.ip_based? &&
2468
+ (self.host == nil || self.host.empty?) &&
2469
+ (self.path == nil || self.path.empty?)
2470
+ raise InvalidURIError,
2471
+ "Absolute URI missing hierarchical segment: '#{self.to_s}'"
2472
+ end
2473
+ if self.host == nil
2474
+ if self.port != nil ||
2475
+ self.user != nil ||
2476
+ self.password != nil
2477
+ raise InvalidURIError, "Hostname not supplied: '#{self.to_s}'"
2478
+ end
2479
+ end
2480
+ if self.path != nil && !self.path.empty? && self.path[0..0] != SLASH &&
2481
+ self.authority != nil
2482
+ raise InvalidURIError,
2483
+ "Cannot have a relative path with an authority set: '#{self.to_s}'"
2484
+ end
2485
+ if self.path != nil && !self.path.empty? &&
2486
+ self.path[0..1] == SLASH + SLASH && self.authority == nil
2487
+ raise InvalidURIError,
2488
+ "Cannot have a path with two leading slashes " +
2489
+ "without an authority set: '#{self.to_s}'"
2490
+ end
2491
+ unreserved = CharacterClasses::UNRESERVED
2492
+ sub_delims = CharacterClasses::SUB_DELIMS
2493
+ if !self.host.nil? && (self.host =~ /[<>{}\/\\\?\#\@"[[:space:]]]/ ||
2494
+ (self.host[/^\[(.*)\]$/, 1] != nil && self.host[/^\[(.*)\]$/, 1] !~
2495
+ Regexp.new("^[#{unreserved}#{sub_delims}:]*$")))
2496
+ raise InvalidURIError, "Invalid character in host: '#{self.host.to_s}'"
2497
+ end
2498
+ return nil
2499
+ end
2500
+
2501
+ ##
2502
+ # Replaces the internal state of self with the specified URI's state.
2503
+ # Used in destructive operations to avoid massive code repetition.
2504
+ #
2505
+ # @param [Addressable::URI] uri The URI to replace <code>self</code> with.
2506
+ #
2507
+ # @return [Addressable::URI] <code>self</code>.
2508
+ def replace_self(uri)
2509
+ # Reset dependent values
2510
+ instance_variables.each do |var|
2511
+ if instance_variable_defined?(var) && var != :@validation_deferred
2512
+ remove_instance_variable(var)
2513
+ end
2514
+ end
2515
+
2516
+ @scheme = uri.scheme
2517
+ @user = uri.user
2518
+ @password = uri.password
2519
+ @host = uri.host
2520
+ @port = uri.port
2521
+ @path = uri.path
2522
+ @query = uri.query
2523
+ @fragment = uri.fragment
2524
+ return self
2525
+ end
2526
+
2527
+ ##
2528
+ # Splits path string with "/" (slash).
2529
+ # It is considered that there is empty string after last slash when
2530
+ # path ends with slash.
2531
+ #
2532
+ # @param [String] path The path to split.
2533
+ #
2534
+ # @return [Array<String>] An array of parts of path.
2535
+ def split_path(path)
2536
+ splitted = path.split(SLASH)
2537
+ splitted << EMPTY_STR if path.end_with? SLASH
2538
+ splitted
2539
+ end
2540
+
2541
+ ##
2542
+ # Resets composite values for the entire URI
2543
+ #
2544
+ # @api private
2545
+ def remove_composite_values
2546
+ remove_instance_variable(:@uri_string) if defined?(@uri_string)
2547
+ remove_instance_variable(:@hash) if defined?(@hash)
2548
+ end
2549
+
2550
+ ##
2551
+ # Converts the string to be UTF-8 if it is not already UTF-8
2552
+ #
2553
+ # @api private
2554
+ def force_utf8_encoding_if_needed(str)
2555
+ if str && str.encoding != Encoding::UTF_8
2556
+ str.force_encoding(Encoding::UTF_8)
2557
+ end
2558
+ end
2559
+ end
2560
+ end