cloudsmith-api 1.120.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1373) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +19 -19
  3. data/README.md +139 -103
  4. data/build.json +1 -1
  5. data/cloudsmith-api.gemspec +1 -1
  6. data/docs/AllocatedLimit.md +11 -0
  7. data/docs/AlpinePackageUpload.md +15 -13
  8. data/docs/AlpinePackageUploadRequest.md +11 -0
  9. data/docs/Architecture.md +9 -0
  10. data/docs/AuditLogApi.md +14 -14
  11. data/docs/BadgesApi.md +26 -26
  12. data/docs/CargoPackageUpload.md +75 -0
  13. data/docs/CargoPackageUploadRequest.md +10 -0
  14. data/docs/CocoapodsPackageUpload.md +75 -0
  15. data/docs/CocoapodsPackageUploadRequest.md +10 -0
  16. data/docs/CommonBandwidthMetrics.md +11 -0
  17. data/docs/CommonBandwidthMetricsValue.md +10 -0
  18. data/docs/CommonDownloadsMetrics.md +11 -0
  19. data/docs/CommonDownloadsMetricsValue.md +8 -0
  20. data/docs/CommonMetrics.md +12 -0
  21. data/docs/ComposerPackageUpload.md +75 -0
  22. data/docs/ComposerPackageUploadRequest.md +10 -0
  23. data/docs/ConanPackageUpload.md +15 -13
  24. data/docs/ConanPackageUploadRequest.md +17 -0
  25. data/docs/CondaPackageUpload.md +75 -0
  26. data/docs/CondaPackageUploadRequest.md +10 -0
  27. data/docs/CranPackageUpload.md +75 -0
  28. data/docs/CranPackageUploadRequest.md +10 -0
  29. data/docs/DartPackageUpload.md +75 -0
  30. data/docs/DartPackageUploadRequest.md +10 -0
  31. data/docs/DebPackageUpload.md +75 -0
  32. data/docs/DebPackageUploadRequest.md +13 -0
  33. data/docs/Distribution.md +0 -3
  34. data/docs/DistributionFull.md +14 -0
  35. data/docs/DistributionVersion.md +9 -0
  36. data/docs/DistrosApi.md +8 -8
  37. data/docs/DockerPackageUpload.md +75 -0
  38. data/docs/DockerPackageUploadRequest.md +10 -0
  39. data/docs/EntitlementUsageMetrics.md +1 -1
  40. data/docs/EntitlementsApi.md +44 -38
  41. data/docs/ErrorDetail.md +8 -0
  42. data/docs/Eula.md +9 -0
  43. data/docs/FilesApi.md +14 -14
  44. data/docs/Format.md +2 -2
  45. data/docs/FormatSupport.md +12 -0
  46. data/docs/FormatsApi.md +4 -4
  47. data/docs/GeoIpLocation.md +14 -0
  48. data/docs/GoPackageUpload.md +75 -0
  49. data/docs/GoPackageUploadRequest.md +10 -0
  50. data/docs/HelmPackageUpload.md +75 -0
  51. data/docs/HelmPackageUploadRequest.md +10 -0
  52. data/docs/History.md +13 -0
  53. data/docs/HistoryFieldset.md +10 -0
  54. data/docs/LuarocksPackageUpload.md +75 -0
  55. data/docs/LuarocksPackageUploadRequest.md +10 -0
  56. data/docs/MavenPackageUpload.md +15 -13
  57. data/docs/MavenPackageUploadRequest.md +18 -0
  58. data/docs/MetricsApi.md +16 -16
  59. data/docs/NamespaceAuditLog.md +2 -2
  60. data/docs/NamespacesApi.md +4 -4
  61. data/docs/NpmPackageUpload.md +75 -0
  62. data/docs/NpmPackageUploadRequest.md +11 -0
  63. data/docs/NugetPackageUpload.md +75 -0
  64. data/docs/NugetPackageUploadRequest.md +11 -0
  65. data/docs/Organization.md +1 -1
  66. data/docs/OrganizationGroupSync.md +1 -1
  67. data/docs/OrganizationGroupSyncRequest.md +12 -0
  68. data/docs/OrganizationInvite.md +4 -4
  69. data/docs/OrganizationInviteExtend.md +16 -0
  70. data/docs/OrganizationInviteRequest.md +10 -0
  71. data/docs/OrganizationInviteUpdate.md +8 -0
  72. data/docs/OrganizationInviteUpdateRequestPatch.md +8 -0
  73. data/docs/OrganizationMembership.md +5 -4
  74. data/docs/OrganizationTeam.md +1 -1
  75. data/docs/OrganizationTeamMembers.md +8 -0
  76. data/docs/OrganizationTeamMembership.md +9 -0
  77. data/docs/OrganizationTeamRequest.md +11 -0
  78. data/docs/OrganizationTeamRequestPatch.md +11 -0
  79. data/docs/OrgsApi.md +805 -100
  80. data/docs/P2PackageUpload.md +75 -0
  81. data/docs/P2PackageUploadRequest.md +10 -0
  82. data/docs/Package.md +16 -14
  83. data/docs/PackageCopy.md +16 -14
  84. data/docs/PackageCopyRequest.md +9 -0
  85. data/docs/PackageDependencies.md +1 -1
  86. data/docs/PackageDependency.md +11 -0
  87. data/docs/PackageFile.md +21 -0
  88. data/docs/PackageFileUploadRequest.md +11 -0
  89. data/docs/PackageMove.md +16 -14
  90. data/docs/PackageMoveRequest.md +8 -0
  91. data/docs/PackageQuarantine.md +76 -0
  92. data/docs/PackageQuarantineRequest.md +8 -0
  93. data/docs/PackageResync.md +76 -0
  94. data/docs/PackageStatus.md +3 -3
  95. data/docs/PackageTag.md +76 -0
  96. data/docs/PackageTagRequest.md +10 -0
  97. data/docs/PackageUsageMetrics.md +1 -1
  98. data/docs/PackageVersionBadge.md +7 -0
  99. data/docs/PackageVulnerability.md +11 -0
  100. data/docs/PackagesApi.md +208 -208
  101. data/docs/PythonPackageUpload.md +75 -0
  102. data/docs/PythonPackageUploadRequest.md +10 -0
  103. data/docs/Quota.md +1 -1
  104. data/docs/QuotaApi.md +8 -8
  105. data/docs/QuotaHistory.md +1 -1
  106. data/docs/RateCheck.md +13 -0
  107. data/docs/RatesApi.md +2 -2
  108. data/docs/RawPackageUpload.md +15 -13
  109. data/docs/RawPackageUploadRequest.md +15 -0
  110. data/docs/ReposApi.md +121 -165
  111. data/docs/Repository.md +16 -14
  112. data/docs/RepositoryAuditLog.md +2 -2
  113. data/docs/RepositoryCreate.md +16 -14
  114. data/docs/RepositoryCreateRequest.md +43 -0
  115. data/docs/RepositoryGpgKey.md +1 -1
  116. data/docs/RepositoryGpgKeyCreate.md +9 -0
  117. data/docs/RepositoryPrivilegeDict.md +11 -0
  118. data/docs/RepositoryPrivilegeInput.md +8 -0
  119. data/docs/RepositoryPrivilegeInputRequest.md +8 -0
  120. data/docs/RepositoryPrivilegeInputRequestPatch.md +8 -0
  121. data/docs/RepositoryRequestPatch.md +42 -0
  122. data/docs/RepositoryRsaKey.md +1 -1
  123. data/docs/RepositoryRsaKeyCreate.md +9 -0
  124. data/docs/RepositoryToken.md +9 -9
  125. data/docs/RepositoryTokenAction.md +7 -0
  126. data/docs/RepositoryTokenRefresh.md +9 -9
  127. data/docs/RepositoryTokenRefreshRequest.md +21 -0
  128. data/docs/RepositoryTokenRequest.md +22 -0
  129. data/docs/RepositoryTokenRequestPatch.md +22 -0
  130. data/docs/RepositoryTokenSync.md +1 -1
  131. data/docs/RepositoryTokenSyncRequest.md +8 -0
  132. data/docs/RepositoryWebhook.md +4 -4
  133. data/docs/RepositoryWebhookRequest.md +19 -0
  134. data/docs/RepositoryWebhookRequestPatch.md +19 -0
  135. data/docs/ResourcesRateCheck.md +1 -1
  136. data/docs/RpmPackageUpload.md +75 -0
  137. data/docs/RpmPackageUploadRequest.md +11 -0
  138. data/docs/RubyPackageUpload.md +75 -0
  139. data/docs/RubyPackageUploadRequest.md +10 -0
  140. data/docs/Service.md +13 -0
  141. data/docs/ServiceRequest.md +11 -0
  142. data/docs/ServiceRequestPatch.md +11 -0
  143. data/docs/ServiceTeams.md +9 -0
  144. data/docs/StatusApi.md +2 -2
  145. data/docs/StatusBasic.md +2 -2
  146. data/docs/StorageRegionsApi.md +4 -4
  147. data/docs/Tags.md +7 -0
  148. data/docs/TerraformPackageUpload.md +75 -0
  149. data/docs/TerraformPackageUploadRequest.md +10 -0
  150. data/docs/Usage.md +10 -0
  151. data/docs/UsageFieldset.md +9 -0
  152. data/docs/UsageLimits.md +9 -0
  153. data/docs/UserApi.md +5 -5
  154. data/docs/UserAuthTokenRequest.md +9 -0
  155. data/docs/UserProfile.md +1 -1
  156. data/docs/UsersApi.md +2 -2
  157. data/docs/VagrantPackageUpload.md +15 -13
  158. data/docs/VagrantPackageUploadRequest.md +13 -0
  159. data/docs/VulnerabilitiesApi.md +50 -50
  160. data/docs/Vulnerability.md +16 -0
  161. data/docs/VulnerabilityScan.md +10 -0
  162. data/docs/VulnerabilityScanResults.md +4 -4
  163. data/docs/VulnerabilityScanResultsList.md +3 -3
  164. data/docs/VulnerabilityScanVersion.md +13 -0
  165. data/docs/WebhookTemplate.md +9 -0
  166. data/docs/WebhooksApi.md +12 -12
  167. data/lib/cloudsmith-api/api/audit_log_api.rb +22 -14
  168. data/lib/cloudsmith-api/api/badges_api.rb +19 -15
  169. data/lib/cloudsmith-api/api/distros_api.rb +15 -7
  170. data/lib/cloudsmith-api/api/entitlements_api.rb +57 -16
  171. data/lib/cloudsmith-api/api/files_api.rb +21 -9
  172. data/lib/cloudsmith-api/api/formats_api.rb +9 -1
  173. data/lib/cloudsmith-api/api/metrics_api.rb +26 -14
  174. data/lib/cloudsmith-api/api/namespaces_api.rb +9 -1
  175. data/lib/cloudsmith-api/api/orgs_api.rb +880 -105
  176. data/lib/cloudsmith-api/api/packages_api.rb +291 -163
  177. data/lib/cloudsmith-api/api/quota_api.rb +17 -1
  178. data/lib/cloudsmith-api/api/rates_api.rb +5 -1
  179. data/lib/cloudsmith-api/api/repos_api.rb +141 -135
  180. data/lib/cloudsmith-api/api/status_api.rb +5 -1
  181. data/lib/cloudsmith-api/api/storage_regions_api.rb +9 -1
  182. data/lib/cloudsmith-api/api/user_api.rb +9 -3
  183. data/lib/cloudsmith-api/api/users_api.rb +5 -1
  184. data/lib/cloudsmith-api/api/vulnerabilities_api.rb +84 -68
  185. data/lib/cloudsmith-api/api/webhooks_api.rb +21 -5
  186. data/lib/cloudsmith-api/api_client.rb +1 -1
  187. data/lib/cloudsmith-api/api_error.rb +1 -1
  188. data/lib/cloudsmith-api/configuration.rb +1 -1
  189. data/lib/cloudsmith-api/models/allocated_limit.rb +211 -0
  190. data/lib/cloudsmith-api/models/alpine_package_upload.rb +582 -605
  191. data/lib/cloudsmith-api/models/alpine_package_upload_request.rb +225 -0
  192. data/lib/cloudsmith-api/models/architecture.rb +198 -0
  193. data/lib/cloudsmith-api/models/cargo_package_upload.rb +850 -0
  194. data/lib/cloudsmith-api/models/cargo_package_upload_request.rb +210 -0
  195. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +850 -0
  196. data/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +210 -0
  197. data/lib/cloudsmith-api/models/common_bandwidth_metrics.rb +231 -0
  198. data/lib/cloudsmith-api/models/common_bandwidth_metrics_value.rb +214 -0
  199. data/lib/cloudsmith-api/models/common_downloads_metrics.rb +231 -0
  200. data/lib/cloudsmith-api/models/common_downloads_metrics_value.rb +189 -0
  201. data/lib/cloudsmith-api/models/common_metrics.rb +230 -0
  202. data/lib/cloudsmith-api/models/composer_package_upload.rb +850 -0
  203. data/lib/cloudsmith-api/models/composer_package_upload_request.rb +210 -0
  204. data/lib/cloudsmith-api/models/conan_package_upload.rb +598 -621
  205. data/lib/cloudsmith-api/models/conan_package_upload_request.rb +295 -0
  206. data/lib/cloudsmith-api/models/conda_package_upload.rb +850 -0
  207. data/lib/cloudsmith-api/models/conda_package_upload_request.rb +210 -0
  208. data/lib/cloudsmith-api/models/cran_package_upload.rb +850 -0
  209. data/lib/cloudsmith-api/models/cran_package_upload_request.rb +210 -0
  210. data/lib/cloudsmith-api/models/dart_package_upload.rb +850 -0
  211. data/lib/cloudsmith-api/models/dart_package_upload_request.rb +210 -0
  212. data/lib/cloudsmith-api/models/deb_package_upload.rb +850 -0
  213. data/lib/cloudsmith-api/models/deb_package_upload_request.rb +245 -0
  214. data/lib/cloudsmith-api/models/distribution.rb +80 -114
  215. data/lib/cloudsmith-api/models/distribution_full.rb +247 -0
  216. data/lib/cloudsmith-api/models/distribution_version.rb +196 -0
  217. data/lib/cloudsmith-api/models/docker_package_upload.rb +850 -0
  218. data/lib/cloudsmith-api/models/docker_package_upload_request.rb +210 -0
  219. data/lib/cloudsmith-api/models/entitlement_usage_metrics.rb +58 -59
  220. data/lib/cloudsmith-api/models/error_detail.rb +190 -0
  221. data/lib/cloudsmith-api/models/eula.rb +200 -0
  222. data/lib/cloudsmith-api/models/format.rb +152 -153
  223. data/lib/cloudsmith-api/models/format_support.rb +251 -0
  224. data/lib/cloudsmith-api/models/geo_ip_location.rb +258 -0
  225. data/lib/cloudsmith-api/models/go_package_upload.rb +850 -0
  226. data/lib/cloudsmith-api/models/go_package_upload_request.rb +210 -0
  227. data/lib/cloudsmith-api/models/helm_package_upload.rb +850 -0
  228. data/lib/cloudsmith-api/models/helm_package_upload_request.rb +210 -0
  229. data/lib/cloudsmith-api/models/history.rb +254 -0
  230. data/lib/cloudsmith-api/models/history_fieldset.rb +217 -0
  231. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +850 -0
  232. data/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +210 -0
  233. data/lib/cloudsmith-api/models/maven_package_upload.rb +606 -629
  234. data/lib/cloudsmith-api/models/maven_package_upload_request.rb +290 -0
  235. data/lib/cloudsmith-api/models/namespace.rb +75 -79
  236. data/lib/cloudsmith-api/models/namespace_audit_log.rb +227 -243
  237. data/lib/cloudsmith-api/models/npm_package_upload.rb +850 -0
  238. data/lib/cloudsmith-api/models/npm_package_upload_request.rb +222 -0
  239. data/lib/cloudsmith-api/models/nuget_package_upload.rb +850 -0
  240. data/lib/cloudsmith-api/models/nuget_package_upload_request.rb +220 -0
  241. data/lib/cloudsmith-api/models/organization.rb +100 -104
  242. data/lib/cloudsmith-api/models/organization_group_sync.rb +97 -99
  243. data/lib/cloudsmith-api/models/organization_group_sync_request.rb +243 -0
  244. data/lib/cloudsmith-api/models/organization_invite.rb +139 -143
  245. data/lib/cloudsmith-api/models/organization_invite_extend.rb +296 -0
  246. data/lib/cloudsmith-api/models/organization_invite_request.rb +241 -0
  247. data/lib/cloudsmith-api/models/organization_invite_update.rb +221 -0
  248. data/lib/cloudsmith-api/models/organization_invite_update_request_patch.rb +221 -0
  249. data/lib/cloudsmith-api/models/organization_membership.rb +176 -159
  250. data/lib/cloudsmith-api/models/organization_team.rb +117 -120
  251. data/lib/cloudsmith-api/models/organization_team_members.rb +192 -0
  252. data/lib/cloudsmith-api/models/organization_team_membership.rb +238 -0
  253. data/lib/cloudsmith-api/models/organization_team_request.rb +252 -0
  254. data/lib/cloudsmith-api/models/organization_team_request_patch.rb +247 -0
  255. data/lib/cloudsmith-api/models/p2_package_upload.rb +850 -0
  256. data/lib/cloudsmith-api/models/p2_package_upload_request.rb +210 -0
  257. data/lib/cloudsmith-api/models/package.rb +589 -613
  258. data/lib/cloudsmith-api/models/package_copy.rb +590 -613
  259. data/lib/cloudsmith-api/models/package_copy_request.rb +199 -0
  260. data/lib/cloudsmith-api/models/package_dependencies.rb +59 -60
  261. data/lib/cloudsmith-api/models/package_dependency.rb +268 -0
  262. data/lib/cloudsmith-api/models/package_file.rb +303 -0
  263. data/lib/cloudsmith-api/models/package_file_parts_upload.rb +73 -73
  264. data/lib/cloudsmith-api/models/package_file_upload.rb +91 -91
  265. data/lib/cloudsmith-api/models/package_file_upload_request.rb +256 -0
  266. data/lib/cloudsmith-api/models/package_move.rb +590 -613
  267. data/lib/cloudsmith-api/models/package_move_request.rb +189 -0
  268. data/lib/cloudsmith-api/models/package_quarantine.rb +859 -0
  269. data/lib/cloudsmith-api/models/package_quarantine_request.rb +185 -0
  270. data/lib/cloudsmith-api/models/package_resync.rb +859 -0
  271. data/lib/cloudsmith-api/models/package_status.rb +184 -194
  272. data/lib/cloudsmith-api/models/package_tag.rb +862 -0
  273. data/lib/cloudsmith-api/models/package_tag_request.rb +208 -0
  274. data/lib/cloudsmith-api/models/package_usage_metrics.rb +58 -59
  275. data/lib/cloudsmith-api/models/package_version_badge.rb +175 -0
  276. data/lib/cloudsmith-api/models/package_vulnerability.rb +218 -0
  277. data/lib/cloudsmith-api/models/python_package_upload.rb +850 -0
  278. data/lib/cloudsmith-api/models/python_package_upload_request.rb +210 -0
  279. data/lib/cloudsmith-api/models/quota.rb +58 -59
  280. data/lib/cloudsmith-api/models/quota_history.rb +59 -60
  281. data/lib/cloudsmith-api/models/rate_check.rb +235 -0
  282. data/lib/cloudsmith-api/models/raw_package_upload.rb +582 -605
  283. data/lib/cloudsmith-api/models/raw_package_upload_request.rb +260 -0
  284. data/lib/cloudsmith-api/models/repository.rb +629 -579
  285. data/lib/cloudsmith-api/models/repository_audit_log.rb +185 -198
  286. data/lib/cloudsmith-api/models/repository_create.rb +631 -569
  287. data/lib/cloudsmith-api/models/repository_create_request.rb +706 -0
  288. data/lib/cloudsmith-api/models/repository_gpg_key.rb +105 -108
  289. data/lib/cloudsmith-api/models/repository_gpg_key_create.rb +200 -0
  290. data/lib/cloudsmith-api/models/repository_privilege_dict.rb +254 -0
  291. data/lib/cloudsmith-api/models/repository_privilege_input.rb +192 -0
  292. data/lib/cloudsmith-api/models/repository_privilege_input_request.rb +192 -0
  293. data/lib/cloudsmith-api/models/repository_privilege_input_request_patch.rb +187 -0
  294. data/lib/cloudsmith-api/models/repository_request_patch.rb +689 -0
  295. data/lib/cloudsmith-api/models/repository_rsa_key.rb +93 -95
  296. data/lib/cloudsmith-api/models/repository_rsa_key_create.rb +200 -0
  297. data/lib/cloudsmith-api/models/repository_token.rb +380 -401
  298. data/lib/cloudsmith-api/models/repository_token_action.rb +175 -0
  299. data/lib/cloudsmith-api/models/repository_token_refresh.rb +376 -397
  300. data/lib/cloudsmith-api/models/repository_token_refresh_request.rb +361 -0
  301. data/lib/cloudsmith-api/models/repository_token_request.rb +375 -0
  302. data/lib/cloudsmith-api/models/repository_token_request_patch.rb +370 -0
  303. data/lib/cloudsmith-api/models/repository_token_sync.rb +56 -56
  304. data/lib/cloudsmith-api/models/repository_token_sync_request.rb +190 -0
  305. data/lib/cloudsmith-api/models/repository_webhook.rb +304 -301
  306. data/lib/cloudsmith-api/models/repository_webhook_request.rb +334 -0
  307. data/lib/cloudsmith-api/models/repository_webhook_request_patch.rb +319 -0
  308. data/lib/cloudsmith-api/models/resources_rate_check.rb +56 -54
  309. data/lib/cloudsmith-api/models/rpm_package_upload.rb +850 -0
  310. data/lib/cloudsmith-api/models/rpm_package_upload_request.rb +225 -0
  311. data/lib/cloudsmith-api/models/ruby_package_upload.rb +850 -0
  312. data/lib/cloudsmith-api/models/ruby_package_upload_request.rb +210 -0
  313. data/lib/cloudsmith-api/models/service.rb +277 -0
  314. data/lib/cloudsmith-api/models/service_request.rb +257 -0
  315. data/lib/cloudsmith-api/models/service_request_patch.rb +252 -0
  316. data/lib/cloudsmith-api/models/service_teams.rb +231 -0
  317. data/lib/cloudsmith-api/models/status_basic.rb +68 -64
  318. data/lib/cloudsmith-api/models/storage_region.rb +72 -72
  319. data/lib/cloudsmith-api/models/tags.rb +176 -0
  320. data/lib/cloudsmith-api/models/terraform_package_upload.rb +850 -0
  321. data/lib/cloudsmith-api/models/terraform_package_upload_request.rb +210 -0
  322. data/lib/cloudsmith-api/models/usage.rb +202 -0
  323. data/lib/cloudsmith-api/models/usage_fieldset.rb +203 -0
  324. data/lib/cloudsmith-api/models/usage_limits.rb +203 -0
  325. data/lib/cloudsmith-api/models/user_auth_token.rb +55 -55
  326. data/lib/cloudsmith-api/models/user_auth_token_request.rb +195 -0
  327. data/lib/cloudsmith-api/models/user_brief.rb +101 -104
  328. data/lib/cloudsmith-api/models/user_profile.rb +130 -139
  329. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +602 -625
  330. data/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +255 -0
  331. data/lib/cloudsmith-api/models/vulnerability.rb +334 -0
  332. data/lib/cloudsmith-api/models/vulnerability_scan.rb +219 -0
  333. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +147 -151
  334. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +136 -139
  335. data/lib/cloudsmith-api/models/vulnerability_scan_version.rb +250 -0
  336. data/lib/cloudsmith-api/models/webhook_template.rb +198 -0
  337. data/lib/cloudsmith-api/version.rb +2 -2
  338. data/lib/cloudsmith-api.rb +107 -82
  339. data/spec/api/audit_log_api_spec.rb +5 -5
  340. data/spec/api/badges_api_spec.rb +2 -2
  341. data/spec/api/distros_api_spec.rb +3 -3
  342. data/spec/api/entitlements_api_spec.rb +8 -5
  343. data/spec/api/files_api_spec.rb +5 -5
  344. data/spec/api/formats_api_spec.rb +1 -1
  345. data/spec/api/metrics_api_spec.rb +5 -5
  346. data/spec/api/namespaces_api_spec.rb +1 -1
  347. data/spec/api/orgs_api_spec.rb +174 -15
  348. data/spec/api/packages_api_spec.rb +71 -71
  349. data/spec/api/quota_api_spec.rb +1 -1
  350. data/spec/api/rates_api_spec.rb +1 -1
  351. data/spec/api/repos_api_spec.rb +28 -37
  352. data/spec/api/status_api_spec.rb +1 -1
  353. data/spec/api/storage_regions_api_spec.rb +1 -1
  354. data/spec/api/user_api_spec.rb +2 -2
  355. data/spec/api/users_api_spec.rb +1 -1
  356. data/spec/api/vulnerabilities_api_spec.rb +20 -20
  357. data/spec/api/webhooks_api_spec.rb +3 -3
  358. data/spec/api_client_spec.rb +1 -1
  359. data/spec/configuration_spec.rb +1 -1
  360. data/spec/models/allocated_limit_spec.rb +59 -0
  361. data/spec/models/alpine_package_upload_request_spec.rb +59 -0
  362. data/spec/models/alpine_package_upload_spec.rb +13 -1
  363. data/spec/models/architecture_spec.rb +47 -0
  364. data/spec/models/cargo_package_upload_request_spec.rb +53 -0
  365. data/spec/models/cargo_package_upload_spec.rb +447 -0
  366. data/spec/models/cocoapods_package_upload_request_spec.rb +53 -0
  367. data/spec/models/cocoapods_package_upload_spec.rb +447 -0
  368. data/spec/models/common_bandwidth_metrics_spec.rb +59 -0
  369. data/spec/models/common_bandwidth_metrics_value_spec.rb +53 -0
  370. data/spec/models/common_downloads_metrics_spec.rb +59 -0
  371. data/spec/models/common_downloads_metrics_value_spec.rb +41 -0
  372. data/spec/models/common_metrics_spec.rb +65 -0
  373. data/spec/models/composer_package_upload_request_spec.rb +53 -0
  374. data/spec/models/composer_package_upload_spec.rb +447 -0
  375. data/spec/models/conan_package_upload_request_spec.rb +95 -0
  376. data/spec/models/conan_package_upload_spec.rb +13 -1
  377. data/spec/models/conda_package_upload_request_spec.rb +53 -0
  378. data/spec/models/conda_package_upload_spec.rb +447 -0
  379. data/spec/models/cran_package_upload_request_spec.rb +53 -0
  380. data/spec/models/cran_package_upload_spec.rb +447 -0
  381. data/spec/models/dart_package_upload_request_spec.rb +53 -0
  382. data/spec/models/dart_package_upload_spec.rb +447 -0
  383. data/spec/models/deb_package_upload_request_spec.rb +71 -0
  384. data/spec/models/deb_package_upload_spec.rb +447 -0
  385. data/spec/models/distribution_full_spec.rb +77 -0
  386. data/spec/models/distribution_spec.rb +1 -19
  387. data/spec/models/distribution_version_spec.rb +47 -0
  388. data/spec/models/docker_package_upload_request_spec.rb +53 -0
  389. data/spec/models/docker_package_upload_spec.rb +447 -0
  390. data/spec/models/entitlement_usage_metrics_spec.rb +1 -1
  391. data/spec/models/error_detail_spec.rb +41 -0
  392. data/spec/models/eula_spec.rb +47 -0
  393. data/spec/models/format_spec.rb +1 -1
  394. data/spec/models/format_support_spec.rb +65 -0
  395. data/spec/models/geo_ip_location_spec.rb +77 -0
  396. data/spec/models/go_package_upload_request_spec.rb +53 -0
  397. data/spec/models/go_package_upload_spec.rb +447 -0
  398. data/spec/models/helm_package_upload_request_spec.rb +53 -0
  399. data/spec/models/helm_package_upload_spec.rb +447 -0
  400. data/spec/models/history_fieldset_spec.rb +53 -0
  401. data/spec/models/history_spec.rb +71 -0
  402. data/spec/models/luarocks_package_upload_request_spec.rb +53 -0
  403. data/spec/models/luarocks_package_upload_spec.rb +447 -0
  404. data/spec/models/maven_package_upload_request_spec.rb +101 -0
  405. data/spec/models/maven_package_upload_spec.rb +13 -1
  406. data/spec/models/namespace_audit_log_spec.rb +1 -1
  407. data/spec/models/namespace_spec.rb +1 -1
  408. data/spec/models/npm_package_upload_request_spec.rb +59 -0
  409. data/spec/models/npm_package_upload_spec.rb +447 -0
  410. data/spec/models/nuget_package_upload_request_spec.rb +59 -0
  411. data/spec/models/nuget_package_upload_spec.rb +447 -0
  412. data/spec/models/organization_group_sync_request_spec.rb +65 -0
  413. data/spec/models/organization_group_sync_spec.rb +1 -1
  414. data/spec/models/organization_invite_extend_spec.rb +93 -0
  415. data/spec/models/organization_invite_request_spec.rb +57 -0
  416. data/spec/models/organization_invite_spec.rb +1 -1
  417. data/spec/models/organization_invite_update_request_patch_spec.rb +45 -0
  418. data/spec/models/organization_invite_update_spec.rb +45 -0
  419. data/spec/models/organization_membership_spec.rb +11 -1
  420. data/spec/models/organization_spec.rb +1 -1
  421. data/spec/models/organization_team_members_spec.rb +41 -0
  422. data/spec/models/organization_team_membership_spec.rb +51 -0
  423. data/spec/models/organization_team_request_patch_spec.rb +63 -0
  424. data/spec/models/organization_team_request_spec.rb +63 -0
  425. data/spec/models/organization_team_spec.rb +1 -1
  426. data/spec/models/p2_package_upload_request_spec.rb +53 -0
  427. data/spec/models/p2_package_upload_spec.rb +447 -0
  428. data/spec/models/package_copy_request_spec.rb +47 -0
  429. data/spec/models/package_copy_spec.rb +13 -1
  430. data/spec/models/package_dependencies_spec.rb +1 -1
  431. data/spec/models/package_dependency_spec.rb +67 -0
  432. data/spec/models/package_file_parts_upload_spec.rb +1 -1
  433. data/spec/models/package_file_spec.rb +119 -0
  434. data/spec/models/package_file_upload_request_spec.rb +63 -0
  435. data/spec/models/package_file_upload_spec.rb +1 -1
  436. data/spec/models/package_move_request_spec.rb +41 -0
  437. data/spec/models/package_move_spec.rb +13 -1
  438. data/spec/models/package_quarantine_request_spec.rb +41 -0
  439. data/spec/models/package_quarantine_spec.rb +453 -0
  440. data/spec/models/package_resync_spec.rb +453 -0
  441. data/spec/models/package_spec.rb +13 -1
  442. data/spec/models/package_status_spec.rb +1 -1
  443. data/spec/models/package_tag_request_spec.rb +53 -0
  444. data/spec/models/package_tag_spec.rb +453 -0
  445. data/spec/models/package_usage_metrics_spec.rb +1 -1
  446. data/spec/models/package_version_badge_spec.rb +35 -0
  447. data/spec/models/package_vulnerability_spec.rb +59 -0
  448. data/spec/models/python_package_upload_request_spec.rb +53 -0
  449. data/spec/models/python_package_upload_spec.rb +447 -0
  450. data/spec/models/quota_history_spec.rb +1 -1
  451. data/spec/models/quota_spec.rb +1 -1
  452. data/spec/models/rate_check_spec.rb +71 -0
  453. data/spec/models/raw_package_upload_request_spec.rb +83 -0
  454. data/spec/models/raw_package_upload_spec.rb +13 -1
  455. data/spec/models/repository_audit_log_spec.rb +1 -1
  456. data/spec/models/repository_create_request_spec.rb +291 -0
  457. data/spec/models/repository_create_spec.rb +21 -1
  458. data/spec/models/repository_gpg_key_create_spec.rb +47 -0
  459. data/spec/models/repository_gpg_key_spec.rb +1 -1
  460. data/spec/models/repository_privilege_dict_spec.rb +63 -0
  461. data/spec/models/repository_privilege_input_request_patch_spec.rb +41 -0
  462. data/spec/models/repository_privilege_input_request_spec.rb +41 -0
  463. data/spec/models/repository_privilege_input_spec.rb +41 -0
  464. data/spec/models/repository_request_patch_spec.rb +285 -0
  465. data/spec/models/repository_rsa_key_create_spec.rb +47 -0
  466. data/spec/models/repository_rsa_key_spec.rb +1 -1
  467. data/spec/models/repository_spec.rb +18 -2
  468. data/spec/models/repository_token_action_spec.rb +35 -0
  469. data/spec/models/repository_token_refresh_request_spec.rb +127 -0
  470. data/spec/models/repository_token_refresh_spec.rb +1 -1
  471. data/spec/models/repository_token_request_patch_spec.rb +133 -0
  472. data/spec/models/repository_token_request_spec.rb +133 -0
  473. data/spec/models/repository_token_spec.rb +1 -1
  474. data/spec/models/repository_token_sync_request_spec.rb +41 -0
  475. data/spec/models/repository_token_sync_spec.rb +1 -1
  476. data/spec/models/repository_webhook_request_patch_spec.rb +111 -0
  477. data/spec/models/repository_webhook_request_spec.rb +111 -0
  478. data/spec/models/repository_webhook_spec.rb +5 -1
  479. data/spec/models/resources_rate_check_spec.rb +1 -1
  480. data/spec/models/rpm_package_upload_request_spec.rb +59 -0
  481. data/spec/models/rpm_package_upload_spec.rb +447 -0
  482. data/spec/models/ruby_package_upload_request_spec.rb +53 -0
  483. data/spec/models/ruby_package_upload_spec.rb +447 -0
  484. data/spec/models/service_request_patch_spec.rb +63 -0
  485. data/spec/models/service_request_spec.rb +63 -0
  486. data/spec/models/service_spec.rb +75 -0
  487. data/spec/models/service_teams_spec.rb +51 -0
  488. data/spec/models/status_basic_spec.rb +1 -1
  489. data/spec/models/storage_region_spec.rb +1 -1
  490. data/spec/models/tags_spec.rb +35 -0
  491. data/spec/models/terraform_package_upload_request_spec.rb +53 -0
  492. data/spec/models/terraform_package_upload_spec.rb +447 -0
  493. data/spec/models/usage_fieldset_spec.rb +47 -0
  494. data/spec/models/usage_limits_spec.rb +47 -0
  495. data/spec/models/usage_spec.rb +53 -0
  496. data/spec/models/user_auth_token_request_spec.rb +47 -0
  497. data/spec/models/user_auth_token_spec.rb +1 -1
  498. data/spec/models/user_brief_spec.rb +1 -1
  499. data/spec/models/user_profile_spec.rb +1 -1
  500. data/spec/models/vagrant_package_upload_request_spec.rb +71 -0
  501. data/spec/models/vagrant_package_upload_spec.rb +13 -1
  502. data/spec/models/vulnerability_scan_results_list_spec.rb +1 -1
  503. data/spec/models/vulnerability_scan_results_spec.rb +1 -1
  504. data/spec/models/vulnerability_scan_spec.rb +53 -0
  505. data/spec/models/vulnerability_scan_version_spec.rb +71 -0
  506. data/spec/models/vulnerability_spec.rb +93 -0
  507. data/spec/models/webhook_template_spec.rb +47 -0
  508. data/spec/spec_helper.rb +1 -1
  509. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.1.gem +0 -0
  510. data/vendor/bundle/ruby/2.6.0/cache/autotest-fsevent-0.2.20.gem +0 -0
  511. data/vendor/bundle/ruby/2.6.0/cache/ethon-0.16.0.gem +0 -0
  512. data/vendor/bundle/ruby/2.6.0/cache/json-2.6.3.gem +0 -0
  513. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.1.gem +0 -0
  514. data/vendor/bundle/ruby/2.6.0/cache/rspec-3.12.0.gem +0 -0
  515. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.12.0.gem +0 -0
  516. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.0.gem +0 -0
  517. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.12.1.gem +0 -0
  518. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.12.0.gem +0 -0
  519. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/gem.build_complete +0 -0
  520. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +14 -0
  521. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  522. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.6.2 → json-2.6.3}/gem.build_complete +0 -0
  523. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +13 -0
  524. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/json/ext/generator.so +0 -0
  525. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/json/ext/parser.so +0 -0
  526. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +128 -0
  527. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/CHANGELOG.md +262 -0
  528. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/Gemfile +30 -0
  529. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/LICENSE.txt +0 -0
  530. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/README.md +0 -0
  531. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/Rakefile +0 -0
  532. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/data/unicode.data +0 -0
  533. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib/addressable/idna/native.rb +60 -0
  534. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib/addressable/idna/pure.rb +677 -0
  535. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib/addressable/idna.rb +26 -0
  536. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib/addressable/template.rb +1030 -0
  537. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib/addressable/uri.rb +2560 -0
  538. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib/addressable/version.rb +31 -0
  539. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable.rb +0 -0
  540. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/spec/addressable/idna_spec.rb +301 -0
  541. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/spec/addressable/net_http_compat_spec.rb +29 -0
  542. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/spec/addressable/security_spec.rb +58 -0
  543. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/spec/addressable/template_spec.rb +1468 -0
  544. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/spec/addressable/uri_spec.rb +6745 -0
  545. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/spec_helper.rb +0 -0
  546. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/clobber.rake +0 -0
  547. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/tasks/gem.rake +95 -0
  548. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/git.rake +0 -0
  549. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/metrics.rake +0 -0
  550. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/profile.rake +0 -0
  551. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/rspec.rake +0 -0
  552. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/yard.rake +0 -0
  553. data/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.20/CHANGELOG.md +144 -0
  554. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/LICENSE.txt +0 -0
  555. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/README.md +0 -0
  556. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/Makefile +0 -0
  557. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/extconf.rb +0 -0
  558. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/fsevent.dll +0 -0
  559. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/fsevent.so +0 -0
  560. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/fsevent_sleep.c +0 -0
  561. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/make +0 -0
  562. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/ext/fsevent/nmake.bat +0 -0
  563. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/lib/autotest/fsevent.rb +0 -0
  564. data/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.20/lib/autotest-fsevent/version.rb +5 -0
  565. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/lib/autotest-fsevent.rb +0 -0
  566. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/post-install.txt +0 -0
  567. data/vendor/bundle/ruby/2.6.0/gems/{autotest-fsevent-0.2.19 → autotest-fsevent-0.2.20}/prebuilt/fsevent_sleep +0 -0
  568. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/.github/workflows/ruby.yml +41 -0
  569. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.gitignore +0 -0
  570. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.rspec +0 -0
  571. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  572. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Gemfile +0 -0
  573. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Guardfile +0 -0
  574. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/LICENSE +0 -0
  575. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/README.md +118 -0
  576. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Rakefile +0 -0
  577. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/ethon.gemspec +0 -0
  578. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curl.rb +0 -0
  579. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/curls/classes.rb +65 -0
  580. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/codes.rb +0 -0
  581. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/constants.rb +0 -0
  582. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/form_options.rb +0 -0
  583. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/functions.rb +0 -0
  584. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/infos.rb +0 -0
  585. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/messages.rb +0 -0
  586. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/curls/options.rb +503 -0
  587. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/settings.rb +0 -0
  588. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/callbacks.rb +149 -0
  589. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/debug_info.rb +0 -0
  590. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/features.rb +0 -0
  591. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/form.rb +0 -0
  592. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/header.rb +0 -0
  593. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/actionable.rb +0 -0
  594. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/custom.rb +0 -0
  595. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/delete.rb +0 -0
  596. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/get.rb +0 -0
  597. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/head.rb +0 -0
  598. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/options.rb +0 -0
  599. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/patch.rb +0 -0
  600. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/post.rb +0 -0
  601. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/postable.rb +0 -0
  602. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/put.rb +0 -0
  603. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/putable.rb +0 -0
  604. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http.rb +0 -0
  605. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/informations.rb +116 -0
  606. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/mirror.rb +0 -0
  607. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/operations.rb +0 -0
  608. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/options.rb +0 -0
  609. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/params.rb +0 -0
  610. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/queryable.rb +0 -0
  611. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/response_callbacks.rb +136 -0
  612. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/util.rb +0 -0
  613. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy.rb +0 -0
  614. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/ethon_error.rb +0 -0
  615. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/global_init.rb +0 -0
  616. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_option.rb +0 -0
  617. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_value.rb +0 -0
  618. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_add.rb +0 -0
  619. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  620. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_remove.rb +0 -0
  621. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  622. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/select.rb +0 -0
  623. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors.rb +0 -0
  624. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/libc.rb +0 -0
  625. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/loggable.rb +0 -0
  626. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/operations.rb +0 -0
  627. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/options.rb +0 -0
  628. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/stack.rb +0 -0
  629. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi.rb +0 -0
  630. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/version.rb +6 -0
  631. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon.rb +0 -0
  632. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/benchmarks.rb +0 -0
  633. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/memory_leaks.rb +0 -0
  634. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/perf_spec_helper.rb +0 -0
  635. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/memory_test_helpers.rb +0 -0
  636. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/os_memory_leak_tracker.rb +0 -0
  637. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
  638. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/curl_spec.rb +0 -0
  639. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/callbacks_spec.rb +81 -0
  640. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
  641. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/features_spec.rb +0 -0
  642. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/form_spec.rb +0 -0
  643. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/header_spec.rb +0 -0
  644. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
  645. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
  646. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/get_spec.rb +0 -0
  647. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/head_spec.rb +0 -0
  648. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/options_spec.rb +0 -0
  649. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
  650. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/post_spec.rb +0 -0
  651. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/put_spec.rb +0 -0
  652. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http_spec.rb +0 -0
  653. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/informations_spec.rb +126 -0
  654. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/mirror_spec.rb +47 -0
  655. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/operations_spec.rb +271 -0
  656. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/options_spec.rb +0 -0
  657. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/queryable_spec.rb +0 -0
  658. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
  659. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/util_spec.rb +0 -0
  660. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy_spec.rb +0 -0
  661. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/libc_spec.rb +0 -0
  662. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/loggable_spec.rb +0 -0
  663. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/operations_spec.rb +0 -0
  664. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/options_spec.rb +0 -0
  665. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/stack_spec.rb +0 -0
  666. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi_spec.rb +0 -0
  667. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/spec_helper.rb +0 -0
  668. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/localhost_server.rb +0 -0
  669. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/server.rb +0 -0
  670. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  671. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/CHANGES.md +0 -0
  672. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/LICENSE +0 -0
  673. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/README.md +0 -0
  674. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/VERSION +1 -0
  675. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +202 -0
  676. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/fbuffer/fbuffer.h +0 -0
  677. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  678. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +267 -0
  679. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/generator/depend +0 -0
  680. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/generator/extconf.rb +0 -0
  681. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/generator.c +1608 -0
  682. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/generator/generator.h +0 -0
  683. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/generator.o +0 -0
  684. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/generator.so +0 -0
  685. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  686. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +267 -0
  687. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/parser/depend +0 -0
  688. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/parser/extconf.rb +0 -0
  689. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/parser.c +3347 -0
  690. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/ext/parser/parser.h +0 -0
  691. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/parser.o +0 -0
  692. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/parser.rl +986 -0
  693. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/parser.so +0 -0
  694. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/ext/json/extconf.rb +0 -0
  695. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/json.gemspec +0 -0
  696. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/bigdecimal.rb +0 -0
  697. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/complex.rb +0 -0
  698. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/core.rb +0 -0
  699. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/date.rb +0 -0
  700. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/date_time.rb +0 -0
  701. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/exception.rb +0 -0
  702. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/ostruct.rb +0 -0
  703. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/range.rb +0 -0
  704. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/rational.rb +0 -0
  705. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/regexp.rb +0 -0
  706. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/set.rb +0 -0
  707. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/struct.rb +0 -0
  708. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/symbol.rb +0 -0
  709. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/add/time.rb +0 -0
  710. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/common.rb +0 -0
  711. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/lib/json/ext/generator.so +0 -0
  712. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/lib/json/ext/parser.so +0 -0
  713. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/ext.rb +0 -0
  714. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/generic_object.rb +0 -0
  715. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/pure/generator.rb +0 -0
  716. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/lib/json/pure/parser.rb +337 -0
  717. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json/pure.rb +0 -0
  718. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/lib/json/version.rb +9 -0
  719. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.2 → json-2.6.3}/lib/json.rb +0 -0
  720. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/.github/FUNDING.yml +0 -0
  721. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/.github/dependabot.yml +19 -0
  722. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/.github/workflows/psl-update.yml +38 -0
  723. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/.github/workflows/release.yml +18 -0
  724. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/.github/workflows/tests.yml +29 -0
  725. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/.gitignore +0 -0
  726. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/.rubocop.yml +37 -0
  727. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/.rubocop_opinionated.yml +135 -0
  728. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/.yardopts +0 -0
  729. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/2.0-Upgrade.md +0 -0
  730. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/CHANGELOG.md +432 -0
  731. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Gemfile +14 -0
  732. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/LICENSE.txt +0 -0
  733. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/README.md +217 -0
  734. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile +52 -0
  735. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/SECURITY.md +0 -0
  736. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/bin/console +0 -0
  737. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/data/list.txt +14189 -0
  738. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/lib/public_suffix/domain.rb +0 -0
  739. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/lib/public_suffix/errors.rb +0 -0
  740. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/lib/public_suffix/list.rb +247 -0
  741. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/lib/public_suffix/rule.rb +350 -0
  742. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/lib/public_suffix/version.rb +15 -0
  743. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/lib/public_suffix.rb +177 -0
  744. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/public_suffix.gemspec +29 -0
  745. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/.empty +0 -0
  746. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/test/acceptance_test.rb +131 -0
  747. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/benchmarks/bm_find.rb +0 -0
  748. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/benchmarks/bm_find_all.rb +0 -0
  749. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/benchmarks/bm_names.rb +0 -0
  750. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/benchmarks/bm_select.rb +0 -0
  751. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/benchmarks/bm_select_incremental.rb +0 -0
  752. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/benchmarks/bm_valid.rb +0 -0
  753. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/profilers/domain_profiler.rb +0 -0
  754. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/profilers/find_profiler.rb +0 -0
  755. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/profilers/find_profiler_jp.rb +0 -0
  756. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/profilers/initialization_profiler.rb +0 -0
  757. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/profilers/list_profsize.rb +0 -0
  758. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/profilers/object_binsize.rb +0 -0
  759. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/test/psl_test.rb +52 -0
  760. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/test_helper.rb +0 -0
  761. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/tests.txt +0 -0
  762. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/test/unit/domain_test.rb +106 -0
  763. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/unit/errors_test.rb +0 -0
  764. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/test/unit/list_test.rb +241 -0
  765. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.1}/test/unit/public_suffix_test.rb +0 -0
  766. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/test/unit/rule_test.rb +222 -0
  767. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.11.0 → rspec-3.12.0}/LICENSE.md +0 -0
  768. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.11.0 → rspec-3.12.0}/README.md +0 -0
  769. data/vendor/bundle/ruby/2.6.0/gems/rspec-3.12.0/lib/rspec/version.rb +5 -0
  770. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.11.0 → rspec-3.12.0}/lib/rspec.rb +0 -0
  771. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/.document +0 -0
  772. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/.yardopts +0 -0
  773. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.12.0/Changelog.md +2360 -0
  774. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/LICENSE.md +0 -0
  775. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/README.md +0 -0
  776. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/exe/rspec +0 -0
  777. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/autorun.rb +0 -0
  778. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/backtrace_formatter.rb +0 -0
  779. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/coordinator.rb +0 -0
  780. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  781. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/fork_runner.rb +0 -0
  782. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/server.rb +0 -0
  783. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/shell_command.rb +0 -0
  784. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  785. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/utilities.rb +0 -0
  786. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.12.0/lib/rspec/core/configuration.rb +2385 -0
  787. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/configuration_options.rb +0 -0
  788. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/did_you_mean.rb +0 -0
  789. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/drb.rb +0 -0
  790. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/dsl.rb +0 -0
  791. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example.rb +0 -0
  792. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example_group.rb +0 -0
  793. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example_status_persister.rb +0 -0
  794. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/filter_manager.rb +0 -0
  795. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/flat_map.rb +0 -0
  796. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  797. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  798. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  799. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  800. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  801. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/console_codes.rb +0 -0
  802. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  803. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  804. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/exception_presenter.rb +525 -0
  805. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  806. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  807. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/helpers.rb +0 -0
  808. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  809. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/html_printer.rb +412 -0
  810. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
  811. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  812. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  813. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  814. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/protocol.rb +0 -0
  815. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  816. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  817. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters.rb +0 -0
  818. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/hooks.rb +0 -0
  819. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/invocations.rb +0 -0
  820. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/memoized_helpers.rb +0 -0
  821. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/metadata.rb +0 -0
  822. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/metadata_filter.rb +0 -0
  823. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  824. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  825. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  826. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  827. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  828. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  829. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/notifications.rb +0 -0
  830. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.12.0/lib/rspec/core/option_parser.rb +323 -0
  831. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/ordering.rb +0 -0
  832. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/output_wrapper.rb +0 -0
  833. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/pending.rb +0 -0
  834. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/profiler.rb +0 -0
  835. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer/.rspec +0 -0
  836. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
  837. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer.rb +0 -0
  838. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/rake_task.rb +0 -0
  839. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/reporter.rb +0 -0
  840. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/ruby_project.rb +0 -0
  841. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/runner.rb +0 -0
  842. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/sandbox.rb +0 -0
  843. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/set.rb +0 -0
  844. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shared_context.rb +0 -0
  845. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shared_example_group.rb +0 -0
  846. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shell_escape.rb +0 -0
  847. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  848. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.12.0/lib/rspec/core/version.rb +9 -0
  849. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/warnings.rb +0 -0
  850. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/world.rb +0 -0
  851. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core.rb +0 -0
  852. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/.document +0 -0
  853. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/.yardopts +0 -0
  854. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/Changelog.md +1285 -0
  855. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/LICENSE.md +0 -0
  856. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/README.md +0 -0
  857. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  858. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/configuration.rb +0 -0
  859. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/expectation_target.rb +0 -0
  860. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/fail_with.rb +0 -0
  861. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/failure_aggregator.rb +0 -0
  862. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/handler.rb +0 -0
  863. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/minitest_integration.rb +0 -0
  864. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations/syntax.rb +0 -0
  865. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/expectations/version.rb +8 -0
  866. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/expectations.rb +0 -0
  867. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  868. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/all.rb +0 -0
  869. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  870. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be.rb +0 -0
  871. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  872. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  873. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  874. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  875. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/change.rb +0 -0
  876. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/compound.rb +0 -0
  877. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers/built_in/contain_exactly.rb +310 -0
  878. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers/built_in/count_expectation.rb +169 -0
  879. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/cover.rb +0 -0
  880. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/eq.rb +0 -0
  881. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/eql.rb +0 -0
  882. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/equal.rb +0 -0
  883. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers/built_in/exist.rb +90 -0
  884. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/has.rb +0 -0
  885. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  886. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/include.rb +0 -0
  887. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/match.rb +0 -0
  888. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/operators.rb +0 -0
  889. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/output.rb +0 -0
  890. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers/built_in/raise_error.rb +271 -0
  891. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  892. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  893. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  894. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers/built_in/throw_symbol.rb +138 -0
  895. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/yield.rb +0 -0
  896. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in.rb +0 -0
  897. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/composable.rb +0 -0
  898. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers/dsl.rb +544 -0
  899. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/english_phrasing.rb +0 -0
  900. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  901. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/fail_matchers.rb +0 -0
  902. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  903. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  904. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.12.0}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  905. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers.rb +1044 -0
  906. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/.document +0 -0
  907. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/.yardopts +0 -0
  908. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/Changelog.md +1227 -0
  909. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/LICENSE.md +0 -0
  910. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/README.md +0 -0
  911. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  912. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  913. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  914. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  915. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  916. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  917. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  918. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  919. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  920. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/any_instance.rb +0 -0
  921. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  922. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/argument_matchers.rb +0 -0
  923. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/configuration.rb +0 -0
  924. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/error_generator.rb +390 -0
  925. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/example_methods.rb +0 -0
  926. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  927. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/marshal_extension.rb +0 -0
  928. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  929. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/have_received.rb +134 -0
  930. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/receive.rb +133 -0
  931. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
  932. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
  933. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/message_chain.rb +0 -0
  934. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/message_expectation.rb +820 -0
  935. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/method_double.rb +309 -0
  936. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/method_reference.rb +214 -0
  937. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/minitest_integration.rb +0 -0
  938. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/mutate_const.rb +0 -0
  939. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/object_reference.rb +0 -0
  940. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/order_group.rb +0 -0
  941. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/proxy.rb +519 -0
  942. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/space.rb +0 -0
  943. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/standalone.rb +0 -0
  944. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/syntax.rb +0 -0
  945. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/targets.rb +124 -0
  946. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/test_double.rb +0 -0
  947. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/verifying_double.rb +0 -0
  948. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/verifying_message_expectation.rb +55 -0
  949. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  950. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/version.rb +9 -0
  951. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.1}/lib/rspec/mocks.rb +0 -0
  952. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/Changelog.md +364 -0
  953. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/LICENSE.md +0 -0
  954. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/README.md +0 -0
  955. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/caller_filter.rb +83 -0
  956. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/comparable_version.rb +46 -0
  957. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/differ.rb +215 -0
  958. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/directory_maker.rb +0 -0
  959. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/encoded_string.rb +161 -0
  960. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  961. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/hunk_generator.rb +0 -0
  962. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/matcher_definition.rb +0 -0
  963. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/method_signature_verifier.rb +438 -0
  964. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/mutex.rb +73 -0
  965. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/object_formatter.rb +0 -0
  966. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/recursive_const_methods.rb +0 -0
  967. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/reentrant_mutex.rb +0 -0
  968. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/ruby_features.rb +198 -0
  969. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/source/location.rb +0 -0
  970. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/source/node.rb +0 -0
  971. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/source/token.rb +0 -0
  972. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/source.rb +0 -0
  973. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  974. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  975. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/formatting_support.rb +0 -0
  976. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/in_sub_process.rb +67 -0
  977. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  978. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/shell_out.rb +0 -0
  979. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/stderr_splitter.rb +75 -0
  980. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/string_matcher.rb +0 -0
  981. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  982. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  983. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/spec.rb +0 -0
  984. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/version.rb +7 -0
  985. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support/warnings.rb +0 -0
  986. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.12.0/lib/rspec/support/with_keywords_when_needed.rb +33 -0
  987. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.12.0}/lib/rspec/support.rb +0 -0
  988. data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.1.gemspec +37 -0
  989. data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.20.gemspec +44 -0
  990. data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.16.0.gemspec +30 -0
  991. data/vendor/bundle/ruby/2.6.0/specifications/json-2.6.3.gemspec +0 -0
  992. data/vendor/bundle/ruby/2.6.0/specifications/public_suffix-5.0.1.gemspec +24 -0
  993. data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.12.0.gemspec +39 -0
  994. data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.12.0.gemspec +53 -0
  995. data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.12.0.gemspec +44 -0
  996. data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.12.1.gemspec +44 -0
  997. data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.12.0.gemspec +36 -0
  998. metadata +913 -813
  999. data/docs/DistrosVersions.md +0 -9
  1000. data/docs/EntitlementsCreate.md +0 -22
  1001. data/docs/EntitlementsPartialUpdate.md +0 -22
  1002. data/docs/EntitlementsRefresh.md +0 -21
  1003. data/docs/EntitlementsSync.md +0 -8
  1004. data/docs/FilesAbort.md +0 -11
  1005. data/docs/FilesComplete.md +0 -11
  1006. data/docs/FilesCreate.md +0 -11
  1007. data/docs/FilesValidate.md +0 -11
  1008. data/docs/FormatsDistributions.md +0 -11
  1009. data/docs/OrgsInvitesCreate.md +0 -12
  1010. data/docs/OrgsInvitesExtend.md +0 -11
  1011. data/docs/OrgsSamlgroupsyncCreate.md +0 -12
  1012. data/docs/OrgsTeamsCreate.md +0 -11
  1013. data/docs/OrgsTeamsPartialUpdate.md +0 -11
  1014. data/docs/PackageDependenciesDependencies.md +0 -11
  1015. data/docs/PackagesCopy.md +0 -9
  1016. data/docs/PackagesMove.md +0 -8
  1017. data/docs/PackagesQuarantine.md +0 -8
  1018. data/docs/PackagesTag.md +0 -10
  1019. data/docs/PackagesUploadAlpine.md +0 -11
  1020. data/docs/PackagesUploadCargo.md +0 -10
  1021. data/docs/PackagesUploadCocoapods.md +0 -10
  1022. data/docs/PackagesUploadComposer.md +0 -10
  1023. data/docs/PackagesUploadConan.md +0 -17
  1024. data/docs/PackagesUploadConda.md +0 -10
  1025. data/docs/PackagesUploadCran.md +0 -10
  1026. data/docs/PackagesUploadDart.md +0 -10
  1027. data/docs/PackagesUploadDeb.md +0 -13
  1028. data/docs/PackagesUploadDocker.md +0 -10
  1029. data/docs/PackagesUploadGo.md +0 -10
  1030. data/docs/PackagesUploadHelm.md +0 -10
  1031. data/docs/PackagesUploadLuarocks.md +0 -10
  1032. data/docs/PackagesUploadMaven.md +0 -18
  1033. data/docs/PackagesUploadNpm.md +0 -11
  1034. data/docs/PackagesUploadNuget.md +0 -11
  1035. data/docs/PackagesUploadP2.md +0 -10
  1036. data/docs/PackagesUploadPython.md +0 -10
  1037. data/docs/PackagesUploadRaw.md +0 -15
  1038. data/docs/PackagesUploadRpm.md +0 -11
  1039. data/docs/PackagesUploadRuby.md +0 -10
  1040. data/docs/PackagesUploadTerraform.md +0 -10
  1041. data/docs/PackagesUploadVagrant.md +0 -13
  1042. data/docs/PackagesValidateuploadAlpine.md +0 -11
  1043. data/docs/PackagesValidateuploadCargo.md +0 -10
  1044. data/docs/PackagesValidateuploadCocoapods.md +0 -10
  1045. data/docs/PackagesValidateuploadComposer.md +0 -10
  1046. data/docs/PackagesValidateuploadConan.md +0 -17
  1047. data/docs/PackagesValidateuploadConda.md +0 -10
  1048. data/docs/PackagesValidateuploadCran.md +0 -10
  1049. data/docs/PackagesValidateuploadDart.md +0 -10
  1050. data/docs/PackagesValidateuploadDeb.md +0 -13
  1051. data/docs/PackagesValidateuploadDocker.md +0 -10
  1052. data/docs/PackagesValidateuploadGo.md +0 -10
  1053. data/docs/PackagesValidateuploadHelm.md +0 -10
  1054. data/docs/PackagesValidateuploadLuarocks.md +0 -10
  1055. data/docs/PackagesValidateuploadMaven.md +0 -18
  1056. data/docs/PackagesValidateuploadNpm.md +0 -11
  1057. data/docs/PackagesValidateuploadNuget.md +0 -11
  1058. data/docs/PackagesValidateuploadP2.md +0 -10
  1059. data/docs/PackagesValidateuploadPython.md +0 -10
  1060. data/docs/PackagesValidateuploadRaw.md +0 -15
  1061. data/docs/PackagesValidateuploadRpm.md +0 -11
  1062. data/docs/PackagesValidateuploadRuby.md +0 -10
  1063. data/docs/PackagesValidateuploadTerraform.md +0 -10
  1064. data/docs/PackagesValidateuploadVagrant.md +0 -13
  1065. data/docs/PackagesownerrepoArchitectures.md +0 -9
  1066. data/docs/PackagesownerrepoFiles.md +0 -21
  1067. data/docs/QuotaHistoryHistory.md +0 -13
  1068. data/docs/ReposCreate.md +0 -41
  1069. data/docs/ReposGpgCreate.md +0 -9
  1070. data/docs/ReposGpgKeys.md +0 -14
  1071. data/docs/ReposPartialUpdate.md +0 -40
  1072. data/docs/ReposRsaCreate.md +0 -9
  1073. data/docs/RepositoryPrivilegeList.md +0 -8
  1074. data/docs/RepositoryTokenSyncTokens.md +0 -46
  1075. data/docs/Status.md +0 -8
  1076. data/docs/UserTokenCreate.md +0 -9
  1077. data/docs/WebhooksCreate.md +0 -19
  1078. data/docs/WebhooksPartialUpdate.md +0 -19
  1079. data/docs/WebhooksownerrepoTemplates.md +0 -9
  1080. data/lib/cloudsmith-api/models/distros_versions.rb +0 -195
  1081. data/lib/cloudsmith-api/models/entitlements_create.rb +0 -376
  1082. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +0 -371
  1083. data/lib/cloudsmith-api/models/entitlements_refresh.rb +0 -361
  1084. data/lib/cloudsmith-api/models/entitlements_sync.rb +0 -190
  1085. data/lib/cloudsmith-api/models/files_abort.rb +0 -254
  1086. data/lib/cloudsmith-api/models/files_complete.rb +0 -254
  1087. data/lib/cloudsmith-api/models/files_create.rb +0 -254
  1088. data/lib/cloudsmith-api/models/files_validate.rb +0 -254
  1089. data/lib/cloudsmith-api/models/formats_distributions.rb +0 -215
  1090. data/lib/cloudsmith-api/models/orgs_invites_create.rb +0 -259
  1091. data/lib/cloudsmith-api/models/orgs_invites_extend.rb +0 -249
  1092. data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +0 -245
  1093. data/lib/cloudsmith-api/models/orgs_teams_create.rb +0 -254
  1094. data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +0 -249
  1095. data/lib/cloudsmith-api/models/package_dependencies_dependencies.rb +0 -215
  1096. data/lib/cloudsmith-api/models/packages_copy.rb +0 -200
  1097. data/lib/cloudsmith-api/models/packages_move.rb +0 -190
  1098. data/lib/cloudsmith-api/models/packages_quarantine.rb +0 -185
  1099. data/lib/cloudsmith-api/models/packages_tag.rb +0 -241
  1100. data/lib/cloudsmith-api/models/packages_upload_alpine.rb +0 -225
  1101. data/lib/cloudsmith-api/models/packages_upload_cargo.rb +0 -210
  1102. data/lib/cloudsmith-api/models/packages_upload_cocoapods.rb +0 -210
  1103. data/lib/cloudsmith-api/models/packages_upload_composer.rb +0 -210
  1104. data/lib/cloudsmith-api/models/packages_upload_conan.rb +0 -295
  1105. data/lib/cloudsmith-api/models/packages_upload_conda.rb +0 -210
  1106. data/lib/cloudsmith-api/models/packages_upload_cran.rb +0 -210
  1107. data/lib/cloudsmith-api/models/packages_upload_dart.rb +0 -210
  1108. data/lib/cloudsmith-api/models/packages_upload_deb.rb +0 -245
  1109. data/lib/cloudsmith-api/models/packages_upload_docker.rb +0 -210
  1110. data/lib/cloudsmith-api/models/packages_upload_go.rb +0 -210
  1111. data/lib/cloudsmith-api/models/packages_upload_helm.rb +0 -210
  1112. data/lib/cloudsmith-api/models/packages_upload_luarocks.rb +0 -210
  1113. data/lib/cloudsmith-api/models/packages_upload_maven.rb +0 -290
  1114. data/lib/cloudsmith-api/models/packages_upload_npm.rb +0 -220
  1115. data/lib/cloudsmith-api/models/packages_upload_nuget.rb +0 -220
  1116. data/lib/cloudsmith-api/models/packages_upload_p2.rb +0 -210
  1117. data/lib/cloudsmith-api/models/packages_upload_python.rb +0 -210
  1118. data/lib/cloudsmith-api/models/packages_upload_raw.rb +0 -260
  1119. data/lib/cloudsmith-api/models/packages_upload_rpm.rb +0 -225
  1120. data/lib/cloudsmith-api/models/packages_upload_ruby.rb +0 -210
  1121. data/lib/cloudsmith-api/models/packages_upload_terraform.rb +0 -210
  1122. data/lib/cloudsmith-api/models/packages_upload_vagrant.rb +0 -255
  1123. data/lib/cloudsmith-api/models/packages_validateupload_alpine.rb +0 -225
  1124. data/lib/cloudsmith-api/models/packages_validateupload_cargo.rb +0 -210
  1125. data/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb +0 -210
  1126. data/lib/cloudsmith-api/models/packages_validateupload_composer.rb +0 -210
  1127. data/lib/cloudsmith-api/models/packages_validateupload_conan.rb +0 -295
  1128. data/lib/cloudsmith-api/models/packages_validateupload_conda.rb +0 -210
  1129. data/lib/cloudsmith-api/models/packages_validateupload_cran.rb +0 -210
  1130. data/lib/cloudsmith-api/models/packages_validateupload_dart.rb +0 -210
  1131. data/lib/cloudsmith-api/models/packages_validateupload_deb.rb +0 -245
  1132. data/lib/cloudsmith-api/models/packages_validateupload_docker.rb +0 -210
  1133. data/lib/cloudsmith-api/models/packages_validateupload_go.rb +0 -210
  1134. data/lib/cloudsmith-api/models/packages_validateupload_helm.rb +0 -210
  1135. data/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb +0 -210
  1136. data/lib/cloudsmith-api/models/packages_validateupload_maven.rb +0 -290
  1137. data/lib/cloudsmith-api/models/packages_validateupload_npm.rb +0 -220
  1138. data/lib/cloudsmith-api/models/packages_validateupload_nuget.rb +0 -220
  1139. data/lib/cloudsmith-api/models/packages_validateupload_p2.rb +0 -210
  1140. data/lib/cloudsmith-api/models/packages_validateupload_python.rb +0 -210
  1141. data/lib/cloudsmith-api/models/packages_validateupload_raw.rb +0 -260
  1142. data/lib/cloudsmith-api/models/packages_validateupload_rpm.rb +0 -225
  1143. data/lib/cloudsmith-api/models/packages_validateupload_ruby.rb +0 -210
  1144. data/lib/cloudsmith-api/models/packages_validateupload_terraform.rb +0 -210
  1145. data/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb +0 -255
  1146. data/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb +0 -195
  1147. data/lib/cloudsmith-api/models/packagesownerrepo_files.rb +0 -315
  1148. data/lib/cloudsmith-api/models/quota_history_history.rb +0 -235
  1149. data/lib/cloudsmith-api/models/repos_create.rb +0 -638
  1150. data/lib/cloudsmith-api/models/repos_gpg_create.rb +0 -200
  1151. data/lib/cloudsmith-api/models/repos_gpg_keys.rb +0 -245
  1152. data/lib/cloudsmith-api/models/repos_partial_update.rb +0 -635
  1153. data/lib/cloudsmith-api/models/repos_rsa_create.rb +0 -200
  1154. data/lib/cloudsmith-api/models/repository_privilege_list.rb +0 -185
  1155. data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +0 -565
  1156. data/lib/cloudsmith-api/models/status.rb +0 -190
  1157. data/lib/cloudsmith-api/models/user_token_create.rb +0 -195
  1158. data/lib/cloudsmith-api/models/webhooks_create.rb +0 -314
  1159. data/lib/cloudsmith-api/models/webhooks_partial_update.rb +0 -299
  1160. data/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb +0 -195
  1161. data/spec/models/distros_versions_spec.rb +0 -47
  1162. data/spec/models/entitlements_create_spec.rb +0 -133
  1163. data/spec/models/entitlements_partial_update_spec.rb +0 -133
  1164. data/spec/models/entitlements_refresh_spec.rb +0 -127
  1165. data/spec/models/entitlements_sync_spec.rb +0 -41
  1166. data/spec/models/files_abort_spec.rb +0 -63
  1167. data/spec/models/files_complete_spec.rb +0 -63
  1168. data/spec/models/files_create_spec.rb +0 -63
  1169. data/spec/models/files_validate_spec.rb +0 -63
  1170. data/spec/models/formats_distributions_spec.rb +0 -59
  1171. data/spec/models/orgs_invites_create_spec.rb +0 -69
  1172. data/spec/models/orgs_invites_extend_spec.rb +0 -63
  1173. data/spec/models/orgs_samlgroupsync_create_spec.rb +0 -65
  1174. data/spec/models/orgs_teams_create_spec.rb +0 -63
  1175. data/spec/models/orgs_teams_partial_update_spec.rb +0 -63
  1176. data/spec/models/package_dependencies_dependencies_spec.rb +0 -59
  1177. data/spec/models/packages_copy_spec.rb +0 -47
  1178. data/spec/models/packages_move_spec.rb +0 -41
  1179. data/spec/models/packages_quarantine_spec.rb +0 -41
  1180. data/spec/models/packages_tag_spec.rb +0 -57
  1181. data/spec/models/packages_upload_alpine_spec.rb +0 -59
  1182. data/spec/models/packages_upload_cargo_spec.rb +0 -53
  1183. data/spec/models/packages_upload_cocoapods_spec.rb +0 -53
  1184. data/spec/models/packages_upload_composer_spec.rb +0 -53
  1185. data/spec/models/packages_upload_conan_spec.rb +0 -95
  1186. data/spec/models/packages_upload_conda_spec.rb +0 -53
  1187. data/spec/models/packages_upload_cran_spec.rb +0 -53
  1188. data/spec/models/packages_upload_dart_spec.rb +0 -53
  1189. data/spec/models/packages_upload_deb_spec.rb +0 -71
  1190. data/spec/models/packages_upload_docker_spec.rb +0 -53
  1191. data/spec/models/packages_upload_go_spec.rb +0 -53
  1192. data/spec/models/packages_upload_helm_spec.rb +0 -53
  1193. data/spec/models/packages_upload_luarocks_spec.rb +0 -53
  1194. data/spec/models/packages_upload_maven_spec.rb +0 -101
  1195. data/spec/models/packages_upload_npm_spec.rb +0 -59
  1196. data/spec/models/packages_upload_nuget_spec.rb +0 -59
  1197. data/spec/models/packages_upload_p2_spec.rb +0 -53
  1198. data/spec/models/packages_upload_python_spec.rb +0 -53
  1199. data/spec/models/packages_upload_raw_spec.rb +0 -83
  1200. data/spec/models/packages_upload_rpm_spec.rb +0 -59
  1201. data/spec/models/packages_upload_ruby_spec.rb +0 -53
  1202. data/spec/models/packages_upload_terraform_spec.rb +0 -53
  1203. data/spec/models/packages_upload_vagrant_spec.rb +0 -71
  1204. data/spec/models/packages_validateupload_alpine_spec.rb +0 -59
  1205. data/spec/models/packages_validateupload_cargo_spec.rb +0 -53
  1206. data/spec/models/packages_validateupload_cocoapods_spec.rb +0 -53
  1207. data/spec/models/packages_validateupload_composer_spec.rb +0 -53
  1208. data/spec/models/packages_validateupload_conan_spec.rb +0 -95
  1209. data/spec/models/packages_validateupload_conda_spec.rb +0 -53
  1210. data/spec/models/packages_validateupload_cran_spec.rb +0 -53
  1211. data/spec/models/packages_validateupload_dart_spec.rb +0 -53
  1212. data/spec/models/packages_validateupload_deb_spec.rb +0 -71
  1213. data/spec/models/packages_validateupload_docker_spec.rb +0 -53
  1214. data/spec/models/packages_validateupload_go_spec.rb +0 -53
  1215. data/spec/models/packages_validateupload_helm_spec.rb +0 -53
  1216. data/spec/models/packages_validateupload_luarocks_spec.rb +0 -53
  1217. data/spec/models/packages_validateupload_maven_spec.rb +0 -101
  1218. data/spec/models/packages_validateupload_npm_spec.rb +0 -59
  1219. data/spec/models/packages_validateupload_nuget_spec.rb +0 -59
  1220. data/spec/models/packages_validateupload_p2_spec.rb +0 -53
  1221. data/spec/models/packages_validateupload_python_spec.rb +0 -53
  1222. data/spec/models/packages_validateupload_raw_spec.rb +0 -83
  1223. data/spec/models/packages_validateupload_rpm_spec.rb +0 -59
  1224. data/spec/models/packages_validateupload_ruby_spec.rb +0 -53
  1225. data/spec/models/packages_validateupload_terraform_spec.rb +0 -53
  1226. data/spec/models/packages_validateupload_vagrant_spec.rb +0 -71
  1227. data/spec/models/packagesownerrepo_architectures_spec.rb +0 -47
  1228. data/spec/models/packagesownerrepo_files_spec.rb +0 -119
  1229. data/spec/models/quota_history_history_spec.rb +0 -71
  1230. data/spec/models/repos_create_spec.rb +0 -271
  1231. data/spec/models/repos_gpg_create_spec.rb +0 -47
  1232. data/spec/models/repos_gpg_keys_spec.rb +0 -77
  1233. data/spec/models/repos_partial_update_spec.rb +0 -269
  1234. data/spec/models/repos_rsa_create_spec.rb +0 -47
  1235. data/spec/models/repository_privilege_list_spec.rb +0 -41
  1236. data/spec/models/repository_token_sync_tokens_spec.rb +0 -269
  1237. data/spec/models/status_spec.rb +0 -41
  1238. data/spec/models/user_token_create_spec.rb +0 -47
  1239. data/spec/models/webhooks_create_spec.rb +0 -107
  1240. data/spec/models/webhooks_partial_update_spec.rb +0 -107
  1241. data/spec/models/webhooksownerrepo_templates_spec.rb +0 -47
  1242. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.0.gem +0 -0
  1243. data/vendor/bundle/ruby/2.6.0/cache/autotest-fsevent-0.2.19.gem +0 -0
  1244. data/vendor/bundle/ruby/2.6.0/cache/ethon-0.15.0.gem +0 -0
  1245. data/vendor/bundle/ruby/2.6.0/cache/json-2.6.2.gem +0 -0
  1246. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.7.gem +0 -0
  1247. data/vendor/bundle/ruby/2.6.0/cache/rspec-3.11.0.gem +0 -0
  1248. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.11.0.gem +0 -0
  1249. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.11.0.gem +0 -0
  1250. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.11.1.gem +0 -0
  1251. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.11.0.gem +0 -0
  1252. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +0 -14
  1253. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +0 -13
  1254. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
  1255. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
  1256. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/mkmf.log +0 -128
  1257. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/CHANGELOG.md +0 -246
  1258. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/Gemfile +0 -28
  1259. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/addressable.gemspec +0 -37
  1260. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/lib/addressable/idna/native.rb +0 -61
  1261. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/lib/addressable/idna/pure.rb +0 -678
  1262. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/lib/addressable/idna.rb +0 -27
  1263. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/lib/addressable/template.rb +0 -1031
  1264. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/lib/addressable/uri.rb +0 -2556
  1265. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/lib/addressable/version.rb +0 -32
  1266. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/spec/addressable/idna_spec.rb +0 -302
  1267. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/spec/addressable/net_http_compat_spec.rb +0 -30
  1268. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/spec/addressable/security_spec.rb +0 -59
  1269. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/spec/addressable/template_spec.rb +0 -1460
  1270. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/spec/addressable/uri_spec.rb +0 -6665
  1271. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/tasks/gem.rake +0 -92
  1272. data/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.19/CHANGELOG.md +0 -135
  1273. data/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.19/lib/autotest-fsevent/version.rb +0 -5
  1274. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +0 -41
  1275. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/CHANGELOG.md +0 -372
  1276. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/README.md +0 -95
  1277. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb +0 -55
  1278. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/options.rb +0 -502
  1279. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/lib/ethon/easy/callbacks.rb +0 -148
  1280. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/lib/ethon/easy/informations.rb +0 -113
  1281. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/lib/ethon/easy/response_callbacks.rb +0 -131
  1282. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/lib/ethon/version.rb +0 -6
  1283. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +0 -59
  1284. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +0 -120
  1285. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +0 -47
  1286. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +0 -268
  1287. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/VERSION +0 -1
  1288. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/Makefile +0 -202
  1289. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +0 -267
  1290. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.c +0 -1608
  1291. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
  1292. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
  1293. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +0 -267
  1294. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.c +0 -3347
  1295. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
  1296. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.rl +0 -986
  1297. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
  1298. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
  1299. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
  1300. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/pure/parser.rb +0 -337
  1301. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/version.rb +0 -9
  1302. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/dependabot.yml +0 -8
  1303. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/workflows/release.yml +0 -16
  1304. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/workflows/tests.yml +0 -28
  1305. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.rubocop.yml +0 -36
  1306. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.rubocop_opinionated.yml +0 -163
  1307. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/CHANGELOG.md +0 -417
  1308. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/Gemfile +0 -14
  1309. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/README.md +0 -217
  1310. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/Rakefile +0 -52
  1311. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/data/list.txt +0 -14035
  1312. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/lib/public_suffix/list.rb +0 -247
  1313. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/lib/public_suffix/rule.rb +0 -350
  1314. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/lib/public_suffix/version.rb +0 -15
  1315. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/lib/public_suffix.rb +0 -177
  1316. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/public_suffix.gemspec +0 -29
  1317. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/test/acceptance_test.rb +0 -131
  1318. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/test/psl_test.rb +0 -52
  1319. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/test/unit/domain_test.rb +0 -106
  1320. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/test/unit/list_test.rb +0 -241
  1321. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/test/unit/rule_test.rb +0 -222
  1322. data/vendor/bundle/ruby/2.6.0/gems/rspec-3.11.0/lib/rspec/version.rb +0 -5
  1323. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/Changelog.md +0 -2355
  1324. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/lib/rspec/core/configuration.rb +0 -2383
  1325. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb +0 -521
  1326. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb +0 -414
  1327. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/lib/rspec/core/option_parser.rb +0 -325
  1328. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/lib/rspec/core/version.rb +0 -9
  1329. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/Changelog.md +0 -1267
  1330. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/expectations/version.rb +0 -8
  1331. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb +0 -302
  1332. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb +0 -169
  1333. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb +0 -90
  1334. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb +0 -271
  1335. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb +0 -138
  1336. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb +0 -544
  1337. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.0/lib/rspec/matchers.rb +0 -1041
  1338. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/Changelog.md +0 -1193
  1339. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
  1340. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb +0 -369
  1341. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb +0 -134
  1342. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb +0 -133
  1343. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -82
  1344. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb +0 -77
  1345. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb +0 -822
  1346. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb +0 -291
  1347. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb +0 -202
  1348. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb +0 -525
  1349. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb +0 -124
  1350. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
  1351. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/version.rb +0 -9
  1352. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/Changelog.md +0 -350
  1353. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/caller_filter.rb +0 -83
  1354. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/comparable_version.rb +0 -46
  1355. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/differ.rb +0 -215
  1356. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/encoded_string.rb +0 -161
  1357. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb +0 -438
  1358. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/mutex.rb +0 -73
  1359. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/ruby_features.rb +0 -191
  1360. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/spec/in_sub_process.rb +0 -67
  1361. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/spec/stderr_splitter.rb +0 -75
  1362. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/version.rb +0 -7
  1363. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb +0 -33
  1364. data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +0 -36
  1365. data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +0 -44
  1366. data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +0 -30
  1367. data/vendor/bundle/ruby/2.6.0/specifications/json-2.6.2.gemspec +0 -0
  1368. data/vendor/bundle/ruby/2.6.0/specifications/public_suffix-4.0.7.gemspec +0 -24
  1369. data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +0 -39
  1370. data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +0 -53
  1371. data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +0 -44
  1372. data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.11.1.gemspec +0 -44
  1373. data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +0 -36
@@ -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