cloudsmith-api 2.0.1 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +59 -12
- data/build.json +1 -1
- data/docs/AllocatedLimitRaw.md +11 -0
- data/docs/Eula.md +1 -1
- data/docs/HexPackageUpload.md +75 -0
- data/docs/HexPackageUploadRequest.md +10 -0
- data/docs/History.md +1 -1
- data/docs/HistoryFieldset.md +1 -1
- data/docs/HistoryFieldsetRaw.md +10 -0
- data/docs/NestedLicensePolicy.md +17 -0
- data/docs/NestedVulnerabilityPolicy.md +17 -0
- data/docs/NestedVulnerabilityScanResults.md +14 -0
- data/docs/OrganizationGroupSync.md +1 -1
- data/docs/OrganizationGroupSyncRequest.md +1 -1
- data/docs/OrganizationPackageLicensePolicy.md +16 -0
- data/docs/OrganizationPackageLicensePolicyRequest.md +13 -0
- data/docs/OrganizationPackageLicensePolicyRequestPatch.md +13 -0
- data/docs/OrganizationPackageVulnerabilityPolicy.md +16 -0
- data/docs/OrganizationPackageVulnerabilityPolicyRequest.md +13 -0
- data/docs/OrganizationPackageVulnerabilityPolicyRequestPatch.md +13 -0
- data/docs/OrgsApi.md +1087 -247
- data/docs/PackageDependencies.md +1 -1
- data/docs/PackageLicensePolicyViolationLog.md +11 -0
- data/docs/PackageLicensePolicyViolationLogCursorPage.md +10 -0
- data/docs/PackageTagRequest.md +1 -1
- data/docs/PackageVulnerabilityPolicyViolationLog.md +12 -0
- data/docs/PackageVulnerabilityPolicyViolationLogCursorPage.md +10 -0
- data/docs/PackagesApi.md +127 -4
- data/docs/ReposApi.md +196 -10
- data/docs/RepositoryGeoIpCidr.md +9 -0
- data/docs/RepositoryGeoIpCountryCode.md +9 -0
- data/docs/RepositoryGeoIpRules.md +9 -0
- data/docs/RepositoryGeoIpRulesRequest.md +9 -0
- data/docs/RepositoryGeoIpRulesRequestPatch.md +9 -0
- data/docs/RepositoryGeoIpTestAddress.md +8 -0
- data/docs/RepositoryGeoIpTestAddressResponse.md +8 -0
- data/docs/RepositoryGeoIpTestAddressResponseDict.md +11 -0
- data/docs/RepositoryToken.md +2 -2
- data/docs/RepositoryTokenRefresh.md +2 -2
- data/docs/RepositoryTokenRefreshRequest.md +1 -1
- data/docs/RepositoryTokenRequest.md +1 -1
- data/docs/RepositoryTokenRequestPatch.md +1 -1
- data/docs/RepositoryWebhook.md +1 -1
- data/docs/{RespositoryGeoIPEnableDisable.md → RespositoryGeoIpEnableDisable.md} +1 -1
- data/docs/{RespositoryGeoIPEnableDisableRequest.md → RespositoryGeoIpEnableDisableRequest.md} +1 -1
- data/docs/ServiceTeams.md +1 -1
- data/docs/StatusBasic.md +1 -1
- data/docs/StorageAllocatedLimit.md +12 -0
- data/docs/StorageAllocatedLimitRaw.md +12 -0
- data/docs/StorageUsage.md +11 -0
- data/docs/StorageUsageRaw.md +11 -0
- data/docs/UsageFieldset.md +1 -1
- data/docs/UsageLimits.md +1 -1
- data/docs/UsageLimitsRaw.md +9 -0
- data/docs/UsageRaw.md +10 -0
- data/docs/VulnerabilitiesApi.md +8 -8
- data/docs/VulnerabilityScanResults.md +1 -1
- data/docs/VulnerabilityScanResultsList.md +1 -1
- data/lib/cloudsmith-api/api/orgs_api.rb +1289 -451
- data/lib/cloudsmith-api/api/packages_api.rb +127 -4
- data/lib/cloudsmith-api/api/repos_api.rb +197 -11
- data/lib/cloudsmith-api/api/vulnerabilities_api.rb +13 -13
- data/lib/cloudsmith-api/models/allocated_limit_raw.rb +211 -0
- data/lib/cloudsmith-api/models/eula.rb +0 -5
- data/lib/cloudsmith-api/models/hex_package_upload.rb +850 -0
- data/lib/cloudsmith-api/models/hex_package_upload_request.rb +210 -0
- data/lib/cloudsmith-api/models/history.rb +1 -1
- data/lib/cloudsmith-api/models/history_fieldset.rb +1 -1
- data/lib/cloudsmith-api/models/history_fieldset_raw.rb +217 -0
- data/lib/cloudsmith-api/models/nested_license_policy.rb +272 -0
- data/lib/cloudsmith-api/models/nested_vulnerability_policy.rb +302 -0
- data/lib/cloudsmith-api/models/nested_vulnerability_scan_results.rb +287 -0
- data/lib/cloudsmith-api/models/organization_group_sync.rb +34 -1
- data/lib/cloudsmith-api/models/organization_group_sync_request.rb +34 -1
- data/lib/cloudsmith-api/models/organization_package_license_policy.rb +268 -0
- data/lib/cloudsmith-api/models/organization_package_license_policy_request.rb +241 -0
- data/lib/cloudsmith-api/models/organization_package_license_policy_request_patch.rb +231 -0
- data/lib/cloudsmith-api/models/organization_package_vulnerability_policy.rb +298 -0
- data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request.rb +271 -0
- data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request_patch.rb +266 -0
- data/lib/cloudsmith-api/models/package_dependencies.rb +0 -5
- data/lib/cloudsmith-api/models/package_license_policy_violation_log.rb +228 -0
- data/lib/cloudsmith-api/models/package_license_policy_violation_log_cursor_page.rb +209 -0
- data/lib/cloudsmith-api/models/package_tag_request.rb +37 -1
- data/lib/cloudsmith-api/models/package_vulnerability_policy_violation_log.rb +242 -0
- data/lib/cloudsmith-api/models/package_vulnerability_policy_violation_log_cursor_page.rb +209 -0
- data/lib/cloudsmith-api/models/{inline_response_200_country_code.rb → repository_geo_ip_cidr.rb} +13 -1
- data/lib/cloudsmith-api/models/repository_geo_ip_country_code.rb +209 -0
- data/lib/cloudsmith-api/models/repository_geo_ip_rules.rb +203 -0
- data/lib/cloudsmith-api/models/repository_geo_ip_rules_request.rb +203 -0
- data/lib/cloudsmith-api/models/{repository_geo_ip_list.rb → repository_geo_ip_rules_request_patch.rb} +3 -5
- data/lib/cloudsmith-api/models/{inline_response_200.rb → repository_geo_ip_test_address.rb} +16 -17
- data/lib/cloudsmith-api/models/repository_geo_ip_test_address_response.rb +192 -0
- data/lib/cloudsmith-api/models/repository_geo_ip_test_address_response_dict.rb +235 -0
- data/lib/cloudsmith-api/models/repository_token.rb +2 -1
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +2 -1
- data/lib/cloudsmith-api/models/repository_token_refresh_request.rb +1 -1
- data/lib/cloudsmith-api/models/repository_token_request.rb +1 -1
- data/lib/cloudsmith-api/models/repository_token_request_patch.rb +1 -1
- data/lib/cloudsmith-api/models/repository_webhook.rb +1 -0
- data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable.rb +1 -1
- data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable_request.rb +1 -1
- data/lib/cloudsmith-api/models/service_teams.rb +5 -0
- data/lib/cloudsmith-api/models/status_basic.rb +1 -1
- data/lib/cloudsmith-api/models/storage_allocated_limit.rb +220 -0
- data/lib/cloudsmith-api/models/storage_allocated_limit_raw.rb +220 -0
- data/lib/cloudsmith-api/models/storage_usage.rb +211 -0
- data/lib/cloudsmith-api/models/storage_usage_raw.rb +211 -0
- data/lib/cloudsmith-api/models/usage_fieldset.rb +1 -1
- data/lib/cloudsmith-api/models/usage_limits.rb +1 -1
- data/lib/cloudsmith-api/models/usage_limits_raw.rb +203 -0
- data/lib/cloudsmith-api/models/usage_raw.rb +202 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +1 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +1 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +31 -3
- data/spec/api/orgs_api_spec.rb +190 -0
- data/spec/api/packages_api_spec.rb +30 -2
- data/spec/api/repos_api_spec.rb +47 -5
- data/spec/api/vulnerabilities_api_spec.rb +3 -3
- data/spec/models/allocated_limit_raw_spec.rb +59 -0
- data/spec/models/hex_package_upload_request_spec.rb +53 -0
- data/spec/models/hex_package_upload_spec.rb +447 -0
- data/spec/models/history_fieldset_raw_spec.rb +53 -0
- data/spec/models/nested_license_policy_spec.rb +95 -0
- data/spec/models/nested_vulnerability_policy_spec.rb +99 -0
- data/spec/models/nested_vulnerability_scan_results_spec.rb +81 -0
- data/spec/models/organization_group_sync_request_spec.rb +4 -0
- data/spec/models/organization_group_sync_spec.rb +4 -0
- data/spec/models/organization_package_license_policy_request_patch_spec.rb +71 -0
- data/spec/models/organization_package_license_policy_request_spec.rb +71 -0
- data/spec/models/organization_package_license_policy_spec.rb +89 -0
- data/spec/models/organization_package_vulnerability_policy_request_patch_spec.rb +75 -0
- data/spec/models/organization_package_vulnerability_policy_request_spec.rb +75 -0
- data/spec/models/organization_package_vulnerability_policy_spec.rb +93 -0
- data/spec/models/package_license_policy_violation_log_cursor_page_spec.rb +53 -0
- data/spec/models/package_license_policy_violation_log_spec.rb +59 -0
- data/spec/models/package_tag_request_spec.rb +4 -0
- data/spec/models/package_vulnerability_policy_violation_log_cursor_page_spec.rb +53 -0
- data/spec/models/package_vulnerability_policy_violation_log_spec.rb +65 -0
- data/spec/models/{inline_response_200_country_code_spec.rb → repository_geo_ip_cidr_spec.rb} +6 -6
- data/spec/models/repository_geo_ip_country_code_spec.rb +47 -0
- data/spec/models/repository_geo_ip_rules_request_patch_spec.rb +47 -0
- data/spec/models/{inline_response_200_spec.rb → repository_geo_ip_rules_request_spec.rb} +8 -8
- data/spec/models/{repository_geo_ip_list_spec.rb → repository_geo_ip_rules_spec.rb} +6 -6
- data/spec/models/repository_geo_ip_test_address_response_dict_spec.rb +59 -0
- data/spec/models/repository_geo_ip_test_address_response_spec.rb +41 -0
- data/spec/models/repository_geo_ip_test_address_spec.rb +41 -0
- data/spec/models/respository_geo_ip_enable_disable_request_spec.rb +6 -6
- data/spec/models/respository_geo_ip_enable_disable_spec.rb +6 -6
- data/spec/models/storage_allocated_limit_raw_spec.rb +65 -0
- data/spec/models/storage_allocated_limit_spec.rb +65 -0
- data/spec/models/storage_usage_raw_spec.rb +59 -0
- data/spec/models/storage_usage_spec.rb +59 -0
- data/spec/models/usage_limits_raw_spec.rb +47 -0
- data/spec/models/usage_raw_spec.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.12.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.12.5.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/sys-uname-1.2.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/CHANGELOG.md +22 -2
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/Rakefile +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.4/addressable.gemspec +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/idna/native.rb +8 -2
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/idna/pure.rb +10 -182
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/template.rb +9 -10
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/uri.rb +112 -96
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/idna_spec.rb +6 -5
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/template_spec.rb +60 -264
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/uri_spec.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/Changelog.md +16 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/README.md +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/configuration.rb +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/example_status_persister.rb +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/exception_presenter.rb +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/html_snippet_extractor.rb +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/metadata_filter.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/project_initializer/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/reporter.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/Changelog.md +20 -5
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/failure_aggregator.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/aliased_matcher.rb +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/compound.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/exist.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/include.rb +9 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/composable.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/dsl.rb +7 -7
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/Changelog.md +36 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/proxy.rb +12 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/argument_list_matcher.rb +3 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/receive.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/minitest_integration.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/mutate_const.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/proxy.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/verifying_double.rb +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/verifying_proxy.rb +4 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/CHANGES.md +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Gemfile +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/README.md +21 -6
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/Rakefile +4 -2
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/doc/uname.rdoc +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/platform.rb +17 -13
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/uname.rb +3 -1
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/unix/uname.rb +20 -35
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/lib/sys/windows/uname.rb +499 -0
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/lib/sys-uname.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/spec/spec_helper.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/spec/sys_platform_spec.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/spec/sys_uname_spec.rb +140 -136
- data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/sys-uname.gemspec +11 -7
- data/vendor/bundle/ruby/2.6.0/specifications/{addressable-2.8.1.gemspec → addressable-2.8.4.gemspec} +3 -3
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-core-3.12.0.gemspec → rspec-core-3.12.2.gemspec} +5 -5
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-expectations-3.12.1.gemspec → rspec-expectations-3.12.3.gemspec} +5 -5
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.12.1.gemspec → rspec-mocks-3.12.5.gemspec} +7 -7
- data/vendor/bundle/ruby/2.6.0/specifications/{sys-uname-1.2.2.gemspec → sys-uname-1.2.3.gemspec} +8 -4
- metadata +364 -250
- data/docs/InlineResponse200.md +0 -9
- data/docs/InlineResponse200CountryCode.md +0 -9
- data/docs/RepositoryGeoIPList.md +0 -9
- data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.12.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.12.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/sys-uname-1.2.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Gemfile +0 -7
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/lib/sys/windows/uname.rb +0 -515
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/lib/sys-uname.rb +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/spec/sys_platform_spec.rb +0 -75
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/data/unicode.data +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/idna.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/net_http_compat_spec.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/security_spec.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/clobber.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/gem.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/git.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/metrics.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/profile.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/rspec.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/yard.rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/exe/rspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/autorun.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/backtrace_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/coordinator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/fork_runner.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/server.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/shell_command.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/shell_runner.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/utilities.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/configuration_options.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/did_you_mean.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/drb.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/dsl.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/example.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/example_group.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/filter_manager.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/flat_map.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/base_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/console_codes.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/helpers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/html_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/html_printer.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/json_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/protocol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/hooks.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/invocations.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/memoized_helpers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/metadata.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/null.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/notifications.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/option_parser.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/ordering.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/output_wrapper.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/pending.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/project_initializer/.rspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/project_initializer.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/rake_task.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/ruby_project.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/runner.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/sandbox.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/set.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/shared_context.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/shared_example_group.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/shell_escape.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/warnings.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/world.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/configuration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/expectation_target.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/fail_with.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/handler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/minitest_integration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/syntax.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/all.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_between.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_within.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/change.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/cover.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/eq.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/eql.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/equal.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/has.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/match.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/operators.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/output.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/yield.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/english_phrasing.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/fail_matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/generated_descriptions.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/matcher_delegator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/matcher_protocol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/argument_matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/configuration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/error_generator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/example_methods.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/marshal_extension.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/have_received.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/message_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/message_expectation.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/method_double.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/method_reference.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/object_reference.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/order_group.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/space.rb +1 -1
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/standalone.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/syntax.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/targets.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/test_double.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/LICENSE +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/MANIFEST.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/certs/djberg96_pub.pem +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/examples/uname_test.rb +0 -0
data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/unix/uname.rb
RENAMED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'ffi'
|
2
4
|
require 'rbconfig'
|
3
5
|
require 'ostruct'
|
@@ -30,7 +32,7 @@ module Sys
|
|
30
32
|
private_class_method :uname_c
|
31
33
|
|
32
34
|
begin
|
33
|
-
attach_function :sysctl, [
|
35
|
+
attach_function :sysctl, %i[pointer uint pointer pointer pointer size_t], :int
|
34
36
|
private_class_method :sysctl
|
35
37
|
|
36
38
|
CTL_HW = 6 # Generic hardware/cpu
|
@@ -40,7 +42,7 @@ module Sys
|
|
40
42
|
end
|
41
43
|
|
42
44
|
begin
|
43
|
-
attach_function :sysinfo, [
|
45
|
+
attach_function :sysinfo, %i[int pointer long], :long
|
44
46
|
private_class_method :sysinfo
|
45
47
|
|
46
48
|
SI_SYSNAME = 1 # OS name
|
@@ -59,6 +61,7 @@ module Sys
|
|
59
61
|
# Ignore. Not suppored.
|
60
62
|
end
|
61
63
|
|
64
|
+
# FFI class passed to the underlying C uname function.
|
62
65
|
class UnameFFIStruct < FFI::Struct
|
63
66
|
members = [
|
64
67
|
:sysname, [:char, BUFSIZE],
|
@@ -68,13 +71,8 @@ module Sys
|
|
68
71
|
:machine, [:char, BUFSIZE]
|
69
72
|
]
|
70
73
|
|
71
|
-
if RbConfig::CONFIG['host_os'] =~ /linux/i
|
72
|
-
|
73
|
-
end
|
74
|
-
|
75
|
-
if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
76
|
-
members.push(:__id_number, [:char, BUFSIZE])
|
77
|
-
end
|
74
|
+
members.push(:domainname, [:char, BUFSIZE]) if RbConfig::CONFIG['host_os'] =~ /linux/i
|
75
|
+
members.push(:__id_number, [:char, BUFSIZE]) if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
78
76
|
|
79
77
|
layout(*members)
|
80
78
|
end
|
@@ -87,13 +85,8 @@ module Sys
|
|
87
85
|
machine
|
88
86
|
]
|
89
87
|
|
90
|
-
if RbConfig::CONFIG['host_os'] =~ /linux/i
|
91
|
-
|
92
|
-
end
|
93
|
-
|
94
|
-
if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
95
|
-
fields.push('id_number')
|
96
|
-
end
|
88
|
+
fields.push('domainname') if RbConfig::CONFIG['host_os'] =~ /linux/i
|
89
|
+
fields.push('id_number') if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
97
90
|
|
98
91
|
if RbConfig::CONFIG['host_os'] =~ /sunos|solaris/i
|
99
92
|
fields.push(
|
@@ -107,13 +100,13 @@ module Sys
|
|
107
100
|
)
|
108
101
|
end
|
109
102
|
|
110
|
-
if RbConfig::CONFIG['host_os'] =~ /darwin|bsd/i
|
111
|
-
|
112
|
-
|
103
|
+
fields.push('model') if RbConfig::CONFIG['host_os'] =~ /darwin|bsd/i
|
104
|
+
|
105
|
+
private_constant :UnameFFIStruct
|
113
106
|
|
114
107
|
# :startdoc:
|
115
108
|
|
116
|
-
UnameStruct = Struct.new(
|
109
|
+
UnameStruct = Struct.new('UnameStruct', *fields)
|
117
110
|
|
118
111
|
# Returns a struct that contains the sysname, nodename, machine, version
|
119
112
|
# and release of your system.
|
@@ -133,9 +126,7 @@ module Sys
|
|
133
126
|
def self.uname
|
134
127
|
utsname = UnameFFIStruct.new
|
135
128
|
|
136
|
-
if uname_c(utsname) < 0
|
137
|
-
raise Error, "uname() function call failed"
|
138
|
-
end
|
129
|
+
raise Error, 'uname() function call failed' if uname_c(utsname) < 0
|
139
130
|
|
140
131
|
struct = UnameStruct.new
|
141
132
|
struct[:sysname] = utsname[:sysname].to_s
|
@@ -144,9 +135,7 @@ module Sys
|
|
144
135
|
struct[:version] = utsname[:version].to_s
|
145
136
|
struct[:machine] = utsname[:machine].to_s
|
146
137
|
|
147
|
-
if RbConfig::CONFIG['host_os'] =~ /darwin|bsd/i
|
148
|
-
struct[:model] = get_model()
|
149
|
-
end
|
138
|
+
struct[:model] = get_model() if RbConfig::CONFIG['host_os'] =~ /darwin|bsd/i
|
150
139
|
|
151
140
|
if RbConfig::CONFIG['host_os'] =~ /sunos|solaris/i
|
152
141
|
struct[:architecture] = get_si(SI_ARCHITECTURE)
|
@@ -165,21 +154,17 @@ module Sys
|
|
165
154
|
struct[:machine] = get_si(SI_MACHINE) if struct.machine.empty?
|
166
155
|
end
|
167
156
|
|
168
|
-
if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
169
|
-
struct[:id_number] = utsname[:__id_number].to_s
|
170
|
-
end
|
157
|
+
struct[:id_number] = utsname[:__id_number].to_s if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
171
158
|
|
172
|
-
if RbConfig::CONFIG['host_os'] =~ /linux/i
|
173
|
-
struct[:domainname] = utsname[:domainname].to_s
|
174
|
-
end
|
159
|
+
struct[:domainname] = utsname[:domainname].to_s if RbConfig::CONFIG['host_os'] =~ /linux/i
|
175
160
|
|
176
161
|
# Let's add a members method that works for testing and compatibility
|
177
162
|
if struct.members.nil?
|
178
|
-
struct.instance_eval
|
163
|
+
struct.instance_eval <<-RUBY, __FILE__, __LINE__ + 1
|
179
164
|
def members
|
180
|
-
@table.keys.map
|
165
|
+
@table.keys.map(&:to_s)
|
181
166
|
end
|
182
|
-
|
167
|
+
RUBY
|
183
168
|
end
|
184
169
|
|
185
170
|
struct.freeze
|
@@ -0,0 +1,499 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'socket'
|
4
|
+
require 'time'
|
5
|
+
require 'win32ole'
|
6
|
+
|
7
|
+
# The Sys module provides a namespace only.
|
8
|
+
module Sys
|
9
|
+
# The Uname class encapsulates uname (platform) information.
|
10
|
+
class Uname
|
11
|
+
# This is the error raised if any of the Sys::Uname methods should fail.
|
12
|
+
class Error < StandardError; end
|
13
|
+
|
14
|
+
fields = %w[
|
15
|
+
boot_device
|
16
|
+
build_number
|
17
|
+
build_type
|
18
|
+
caption
|
19
|
+
code_set
|
20
|
+
country_code
|
21
|
+
creation_class_name
|
22
|
+
cscreation_class_name
|
23
|
+
csd_version
|
24
|
+
cs_name
|
25
|
+
current_time_zone
|
26
|
+
debug
|
27
|
+
description
|
28
|
+
distributed
|
29
|
+
encryption_level
|
30
|
+
foreground_application_boost
|
31
|
+
free_physical_memory
|
32
|
+
free_space_in_paging_files
|
33
|
+
free_virtual_memory
|
34
|
+
install_date
|
35
|
+
last_bootup_time
|
36
|
+
local_date_time
|
37
|
+
locale
|
38
|
+
manufacturer
|
39
|
+
max_number_of_processes
|
40
|
+
max_process_memory_size
|
41
|
+
name
|
42
|
+
number_of_licensed_users
|
43
|
+
number_of_processes
|
44
|
+
number_of_users
|
45
|
+
organization
|
46
|
+
os_language
|
47
|
+
os_product_suite
|
48
|
+
os_type
|
49
|
+
other_type_description
|
50
|
+
plus_product_id
|
51
|
+
plus_version_number
|
52
|
+
primary
|
53
|
+
product_type
|
54
|
+
quantum_length
|
55
|
+
quantum_type
|
56
|
+
registered_user
|
57
|
+
serial_number
|
58
|
+
service_pack_major_version
|
59
|
+
service_pack_minor_version
|
60
|
+
size_stored_in_paging_files
|
61
|
+
status
|
62
|
+
suite_mask
|
63
|
+
system_device
|
64
|
+
system_directory
|
65
|
+
system_drive
|
66
|
+
total_swap_space_size
|
67
|
+
total_virtual_memory_size
|
68
|
+
total_visible_memory_size
|
69
|
+
version
|
70
|
+
windows_directory
|
71
|
+
]
|
72
|
+
|
73
|
+
# The UnameStruct is used to store platform information for some methods.
|
74
|
+
UnameStruct = Struct.new('UnameStruct', *fields)
|
75
|
+
|
76
|
+
# Returns the version plus patch information of the operating system,
|
77
|
+
# separated by a hyphen, e.g. "2915-Service Pack 2".
|
78
|
+
#--
|
79
|
+
# The instance name is unpredictable, so we have to resort to using
|
80
|
+
# the 'InstancesOf' method to get the data we need, rather than
|
81
|
+
# including it as part of the connection.
|
82
|
+
#
|
83
|
+
def self.version(host = Socket.gethostname)
|
84
|
+
cs = "winmgmts://#{host}/root/cimv2"
|
85
|
+
begin
|
86
|
+
wmi = WIN32OLE.connect(cs)
|
87
|
+
rescue WIN32OLERuntimeError => err
|
88
|
+
raise Error, err
|
89
|
+
else
|
90
|
+
ole = wmi.InstancesOf('Win32_OperatingSystem').ItemIndex(0)
|
91
|
+
str = "#{ole.Version} #{ole.BuildNumber}-"
|
92
|
+
"#{str}#{ole.ServicePackMajorVersion}"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Returns the operating system name, e.g. "Microsoft Windows XP Home"
|
97
|
+
#
|
98
|
+
def self.sysname(host = Socket.gethostname)
|
99
|
+
cs = 'winmgmts:{impersonationLevel=impersonate,(security)}'
|
100
|
+
cs += "//#{host}/root/cimv2"
|
101
|
+
begin
|
102
|
+
wmi = WIN32OLE.connect(cs)
|
103
|
+
rescue WIN32OLERuntimeError => err
|
104
|
+
raise Error, err
|
105
|
+
else
|
106
|
+
wmi.InstancesOf('Win32_OperatingSystem').ItemIndex(0).Caption.strip
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Returns the nodename. This is usually, but not necessarily, the
|
111
|
+
# same as the system's hostname.
|
112
|
+
#
|
113
|
+
def self.nodename(host = Socket.gethostname)
|
114
|
+
cs = 'winmgmts:{impersonationLevel=impersonate,(security)}'
|
115
|
+
cs += "//#{host}/root/cimv2"
|
116
|
+
begin
|
117
|
+
wmi = WIN32OLE.connect(cs)
|
118
|
+
rescue WIN32OLERuntimeError => err
|
119
|
+
raise Error, err
|
120
|
+
else
|
121
|
+
wmi.InstancesOf('Win32_OperatingSystem').ItemIndex(0).CSName
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# Returns the CPU architecture, e.g. "x86"
|
126
|
+
#
|
127
|
+
def self.architecture(cpu_num = 0, host = Socket.gethostname)
|
128
|
+
cs = 'winmgmts:{impersonationLevel=impersonate,(security)}'
|
129
|
+
cs += "//#{host}/root/cimv2:Win32_Processor='cpu#{cpu_num}'"
|
130
|
+
begin
|
131
|
+
wmi = WIN32OLE.connect(cs)
|
132
|
+
rescue WIN32OLERuntimeError => err
|
133
|
+
raise Error, err
|
134
|
+
else
|
135
|
+
case wmi.Architecture
|
136
|
+
when 0
|
137
|
+
'x86'
|
138
|
+
when 1
|
139
|
+
'mips'
|
140
|
+
when 2
|
141
|
+
'alpha'
|
142
|
+
when 3
|
143
|
+
'powerpc'
|
144
|
+
when 6
|
145
|
+
'ia64'
|
146
|
+
when 9
|
147
|
+
'x86_64'
|
148
|
+
else
|
149
|
+
'unknown'
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# Returns the machine hardware type. e.g. "i686".
|
155
|
+
#--
|
156
|
+
# This may or may not return the expected value because some CPU types
|
157
|
+
# were unknown to the OS when the OS was originally released. It
|
158
|
+
# appears that MS doesn't necessarily patch this, either.
|
159
|
+
#
|
160
|
+
def self.machine(cpu_num = 0, host = Socket.gethostname)
|
161
|
+
cs = 'winmgmts:{impersonationLevel=impersonate,(security)}'
|
162
|
+
cs += "//#{host}/root/cimv2:Win32_Processor='cpu#{cpu_num}'"
|
163
|
+
begin
|
164
|
+
wmi = WIN32OLE.connect(cs)
|
165
|
+
rescue WIN32OLERuntimeError => err
|
166
|
+
raise Error, err
|
167
|
+
else
|
168
|
+
# Convert a family number into the equivalent string
|
169
|
+
case wmi.Family
|
170
|
+
when 1
|
171
|
+
'Other'
|
172
|
+
when 3
|
173
|
+
'8086'
|
174
|
+
when 4
|
175
|
+
'80286'
|
176
|
+
when 5
|
177
|
+
'80386'
|
178
|
+
when 6
|
179
|
+
'80486'
|
180
|
+
when 7
|
181
|
+
'8087'
|
182
|
+
when 8
|
183
|
+
'80287'
|
184
|
+
when 9
|
185
|
+
'80387'
|
186
|
+
when 10
|
187
|
+
'80487'
|
188
|
+
when 11
|
189
|
+
'Pentium brand'
|
190
|
+
when 12
|
191
|
+
'Pentium Pro'
|
192
|
+
when 13
|
193
|
+
'Pentium II'
|
194
|
+
when 14
|
195
|
+
'Pentium processor with MMX technology'
|
196
|
+
when 15
|
197
|
+
'Celeron'
|
198
|
+
when 16
|
199
|
+
'Pentium II Xeon'
|
200
|
+
when 17
|
201
|
+
'Pentium III'
|
202
|
+
when 18
|
203
|
+
'M1 Family'
|
204
|
+
when 19
|
205
|
+
'M2 Family'
|
206
|
+
when 24
|
207
|
+
'K5 Family'
|
208
|
+
when 25
|
209
|
+
'K6 Family'
|
210
|
+
when 26
|
211
|
+
'K6-2'
|
212
|
+
when 27
|
213
|
+
'K6-3'
|
214
|
+
when 28
|
215
|
+
'AMD Athlon Processor Family'
|
216
|
+
when 29
|
217
|
+
'AMD Duron Processor'
|
218
|
+
when 30
|
219
|
+
'AMD2900 Family'
|
220
|
+
when 31
|
221
|
+
'K6-2+'
|
222
|
+
when 32
|
223
|
+
'Power PC Family'
|
224
|
+
when 33
|
225
|
+
'Power PC 601'
|
226
|
+
when 34
|
227
|
+
'Power PC 603'
|
228
|
+
when 35
|
229
|
+
'Power PC 603+'
|
230
|
+
when 36
|
231
|
+
'Power PC 604'
|
232
|
+
when 37
|
233
|
+
'Power PC 620'
|
234
|
+
when 38
|
235
|
+
'Power PC X704'
|
236
|
+
when 39
|
237
|
+
'Power PC 750'
|
238
|
+
when 48
|
239
|
+
'Alpha Family'
|
240
|
+
when 49
|
241
|
+
'Alpha 21064'
|
242
|
+
when 50
|
243
|
+
'Alpha 21066'
|
244
|
+
when 51
|
245
|
+
'Alpha 21164'
|
246
|
+
when 52
|
247
|
+
'Alpha 21164PC'
|
248
|
+
when 53
|
249
|
+
'Alpha 21164a'
|
250
|
+
when 54
|
251
|
+
'Alpha 21264'
|
252
|
+
when 55
|
253
|
+
'Alpha 21364'
|
254
|
+
when 64
|
255
|
+
'MIPS Family'
|
256
|
+
when 65
|
257
|
+
'MIPS R4000'
|
258
|
+
when 66
|
259
|
+
'MIPS R4200'
|
260
|
+
when 67
|
261
|
+
'MIPS R4400'
|
262
|
+
when 68
|
263
|
+
'MIPS R4600'
|
264
|
+
when 69
|
265
|
+
'MIPS R10000'
|
266
|
+
when 80
|
267
|
+
'SPARC Family'
|
268
|
+
when 81
|
269
|
+
'SuperSPARC'
|
270
|
+
when 82
|
271
|
+
'microSPARC II'
|
272
|
+
when 83
|
273
|
+
'microSPARC IIep'
|
274
|
+
when 84
|
275
|
+
'UltraSPARC'
|
276
|
+
when 85
|
277
|
+
'UltraSPARC II'
|
278
|
+
when 86
|
279
|
+
'UltraSPARC IIi'
|
280
|
+
when 87
|
281
|
+
'UltraSPARC III'
|
282
|
+
when 88
|
283
|
+
'UltraSPARC IIIi'
|
284
|
+
when 96
|
285
|
+
'68040'
|
286
|
+
when 97
|
287
|
+
'68xxx Family'
|
288
|
+
when 98
|
289
|
+
'68000'
|
290
|
+
when 99
|
291
|
+
'68010'
|
292
|
+
when 100
|
293
|
+
'68020'
|
294
|
+
when 101
|
295
|
+
'68030'
|
296
|
+
when 112
|
297
|
+
'Hobbit Family'
|
298
|
+
when 120
|
299
|
+
'Crusoe TM5000 Family'
|
300
|
+
when 121
|
301
|
+
'Crusoe TM3000 Family'
|
302
|
+
when 122
|
303
|
+
'Efficeon TM8000 Family'
|
304
|
+
when 128
|
305
|
+
'Weitek'
|
306
|
+
when 130
|
307
|
+
'Itanium Processor'
|
308
|
+
when 131
|
309
|
+
'AMD Athlon 64 Processor Family'
|
310
|
+
when 132
|
311
|
+
'AMD Opteron Processor Family'
|
312
|
+
when 144
|
313
|
+
'PA-RISC Family'
|
314
|
+
when 145
|
315
|
+
'PA-RISC 8500'
|
316
|
+
when 146
|
317
|
+
'PA-RISC 8000'
|
318
|
+
when 147
|
319
|
+
'PA-RISC 7300LC'
|
320
|
+
when 148
|
321
|
+
'PA-RISC 7200'
|
322
|
+
when 149
|
323
|
+
'PA-RISC 7100LC'
|
324
|
+
when 150
|
325
|
+
'PA-RISC 7100'
|
326
|
+
when 160
|
327
|
+
'V30 Family'
|
328
|
+
when 176
|
329
|
+
'Pentium III Xeon'
|
330
|
+
when 177
|
331
|
+
'Pentium III Processor with Intel SpeedStep Technology'
|
332
|
+
when 178
|
333
|
+
'Pentium 4'
|
334
|
+
when 179
|
335
|
+
'Intel Xeon'
|
336
|
+
when 180
|
337
|
+
'AS400 Family'
|
338
|
+
when 181
|
339
|
+
'Intel Xeon processor MP'
|
340
|
+
when 182
|
341
|
+
'AMD AthlonXP Family'
|
342
|
+
when 183
|
343
|
+
'AMD AthlonMP Family'
|
344
|
+
when 184
|
345
|
+
'Intel Itanium 2'
|
346
|
+
when 185
|
347
|
+
'AMD Opteron Family'
|
348
|
+
when 190
|
349
|
+
'K7'
|
350
|
+
when 198
|
351
|
+
'Intel Core i7-2760QM'
|
352
|
+
when 200
|
353
|
+
'IBM390 Family'
|
354
|
+
when 201
|
355
|
+
'G4'
|
356
|
+
when 202
|
357
|
+
'G5'
|
358
|
+
when 203
|
359
|
+
'G6'
|
360
|
+
when 204
|
361
|
+
'z/Architecture Base'
|
362
|
+
when 250
|
363
|
+
'i860'
|
364
|
+
when 251
|
365
|
+
'i960'
|
366
|
+
when 260
|
367
|
+
'SH-3'
|
368
|
+
when 261
|
369
|
+
'SH-4'
|
370
|
+
when 280
|
371
|
+
'ARM'
|
372
|
+
when 281
|
373
|
+
'StrongARM'
|
374
|
+
when 300
|
375
|
+
'6x86'
|
376
|
+
when 301
|
377
|
+
'MediaGX'
|
378
|
+
when 302
|
379
|
+
'MII'
|
380
|
+
when 320
|
381
|
+
'WinChip'
|
382
|
+
when 350
|
383
|
+
'DSP'
|
384
|
+
when 500
|
385
|
+
'Video Processor'
|
386
|
+
else
|
387
|
+
'Unknown'
|
388
|
+
end
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# Returns the release number, e.g. 5.1.2600.
|
393
|
+
#
|
394
|
+
def self.release(host = Socket.gethostname)
|
395
|
+
cs = "winmgmts://#{host}/root/cimv2"
|
396
|
+
begin
|
397
|
+
wmi = WIN32OLE.connect(cs)
|
398
|
+
rescue WIN32OLERuntimeError => err
|
399
|
+
raise Error, err
|
400
|
+
else
|
401
|
+
wmi.InstancesOf('Win32_OperatingSystem').ItemIndex(0).Version
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
# Returns a struct of type UnameStruct that contains sysname, nodename,
|
406
|
+
# machine, version, and release, as well as a plethora of other fields.
|
407
|
+
# Please see the MSDN documentation for what each of these fields mean.
|
408
|
+
#
|
409
|
+
def self.uname(host = Socket.gethostname)
|
410
|
+
cs = "winmgmts://#{host}/root/cimv2"
|
411
|
+
begin
|
412
|
+
wmi = WIN32OLE.connect(cs)
|
413
|
+
rescue WIN32OLERuntimeError => err
|
414
|
+
raise Error, err
|
415
|
+
else
|
416
|
+
os = wmi.InstancesOf('Win32_OperatingSystem').ItemIndex(0)
|
417
|
+
|
418
|
+
UnameStruct.new(
|
419
|
+
os.BootDevice,
|
420
|
+
os.BuildNumber,
|
421
|
+
os.BuildType,
|
422
|
+
os.Caption,
|
423
|
+
os.CodeSet,
|
424
|
+
os.CountryCode,
|
425
|
+
os.CreationClassName,
|
426
|
+
os.CSCreationClassName,
|
427
|
+
os.CSDVersion,
|
428
|
+
os.CSName,
|
429
|
+
os.CurrentTimeZone,
|
430
|
+
os.Debug,
|
431
|
+
os.Description,
|
432
|
+
os.Distributed,
|
433
|
+
os.EncryptionLevel,
|
434
|
+
os.ForegroundApplicationBoost,
|
435
|
+
convert(os.FreePhysicalMemory),
|
436
|
+
convert(os.FreeSpaceInPagingFiles),
|
437
|
+
convert(os.FreeVirtualMemory),
|
438
|
+
parse_ms_date(os.InstallDate),
|
439
|
+
parse_ms_date(os.LastBootUpTime),
|
440
|
+
parse_ms_date(os.LocalDateTime),
|
441
|
+
os.Locale,
|
442
|
+
os.Manufacturer,
|
443
|
+
os.MaxNumberOfProcesses,
|
444
|
+
convert(os.MaxProcessMemorySize),
|
445
|
+
os.Name,
|
446
|
+
os.NumberOfLicensedUsers,
|
447
|
+
os.NumberOfProcesses,
|
448
|
+
os.NumberOfUsers,
|
449
|
+
os.Organization,
|
450
|
+
os.OSLanguage,
|
451
|
+
os.OSProductSuite,
|
452
|
+
os.OSType,
|
453
|
+
os.OtherTypeDescription,
|
454
|
+
os.PlusProductID,
|
455
|
+
os.PlusVersionNumber,
|
456
|
+
os.Primary,
|
457
|
+
os.ProductType,
|
458
|
+
os.respond_to?(:QuantumLength) ? os.QuantumLength : nil,
|
459
|
+
os.respond_to?(:QuantumType) ? os.QuantumType : nil,
|
460
|
+
os.RegisteredUser,
|
461
|
+
os.SerialNumber,
|
462
|
+
os.ServicePackMajorVersion,
|
463
|
+
os.ServicePackMinorVersion,
|
464
|
+
convert(os.SizeStoredInPagingFiles),
|
465
|
+
os.Status,
|
466
|
+
os.SuiteMask,
|
467
|
+
os.SystemDevice,
|
468
|
+
os.SystemDirectory,
|
469
|
+
os.SystemDrive,
|
470
|
+
convert(os.TotalSwapSpaceSize),
|
471
|
+
convert(os.TotalVirtualMemorySize),
|
472
|
+
convert(os.TotalVisibleMemorySize),
|
473
|
+
os.Version,
|
474
|
+
os.WindowsDirectory
|
475
|
+
)
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
479
|
+
# Converts a string in the format '20040703074625.015625-360' into a
|
480
|
+
# Ruby Time object.
|
481
|
+
#
|
482
|
+
def self.parse_ms_date(str)
|
483
|
+
return if str.nil?
|
484
|
+
Time.parse(str.split('.')[0])
|
485
|
+
end
|
486
|
+
|
487
|
+
private_class_method :parse_ms_date
|
488
|
+
|
489
|
+
# There is a bug in win32ole where uint64 types are returned as a
|
490
|
+
# String rather than a Fixnum/Bignum. This deals with that for now.
|
491
|
+
#
|
492
|
+
def self.convert(str)
|
493
|
+
return nil if str.nil? # Don't turn nil into 0
|
494
|
+
str.to_i
|
495
|
+
end
|
496
|
+
|
497
|
+
private_class_method :convert
|
498
|
+
end
|
499
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rspec'
|
4
|
+
require 'sys/uname'
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
config.filter_run_excluding(:solaris) unless RbConfig::CONFIG['host_os'] =~ /sunos|solaris/i
|
8
|
+
config.filter_run_excluding(:bsd) unless RbConfig::CONFIG['host_os'] =~ /powerpc|darwin|macos|bsd/i
|
9
|
+
config.filter_run_excluding(:hpux) unless RbConfig::CONFIG['host_os'] =~ /hpux/i
|
10
|
+
config.filter_run_excluding(:linux) unless RbConfig::CONFIG['host_os'] =~ /linux/i
|
11
|
+
config.filter_run_excluding(:windows) unless Gem.win_platform?
|
12
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
##############################################################################
|
4
|
+
# sys_platform_spec.rb
|
5
|
+
#
|
6
|
+
# Test suite for the Sys::Platform class.
|
7
|
+
##############################################################################
|
8
|
+
require 'spec_helper'
|
9
|
+
|
10
|
+
RSpec.describe Sys::Platform do
|
11
|
+
example 'the VERSION constant is set to the expected value' do
|
12
|
+
expect(Sys::Platform::VERSION).to eql('1.2.3')
|
13
|
+
expect(Sys::Platform::VERSION).to be_frozen
|
14
|
+
end
|
15
|
+
|
16
|
+
example 'the ARCH constant is defined' do
|
17
|
+
expect(Sys::Platform::ARCH).to be_kind_of(Symbol)
|
18
|
+
end
|
19
|
+
|
20
|
+
example 'the OS constant is defined' do
|
21
|
+
expect(Sys::Platform::OS).to be_kind_of(Symbol)
|
22
|
+
end
|
23
|
+
|
24
|
+
example 'the IMPL constant is defined' do
|
25
|
+
expect(Sys::Platform::IMPL).to be_kind_of(Symbol)
|
26
|
+
end
|
27
|
+
|
28
|
+
example 'the IMPL returns an expected value on windows', :windows do
|
29
|
+
expect(%i[mingw mswin]).to include(Sys::Platform::IMPL)
|
30
|
+
end
|
31
|
+
|
32
|
+
example 'the mac? method is defined and returns a boolean' do
|
33
|
+
expect(described_class).to respond_to(:mac?)
|
34
|
+
expect(described_class.mac?).to eql(true).or eql(false)
|
35
|
+
end
|
36
|
+
|
37
|
+
example 'the windows? method is defined and returns a boolean' do
|
38
|
+
expect(described_class).to respond_to(:windows?)
|
39
|
+
expect(described_class.windows?).to eql(true).or eql(false)
|
40
|
+
end
|
41
|
+
|
42
|
+
example 'the windows? method returns the expected value' do
|
43
|
+
expect(described_class.windows?).to eql(Gem.win_platform?)
|
44
|
+
end
|
45
|
+
|
46
|
+
example 'the unix? method is defined and returns a boolean' do
|
47
|
+
expect(described_class).to respond_to(:unix?)
|
48
|
+
expect(described_class.unix?).to eql(true).or eql(false)
|
49
|
+
end
|
50
|
+
|
51
|
+
example 'the unix? method returns the expected value' do
|
52
|
+
expect(described_class.unix?).not_to eql(Gem.win_platform?)
|
53
|
+
end
|
54
|
+
|
55
|
+
example 'the solaris? method is defined and returns a boolean' do
|
56
|
+
expect(described_class).to respond_to(:solaris?)
|
57
|
+
expect(described_class.solaris?).to eql(true).or eql(false)
|
58
|
+
end
|
59
|
+
|
60
|
+
example 'the linux? method is defined and returns a boolean' do
|
61
|
+
expect(described_class).to respond_to(:linux?)
|
62
|
+
expect(described_class.linux?).to eql(true).or eql(false)
|
63
|
+
end
|
64
|
+
|
65
|
+
example 'the bsd? method is defined and returns a boolean' do
|
66
|
+
expect(described_class).to respond_to(:bsd?)
|
67
|
+
expect(described_class.bsd?).to eql(true).or eql(false)
|
68
|
+
end
|
69
|
+
end
|