├── .devcontainer └── devcontainer.json ├── .editorconfig ├── .gitattributes ├── .github ├── CODEOWNERS ├── dependabot.yml └── workflows │ ├── comment_on_review.yml │ ├── generate_comment_body_on_review.yml │ ├── merge_on_comment.yml │ ├── pr_bot │ ├── changed_files.rb │ ├── check_merge_ability.rb │ ├── merge_ability.rb │ ├── review_result_comment_body.rb │ ├── strict_rubocop_config.rb │ ├── utils.rb │ └── welcome_comment_body.rb │ ├── rubocop.yml │ ├── test.yml │ └── welcome_comment.yml ├── .gitignore ├── .gitmodules ├── .rubocop.yml ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── bin ├── check-untyped-call.rb ├── init_new_gem ├── rbs ├── run ├── setup └── test ├── docs ├── CONTRIBUTING.md └── SECURITY.md └── gems ├── abbrev ├── .rubocop.yml ├── 0.1 │ ├── _test │ │ └── test.rb │ ├── abbrev.rbs │ └── array.rbs └── _reviewers.yaml ├── actioncable ├── .rubocop.yml ├── 7.1 │ ├── _test │ │ └── test.rb │ └── actioncable.rbs └── _reviewers.yaml ├── actionmailer ├── .rubocop.yml ├── 7.0 │ ├── _test │ │ ├── metadata.yaml │ │ ├── railsguides.rb │ │ ├── railsguides.rbs │ │ └── test.rb │ ├── actionmailer.rbs │ ├── mail-message.rbs │ └── manifest.yaml └── _reviewers.yaml ├── actionpack ├── .rubocop.yml ├── 6.0 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── actioncontroller.rbs │ ├── actiondispatch.rbs │ ├── actionpack-generated.rbs │ ├── manifest.yaml │ └── patch.rbs ├── 7.2 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── actioncontroller-7.2.rbs │ ├── actioncontroller.rbs │ ├── actiondispatch.rbs │ ├── actionpack-generated.rbs │ └── patch.rbs └── _reviewers.yaml ├── actiontext ├── 7.2 │ ├── _test │ │ ├── metadata.yaml │ │ ├── test.rb │ │ └── test.rbs │ └── actiontext.rbs └── _reviewers.yaml ├── actionview ├── .rubocop.yml ├── 6.0 │ ├── actionview-generated.rbs │ ├── actionview.rbs │ └── patch.rbs └── _reviewers.yaml ├── active_decorator ├── .rubocop.yml └── 1.4 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── active_decorator.rbs ├── active_hash ├── .rubocop.yml └── 3.2 │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── active_file.rbs │ ├── active_hash.rbs │ ├── active_yaml.rbs │ ├── associations.rbs │ └── enum.rbs ├── active_model_serializers ├── .rubocop.yml └── 0.10 │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── active_model.rbs │ └── active_model_serializers.rbs ├── active_type ├── .rubocop.yml └── 2.6 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ ├── active_type.rbs │ └── manifest.yaml ├── activeadmin ├── .rubocop.yml └── 3.3 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ ├── activeadmin.rbs │ └── shims.rbs ├── activejob ├── .rubocop.yml ├── 6.0 │ ├── _test │ │ ├── activejob.rb │ │ ├── metadata.yaml │ │ └── send_message_job.rbs │ ├── activejob-generated.rbs │ ├── activejob.rbs │ └── patch.rbs └── _reviewers.yaml ├── activemerchant ├── 1.89 │ ├── _test │ │ ├── metadata.yaml │ │ └── test.rb │ ├── activemerchant.rbs │ └── manifest.yaml └── _reviewers.yaml ├── activemodel ├── .rubocop.yml ├── 6.0 │ ├── _test │ │ ├── steep_expectations.yml │ │ ├── test.rb │ │ └── test.rbs │ ├── activemodel-6.0.rbs │ ├── activemodel-generated.rbs │ └── activemodel.rbs ├── 7.0 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── activemodel-7.0.rbs │ ├── activemodel-generated.rbs │ ├── activemodel.rbs │ └── manifest.yaml ├── 7.1 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── activemodel-7.1.rbs │ ├── activemodel-generated.rbs │ ├── activemodel.rbs │ └── manifest.yaml └── _reviewers.yaml ├── activerecord-import ├── .rubocop.yml └── 1.5 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── activerecord-import.rbs ├── activerecord ├── .rubocop.yml ├── 6.0 │ ├── activerecord-6.0.rbs │ ├── activerecord-generated.rbs │ ├── activerecord.rbs │ ├── manifest.yaml │ ├── patch.rbs │ └── railties.rbs ├── 6.1 │ ├── activerecord-6.1.rbs │ ├── activerecord-generated.rbs │ ├── activerecord.rbs │ ├── manifest.yaml │ ├── patch.rbs │ └── railties.rbs ├── 7.0 │ ├── activerecord-7.0.rbs │ ├── activerecord-generated.rbs │ ├── activerecord.rbs │ ├── manifest.yaml │ ├── patch.rbs │ └── railties.rbs ├── 7.1 │ ├── activerecord-7.1.rbs │ ├── activerecord-generated.rbs │ ├── activerecord.rbs │ ├── manifest.yaml │ ├── patch.rbs │ └── railties.rbs ├── 7.2 │ ├── _test │ │ ├── activerecord-7.2.rb │ │ ├── activerecord-7.2.rbs │ │ ├── activerecord-generated.rb │ │ ├── activerecord-generated.rbs │ │ ├── activerecord-validation-contexts.rb │ │ ├── activerecord.rb │ │ ├── activerecord.rbs │ │ └── metadata.yaml │ ├── activerecord-7.2.rbs │ ├── activerecord-generated.rbs │ ├── activerecord.rbs │ ├── manifest.yaml │ ├── patch.rbs │ └── railties.rbs ├── 8.0 │ ├── _test │ │ ├── activerecord-8.0.rb │ │ ├── activerecord-8.0.rbs │ │ ├── activerecord-generated.rb │ │ ├── activerecord-generated.rbs │ │ ├── activerecord-validation-contexts.rb │ │ ├── activerecord.rb │ │ ├── activerecord.rbs │ │ └── metadata.yaml │ ├── activerecord-8.0.rbs │ ├── activerecord-generated.rbs │ ├── activerecord.rbs │ ├── manifest.yaml │ ├── patch.rbs │ └── railties.rbs ├── README.md └── _reviewers.yaml ├── activestorage ├── .rubocop.yml ├── 6.0 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── app │ │ └── models │ │ │ └── active_storage │ │ │ ├── attachment.rbs │ │ │ ├── blob.rbs │ │ │ └── current.rbs │ ├── lib │ │ ├── attached.rbs │ │ ├── attached │ │ │ ├── many.rbs │ │ │ ├── model.rbs │ │ │ └── one.rbs │ │ ├── engine.rbs │ │ └── reflection.rbs │ └── manifest.yaml ├── 6.1 │ ├── _test │ ├── app │ │ └── models │ │ │ └── active_storage │ │ │ ├── attachment.rbs │ │ │ ├── blob.rbs │ │ │ ├── current.rbs │ │ │ └── record.rbs │ ├── lib │ │ ├── attached.rbs │ │ ├── attached │ │ │ ├── many.rbs │ │ │ ├── model.rbs │ │ │ └── one.rbs │ │ ├── engine.rbs │ │ └── reflection.rbs │ └── manifest.yaml ├── 7.0 │ ├── _test │ ├── app │ │ └── models │ │ │ └── active_storage │ │ │ ├── attachment.rbs │ │ │ ├── blob.rbs │ │ │ ├── current.rbs │ │ │ └── record.rbs │ ├── lib │ │ ├── attached.rbs │ │ ├── attached │ │ │ ├── many.rbs │ │ │ ├── model.rbs │ │ │ └── one.rbs │ │ ├── engine.rbs │ │ └── reflection.rbs │ └── manifest.yaml └── _reviewers.yaml ├── activesupport ├── .rubocop.yml ├── 6.0 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── activesupport-6.0.rbs │ ├── activesupport-generated.rbs │ ├── activesupport.rbs │ ├── manifest.yaml │ └── patch.rbs ├── 7.0 │ ├── _test │ │ └── test.rb │ ├── activesupport-7.0.rbs │ ├── activesupport-generated.rbs │ ├── activesupport.rbs │ ├── manifest.yaml │ └── patch.rbs └── _reviewers.yaml ├── addressable ├── .rubocop.yml └── 2.8 │ ├── _test │ └── test.rb │ └── addressable.rbs ├── arbre ├── .rubocop.yml └── 1.7 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── arbre.rbs ├── ast ├── 2.4 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ └── ast.rbs └── _reviewers.yaml ├── async ├── .rubocop.yml └── 2.12 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ ├── async.rbs │ ├── kernel.rbs │ └── manifest.yaml ├── base64 ├── .rubocop.yml ├── 0.1 │ ├── _test │ │ └── test.rb │ └── base64.rbs └── _reviewers.yaml ├── bcrypt ├── .rubocop.yml └── 3.1 │ ├── _test │ └── test.rb │ ├── bcrypt.rbs │ └── manifest.yaml ├── bigdecimal ├── .rubocop.yml ├── 3.1 │ ├── _test │ │ └── test.rb │ ├── bigdecimal-math.rbs │ └── bigdecimal.rbs └── _reviewers.yaml ├── binding_of_caller ├── .rubocop.yml └── 1.0 │ ├── _test │ └── test.rb │ └── binding_of_caller.rbs ├── browser ├── .rubocop.yml └── 5.3 │ ├── _test │ └── test.rb │ └── browser.rbs ├── business_time ├── .rubocop.yml ├── 0.13 │ ├── _test │ │ └── test.rb │ ├── business_time.rbs │ ├── business_time │ │ ├── business_days.rbs │ │ ├── business_hours.rbs │ │ ├── config.rbs │ │ ├── parsed_time.rbs │ │ └── time_extensions.rbs │ └── core_ext.rbs └── _reviewers.yaml ├── cancancan ├── .rubocop.yml └── 3.5 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ └── cancancan.rbs ├── carrierwave ├── .rubocop.yml └── 3.0 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── carrierwave.rbs ├── caxlsx ├── .rubocop.yml └── 4.2 │ ├── _test │ └── test.rb │ ├── caxlsx.rbs │ └── constants.rbs ├── chartkick ├── .rubocop.yml └── 5.0 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── chartkick.rbs ├── chronic ├── .rubocop.yml └── 0.10 │ ├── _test │ └── test.rb │ └── chronic.rbs ├── chunky_png └── 1.4.0 │ ├── _test │ ├── metadata.yaml │ ├── test_1.rb │ ├── test_2.rb │ ├── test_3.rb │ ├── test_4.rb │ └── test_5.rb │ ├── chunk.rbs │ ├── chunky_png.rbs │ └── color.rbs ├── circuitbox ├── 2.0 │ ├── _test │ │ └── test.rb │ ├── circuitbox.rbs │ └── manifest.yaml └── _reviewers.yaml ├── climate_control ├── .rubocop.yml ├── 1.2 │ ├── _test │ │ ├── metadata.yaml │ │ └── test.rb │ ├── climate_control.rbs │ └── manifest.yaml └── _reviewers.yaml ├── code_ownership ├── .rubocop.yml ├── 1.39 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ └── code_ownership.rbs └── _reviewers.yaml ├── code_teams ├── .rubocop.yml ├── 1.0 │ ├── _test │ │ └── test.rb │ └── code_teams.rbs └── _reviewers.yaml ├── commonmarker ├── .rubocop.yml └── 1.1 │ ├── _test │ └── test.rb │ └── commonmarker.rbs ├── concurrent-ruby └── 1.1 │ ├── _test │ ├── array.rb │ ├── executor.rb │ ├── hash.rb │ ├── map.rb │ └── promises.rb │ ├── array.rbs │ ├── executor.rbs │ ├── hash.rbs │ ├── map.rbs │ ├── promises.rbs │ └── utility │ └── processor_counter.rbs ├── config └── 5.5 │ ├── _test │ └── test.rb │ └── config.rbs ├── connection_pool ├── .rubocop.yml └── 2.4 │ ├── _test │ └── test.rb │ ├── connection_pool.rbs │ └── manifest.yaml ├── csv ├── .rubocop.yml ├── 3.3 │ ├── _test │ │ └── test.rb │ ├── csv.rbs │ └── manifest.yaml └── _reviewers.yaml ├── delayed_job └── 4.1 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ ├── lifecycle.rbs │ ├── message_sending.rbs │ └── worker.rbs ├── delayed_job_active_record └── 4.1 │ ├── _test │ └── test.rb │ └── active_record.rbs ├── devise ├── .rubocop.yml └── 4.9 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ └── devise.rbs ├── diff-lcs └── 1.5 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ └── diff-lcs.rbs ├── dogstatsd-ruby ├── 5.5 │ ├── _test │ │ └── test.rb │ ├── dogstatsd-ruby.rbs │ └── manifest.yaml └── _reviewers.yaml ├── dotenv-rails ├── .rubocop.yml └── 2.8 │ ├── _test │ ├── env_files │ │ ├── file1.env │ │ └── file2.env │ └── test.rb │ └── dotenv-rails.rbs ├── email_address └── 0.2 │ ├── _test │ └── test.rb │ └── email_address.rbs ├── enumerize ├── .rubocop.yml └── 2.5 │ ├── README.md │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── enumerize-generated.rbs │ └── patch.rbs ├── faker ├── 2.23 │ ├── _test │ │ └── test.rb │ ├── faker-2.23.rbs │ └── faker.rbs └── 3.4.2 │ ├── _test │ └── test.rb │ ├── faker-2.23.rbs │ └── faker.rbs ├── faraday ├── 2.5 │ ├── _test │ │ ├── test.rb │ │ ├── test_adapter.rb │ │ ├── test_adapter.rbs │ │ ├── test_adapter_registry.rb │ │ ├── test_adapter_test.rb │ │ ├── test_errors.rb │ │ └── test_utils_headers.rb │ ├── faraday.rbs │ └── manifest.yaml ├── 2.7 │ ├── _test │ │ ├── metadata.yaml │ │ ├── test.rb │ │ └── test_errors.rb │ ├── faraday-2.7.rbs │ ├── faraday.rbs │ └── manifest.yaml └── _reviewers.yaml ├── fcm ├── .rubocop.yml └── 2.0 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── fcm.rbs ├── flexirest ├── .rubocop.yml └── 1.12 │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── base.rbs │ ├── base_without_validation.rbs │ ├── caching.rbs │ ├── callbacks.rbs │ ├── configuration.rbs │ ├── connection.rbs │ ├── flexirest.rbs │ ├── headers_list.rbs │ ├── mapping.rbs │ └── request.rbs ├── flipper └── 0.28 │ ├── _test │ ├── test_basic.rb │ └── test_configuring_default.rb │ ├── flipper.rbs │ ├── flipper │ ├── actor.rbs │ ├── adapter.rbs │ ├── adapters │ │ └── memory.rbs │ ├── configuration.rbs │ └── dsl.rbs │ └── manifest.yaml ├── geocoder ├── .rubocop.yml └── 1.8 │ ├── _test │ ├── models.rb │ ├── models.rbs │ └── test_basic_search.rb │ ├── geocoder.rbs │ └── geocoder │ ├── query.rbs │ └── results │ └── base.rbs ├── gimei ├── .rubocop.yml └── 1.1 │ ├── _test │ └── test.rb │ └── gimei.rbs ├── globalid ├── 1.1 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ ├── globalid.rbs │ ├── identification.rbs │ ├── manifest.yaml │ └── signed_global_id.rbs └── _reviewers.yaml ├── google-apis-bigquery_v2 ├── .rubocop.yml └── 0.76 │ ├── _test │ └── test.rb │ ├── bigquery_v2.rbs │ ├── classes.rbs │ ├── representations.rbs │ └── service.rbs ├── google-apis-core ├── .rubocop.yml └── 0.15 │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── base_service.rbs │ ├── hashable.rbs │ ├── json_representation.rbs │ ├── logging.rbs │ └── manifest.yaml ├── google-cloud-errors ├── .rubocop.yml └── 1.5 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ ├── google-cloud-errors.rbs │ └── manifest.yaml ├── google-cloud-firestore └── 2.15 │ ├── _test │ └── test.rb │ ├── google-cloud-firestore.rbs │ └── google-cloud-firestore │ ├── document_reference.rbs │ └── document_snapshot.rbs ├── google-protobuf └── 3.22 │ ├── _test │ └── test.rb │ ├── abstract_message.rbs │ ├── descriptor.rbs │ ├── descriptor_pool.rbs │ ├── descriptor_proto.rbs │ ├── enum_descriptor.rbs │ ├── enum_descriptor_proto.rbs │ ├── enum_options.rbs │ ├── enum_value_descriptor_proto.rbs │ ├── enum_value_options.rbs │ ├── errors.rbs │ ├── extension_range_options.rbs │ ├── field_descriptor.rbs │ ├── field_descriptor_proto.rbs │ ├── field_options.rbs │ ├── file_descriptor.rbs │ ├── file_descriptor_proto.rbs │ ├── file_descriptor_set.rbs │ ├── file_options.rbs │ ├── generated_code_info.rbs │ ├── internal.rbs │ ├── manifest.yaml │ ├── map.rbs │ ├── message_exts.rbs │ ├── method_descriptor_proto.rbs │ ├── method_options.rbs │ ├── oneof_descriptor.rbs │ ├── oneof_descriptor_proto.rbs │ ├── oneof_options.rbs │ ├── protobuf.rbs │ ├── repeated_field.rbs │ ├── service_descriptor_proto.rbs │ ├── service_options.rbs │ └── well_known_types │ ├── any.rbs │ ├── duration.rbs │ ├── field_mask.rbs │ ├── list_value.rbs │ ├── null_value.rbs │ ├── struct.rbs │ ├── timestamp.rbs │ ├── unexpected_struct_type.rbs │ └── value.rbs ├── googleauth ├── .rubocop.yml └── 1.11 │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── credentials.rbs │ ├── credentials_loader.rbs │ ├── json_key_reader.rbs │ └── service_account.rbs ├── graphql └── 1.12 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── graphql.rbs ├── grpc ├── .rubocop.yml └── 1.63 │ ├── _test │ └── test.rb │ └── grpc.rbs ├── hashdiff └── 1.1 │ ├── _test │ └── test.rb │ └── hashdiff.rbs ├── hashie ├── .rubocop.yml └── 5.0 │ ├── _test │ └── test.rb │ └── hashie.rbs ├── holiday_jp └── 0.8 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ └── holiday_jp.rbs ├── holidays ├── .rubocop.yml └── 8.4 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ └── holidays.rbs ├── http └── 5.1 │ ├── _test │ └── test.rb │ ├── http.rbs │ └── manifest.yaml ├── httparty └── 0.18 │ ├── _test │ ├── test_1.rb │ ├── test_1.rbs │ └── test_2.rb │ ├── httparty.rbs │ └── manifest.yaml ├── httpclient ├── .rubocop.yml ├── 2.8 │ ├── _test │ │ └── test.rb │ ├── httpclient.rbs │ └── manifest.yaml └── _reviewers.yaml ├── i18n ├── 1.10 │ ├── _test │ │ ├── config │ │ │ └── locales │ │ │ │ ├── en.yml │ │ │ │ └── ja.yml │ │ └── test.rb │ ├── backend.rbs │ └── i18n.rbs └── _reviewers.yaml ├── json-jwt ├── .rubocop.yml └── 1.16 │ ├── _test │ └── test.rb │ ├── json-jwt.rbs │ └── manifest.yaml ├── jwt └── 2.5 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── jwt.rbs ├── kaminari-actionview ├── .rubocop.yml └── 1.2 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ └── kaminari-actionview.rbs ├── kaminari-activerecord └── 1.2 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── kaminari-activerecord.rbs ├── kaminari-core └── 1.2 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── kaminari-core.rbs ├── launchdarkly-server-sdk ├── 6.4 │ ├── _test │ │ └── test.rb │ ├── launchdarkly-server-sdk.rbs │ ├── ldclient-rb.rbs │ ├── ldclient-rb │ │ ├── cache_store.rbs │ │ ├── config.rbs │ │ ├── evaluation_detail.rbs │ │ ├── events.rbs │ │ ├── expiring_cache.rbs │ │ ├── file_data_source.rbs │ │ ├── flags_state.rbs │ │ ├── impl.rbs │ │ ├── impl │ │ │ ├── big_segments.rbs │ │ │ ├── diagnostic_events.rbs │ │ │ ├── evaluator.rbs │ │ │ ├── evaluator_bucketing.rbs │ │ │ ├── evaluator_helpers.rbs │ │ │ ├── evaluator_operators.rbs │ │ │ ├── event_sender.rbs │ │ │ ├── event_summarizer.rbs │ │ │ ├── event_types.rbs │ │ │ ├── integrations │ │ │ │ ├── consul_impl.rbs │ │ │ │ ├── dynamodb_impl.rbs │ │ │ │ ├── file_data_source.rbs │ │ │ │ ├── redis_impl.rbs │ │ │ │ └── test_data │ │ │ │ │ └── test_data_source.rbs │ │ │ ├── model │ │ │ │ ├── preprocessed_data.rbs │ │ │ │ └── serialization.rbs │ │ │ ├── repeating_task.rbs │ │ │ ├── store_client_wrapper.rbs │ │ │ ├── store_data_set_sorter.rbs │ │ │ ├── unbounded_pool.rbs │ │ │ └── util.rbs │ │ ├── in_memory_store.rbs │ │ ├── integrations.rbs │ │ ├── integrations │ │ │ ├── consul.rbs │ │ │ ├── dynamodb.rbs │ │ │ ├── file_data.rbs │ │ │ ├── redis.rbs │ │ │ ├── test_data.rbs │ │ │ ├── test_data │ │ │ │ └── flag_builder.rbs │ │ │ └── util │ │ │ │ └── store_wrapper.rbs │ │ ├── interfaces.rbs │ │ ├── ldclient.rbs │ │ ├── memoized_value.rbs │ │ ├── newrelic.rbs │ │ ├── non_blocking_thread_pool.rbs │ │ ├── polling.rbs │ │ ├── redis_store.rbs │ │ ├── requestor.rbs │ │ ├── simple_lru_cache.rbs │ │ ├── stream.rbs │ │ ├── user_filter.rbs │ │ ├── util.rbs │ │ └── version.rbs │ ├── manifest.yaml │ └── stub.rbs ├── 7.2 │ ├── _test │ │ ├── multi_context.rb │ │ ├── non_user_context.rb │ │ └── test.rb │ ├── launchdarkly-server-sdk.rbs │ ├── ldclient-rb.rbs │ ├── ldclient-rb │ │ ├── cache_store.rbs │ │ ├── config.rbs │ │ ├── context.rbs │ │ ├── evaluation_detail.rbs │ │ ├── events.rbs │ │ ├── expiring_cache.rbs │ │ ├── flags_state.rbs │ │ ├── impl.rbs │ │ ├── impl │ │ │ ├── big_segments.rbs │ │ │ ├── broadcaster.rbs │ │ │ ├── context.rbs │ │ │ ├── context_filter.rbs │ │ │ ├── data_source.rbs │ │ │ ├── data_store.rbs │ │ │ ├── dependency_tracker.rbs │ │ │ ├── diagnostic_events.rbs │ │ │ ├── evaluator.rbs │ │ │ ├── evaluator_bucketing.rbs │ │ │ ├── evaluator_helpers.rbs │ │ │ ├── evaluator_operators.rbs │ │ │ ├── event_sender.rbs │ │ │ ├── event_summarizer.rbs │ │ │ ├── event_types.rbs │ │ │ ├── flag_tracker.rbs │ │ │ ├── integrations │ │ │ │ ├── consul_impl.rbs │ │ │ │ ├── dynamodb_impl.rbs │ │ │ │ ├── file_data_source.rbs │ │ │ │ ├── redis_impl.rbs │ │ │ │ └── test_data │ │ │ │ │ └── test_data_source.rbs │ │ │ ├── model │ │ │ │ ├── clause.rbs │ │ │ │ ├── feature_flag.rbs │ │ │ │ ├── preprocessed_data.rbs │ │ │ │ ├── segment.rbs │ │ │ │ └── serialization.rbs │ │ │ ├── repeating_task.rbs │ │ │ ├── store_client_wrapper.rbs │ │ │ ├── store_data_set_sorter.rbs │ │ │ ├── unbounded_pool.rbs │ │ │ └── util.rbs │ │ ├── in_memory_store.rbs │ │ ├── integrations.rbs │ │ ├── integrations │ │ │ ├── consul.rbs │ │ │ ├── dynamodb.rbs │ │ │ ├── file_data.rbs │ │ │ ├── redis.rbs │ │ │ ├── test_data.rbs │ │ │ ├── test_data │ │ │ │ └── flag_builder.rbs │ │ │ └── util │ │ │ │ └── store_wrapper.rbs │ │ ├── interfaces.rbs │ │ ├── ldclient.rbs │ │ ├── memoized_value.rbs │ │ ├── non_blocking_thread_pool.rbs │ │ ├── polling.rbs │ │ ├── reference.rbs │ │ ├── requestor.rbs │ │ ├── simple_lru_cache.rbs │ │ ├── stream.rbs │ │ ├── util.rbs │ │ └── version.rbs │ ├── manifest.yaml │ └── stub.rbs └── _reviewers.yaml ├── line-bot-api └── 1.25 │ ├── _test │ └── test.rb │ ├── line-bot-api.rbs │ └── manifest.yaml ├── listen └── 3.9 │ ├── _test │ ├── test.rb │ ├── test2.rb │ └── test3.rb │ ├── listen.rbs │ └── listener.rbs ├── mail └── 2.8 │ ├── _test │ └── test.rb │ └── mail.rbs ├── marcel ├── .rubocop.yml └── 1.0 │ ├── _test │ └── test.rb │ ├── manifest.yaml │ └── marcel.rbs ├── mime-types └── 3.5 │ ├── _test │ ├── test_mime_type.rb │ └── test_mime_types.rb │ ├── manifest.yaml │ └── mime │ ├── type.rbs │ ├── types.rbs │ └── types │ ├── container.rbs │ └── registry.rbs ├── mini_magick ├── 4.13 │ ├── _test │ │ ├── metadata.yaml │ │ ├── readme.rb │ │ └── test.rb │ ├── manifest.yaml │ └── mini_magick.rbs ├── 5.0 │ ├── _test │ │ ├── metadata.yaml │ │ ├── readme.rb │ │ └── test.rb │ ├── manifest.yaml │ └── mini_magick.rbs └── _reviewers.yaml ├── mini_mime ├── 0.1 │ ├── _test │ │ └── test.rb │ └── mini_mime.rbs └── _reviewers.yaml ├── minitest ├── .rubocop.yml ├── 5.25 │ ├── _test │ │ └── test.rb │ ├── minitest.rbs │ └── minitest │ │ ├── abstract_reporter.rbs │ │ ├── assertion.rbs │ │ ├── assertions.rbs │ │ ├── backtrace_filter.rbs │ │ ├── bench_spec.rbs │ │ ├── benchmark.rbs │ │ ├── composite_reporter.rbs │ │ ├── compress.rbs │ │ ├── error_on_warning.rbs │ │ ├── expectation.rbs │ │ ├── expectations.rbs │ │ ├── guard.rbs │ │ ├── mock.rbs │ │ ├── parallel.rbs │ │ ├── parallel │ │ ├── executor.rbs │ │ ├── test.rbs │ │ └── test │ │ │ └── class_methods.rbs │ │ ├── pride_io.rbs │ │ ├── pride_lol.rbs │ │ ├── progress_reporter.rbs │ │ ├── reportable.rbs │ │ ├── reporter.rbs │ │ ├── result.rbs │ │ ├── runnable.rbs │ │ ├── skip.rbs │ │ ├── spec.rbs │ │ ├── spec │ │ ├── dsl.rbs │ │ └── dsl │ │ │ └── instance_methods.rbs │ │ ├── statistics_reporter.rbs │ │ ├── summary_reporter.rbs │ │ ├── test.rbs │ │ ├── test │ │ └── lifecycle_hooks.rbs │ │ ├── unexpected_error.rbs │ │ ├── unexpected_warning.rbs │ │ ├── unit.rbs │ │ └── unit │ │ └── test_case.rbs └── _reviewers.yaml ├── moji ├── .rubocop.yml └── 1.6 │ ├── _test │ └── test.rb │ └── moji.rbs ├── moneta ├── 1.6 │ ├── _test │ │ └── test.rb │ ├── manifest.yaml │ └── moneta.rbs └── _reviewers.yaml ├── mysql2-cs-bind ├── .rubocop.yml └── 0.1 │ ├── _test │ └── xquery.rb │ └── mysql2-cs-bind.rbs ├── mysql2 ├── .rubocop.yml └── 0.5 │ ├── _test │ ├── client.rb │ ├── error_handling.rb │ ├── new.rb │ ├── query.rb │ ├── result.rb │ ├── row_value_type.rb │ └── statement.rb │ ├── client.rbs │ ├── error.rbs │ ├── manifest.yaml │ ├── result.rbs │ └── statement.rbs ├── net-smtp ├── .rubocop.yml ├── 0.5 │ ├── manifest.yaml │ └── net-smtp.rbs └── _reviewers.yaml ├── nkf ├── .rubocop.yml ├── 0.2 │ ├── _test │ │ └── test.rb │ └── nkf.rbs └── _reviewers.yaml ├── nokogiri └── 1.11 │ ├── _test │ └── test.rb │ ├── nokogiri.rbs │ └── patch.rbs ├── observer ├── .rubocop.yml ├── 0.1 │ ├── _test │ │ └── test.rb │ └── observable.rbs └── _reviewers.yaml ├── octokit ├── .rubocop.yml └── 8.0 │ ├── _test │ └── test.rb │ └── octokit.rbs ├── oga ├── .rubocop.yml └── 3.4 │ ├── _test │ └── test.rb │ └── oga.rbs ├── openid_connect ├── .rubocop.yml └── 2.3 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── openid_connect.rbs ├── operator_recordable ├── .rubocop.yml └── 2.0 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── operator_recordable.rbs ├── parallel ├── 1.20 │ ├── _test │ │ ├── all.rb │ │ ├── any.rb │ │ ├── control.rb │ │ ├── each.rb │ │ ├── map.rb │ │ ├── number.rb │ │ └── queue.rb │ └── parallel.rbs └── _reviewers.yaml ├── paranoia ├── 2.5 │ ├── _test │ │ ├── product.rbs │ │ └── test.rb │ └── paranoia.rbs └── _reviewers.yaml ├── parser ├── 3.2 │ ├── _test │ │ └── test.rb │ ├── manifest.yaml │ ├── parser.rbs │ └── polyfill.rbs └── _reviewers.yaml ├── prime └── 0.1.2 │ ├── integer-extension.rbs │ ├── manifest.yaml │ └── prime.rbs ├── protobuf ├── .rubocop.yml └── 3.10.3 │ ├── _test │ ├── enum.rb │ ├── enum.rbs │ ├── messages.rb │ ├── messages.rbs │ ├── services.rb │ ├── services.rbs │ └── steep_expectations.yml │ ├── enum.rbs │ ├── field.rbs │ ├── interface.rbs │ ├── message.rbs │ ├── optionable.rbs │ ├── rpc_method.rbs │ └── service.rbs ├── rack-oauth2 ├── .rubocop.yml └── 2.2 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── rack-oauth2.rbs ├── rack ├── .rubocop.yml └── 2.2 │ ├── _test │ ├── body_proxy.rb │ ├── string_body.rb │ └── test.rb │ ├── manifest.yaml │ └── rack.rbs ├── rails-dom-testing ├── .rubocop.yml ├── 2.0 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ └── rails-dom-testing.rbs └── _reviewers.yaml ├── rails-html-sanitizer ├── .rubocop.yml └── 1.6 │ ├── _test │ └── test.rb │ └── rails-html-sanitizer.rbs ├── railties ├── .rubocop.yml ├── 6.0 │ ├── _scripts │ │ └── generate.rb │ ├── manifest.yaml │ ├── patch.rbs │ ├── railties-generated.rbs │ └── railties.rbs └── _reviewers.yaml ├── rainbow ├── 3.0 │ ├── _scripts │ │ └── gen_x11_colors.rb │ ├── _test │ │ └── rainbow_test.rb │ ├── global.rbs │ ├── presenter.rbs │ └── rainbow.rbs └── _reviewers.yaml ├── rake └── 13.0 │ ├── _test │ ├── test.rb │ └── test.rbs │ ├── manifest.yaml │ └── rake.rbs ├── recaptcha ├── .rubocop.yml └── 5.15 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ └── recaptcha.rbs ├── redis ├── .rubocop.yml └── 4.2 │ ├── _test │ ├── alternate_drivers.rb │ ├── cluster.rb │ ├── error_handling.rb │ ├── expert-mode-options.rb │ ├── get_set.rb │ ├── initialize.rb │ ├── metadata.yaml │ ├── mset_mget.rb │ ├── multi.rb │ ├── pipeline.rb │ ├── reconnect.rb │ ├── sentinels.rb │ ├── sorted_sets.rb │ ├── ssl.rb │ └── timeout.rb │ ├── errors.rbs │ ├── future.rbs │ └── redis.rbs ├── regexp_parser ├── .rubocop.yml └── 2.8 │ ├── _test │ └── test.rb │ └── regexp_parser.rbs ├── regexp_trie ├── .rubocop.yml └── 1.0 │ ├── _test │ └── test.rb │ └── regexp_trie.rbs ├── request_store ├── .rubocop.yml └── 1.5 │ ├── _test │ └── test.rb │ └── request_store.rbs ├── rest-client ├── .rubocop.yml └── 2.1 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ ├── exceptions.rbs │ ├── manifest.yaml │ └── rest-client.rbs ├── retries ├── .rubocop.yml └── 0.0.5 │ ├── _test │ └── test.rb │ └── retries.rbs ├── retryable ├── 3.0 │ ├── _test │ │ └── test.rb │ ├── manifest.yaml │ └── retryable.rbs └── _reviewers.yaml ├── rolify ├── .rubocop.yml ├── 6.0 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ └── rolify.rbs └── _reviewers.yaml ├── roo ├── 2.10 │ ├── _test │ │ ├── csv_test.rb │ │ ├── excelx_test.rb │ │ ├── metadata.yaml │ │ └── open_office_test.rb │ ├── manifest.yaml │ ├── roo.rbs │ └── roo │ │ ├── base.rbs │ │ ├── constants.rbs │ │ ├── csv.rbs │ │ ├── errors.rbs │ │ ├── excelx.rbs │ │ ├── excelx │ │ ├── cell.rbs │ │ ├── cell │ │ │ ├── base.rbs │ │ │ ├── boolean.rbs │ │ │ ├── date.rbs │ │ │ ├── datetime.rbs │ │ │ ├── empty.rbs │ │ │ ├── number.rbs │ │ │ ├── string.rbs │ │ │ └── time.rbs │ │ ├── comments.rbs │ │ ├── coordinate.rbs │ │ ├── extractor.rbs │ │ ├── format.rbs │ │ ├── images.rbs │ │ ├── relationships.rbs │ │ ├── shared.rbs │ │ ├── shared_strings.rbs │ │ ├── sheet.rbs │ │ ├── sheet_doc.rbs │ │ ├── styles.rbs │ │ └── workbook.rbs │ │ ├── font.rbs │ │ ├── formatters │ │ ├── base.rbs │ │ ├── csv.rbs │ │ ├── matrix.rbs │ │ ├── xml.rbs │ │ └── yaml.rbs │ │ ├── helpers │ │ ├── default_attr_reader.rbs │ │ └── weak_instance_cache.rbs │ │ ├── libre_office.rbs │ │ ├── link.rbs │ │ ├── open_office.rbs │ │ ├── spreadsheet.rbs │ │ ├── tempdir.rbs │ │ ├── utils.rbs │ │ └── version.rbs └── _reviewers.yaml ├── rqrcode ├── .rubocop.yml └── 2.2 │ ├── _test │ └── test.rb │ └── rqrcode.rbs ├── rubocop-ast ├── .rubocop.yml └── 1.30 │ ├── _test │ └── test.rb │ └── rubocop-ast.rbs ├── rubocop ├── .rubocop.yml └── 1.57 │ ├── _test │ └── test.rb │ └── rubocop.rbs ├── rubyzip ├── .rubocop.yml └── 2.3 │ ├── _test │ └── test_example.rb │ └── zip │ ├── central_directory.rbs │ ├── entry.rbs │ ├── entry_set.rbs │ ├── file.rbs │ ├── input_stream.rbs │ ├── ioextras.rbs │ ├── ioextras │ ├── abstract_input_stream.rbs │ └── abstract_output_stream.rbs │ └── output_stream.rbs ├── scanf ├── .rubocop.yml └── 1.0 │ ├── _test │ └── test.rb │ └── scanf.rbs ├── sentry-ruby ├── .rubocop.yml └── 5.2 │ ├── _test │ ├── foo_middleware.rbs │ ├── metadata.yaml │ ├── test.rb │ └── test_rack.rb │ └── sentry-ruby.rbs ├── shoryuken ├── .rubocop.yml └── 6.0 │ ├── _pending_test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ ├── client.rbs │ ├── logging.rbs │ ├── manifest.yaml │ ├── middleware.rbs │ ├── options.rbs │ ├── queue.rbs │ ├── shoryuken.rbs │ └── worker.rbs ├── shrine ├── .rubocop.yml └── 3.6 │ ├── _test │ ├── metadata.yaml │ ├── test.rb │ └── test.rbs │ ├── manifest.yaml │ ├── shrine.rbs │ └── shrine │ ├── attacher.rbs │ ├── attachment.rbs │ ├── storage.rbs │ └── uploaded_file.rbs ├── sidekiq-cron ├── .rubocop.yml └── 2.2 │ ├── _test │ └── test.rb │ └── sidekiq-cron.rbs ├── sidekiq-ent ├── .rubocop.yml ├── 7.3 │ └── sidekiq-ent.rbs └── _reviewers.yaml ├── sidekiq-pro ├── .rubocop.yml ├── 7.3 │ └── sidekiq-pro.rbs └── _reviewers.yaml ├── sidekiq ├── .rubocop.yml ├── 6.2 │ ├── _test │ │ ├── test_1.rb │ │ ├── test_1_2.rbs │ │ ├── test_2.rb │ │ ├── test_3.rb │ │ ├── test_3_4_5.rbs │ │ ├── test_4.rb │ │ └── test_5.rb │ ├── api.rbs │ ├── manifest.yaml │ ├── redis_connection.rbs │ └── sidekiq.rbs ├── 6.3 │ ├── _test │ │ ├── test_1.rb │ │ ├── test_1_2.rbs │ │ ├── test_2.rb │ │ ├── test_3.rb │ │ ├── test_3_4_5.rbs │ │ ├── test_4.rb │ │ └── test_5.rb │ ├── api.rbs │ ├── manifest.yaml │ ├── redis_connection.rbs │ └── sidekiq.rbs └── 7.0 │ ├── _test │ ├── test_1.rb │ ├── test_1_2.rbs │ ├── test_2.rb │ ├── test_3.rb │ ├── test_3_4_5.rbs │ ├── test_4.rb │ └── test_5.rb │ ├── api.rbs │ ├── capsule.rbs │ ├── client.rbs │ ├── component.rbs │ ├── config.rbs │ ├── embedded.rbs │ ├── job.rbs │ ├── job_util.rbs │ ├── logger.rbs │ ├── manifest.yaml │ ├── middleware.rbs │ ├── redis_client_adapter.rbs │ ├── redis_connection.rbs │ ├── scheduled.rbs │ ├── sidekiq.rbs │ └── transaction_aware_client.rbs ├── signet ├── .rubocop.yml └── 0.19 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── signet.rbs ├── simple_oauth ├── .rubocop.yml └── 0.3 │ ├── _test │ └── test.rb │ ├── manifest.yaml │ └── simple_oauth.rbs ├── simplecov ├── 0.22 │ ├── _test │ │ ├── test.rb │ │ └── test.rbs │ └── simplecov.rbs └── _reviewers.yaml ├── sinatra-contrib ├── 4.0 │ ├── cookies.rbs │ ├── json.rbs │ └── reloader.rbs └── _reviewers.yaml ├── sinatra ├── 4.0 │ ├── _test │ │ ├── metadata.yaml │ │ ├── test.rb │ │ └── test.rbs │ ├── base.rbs │ ├── indifferent_hash.rbs │ └── manifest.yaml └── _reviewers.yaml ├── slack-notifier ├── 2.4 │ ├── _test │ │ ├── http_client.rbs │ │ ├── middleware.rbs │ │ └── test.rb │ └── slack-notifier.rbs └── _reviewers.yaml ├── sorcery ├── .rubocop.yml └── 0.16 │ ├── _test │ ├── test.rb │ └── test.rbs │ └── sorcery.rbs ├── spreadsheet ├── .rubocop.yml └── 1.3 │ ├── _test │ └── test.rb │ └── spreadsheat.rbs ├── sqlite3 ├── .rubocop.yml └── 2.0 │ ├── _test │ └── test.rb │ ├── database.rbs │ └── pragmas.rbs ├── stackprof ├── 0.2 │ ├── _test │ │ └── test.rb │ └── stackprof.rbs └── _reviewers.yaml ├── stripe ├── .rubocop.yml ├── 13.0 │ ├── _generator │ │ └── openapi.rb │ ├── _test │ │ └── stripe.rb │ ├── stripe.rbs │ └── stripe │ │ ├── address.rbs │ │ ├── charge.rbs │ │ ├── customer.rbs │ │ ├── errors.rbs │ │ ├── event.rbs │ │ ├── payment_intent.rbs │ │ ├── payment_method.rbs │ │ ├── price.rbs │ │ ├── product.rbs │ │ ├── refund.rbs │ │ └── source.rbs └── _reviewers.yaml ├── thor ├── .rubocop.yml └── 1.2 │ ├── _test │ └── test.rb │ ├── manifest.yaml │ └── thor.rbs ├── tzinfo ├── .rubocop.yml └── 2.0 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ ├── manifest.yaml │ └── tzinfo.rbs ├── ulid ├── .rubocop.yml └── 1.3 │ ├── _test │ └── ulid_test.rb │ └── ulid.rbs ├── wavedash ├── .rubocop.yml └── 0.1 │ ├── _test │ └── test.rb │ └── wavedash.rbs ├── web-push ├── .rubocop.yml └── 3.0 │ ├── _test │ ├── metadata.yaml │ └── test.rb │ └── web-push.rbs ├── webmock ├── .rubocop.yml └── 3.19 │ ├── _test │ └── test.rb │ ├── manifest.yaml │ └── webmock.rbs ├── woothee ├── .rubocop.yml └── 1.11 │ ├── _test │ └── test.rb │ └── woothee.rbs ├── yard ├── 0.9 │ ├── EXTERNAL_TODO.rbs │ ├── _generators │ │ ├── Gemfile │ │ ├── Gemfile.lock │ │ ├── README.md │ │ ├── Rakefile │ │ ├── generate.rb │ │ ├── known_sig │ │ │ ├── symbol_hash.rbs │ │ │ └── tags.rbs │ │ ├── rbs_collection.lock.yaml │ │ ├── rbs_collection.yaml │ │ └── templates │ │ │ ├── EXTERNAL_TODO.rbs.erb │ │ │ ├── _test │ │ │ └── yard.rb.erb │ │ │ └── manifest.yaml.erb │ ├── _test │ │ └── yard.rb │ ├── manifest.yaml │ ├── symbol_hash.rbs │ ├── yard.rbs │ └── yard │ │ ├── cli.rbs │ │ ├── code_objects.rbs │ │ ├── config.rbs │ │ ├── docstring.rbs │ │ ├── docstring_parser.rbs │ │ ├── gem_index.rbs │ │ ├── handlers.rbs │ │ ├── i18n.rbs │ │ ├── logger.rbs │ │ ├── options.rbs │ │ ├── parser.rbs │ │ ├── rake.rbs │ │ ├── registry.rbs │ │ ├── registry_resolver.rbs │ │ ├── registry_store.rbs │ │ ├── serializers.rbs │ │ ├── server.rbs │ │ ├── stub_proxy.rbs │ │ ├── tags.rbs │ │ ├── templates.rbs │ │ └── verifier.rbs └── _reviewers.yaml └── zengin_code ├── .rubocop.yml └── 1.0 ├── _test └── test.rb └── zengin_code.rbs /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gem_rbs_collection--dev", 3 | "image": "ruby:latest", 4 | "workspaceFolder": "/workspaces/gem_rbs_collection", 5 | "customizations": { 6 | "vscode": { 7 | "extensions": [ 8 | "soutaro.rbs-syntax", 9 | "Shopify.ruby-extensions-pack" 10 | ] 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | indent_size = 2 6 | indent_style = space 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | charset = utf-8 10 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | .gitmodules merge=union 2 | .github/CODEOWNERS merge=union 3 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | /.github/ @pocke 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "bundler" 4 | directory: "/" 5 | schedule: 6 | interval: "daily" 7 | - package-ecosystem: 'github-actions' 8 | directory: '/' 9 | schedule: 10 | interval: 'weekly' 11 | -------------------------------------------------------------------------------- /.github/workflows/pr_bot/changed_files.rb: -------------------------------------------------------------------------------- 1 | require_relative "./utils" 2 | 3 | paths = `git diff --name-only -z #{BASE_SHA}...#{HEAD_SHA}`.split("\0") 4 | changed_gems = paths.select { _1.start_with?("gems/") }.map { _1.split("/")[1] }.uniq 5 | changed_non_gems = paths.reject { _1.start_with?("gems/") } 6 | 7 | output :gems, JSON.generate(changed_gems) 8 | output :non_gems, JSON.generate(changed_non_gems) 9 | -------------------------------------------------------------------------------- /.github/workflows/rubocop.yml: -------------------------------------------------------------------------------- 1 | name: RuboCop 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: {} 8 | 9 | jobs: 10 | rubocop: 11 | runs-on: ubuntu-latest 12 | timeout-minutes: 30 13 | steps: 14 | - uses: actions/checkout@v4 15 | - uses: ruby/setup-ruby@v1 16 | with: 17 | ruby-version: '3.3' 18 | bundler-cache: true 19 | - name: 'Install dependencies' 20 | run: 'bundle install' 21 | - name: 'Run RuboCop' 22 | run: 'bundle exec rubocop --format github' 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | tmp 2 | .gem_rbs_collection 3 | .yardoc 4 | /gems/*/*/_test/Steepfile 5 | /gems/*/*/_test/rbs_collection.lock.yaml 6 | /gems/*/*/_test/rbs_collection.yaml 7 | /gems/*/*/_test/Gemfile.back 8 | /gems/*/*/_test/Gemfile.lock.back 9 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "rbs" 4 | gem "steep" 5 | gem "typeprof" 6 | gem "rake" 7 | gem 'rubocop-on-rbs' 8 | -------------------------------------------------------------------------------- /bin/rbs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -euo pipefail 3 | IFS=$'\n\t' 4 | 5 | ROOT_DIR=$(cd $(dirname $0)/..; pwd) 6 | 7 | bundle exec --gemfile=${ROOT_DIR}/Gemfile rbs $* 8 | -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -euo pipefail 3 | IFS=$'\n\t' 4 | set -v 5 | 6 | ROOT_DIR=$(cd $(dirname $0)/..; pwd) 7 | 8 | bundle install --gemfile=${ROOT_DIR}/Gemfile 9 | gem install rbs:$(bundle exec gem list rbs | ruby -e 'puts gets[/([0-9.]+)/, 1]') 10 | -------------------------------------------------------------------------------- /gems/abbrev/0.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "abbrev" 5 | 6 | Abbrev.abbrev([]) 7 | Abbrev.abbrev(%w(abbrev)) 8 | Abbrev.abbrev(%w(abbrev), 'abb') 9 | Abbrev.abbrev(%w(abbrev), /^abb/) 10 | Abbrev.abbrev(%w(abbrev), nil) 11 | -------------------------------------------------------------------------------- /gems/abbrev/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/actioncable/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/actioncable/7.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "actioncable" 5 | -------------------------------------------------------------------------------- /gems/actioncable/7.1/actioncable.rbs: -------------------------------------------------------------------------------- 1 | module ActionCable 2 | module Connection 3 | class Base 4 | end 5 | end 6 | 7 | module Channel 8 | class Base 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/actioncable/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - tk0miya 4 | -------------------------------------------------------------------------------- /gems/actionmailer/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/actionmailer/7.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - railties 3 | -------------------------------------------------------------------------------- /gems/actionmailer/7.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "actionmailer" 5 | -------------------------------------------------------------------------------- /gems/actionmailer/7.0/mail-message.rbs: -------------------------------------------------------------------------------- 1 | module Mail 2 | class Message 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/actionmailer/7.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: cgi 8 | - name: date 9 | - name: logger 10 | - name: monitor 11 | - name: mutex_m 12 | - name: singleton 13 | - name: time 14 | - name: tsort 15 | -------------------------------------------------------------------------------- /gems/actionmailer/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - ydah 4 | - tk0miya 5 | -------------------------------------------------------------------------------- /gems/actionpack/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/actionpack/6.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | module After 3 | def self.after: (ActionController::Base) -> untyped 4 | end 5 | 6 | def controller_instance_method: () -> untyped 7 | def authenticate: () -> untyped 8 | def fetch: () -> void 9 | end 10 | -------------------------------------------------------------------------------- /gems/actionpack/6.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: delegate 3 | - name: minitest 4 | -------------------------------------------------------------------------------- /gems/actionpack/7.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | class FooController < ActionController::Base 2 | allow_browser versions: :modern 3 | end 4 | 5 | class BarController < ActionController::Base 6 | allow_browser versions: { safari: 17.5, chrome: 127, ie: false }, block: -> { head :not_acceptable } 7 | end 8 | -------------------------------------------------------------------------------- /gems/actionpack/7.2/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class FooController < ActionController::Base 2 | end 3 | 4 | class BarController < ActionController::Base 5 | end 6 | -------------------------------------------------------------------------------- /gems/actionpack/7.2/actioncontroller-7.2.rbs: -------------------------------------------------------------------------------- 1 | module ActionController 2 | module AllowBrowser 3 | extend ActiveSupport::Concern 4 | 5 | module ClassMethods 6 | def allow_browser: (versions: :modern | Hash[untyped, false | _ToS], ?block: ^() [self: Base] -> void, **untyped options) -> void 7 | end 8 | end 9 | 10 | class Base < Metal 11 | extend AllowBrowser::ClassMethods 12 | end 13 | end 14 | 15 | -------------------------------------------------------------------------------- /gems/actionpack/7.2/actioncontroller.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/actioncontroller.rbs -------------------------------------------------------------------------------- /gems/actionpack/7.2/actiondispatch.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/actiondispatch.rbs -------------------------------------------------------------------------------- /gems/actionpack/7.2/actionpack-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/actionpack-generated.rbs -------------------------------------------------------------------------------- /gems/actionpack/7.2/patch.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/patch.rbs -------------------------------------------------------------------------------- /gems/actionpack/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - tk0miya 4 | -------------------------------------------------------------------------------- /gems/actiontext/7.2/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - activerecord 3 | -------------------------------------------------------------------------------- /gems/actiontext/7.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "actiontext" 2 | 3 | class Article < ActiveRecord::Base 4 | has_rich_text :content 5 | end 6 | -------------------------------------------------------------------------------- /gems/actiontext/7.2/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Article < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /gems/actiontext/7.2/actiontext.rbs: -------------------------------------------------------------------------------- 1 | module ActionText 2 | module Attribute 3 | module ClassMethods 4 | def has_rich_text: (String | Symbol name, ?encrypted: bool, ?strict_loading: bool) -> void 5 | def with_all_rich_text: () -> untyped 6 | def rich_text_association_names: () -> Array[String] 7 | end 8 | end 9 | end 10 | 11 | module ActiveRecord 12 | class Base 13 | include ActionText::Attribute 14 | extend ActionText::Attribute::ClassMethods 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /gems/actiontext/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - tk0miya 3 | -------------------------------------------------------------------------------- /gems/actionview/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/actionview/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - ydah 4 | - tk0miya 5 | -------------------------------------------------------------------------------- /gems/active_decorator/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/active_decorator/1.4/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "active_decorator" 2 | 3 | class User; end 4 | user = User.new 5 | 6 | ActiveDecorator::Decorator.instance 7 | ActiveDecorator::Decorator.instance.decorate(user) 8 | 9 | ActiveDecorator::ViewContext.current 10 | -------------------------------------------------------------------------------- /gems/active_decorator/1.4/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User 2 | end 3 | -------------------------------------------------------------------------------- /gems/active_decorator/1.4/active_decorator.rbs: -------------------------------------------------------------------------------- 1 | module ActiveDecorator 2 | class Decorator 3 | def self?.instance: () -> ActiveDecorator::Decorator 4 | def decorate: (untyped obj) -> untyped 5 | end 6 | 7 | module ViewContext 8 | def self.current: () -> (untyped | []) 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/active_hash/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/active_hash/3.2/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Colour < ActiveHash::Base 2 | include ActiveHash::Enum 3 | extend ActiveHash::Enum::Methods 4 | end 5 | 6 | class Pallete < ActiveHash::Base 7 | include ActiveHash::Associations 8 | extend ActiveHash::Associations::Methods 9 | end 10 | -------------------------------------------------------------------------------- /gems/active_hash/3.2/active_file.rbs: -------------------------------------------------------------------------------- 1 | module ActiveFile 2 | class Base < ActiveHash::Base 3 | def self.set_root_path: (String) -> void 4 | def self.set_filename: (String) -> void 5 | def self.reload: (bool) -> void 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/active_hash/3.2/active_yaml.rbs: -------------------------------------------------------------------------------- 1 | module ActiveYaml 2 | class Base < ActiveFile::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/active_hash/3.2/enum.rbs: -------------------------------------------------------------------------------- 1 | module ActiveHash 2 | module Enum 3 | module Methods 4 | def enum_accessor: (*untyped field_names) -> void 5 | end 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/active_model_serializers/0.10/active_model_serializers.rbs: -------------------------------------------------------------------------------- 1 | module ActiveModelSerializers 2 | class Model 3 | def self.attributes: (*Symbol) -> void 4 | 5 | def initialize: (**untyped) -> void 6 | end 7 | 8 | class SerializableResource 9 | def initialize: (untyped resource, ?Hash[Symbol, untyped] options) -> void 10 | def to_json: () -> String 11 | def as_json: () -> Hash[Symbol, untyped] 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/active_type/2.6/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/active_type/2.6/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/activeadmin/3.3/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - devise 3 | -------------------------------------------------------------------------------- /gems/activeadmin/3.3/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "activeadmin" 5 | 6 | class SessionsController < ActiveAdmin::Devise::SessionsController 7 | end 8 | 9 | class TestPanel < ActiveAdmin::Views::Panel 10 | builder_method :test_panel 11 | end 12 | 13 | class TestStatusTag < ActiveAdmin::Views::StatusTag 14 | builder_method :test_status_tag 15 | end 16 | -------------------------------------------------------------------------------- /gems/activeadmin/3.3/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class SessionsController < ActiveAdmin::Devise::SessionsController 2 | end 3 | 4 | class TestPanel < ActiveAdmin::Views::Panel 5 | end 6 | 7 | class TestStatusTag < ActiveAdmin::Views::StatusTag 8 | end 9 | -------------------------------------------------------------------------------- /gems/activeadmin/3.3/activeadmin.rbs: -------------------------------------------------------------------------------- 1 | module ActiveAdmin 2 | module Devise 3 | class SessionsController < ::Devise::SessionsController 4 | end 5 | end 6 | 7 | class Component < Arbre::Component 8 | end 9 | 10 | module Views 11 | class Panel < Component 12 | end 13 | 14 | class StatusTag < Component 15 | end 16 | end 17 | 18 | class Page 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /gems/activeadmin/3.3/shims.rbs: -------------------------------------------------------------------------------- 1 | # Avoid class missing issue when using activeadmin but not using devise. 2 | module Devise 3 | class SessionsController 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/activejob/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/activejob/6.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - railties 3 | -------------------------------------------------------------------------------- /gems/activejob/6.0/_test/send_message_job.rbs: -------------------------------------------------------------------------------- 1 | class SendMessageJob < ActiveJob::Base 2 | def perform: (*untyped) -> void 3 | 4 | private 5 | 6 | def around_task: () -> void 7 | end 8 | -------------------------------------------------------------------------------- /gems/activejob/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - tk0miya 4 | -------------------------------------------------------------------------------- /gems/activemerchant/1.89/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/activemerchant/1.89/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/activemerchant/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - hibariya 3 | -------------------------------------------------------------------------------- /gems/activemodel/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/activemodel/6.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Person 2 | include ActiveModel::Model 3 | include ActiveModel::Validations 4 | extend ActiveModel::Validations::ClassMethods 5 | 6 | attr_accessor name: String 7 | attr_accessor age: Integer 8 | attr_accessor email: String 9 | 10 | def foo?: () -> bool 11 | def should_be_satisfied_special_email_rule: () -> void 12 | end 13 | -------------------------------------------------------------------------------- /gems/activemodel/7.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Person 2 | include ActiveModel::Model 3 | include ActiveModel::Validations 4 | extend ActiveModel::Validations::ClassMethods 5 | 6 | attr_accessor name: String? 7 | attr_accessor email: String? 8 | 9 | def should_be_satisfied_special_email_rule: () -> void 10 | end 11 | -------------------------------------------------------------------------------- /gems/activemodel/7.0/activemodel-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activemodel-generated.rbs -------------------------------------------------------------------------------- /gems/activemodel/7.0/activemodel.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activemodel.rbs -------------------------------------------------------------------------------- /gems/activemodel/7.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: logger 9 | - name: monitor 10 | - name: mutex_m 11 | - name: singleton 12 | - name: time 13 | -------------------------------------------------------------------------------- /gems/activemodel/7.1/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Person 2 | include ActiveModel::Attributes 3 | extend ActiveModel::Attributes::ClassMethods 4 | include ActiveModel::AttributeRegistration 5 | extend ActiveModel::AttributeRegistration::ClassMethods 6 | include ActiveModel::Validations 7 | extend ActiveModel::Validations::ClassMethods 8 | 9 | attr_accessor name: String? 10 | end 11 | -------------------------------------------------------------------------------- /gems/activemodel/7.1/activemodel-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activemodel-generated.rbs -------------------------------------------------------------------------------- /gems/activemodel/7.1/activemodel.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activemodel.rbs -------------------------------------------------------------------------------- /gems/activemodel/7.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: logger 9 | - name: monitor 10 | - name: mutex_m 11 | - name: singleton 12 | - name: time 13 | -------------------------------------------------------------------------------- /gems/activemodel/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - hibariya 3 | - ksss 4 | - tk0miya 5 | -------------------------------------------------------------------------------- /gems/activerecord-import/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/activerecord-import/1.5/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Book < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /gems/activerecord/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | # Please specify only supported versions. 4 | RBS/Layout: 5 | Enabled: true 6 | Include: 7 | - "gems/activerecord/7.2/**/*.rbs" 8 | - "gems/activerecord/8.0/**/*.rbs" 9 | RBS/Lint: 10 | Enabled: true 11 | Include: 12 | - "gems/activerecord/7.2/**/*.rbs" 13 | - "gems/activerecord/8.0/**/*.rbs" 14 | RBS/Style: 15 | Enabled: true 16 | Include: 17 | - "gems/activerecord/7.2/**/*.rbs" 18 | - "gems/activerecord/8.0/**/*.rbs" 19 | -------------------------------------------------------------------------------- /gems/activerecord/6.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: delegate 3 | -------------------------------------------------------------------------------- /gems/activerecord/6.1/activerecord-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activerecord-generated.rbs -------------------------------------------------------------------------------- /gems/activerecord/6.1/activerecord.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activerecord.rbs -------------------------------------------------------------------------------- /gems/activerecord/6.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: delegate 3 | -------------------------------------------------------------------------------- /gems/activerecord/6.1/patch.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/patch.rbs -------------------------------------------------------------------------------- /gems/activerecord/6.1/railties.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/railties.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.0/activerecord-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activerecord-generated.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.0/activerecord.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activerecord.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: delegate 9 | - name: logger 10 | - name: monitor 11 | - name: mutex_m 12 | - name: singleton 13 | - name: time 14 | -------------------------------------------------------------------------------- /gems/activerecord/7.0/patch.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/patch.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.0/railties.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/railties.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.1/activerecord-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activerecord-generated.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.1/activerecord.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activerecord.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: delegate 9 | - name: logger 10 | - name: monitor 11 | - name: mutex_m 12 | - name: singleton 13 | - name: time 14 | -------------------------------------------------------------------------------- /gems/activerecord/7.1/patch.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/patch.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.1/railties.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/railties.rbs -------------------------------------------------------------------------------- /gems/activerecord/7.2/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - actionpack 3 | -------------------------------------------------------------------------------- /gems/activerecord/7.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: delegate 9 | - name: logger 10 | - name: monitor 11 | - name: mutex_m 12 | - name: singleton 13 | - name: time 14 | -------------------------------------------------------------------------------- /gems/activerecord/8.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - actionpack 3 | -------------------------------------------------------------------------------- /gems/activerecord/8.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: delegate 9 | - name: logger 10 | - name: monitor 11 | - name: mutex_m 12 | - name: singleton 13 | - name: time 14 | -------------------------------------------------------------------------------- /gems/activerecord/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - hibariya 3 | - ksss 4 | - Little-Rubyist 5 | - tk0miya 6 | -------------------------------------------------------------------------------- /gems/activestorage/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/activestorage/6.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | class User < ActiveRecord::Base 2 | has_one_attached :one_image 3 | has_many_attached :many_image 4 | end 5 | 6 | user = User.new 7 | one = ActiveStorage::Attached::One.new("one_image", user) 8 | one.url 9 | -------------------------------------------------------------------------------- /gems/activestorage/6.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /gems/activestorage/6.0/app/models/active_storage/current.rbs: -------------------------------------------------------------------------------- 1 | module ActiveStorage 2 | class Current < ActiveSupport::CurrentAttributes 3 | def self.host: () -> String 4 | def self.host=: (String) -> String 5 | def host: () -> String 6 | def host=: (String) -> String 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/activestorage/6.0/lib/attached.rbs: -------------------------------------------------------------------------------- 1 | module ActiveStorage 2 | # Abstract base class for the concrete ActiveStorage::Attached::One and ActiveStorage::Attached::Many 3 | # classes that both provide proxy access to the blob association for a record. 4 | class Attached 5 | attr_reader name: String 6 | 7 | attr_reader record: untyped # Model 8 | 9 | def initialize: (String name, untyped record) -> void 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/activestorage/6.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: tempfile 3 | -------------------------------------------------------------------------------- /gems/activestorage/6.1/_test: -------------------------------------------------------------------------------- 1 | ../6.0/_test -------------------------------------------------------------------------------- /gems/activestorage/6.1/app/models/active_storage/current.rbs: -------------------------------------------------------------------------------- 1 | ../../../../6.0/app/models/active_storage/current.rbs -------------------------------------------------------------------------------- /gems/activestorage/6.1/app/models/active_storage/record.rbs: -------------------------------------------------------------------------------- 1 | class ActiveStorage::Record < ActiveRecord::Base #:nodoc: 2 | end 3 | -------------------------------------------------------------------------------- /gems/activestorage/6.1/lib/attached.rbs: -------------------------------------------------------------------------------- 1 | ../../6.0/lib/attached.rbs -------------------------------------------------------------------------------- /gems/activestorage/6.1/lib/attached/many.rbs: -------------------------------------------------------------------------------- 1 | ../../../6.0/lib/attached/many.rbs -------------------------------------------------------------------------------- /gems/activestorage/6.1/lib/attached/one.rbs: -------------------------------------------------------------------------------- 1 | ../../../6.0/lib/attached/one.rbs -------------------------------------------------------------------------------- /gems/activestorage/6.1/lib/engine.rbs: -------------------------------------------------------------------------------- 1 | ../../6.0/lib/engine.rbs -------------------------------------------------------------------------------- /gems/activestorage/6.1/lib/reflection.rbs: -------------------------------------------------------------------------------- 1 | ../../6.0/lib/reflection.rbs -------------------------------------------------------------------------------- /gems/activestorage/6.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: tempfile 3 | -------------------------------------------------------------------------------- /gems/activestorage/7.0/_test: -------------------------------------------------------------------------------- 1 | ../6.0/_test -------------------------------------------------------------------------------- /gems/activestorage/7.0/app/models/active_storage/attachment.rbs: -------------------------------------------------------------------------------- 1 | ../../../../6.1/app/models/active_storage/attachment.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/app/models/active_storage/blob.rbs: -------------------------------------------------------------------------------- 1 | ../../../../6.1/app/models/active_storage/blob.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/app/models/active_storage/current.rbs: -------------------------------------------------------------------------------- 1 | module ActiveStorage 2 | class Current < ActiveSupport::CurrentAttributes 3 | def self.url_options: () -> Hash[Symbol, untyped] 4 | def self.url_options=: (Hash[Symbol, untyped]) -> Hash[Symbol, untyped] 5 | def url_options: () -> Hash[Symbol, untyped] 6 | def url_options=: (Hash[Symbol, untyped]) -> Hash[Symbol, untyped] 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/activestorage/7.0/app/models/active_storage/record.rbs: -------------------------------------------------------------------------------- 1 | ../../../../6.1/app/models/active_storage/record.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/lib/attached.rbs: -------------------------------------------------------------------------------- 1 | ../../6.0/lib/attached.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/lib/attached/many.rbs: -------------------------------------------------------------------------------- 1 | ../../../6.0/lib/attached/many.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/lib/attached/model.rbs: -------------------------------------------------------------------------------- 1 | ../../../6.1/lib/attached/model.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/lib/attached/one.rbs: -------------------------------------------------------------------------------- 1 | ../../../6.0/lib/attached/one.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/lib/engine.rbs: -------------------------------------------------------------------------------- 1 | ../../6.0/lib/engine.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/lib/reflection.rbs: -------------------------------------------------------------------------------- 1 | ../../6.0/lib/reflection.rbs -------------------------------------------------------------------------------- /gems/activestorage/7.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | ../6.0/manifest.yaml -------------------------------------------------------------------------------- /gems/activestorage/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - tk0miya 4 | -------------------------------------------------------------------------------- /gems/activesupport/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/activesupport/6.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class TestAttrInternal 2 | end 3 | -------------------------------------------------------------------------------- /gems/activesupport/6.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: monitor 3 | - name: date 4 | - name: singleton 5 | - name: logger 6 | - name: minitest 7 | - name: mutex_m 8 | - name: time 9 | - name: openssl 10 | - name: pathname 11 | - name: securerandom 12 | - name: erb 13 | -------------------------------------------------------------------------------- /gems/activesupport/7.0/activesupport-generated.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activesupport-generated.rbs -------------------------------------------------------------------------------- /gems/activesupport/7.0/activesupport.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/activesupport.rbs -------------------------------------------------------------------------------- /gems/activesupport/7.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: logger 9 | - name: minitest 10 | - name: monitor 11 | - name: mutex_m 12 | - name: openssl 13 | - name: singleton 14 | - name: time 15 | - name: securerandom 16 | - name: erb 17 | -------------------------------------------------------------------------------- /gems/activesupport/7.0/patch.rbs: -------------------------------------------------------------------------------- 1 | ../6.0/patch.rbs -------------------------------------------------------------------------------- /gems/activesupport/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - hibariya 3 | - ksss 4 | - ydah 5 | - tk0miya 6 | -------------------------------------------------------------------------------- /gems/addressable/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/arbre/1.7/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "arbre" 2 | 3 | class CustomComponent < Arbre::Component 4 | builder_method :custom_component 5 | end 6 | -------------------------------------------------------------------------------- /gems/arbre/1.7/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class CustomComponent < Arbre::Component 2 | end 3 | -------------------------------------------------------------------------------- /gems/arbre/1.7/arbre.rbs: -------------------------------------------------------------------------------- 1 | module Arbre 2 | class Element 3 | module BuilderMethods 4 | module ClassMethods 5 | def builder_method: (_ToS) -> void 6 | end 7 | end 8 | 9 | extend BuilderMethods::ClassMethods 10 | end 11 | 12 | module HTML 13 | class Tag < Element 14 | end 15 | 16 | class Div < Tag 17 | end 18 | end 19 | 20 | class Component < HTML::Div 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /gems/ast/2.4/_test/test.rbs: -------------------------------------------------------------------------------- 1 | module Kernel 2 | def String!: (String) -> void 3 | def Symbol!: (Symbol) -> void 4 | def Array!: (Array[untyped]) -> void 5 | def Node!: (AST::Node) -> void 6 | def Bool!: (bool) -> void 7 | end 8 | 9 | class X 10 | extend AST::Sexp 11 | end 12 | -------------------------------------------------------------------------------- /gems/ast/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - pocke 3 | -------------------------------------------------------------------------------- /gems/async/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/async/2.12/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/async/2.12/kernel.rbs: -------------------------------------------------------------------------------- 1 | module Kernel 2 | def Async: [Result] (*untyped arguments, **untyped options) { (::Async::Task[untyped], *untyped) -> Result } -> ::Async::Task[Result] 3 | 4 | def Sync: [Result] () { (::Async::Task[untyped]) -> Result } -> Result 5 | end 6 | -------------------------------------------------------------------------------- /gems/async/2.12/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/base64/0.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "base64" 5 | 6 | Base64.decode64(Base64.encode64("")) 7 | Base64.strict_decode64(Base64.strict_encode64("")) 8 | Base64.urlsafe_decode64(Base64.urlsafe_encode64("")) 9 | Base64.urlsafe_decode64(Base64.urlsafe_encode64("", padding: "true")) 10 | -------------------------------------------------------------------------------- /gems/base64/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/bcrypt/3.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: openssl 3 | -------------------------------------------------------------------------------- /gems/bigdecimal/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/binding_of_caller/1.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "binding_of_caller" 2 | 3 | BindingOfCaller::VERSION 4 | 5 | binding.of_caller(1) 6 | binding.callers 7 | binding.frame_count 8 | binding.frame_type 9 | binding.frame_description 10 | -------------------------------------------------------------------------------- /gems/binding_of_caller/1.0/binding_of_caller.rbs: -------------------------------------------------------------------------------- 1 | module BindingOfCaller 2 | VERSION: String 3 | 4 | module BindingExtensions 5 | def of_caller: (Integer) -> Binding 6 | def callers: () -> Array[Binding] 7 | def frame_count: () -> Integer 8 | def frame_type: () -> Symbol? 9 | def frame_description: () -> String? 10 | end 11 | end 12 | 13 | class Binding 14 | include BindingOfCaller::BindingExtensions 15 | end 16 | -------------------------------------------------------------------------------- /gems/browser/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/business_time/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/business_time/0.13/business_time.rbs: -------------------------------------------------------------------------------- 1 | module BusinessTime 2 | VERSION: String 3 | end 4 | -------------------------------------------------------------------------------- /gems/business_time/0.13/business_time/parsed_time.rbs: -------------------------------------------------------------------------------- 1 | module BusinessTime 2 | class ParsedTime 3 | include Comparable 4 | 5 | attr_reader hour: Integer 6 | attr_reader min: Integer 7 | attr_reader sec: Integer 8 | 9 | def initialize: (Integer hour, ?Integer min, ?Integer sec) -> void 10 | 11 | def self.parse: (Time | String time_or_string) -> BusinessTime::ParsedTime 12 | 13 | def to_s: () -> String 14 | 15 | def -: (Time other) -> Integer 16 | 17 | def <=>: (untyped other) -> Integer? 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /gems/business_time/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/cancancan/3.5/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - 'activerecord' 3 | - 'actionpack' 4 | -------------------------------------------------------------------------------- /gems/cancancan/3.5/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User 2 | def admin?: () -> bool 3 | end 4 | 5 | class Post < ActiveRecord::Base 6 | end 7 | 8 | class Ability 9 | include CanCan::Ability 10 | 11 | def initialize: (User user) -> void 12 | end 13 | 14 | class TestController < ActionController::Base 15 | @post: Post 16 | 17 | def show: () -> void 18 | end 19 | -------------------------------------------------------------------------------- /gems/carrierwave/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/carrierwave/3.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class AvatarUploader < CarrierWave::Uploader::Base 2 | end 3 | 4 | class MyUploader < CarrierWave::Uploader::Base 5 | include CarrierWave::RMagick 6 | end 7 | 8 | class ApplicationRecord < ActiveRecord::Base 9 | end 10 | 11 | class User < ApplicationRecord 12 | def avatar: () -> AvatarUploader 13 | end 14 | -------------------------------------------------------------------------------- /gems/caxlsx/4.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "caxlsx" 2 | 3 | package = Axlsx::Package.new 4 | package.to_stream 5 | io = package.to_stream(true) 6 | io.read if io 7 | 8 | workbook = package.workbook 9 | workbook.add_worksheet( 10 | name: 'worksheet name', 11 | ) 12 | -------------------------------------------------------------------------------- /gems/caxlsx/4.2/caxlsx.rbs: -------------------------------------------------------------------------------- 1 | module Axlsx 2 | class Package 3 | def to_stream: (?bool) -> (StringIO | false) 4 | def workbook: () ?{ (Workbook) -> void } -> Workbook 5 | end 6 | 7 | class Workbook 8 | def add_worksheet: (*untyped options) ?{ (Worksheet) -> void } -> Worksheet 9 | end 10 | 11 | class Worksheet 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/chartkick/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/chartkick/5.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | module Example 2 | include ChartKick::Helper 3 | 4 | def example: () -> void 5 | end 6 | -------------------------------------------------------------------------------- /gems/chronic/0.10/chronic.rbs: -------------------------------------------------------------------------------- 1 | # Classes 2 | module Chronic 3 | def self.parse: (String text, ?context: (:future | :past), ?now: untyped, ?hours24: boolish, ?week_start: (:sunday | :monday), ?guess: (bool | :begin | :middle | :end), ?ambiguous_time_range: (Integer | :none), ?endian_precedence: (:middle | :little | Array[:middle | :little]), ?ambiguous_year_future_bias: Integer ) -> untyped 4 | end 5 | -------------------------------------------------------------------------------- /gems/chunky_png/1.4.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - zlib 3 | -------------------------------------------------------------------------------- /gems/chunky_png/1.4.0/_test/test_1.rb: -------------------------------------------------------------------------------- 1 | # Basic API usage - Color, Dimension 2 | png = ChunkyPNG::Image.new(128, 128, ChunkyPNG::Color::TRANSPARENT) 3 | png[1, 1] = ChunkyPNG::Color.rgba(10, 20, 30, 128) 4 | png[2, 1] = ChunkyPNG::Color('black @ 0.5') 5 | png[3, 1] = ChunkyPNG::Color.rgb(255, 0, 128) 6 | png.metadata['title'] = 'Test image' 7 | puts png.metadata['title'] 8 | puts png.dimension.height.to_s 9 | puts png.dimension.width.to_s 10 | -------------------------------------------------------------------------------- /gems/chunky_png/1.4.0/_test/test_2.rb: -------------------------------------------------------------------------------- 1 | # Loading Data - Datastream/StreamImport 2 | image = ChunkyPNG::Image.from_rgba_stream(128, 128, File.read('pixeldata.rgba')) 3 | image = ChunkyPNG::Image.from_rgb_stream(128, 128, File.read('pixeldata.rgb')) 4 | image = ChunkyPNG::Image.from_file('file.png') 5 | File.open('file.png', 'rb') { |io| image = ChunkyPNG::Image.from_io(io) } 6 | image = ChunkyPNG::Image.from_blob(File.read('file.png')) 7 | -------------------------------------------------------------------------------- /gems/chunky_png/1.4.0/_test/test_4.rb: -------------------------------------------------------------------------------- 1 | image = ChunkyPNG::Image.from_rgba_stream(128, 128, File.read('pixeldata.rgba')) # or 2 | image.save('filename.png', :best_compression) 3 | File.open('newfile.png', 'wb' ) { |io| image.write(io) } 4 | png_data = image.to_blob(:fast_rgba) 5 | image.save('filename.png', :color_mode => ChunkyPNG::COLOR_INDEXED, :compression => Zlib::NO_COMPRESSION, :interlace => true) 6 | -------------------------------------------------------------------------------- /gems/circuitbox/2.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/circuitbox/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - yykamei 3 | -------------------------------------------------------------------------------- /gems/climate_control/1.2/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/climate_control/1.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "climate_control" 2 | 3 | a = ClimateControl.modify(ABC: "abc", MY_VAR1: "var1", EDITOR: nil) do 4 | "#{ENV['ABC']} #{ENV['MY_VAR1']}" 5 | end 6 | a.upcase 7 | 8 | xs = ClimateControl.unsafe_modify(XYZ: nil, MY_VAR2: "var2") do 9 | [ENV["MY_VAR2"]] 10 | end 11 | xs.detect { |x| x == "var1" } 12 | -------------------------------------------------------------------------------- /gems/climate_control/1.2/climate_control.rbs: -------------------------------------------------------------------------------- 1 | module ClimateControl 2 | def self.modify: [T] (?Hash[_ToS, String?] environment_overrides) { () -> T } -> T 3 | def self.unsafe_modify: [T] (?Hash[_ToS, String?] environment_overrides) { () -> T } -> T 4 | end 5 | -------------------------------------------------------------------------------- /gems/climate_control/1.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/climate_control/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - yykamei 3 | -------------------------------------------------------------------------------- /gems/code_ownership/1.39/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "code_ownership" 2 | 3 | class TestClass 4 | end 5 | 6 | CodeOwnership.for_class(TestClass)&.name 7 | CodeOwnership.for_file('/path/to/file.rb')&.name 8 | 9 | begin 10 | raise "error" 11 | rescue StandardError => e 12 | CodeOwnership.for_backtrace(e.backtrace)&.name 13 | end 14 | 15 | CodeOwnership.for_team('My Team') 16 | -------------------------------------------------------------------------------- /gems/code_ownership/1.39/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class TestClass 2 | end 3 | -------------------------------------------------------------------------------- /gems/code_ownership/1.39/code_ownership.rbs: -------------------------------------------------------------------------------- 1 | module CodeOwnership 2 | def self.for_file: (String) -> CodeTeams::Team? 3 | def self.for_team: (CodeTeams::Team | String) -> String 4 | def self.for_backtrace: (Array[String]?, ?excluded_teams: Array[CodeTeams::Team]) -> CodeTeams::Team? 5 | def self.for_class: (Class | Module) -> CodeTeams::Team? 6 | def self.validate!: (?autocorrect: bool, ?stage_changes: bool, files: Array[String]?) -> void 7 | end 8 | -------------------------------------------------------------------------------- /gems/code_ownership/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - euglena1215 3 | -------------------------------------------------------------------------------- /gems/code_teams/1.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "code_teams" 2 | 3 | team = CodeTeams.find('My Team') 4 | team.name if team 5 | -------------------------------------------------------------------------------- /gems/code_teams/1.0/code_teams.rbs: -------------------------------------------------------------------------------- 1 | module CodeTeams 2 | def self.all: () -> Array[Team] 3 | def self.find: (String) -> Team? 4 | 5 | class Team 6 | def name: () -> String 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/code_teams/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - euglena1215 3 | -------------------------------------------------------------------------------- /gems/commonmarker/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/commonmarker/1.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "commonmarker" 2 | 3 | Commonmarker.to_html('"Hi *there*"', options: { 4 | parse: { smart: true } 5 | }) 6 | 7 | doc = Commonmarker.parse("*Hello* world", options: { 8 | parse: { smart: true } 9 | }) 10 | puts(doc.to_html) # =>

Hello world

\n 11 | -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/_test/array.rb: -------------------------------------------------------------------------------- 1 | require "concurrent-ruby" 2 | 3 | array = Concurrent::Array.new 4 | 5 | array << 1 6 | array.include?(1) 7 | -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/_test/executor.rb: -------------------------------------------------------------------------------- 1 | require 'concurrent-ruby' 2 | 3 | Concurrent.executor(:io).post { p :io } 4 | Concurrent.executor(:fast).post { p :fast } 5 | Concurrent.executor(:immediate).post { p :immediate } 6 | 7 | Concurrent.global_io_executor.post { p :io } 8 | Concurrent.global_fast_executor.post { p :fast } 9 | Concurrent.global_immediate_executor.post { p :immediate } 10 | -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/_test/hash.rb: -------------------------------------------------------------------------------- 1 | require 'concurrent-ruby' 2 | 3 | hash = Concurrent::Hash.new 4 | 5 | hash[:a] = 1 6 | hash.key?(:a) 7 | hash.merge(b: 2) 8 | -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/_test/map.rb: -------------------------------------------------------------------------------- 1 | require 'concurrent-ruby' 2 | 3 | map = Concurrent::Map.new #: Concurrent::Map[Symbol, Integer] 4 | 5 | map[:a] = 1 6 | map.fetch(:b) { 2 } 7 | map.fetch(:c, 3) 8 | 9 | new_value = map.compute(:a) { |old_value| (old_value || 0) + 1 } 10 | new_value + 2 11 | map.compute(:a) { |_old_value| nil } 12 | 13 | new_value = map.compute_if_absent(:absent) { 3 } 14 | new_value + 2 15 | 16 | map.compute_if_present(:maybe_present) { |old_value| old_value + 1 } 17 | map.compute_if_present(:a) { |_old_value| nil } 18 | -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/array.rbs: -------------------------------------------------------------------------------- 1 | module Concurrent 2 | class Array[T] < ::Array[T] 3 | end 4 | end -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/hash.rbs: -------------------------------------------------------------------------------- 1 | module Concurrent 2 | class Hash[K, V] < ::Hash[K, V] 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/concurrent-ruby/1.1/utility/processor_counter.rbs: -------------------------------------------------------------------------------- 1 | module Concurrent 2 | def self.physical_processor_count: () -> Integer 3 | 4 | def self.processor_count: () -> Integer 5 | end 6 | -------------------------------------------------------------------------------- /gems/config/5.5/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "config" 2 | 3 | Config.load_and_set_settings(Config.setting_files("/path/to/config_root", "your_project_environment")) 4 | 5 | Config.load_and_set_settings("/path/to/yaml1", "/path/to/yaml2") 6 | -------------------------------------------------------------------------------- /gems/connection_pool/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/connection_pool/2.4/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "connection_pool" 5 | 6 | pool = ConnectionPool.new(size: 5, timeout: 5) { Hash.new } 7 | 8 | pool.with do |h| 9 | h['some-count'] 10 | end 11 | 12 | pool.then { |h| h['some-count'] } 13 | 14 | pool.with(timeout: 2.0) do |h| 15 | h['some-count'] 16 | end 17 | -------------------------------------------------------------------------------- /gems/connection_pool/2.4/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: timeout 3 | -------------------------------------------------------------------------------- /gems/csv/3.3/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: forwardable 3 | - name: stringio 4 | -------------------------------------------------------------------------------- /gems/csv/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/delayed_job/4.1/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - railties 3 | -------------------------------------------------------------------------------- /gems/delayed_job/4.1/lifecycle.rbs: -------------------------------------------------------------------------------- 1 | module Delayed 2 | class Lifecycle 3 | # TODO 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/delayed_job_active_record/4.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | configuration = Delayed::Backend::ActiveRecord.configuration 2 | configuration.reserve_sql_strategy = :default_sql 3 | configuration.reserve_sql_strategy = :optimized_sql 4 | -------------------------------------------------------------------------------- /gems/devise/4.9/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - 'activerecord' 3 | -------------------------------------------------------------------------------- /gems/devise/4.9/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "devise" 2 | require "active_record" 3 | 4 | class CustomSessionsController < Devise::SessionsController 5 | end 6 | 7 | class User < ActiveRecord::Base 8 | devise :database_authenticatable, :omniauthable, :confirmable, 9 | :recoverable, :registerable, :rememberable, 10 | :trackable, :timeoutable, :validatable, :lockable, 11 | authentication_keys: [:email] 12 | end 13 | -------------------------------------------------------------------------------- /gems/diff-lcs/1.5/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/diff-lcs/1.5/_test/test.rb: -------------------------------------------------------------------------------- 1 | require 'diff/lcs' 2 | 3 | seq1 = %w(a b c e h j l m n p) 4 | seq2 = %w(b c d e f j k l m r s t) 5 | seq3 = 'hoge' 6 | seq4 = 'hoga' 7 | 8 | lcs = Diff::LCS.LCS(seq1, seq2) 9 | lcs = Diff::LCS.LCS(seq3, seq4) 10 | diffs = Diff::LCS.diff(seq1, seq2) 11 | diffs = Diff::LCS.diff(seq3, seq4) 12 | Diff::LCS.patch!(seq1, diffs) 13 | -------------------------------------------------------------------------------- /gems/diff-lcs/1.5/diff-lcs.rbs: -------------------------------------------------------------------------------- 1 | module Diff 2 | end 3 | 4 | module Diff::LCS 5 | def self.LCS: (Array[String], Array[String]) -> Array[String] 6 | | (String, String) -> Array[String] 7 | def self.diff: (Array[String], Array[String]) -> Array[String] 8 | | (String, String) -> Array[String] 9 | 10 | def self.patch!: (Array[String], Array[String]) -> String 11 | end 12 | -------------------------------------------------------------------------------- /gems/dogstatsd-ruby/5.5/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: logger 8 | -------------------------------------------------------------------------------- /gems/dogstatsd-ruby/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - VTRyo 3 | -------------------------------------------------------------------------------- /gems/dotenv-rails/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/dotenv-rails/2.8/_test/env_files/file1.env: -------------------------------------------------------------------------------- 1 | KEY1=key1 2 | -------------------------------------------------------------------------------- /gems/dotenv-rails/2.8/_test/env_files/file2.env: -------------------------------------------------------------------------------- 1 | KEY1=key1-hoge 2 | KEY2=key2 3 | -------------------------------------------------------------------------------- /gems/enumerize/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/enumerize/2.5/_test/test.rb: -------------------------------------------------------------------------------- 1 | require 'enumerize' 2 | 3 | class User 4 | extend Enumerize 5 | 6 | enumerize :role, in: %i(user admin) 7 | end 8 | -------------------------------------------------------------------------------- /gems/enumerize/2.5/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User 2 | extend Enumerize 3 | extend Enumerize::Base::ClassMethods 4 | end 5 | -------------------------------------------------------------------------------- /gems/enumerize/2.5/patch.rbs: -------------------------------------------------------------------------------- 1 | module ActiveModel 2 | module Type 3 | class Value 4 | end 5 | end 6 | end 7 | 8 | module ActiveRecord 9 | module Type 10 | class Value 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/faker/2.23/faker-2.23.rbs: -------------------------------------------------------------------------------- 1 | module Faker 2 | class Lorem < Faker::Base 3 | # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/lorem.rb#L5 4 | def self.sentence: (?word_count: Integer, ?supplemental: bool, ?random_words_to_add: Integer) -> String 5 | def self.paragraph: (?sentence_count: Integer, ?supplemental: bool, ?random_sentences_to_add: Integer) -> String 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/faker/3.4.2/faker-2.23.rbs: -------------------------------------------------------------------------------- 1 | ../2.23/faker.rbs -------------------------------------------------------------------------------- /gems/faraday/2.5/_test/test_adapter.rbs: -------------------------------------------------------------------------------- 1 | class MyAdapter < Faraday::Adapter 2 | end 3 | -------------------------------------------------------------------------------- /gems/faraday/2.5/_test/test_adapter_registry.rb: -------------------------------------------------------------------------------- 1 | registry = Faraday::AdapterRegistry.new 2 | registry.get('Faraday::Connection') 3 | registry.get(:Faraday) 4 | registry.set(:Wind) 5 | registry.set(:Wave, nil) 6 | registry.set(:Sea, :new_name) 7 | registry.set(:Mountain, "another") 8 | registry.set(:Star, 123) 9 | -------------------------------------------------------------------------------- /gems/faraday/2.5/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: uri 3 | - name: forwardable 4 | -------------------------------------------------------------------------------- /gems/faraday/2.7/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/faraday/2.7/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "faraday" 5 | -------------------------------------------------------------------------------- /gems/faraday/2.7/_test/test_errors.rb: -------------------------------------------------------------------------------- 1 | Faraday::TooManyRequestsError.new 2 | -------------------------------------------------------------------------------- /gems/faraday/2.7/faraday-2.7.rbs: -------------------------------------------------------------------------------- 1 | module Faraday 2 | class TooManyRequestsError < ClientError 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/faraday/2.7/faraday.rbs: -------------------------------------------------------------------------------- 1 | ../2.5/faraday.rbs -------------------------------------------------------------------------------- /gems/faraday/2.7/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: uri 3 | - name: forwardable 4 | -------------------------------------------------------------------------------- /gems/faraday/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - yykamei 3 | -------------------------------------------------------------------------------- /gems/fcm/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/fcm/2.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | GOOGLE_APPLICATION_CREDENTIALS_PATH: String 2 | FIREBASE_PROJECT_ID: String 3 | -------------------------------------------------------------------------------- /gems/flexirest/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "flexirest" 2 | 3 | class Person < Flexirest::Base 4 | base_url "https://www.example.com/api/v1" 5 | 6 | get :all, "/people" 7 | get :find, "/people/:id" 8 | put :save, "/people/:id" 9 | post :create, "/people" 10 | delete :remove, "/people/:id" 11 | end 12 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Person < Flexirest::Base 2 | end 3 | 4 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/base.rbs: -------------------------------------------------------------------------------- 1 | module Flexirest 2 | class Base < BaseWithoutValidation 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/caching.rbs: -------------------------------------------------------------------------------- 1 | module Flexirest 2 | module Caching 3 | module ClassMethods 4 | def perform_caching: (?bool value) -> bool 5 | def perform_caching=: (bool value) -> bool 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/callbacks.rbs: -------------------------------------------------------------------------------- 1 | module Flexirest 2 | module Callbacks 3 | module ClassMethods 4 | def before_request: (Symbol method_name) -> void 5 | | () { (Symbol name, Request request) -> (false | :retry | untyped) } -> void 6 | def after_request: (Symbol method_name) -> void 7 | | () { (Symbol name, untyped response) -> (false | :retry | untyped) } -> void 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/connection.rbs: -------------------------------------------------------------------------------- 1 | module Flexirest 2 | class BaseException < StandardError 3 | end 4 | 5 | class TimeoutException < BaseException 6 | end 7 | 8 | class ConnectionFailedException < BaseException 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/flexirest.rbs: -------------------------------------------------------------------------------- 1 | module Flexirest 2 | class NoAttributeException < StandardError 3 | end 4 | 5 | class ValidationFailedException < StandardError 6 | end 7 | 8 | class MissingOptionalLibraryError < StandardError 9 | end 10 | 11 | def self.name: () -> String 12 | def self.name=: (String value) -> String 13 | end 14 | -------------------------------------------------------------------------------- /gems/flexirest/1.12/headers_list.rbs: -------------------------------------------------------------------------------- 1 | module Flexirest 2 | class HeadersList 3 | def []=: (String key, untyped value) -> untyped 4 | def []: (String key) -> untyped 5 | def each: (?bool split_multiple_headers) { (String key, untyped value) -> void } -> void 6 | def delete: (String key) -> untyped 7 | def keys: () -> Array[String] 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /gems/flipper/0.28/_test/test_basic.rb: -------------------------------------------------------------------------------- 1 | # Taken from https://github.com/flippercloud/flipper/blob/v0.28.0/examples/basic.rb 2 | 3 | require 'bundler/setup' 4 | require 'flipper' 5 | 6 | # check if search is enabled 7 | if Flipper.enabled?(:search) 8 | puts 'Search away!' 9 | else 10 | puts 'No search for you!' 11 | end 12 | 13 | puts 'Enabling Search...' 14 | Flipper.enable(:search) 15 | 16 | # check if search is enabled 17 | if Flipper.enabled?(:search) 18 | puts 'Search away!' 19 | else 20 | puts 'No search for you!' 21 | end 22 | -------------------------------------------------------------------------------- /gems/flipper/0.28/flipper/actor.rbs: -------------------------------------------------------------------------------- 1 | # Simple class for turning a flipper_id into an actor that can be based 2 | # to Flipper::Feature#enabled?. 3 | module Flipper 4 | class Actor 5 | attr_reader flipper_id: untyped 6 | 7 | def initialize: (untyped flipper_id) -> void 8 | 9 | def eql?: (untyped other) -> untyped 10 | 11 | alias == eql? 12 | 13 | def hash: () -> untyped 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/flipper/0.28/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: forwardable 8 | -------------------------------------------------------------------------------- /gems/geocoder/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/geocoder/1.8/_test/models.rb: -------------------------------------------------------------------------------- 1 | require "active_record" 2 | 3 | class Venue < ActiveRecord::Base 4 | geocoded_by :address 5 | end 6 | 7 | obj = Venue.new 8 | obj.distance_to([43.9,-98.6]) # distance from obj to point 9 | obj.bearing_to([43.9,-98.6]) # bearing from obj to point 10 | 11 | obj2 = Venue.new 12 | obj.bearing_from(obj2) # bearing from obj2 to obj 13 | -------------------------------------------------------------------------------- /gems/geocoder/1.8/_test/models.rbs: -------------------------------------------------------------------------------- 1 | class Venue < ActiveRecord::Base 2 | # Note: Geocoder::Store::ActiveRecord is automatically loaded by `.geocoded_by` call on Ruby. 3 | # But there is no special way to do it on RBS side. Therefore, developers should include it manually in their types. 4 | include Geocoder::Store::ActiveRecord 5 | end 6 | -------------------------------------------------------------------------------- /gems/geocoder/1.8/_test/test_basic_search.rb: -------------------------------------------------------------------------------- 1 | #Taken from https://github.com/alexreisner/geocoder/tree/v1.8.0 2 | 3 | require "geocoder" 4 | 5 | results = Geocoder.search("Paris") 6 | results.first&.coordinates 7 | 8 | results = Geocoder.search([48.856614, 2.3522219]) 9 | results.first&.address 10 | 11 | results = Geocoder.search("172.56.21.89") 12 | results.first&.coordinates 13 | results.first&.country 14 | -------------------------------------------------------------------------------- /gems/gimei/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/globalid/1.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "globalid" 5 | 6 | GlobalID.app = 'blah' 7 | 8 | class Person 9 | include GlobalID::Identification 10 | 11 | # @dynamic id, id= 12 | attr_accessor :id 13 | 14 | def self.find(id) 15 | new.tap { |obj| obj.id = id } 16 | end 17 | end 18 | 19 | person = Person.find(1) 20 | person_gid = person.to_global_id 21 | p person_gid.uri 22 | p person_gid.to_s 23 | p person_gid.model_id 24 | -------------------------------------------------------------------------------- /gems/globalid/1.1/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Person 2 | include GlobalID::Identification 3 | 4 | attr_accessor id: untyped 5 | 6 | def self.find: (untyped id) -> instance 7 | end 8 | -------------------------------------------------------------------------------- /gems/globalid/1.1/identification.rbs: -------------------------------------------------------------------------------- 1 | class GlobalID 2 | module Identification 3 | def to_global_id: (?::Hash[untyped, untyped] options) -> GlobalID 4 | 5 | alias to_gid to_global_id 6 | 7 | def to_gid_param: (?::Hash[untyped, untyped] options) -> String 8 | 9 | def to_signed_global_id: (?::Hash[untyped, untyped] options) -> SignedGlobalID 10 | 11 | alias to_sgid to_signed_global_id 12 | 13 | def to_sgid_param: (?::Hash[untyped, untyped] options) -> untyped 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/globalid/1.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/globalid/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - pocke 3 | -------------------------------------------------------------------------------- /gems/google-apis-bigquery_v2/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/google-apis-bigquery_v2/0.76/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "google-apis-bigquery_v2" 2 | require "googleauth" 3 | 4 | json_key = '' 5 | client = Google::Apis::BigqueryV2::BigqueryService.new 6 | client.authorization = Google::Auth::ServiceAccountCredentials.make_creds( 7 | json_key_io: StringIO.new(json_key), scope: [Google::Apis::BigqueryV2::AUTH_BIGQUERY] 8 | ) 9 | query = 'SELECT 1' 10 | request = Google::Apis::BigqueryV2::QueryRequest.new(query:, use_legacy_sql: false) 11 | client.query_job('this is project_id', request) 12 | -------------------------------------------------------------------------------- /gems/google-apis-core/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/google-apis-core/0.15/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "google-apis-core" 5 | 6 | class MyService < Google::Apis::Core::BaseService 7 | end 8 | -------------------------------------------------------------------------------- /gems/google-apis-core/0.15/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class MyService < Google::Apis::Core::BaseService 2 | end 3 | -------------------------------------------------------------------------------- /gems/google-apis-core/0.15/hashable.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Apis 3 | module Core 4 | # Adds to_hash to objects 5 | module Hashable 6 | # Convert object to hash representation 7 | # 8 | # @return [Hash] 9 | def to_h: () -> untyped 10 | 11 | # Recursively serialize an object 12 | # 13 | # @param [Object] val 14 | # @return [Hash] 15 | def self.process_value: (untyped val) -> untyped 16 | end 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /gems/google-apis-core/0.15/logging.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Apis 3 | module Core 4 | # Logging support 5 | module Logging 6 | # Get the logger instance 7 | # @return [Logger] 8 | def logger: () -> untyped 9 | end 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /gems/google-apis-core/0.15/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: signet 8 | -------------------------------------------------------------------------------- /gems/google-cloud-errors/1.5/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/google-cloud-errors/1.5/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "google-cloud-errors" 5 | 6 | begin 7 | rescue Google::Cloud::UnauthenticatedError => e 8 | end 9 | -------------------------------------------------------------------------------- /gems/google-cloud-errors/1.5/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/google-cloud-firestore/2.15/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "google-cloud-firestore" 2 | 3 | firestore = Google::Cloud::Firestore.new(project_id: "test-project") 4 | 5 | firestore.doc("users/test-user").set({ user_name: "test", url: "https://example.com/" }) 6 | firestore.doc("users/test-user").update({ user_name: "test", url: "https://example.com/new" }) 7 | firestore.doc("users/test-user").get.data 8 | firestore.doc("users/test-user").get.exists? 9 | firestore.doc("users/test-user").delete 10 | -------------------------------------------------------------------------------- /gems/google-cloud-firestore/2.15/google-cloud-firestore/document_reference.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Cloud 3 | module Firestore 4 | class DocumentReference 5 | def set: (Hash[untyped, untyped] data, ?merge: untyped?) -> void 6 | def update: (Hash[untyped, untyped] data, ?update_time: Time?) -> void 7 | def get: () -> DocumentSnapshot 8 | def delete: (?exists: bool?, ?update_time: Time?) -> untyped 9 | end 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /gems/google-cloud-firestore/2.15/google-cloud-firestore/document_snapshot.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Cloud 3 | module Firestore 4 | class DocumentSnapshot 5 | def data: () -> Hash[Symbol, untyped]? 6 | def exists?: () -> bool 7 | end 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "google-protobuf" 5 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/descriptor_pool.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class DescriptorPool 4 | def self.generated_pool: () -> instance 5 | 6 | public 7 | 8 | def add_serialized_file: (String descriptor_data) -> void 9 | 10 | def build: () { () -> void } -> void 11 | 12 | def lookup: (String name) -> Descriptor? 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class DescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/enum_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class EnumDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/enum_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class EnumOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/enum_value_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class EnumValueDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/enum_value_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class EnumValueOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/errors.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class Error < StandardError 4 | end 5 | class ParseError < Error 6 | end 7 | class TypeError < ::TypeError 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/extension_range_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class ExtensionRangeOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/field_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FieldDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/field_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FieldOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/file_descriptor.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FileDescriptor 4 | public 5 | 6 | def name: () -> String 7 | 8 | def syntax: () -> Symbol 9 | 10 | private 11 | 12 | def initialize: (untyped, untyped, untyped) -> void 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/file_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FileDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/file_descriptor_set.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FileDescriptorSet < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/file_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FileOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/generated_code_info.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class GeneratedCodeInfo < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/internal.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | module Internal 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: time 3 | - name: forwardable 4 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/message_exts.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | module MessageExts 4 | def self.included: (Class klass) -> void 5 | 6 | public 7 | 8 | def to_json: (?Hash[untyped, untyped] options) -> String 9 | 10 | def to_proto: (?Hash[untyped, untyped] options) -> String 11 | 12 | module ClassMethods 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/method_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class MethodDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/method_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class MethodOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/oneof_descriptor.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class OneofDescriptor 4 | include Enumerable[untyped] 5 | 6 | public 7 | 8 | def each: () { (FieldDescriptor) -> void } -> void 9 | 10 | def name: () -> String 11 | 12 | private 13 | 14 | def initialize: (untyped, untyped, untyped) -> void 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/oneof_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class OneofDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/oneof_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class OneofOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/service_descriptor_proto.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class ServiceDescriptorProto < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/service_options.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class ServiceOptions < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/any.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class Any < Google::Protobuf::AbstractMessage 4 | def self.pack: (AbstractMessage msg, ?String type_url_prefix) -> instance 5 | 6 | public 7 | 8 | def is: (Class klass) -> bool 9 | 10 | def pack: (AbstractMessage msg, ?String type_url_prefix) -> void 11 | 12 | def type_name: () -> String? 13 | 14 | def unpack: (Class klass) -> AbstractMessage? 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/duration.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class Duration < Google::Protobuf::AbstractMessage 4 | public 5 | 6 | def to_f: () -> Float 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/field_mask.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class FieldMask < Google::Protobuf::AbstractMessage 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/null_value.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | module NullValue 4 | def self.descriptor: () -> EnumDescriptor 5 | 6 | def self.lookup: (Integer) -> nil 7 | 8 | def self.resolve: (Symbol) -> void 9 | 10 | NULL_VALUE: Integer 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/timestamp.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class Timestamp < Google::Protobuf::AbstractMessage 4 | def self.from_time: (Time time) -> instance 5 | 6 | public 7 | 8 | def from_time: (Time time) -> self 9 | 10 | def to_f: () -> Float 11 | 12 | def to_i: () -> Integer 13 | 14 | def to_time: () -> Time 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/unexpected_struct_type.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class UnexpectedStructType < Google::Protobuf::Error 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/google-protobuf/3.22/well_known_types/value.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | module Protobuf 3 | class Value < Google::Protobuf::AbstractMessage 4 | def self.from_ruby: (untyped value) -> instance 5 | 6 | public 7 | 8 | def from_ruby: (untyped value) -> self 9 | 10 | def to_ruby: (?untyped recursive) -> untyped 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/googleauth/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/googleauth/1.11/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "googleauth" 2 | 3 | class MyCredentials < Google::Auth::Credentials 4 | # Set the default scope for these credentials 5 | self.scope = "http://example.com/my_scope" 6 | end 7 | 8 | Google::Auth::ServiceAccountCredentials.make_creds( 9 | json_key_io: StringIO.new(''), scope: [] 10 | ) 11 | -------------------------------------------------------------------------------- /gems/googleauth/1.11/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class MyCredentials < Google::Auth::Credentials 2 | end 3 | -------------------------------------------------------------------------------- /gems/googleauth/1.11/json_key_reader.rbs: -------------------------------------------------------------------------------- 1 | module Google 2 | # Module Auth provides classes that provide Google-specific authorization 3 | # used to access Google APIs. 4 | module Auth 5 | # JsonKeyReader contains the behaviour used to read private key and 6 | # client email fields from the service account 7 | module JsonKeyReader 8 | def read_json_key: (untyped json_key_io) -> ::Array[untyped] 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/grpc/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/grpc/1.63/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "grpc" 2 | 3 | begin 4 | raise GRPC::Unavailable 5 | rescue GRPC::BadStatus => e 6 | # nop 7 | end 8 | -------------------------------------------------------------------------------- /gems/grpc/1.63/grpc.rbs: -------------------------------------------------------------------------------- 1 | module GRPC 2 | class BadStatus < StandardError 3 | end 4 | 5 | class Unavailable < BadStatus 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/hashdiff/1.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "hashdiff" 5 | 6 | diff1 = Hashdiff.diff({a:{x:2, y:3, z:4}, b:{x:3, z:45}}, {a:{y:3}, b:{y:3, z:30}}) 7 | diff2 = Hashdiff.diff({ a: 1, b: { d: 2, a: 3 }, c: 4 }, { a: 2, b: { d: 2, a: 7 }, c: 5 }, ignore_keys: :a) 8 | -------------------------------------------------------------------------------- /gems/hashdiff/1.1/hashdiff.rbs: -------------------------------------------------------------------------------- 1 | module Hashdiff 2 | def self.diff: (::Hash[untyped, untyped] obj1, ::Hash[untyped, untyped] obj2, ?::Hash[::Symbol, untyped] options) ?{ () -> untyped } -> ( ::Array[untyped] ) 3 | end 4 | -------------------------------------------------------------------------------- /gems/hashie/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/hashie/5.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "hashie" 5 | 6 | mash = Hashie::Mash.new 7 | -------------------------------------------------------------------------------- /gems/hashie/5.0/hashie.rbs: -------------------------------------------------------------------------------- 1 | module Hashie 2 | class Mash < Hash[untyped, untyped] 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/holiday_jp/0.8/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - date 3 | -------------------------------------------------------------------------------- /gems/holiday_jp/0.8/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "holiday_jp" 2 | 3 | holidays = HolidayJp.between(Date.new(2010, 9, 14), Date.new(2010, 9, 21)) # => [#] 4 | holidays[0].name # => 敬老の日 5 | holidays[0].date # => Mon, 20 Sep 2010 6 | HolidayJp.holiday?(Date.new(2016, 8 ,11)) # => true 7 | -------------------------------------------------------------------------------- /gems/holidays/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/holidays/8.4/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - date 3 | -------------------------------------------------------------------------------- /gems/holidays/8.4/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "holidays" 5 | 6 | Holidays::WEEKS 7 | Holidays::MONTH_LENGTHS 8 | Holidays::DAY_SYMBOLS 9 | 10 | holidays = Holidays.on(Date.civil(2022, 8, 11), :jp) 11 | holidays[0][:date] 12 | holidays[0][:name] 13 | holidays[0][:regions] 14 | 15 | holidays = Holidays.between(Date.civil(2022, 8, 10), Date.civil(2022, 8, 12), :jp) 16 | holidays[0][:date] 17 | holidays[0][:name] 18 | holidays[0][:regions] 19 | -------------------------------------------------------------------------------- /gems/holidays/8.4/holidays.rbs: -------------------------------------------------------------------------------- 1 | module Holidays 2 | WEEKS: [Symbol, Integer] 3 | 4 | MONTH_LENGTHS: ::Array[Integer] 5 | 6 | DAY_SYMBOLS: ::Array[Symbol] 7 | 8 | def self.on: (untyped date, *untyped options) -> Array[{ date: untyped, name: String, regions: Array[Symbol] }] 9 | 10 | def self.between: (untyped start_date, untyped end_date, *untyped options) -> Array[{ date: untyped, name: String, regions: ::Array[Symbol] }] 11 | end 12 | -------------------------------------------------------------------------------- /gems/http/5.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "http" 2 | 3 | response = HTTP::Response.new( 4 | status: 200, 5 | version: "1.1", 6 | body: "Hello world!", 7 | ) 8 | 9 | response.code == 200 10 | -------------------------------------------------------------------------------- /gems/http/5.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: forwardable 3 | - name: delegate 4 | -------------------------------------------------------------------------------- /gems/httparty/0.18/_test/test_1.rbs: -------------------------------------------------------------------------------- 1 | class Foo 2 | def initialize: (Integer page) -> void 3 | def users: () -> void 4 | include HTTParty 5 | extend HTTParty::ClassMethods 6 | @options: Hash[Symbol, untyped] 7 | end 8 | -------------------------------------------------------------------------------- /gems/httparty/0.18/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: uri 3 | - name: net-http 4 | -------------------------------------------------------------------------------- /gems/httpclient/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/httpclient/2.8/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: uri 3 | -------------------------------------------------------------------------------- /gems/httpclient/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/i18n/1.10/_test/config/locales/en.yml: -------------------------------------------------------------------------------- 1 | en: 2 | test: This is a test! 3 | -------------------------------------------------------------------------------- /gems/i18n/1.10/_test/config/locales/ja.yml: -------------------------------------------------------------------------------- 1 | ja: 2 | test: テストです。 3 | -------------------------------------------------------------------------------- /gems/i18n/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - takahashim 3 | -------------------------------------------------------------------------------- /gems/json-jwt/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/json-jwt/1.16/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: openssl 3 | -------------------------------------------------------------------------------- /gems/jwt/2.5/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class CustomAlgorithm 2 | def alg: () -> ::String 3 | def sign: (data: ::String, signing_key: untyped) -> ::String 4 | def valid_alg?: (String alg_to_validate) -> bool 5 | def verify: (data: untyped, signature: ::String, verification_key: untyped) -> bool 6 | end 7 | -------------------------------------------------------------------------------- /gems/kaminari-actionview/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/kaminari-actionview/1.2/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - actionpack 3 | -------------------------------------------------------------------------------- /gems/kaminari-actionview/1.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "kaminari-actionview" 2 | -------------------------------------------------------------------------------- /gems/kaminari-actionview/1.2/kaminari-actionview.rbs: -------------------------------------------------------------------------------- 1 | module ActionView 2 | class Base 3 | include Kaminari::Helpers::HelperMethods 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/kaminari-activerecord/1.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "kaminari-activerecord" 2 | 3 | class User < ActiveRecord::Base 4 | end 5 | 6 | 7 | User.page(1).per(10) 8 | User.where(name: "John").page(1).per(10) 9 | -------------------------------------------------------------------------------- /gems/kaminari-activerecord/1.2/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User < ActiveRecord::Base 2 | extend ::ActiveRecord::Base::ClassMethods[User, ActiveRecord_Relation, Integer] 3 | 4 | class ActiveRecord_Relation < ::ActiveRecord::Relation 5 | include ::ActiveRecord::Relation::Methods[User, Integer] 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/kaminari-core/1.2/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class ModelRelation 2 | include Kaminari::PageScopeMethods 3 | 4 | def limit: (Integer num) -> self 5 | def offset: (Integer num) -> self 6 | end 7 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/launchdarkly-server-sdk.rbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruby/gem_rbs_collection/52a7ef8a9328fb2413e3b42dd8ee37deb703a940/gems/launchdarkly-server-sdk/6.4/launchdarkly-server-sdk.rbs -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Namespace for the LaunchDarkly Ruby SDK. 3 | # 4 | module LaunchDarkly 5 | end 6 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/impl.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | # 3 | # Internal implementation classes. Everything in this module should be considered unsupported 4 | # and subject to change. 5 | # 6 | # @since 5.5.0 7 | # @private 8 | # 9 | module Impl 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/impl/repeating_task.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | module Impl 3 | class RepeatingTask 4 | def initialize: (untyped interval, untyped start_delay, untyped task, untyped logger) -> void 5 | 6 | def start: () -> untyped 7 | 8 | def stop: () -> (untyped | nil | nil) 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/impl/unbounded_pool.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | module Impl 3 | # A simple thread safe generic unbounded resource pool abstraction 4 | class UnboundedPool 5 | def initialize: (untyped instance_creator, untyped instance_destructor) -> void 6 | 7 | def acquire: () -> untyped 8 | 9 | def release: (untyped instance) -> untyped 10 | 11 | def dispose_all: () -> untyped 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/integrations.rbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruby/gem_rbs_collection/52a7ef8a9328fb2413e3b42dd8ee37deb703a940/gems/launchdarkly-server-sdk/6.4/ldclient-rb/integrations.rbs -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/newrelic.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | # @private 3 | class LDNewRelic 4 | NR_ENABLED: bool 5 | 6 | def self.annotate_transaction: (untyped key, untyped value) -> (untyped | nil) 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/polling.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | # @private 3 | class PollingProcessor 4 | def initialize: (untyped config, untyped requestor) -> void 5 | 6 | def initialized?: () -> untyped 7 | 8 | def start: () -> untyped 9 | 10 | def stop: () -> untyped 11 | 12 | def poll: () -> untyped 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/ldclient-rb/version.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | VERSION: "6.4.0" 3 | end 4 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: forwardable 8 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/6.4/stub.rbs: -------------------------------------------------------------------------------- 1 | module Observable 2 | end 3 | 4 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/_test/multi_context.rb: -------------------------------------------------------------------------------- 1 | # https://docs.launchdarkly.com/sdk/features/user-context-config#ruby 2 | multi_context = LaunchDarkly::LDContext.create_multi([ 3 | LaunchDarkly::LDContext.with_key("user-key-123abc"), 4 | LaunchDarkly::LDContext.with_key("device-key-123abc", "device"), 5 | ]) 6 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/_test/non_user_context.rb: -------------------------------------------------------------------------------- 1 | # https://docs.launchdarkly.com/sdk/features/user-context-config#ruby 2 | LaunchDarkly::LDContext.with_key("context-key-123abc", "organization") 3 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/launchdarkly-server-sdk.rbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruby/gem_rbs_collection/52a7ef8a9328fb2413e3b42dd8ee37deb703a940/gems/launchdarkly-server-sdk/7.2/launchdarkly-server-sdk.rbs -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/ldclient-rb.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Namespace for the LaunchDarkly Ruby SDK. 3 | # 4 | module LaunchDarkly 5 | type context = Hash[Symbol, untyped] | LDContext 6 | end 7 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/ldclient-rb/impl.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | # 3 | # Internal implementation classes. Everything in this module should be considered unsupported 4 | # and subject to change. 5 | # 6 | # @since 5.5.0 7 | # @private 8 | # 9 | module Impl 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/ldclient-rb/impl/repeating_task.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | module Impl 3 | class RepeatingTask 4 | def initialize: (untyped interval, untyped start_delay, untyped task, untyped logger) -> void 5 | 6 | def start: () -> untyped 7 | 8 | def stop: () -> (untyped | nil | nil) 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/ldclient-rb/impl/unbounded_pool.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | module Impl 3 | # A simple thread safe generic unbounded resource pool abstraction 4 | class UnboundedPool 5 | def initialize: (untyped instance_creator, untyped instance_destructor) -> void 6 | 7 | def acquire: () -> untyped 8 | 9 | def release: (untyped instance) -> untyped 10 | 11 | def dispose_all: () -> untyped 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/ldclient-rb/integrations.rbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruby/gem_rbs_collection/52a7ef8a9328fb2413e3b42dd8ee37deb703a940/gems/launchdarkly-server-sdk/7.2/ldclient-rb/integrations.rbs -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/ldclient-rb/version.rbs: -------------------------------------------------------------------------------- 1 | module LaunchDarkly 2 | VERSION: "7.2.0" 3 | end 4 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: forwardable 8 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/7.2/stub.rbs: -------------------------------------------------------------------------------- 1 | module Observable 2 | end 3 | -------------------------------------------------------------------------------- /gems/launchdarkly-server-sdk/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - soutaro 3 | -------------------------------------------------------------------------------- /gems/line-bot-api/1.25/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: net-http 3 | -------------------------------------------------------------------------------- /gems/listen/3.9/_test/test.rb: -------------------------------------------------------------------------------- 1 | listener = Listen.to('dir/to/listen', 'dir/to/listen2') do |modified, added, removed| 2 | puts "modified absolute path: #{modified}" 3 | puts "added absolute path: #{added}" 4 | puts "removed absolute path: #{removed}" 5 | end 6 | 7 | listener.start # not blocking 8 | 9 | sleep 10 | -------------------------------------------------------------------------------- /gems/listen/3.9/_test/test2.rb: -------------------------------------------------------------------------------- 1 | listener = Listen.to('dir/path/to/listen') { |modified, added, removed| puts 'handle changes here...' } 2 | 3 | listener.start 4 | listener.paused? # => false 5 | listener.processing? # => true 6 | 7 | listener.pause # stops processing changes (but keeps on collecting them) 8 | listener.paused? # => true 9 | listener.processing? # => false 10 | 11 | # listener.unpause # resumes processing changes ("start" would do the same) 12 | listener.stop # stop both listening to changes and processing them 13 | -------------------------------------------------------------------------------- /gems/listen/3.9/_test/test3.rb: -------------------------------------------------------------------------------- 1 | listener = Listen.to('dir/path/to/listen', ignore: /\.txt/) { |modified, added, removed| } 2 | listener.start 3 | listener.ignore! /\.pkg/ # overwrite all patterns and only ignore pkg extension. 4 | listener.ignore /\.rb/ # ignore rb extension in addition of pkg. 5 | sleep 6 | -------------------------------------------------------------------------------- /gems/mail/2.8/_test/test.rb: -------------------------------------------------------------------------------- 1 | address = Mail::Address.new('Fuga Kkbn (My email address) ') 2 | address.domain 3 | 4 | mail = Mail.new 5 | mail.from = 'fugakkbn@example.com' 6 | mail.to = 'you@example.com' 7 | mail.subject = 'This is a test email' 8 | mail.body = 'Some simple body' 9 | mail.to_s 10 | -------------------------------------------------------------------------------- /gems/marcel/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/marcel/1.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: pathname 3 | -------------------------------------------------------------------------------- /gems/marcel/1.0/marcel.rbs: -------------------------------------------------------------------------------- 1 | module Marcel 2 | class Magic 3 | attr_reader type: String 4 | attr_reader mediatype: String 5 | attr_reader subtype: String 6 | 7 | def self.by_magic: (IO | StringIO) -> instance 8 | end 9 | 10 | class MimeType 11 | def self.for: (?Pathname | IO | StringIO pathname_or_io, ?name: String, ?extension: String, ?declared_type: String) -> String 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/mime-types/3.5/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: forwardable 3 | -------------------------------------------------------------------------------- /gems/mini_magick/4.13/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/mini_magick/4.13/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "mini_magick" 2 | 3 | image = MiniMagick::Image.open("input.jpg") 4 | 5 | # #resize returns self 6 | image.resize("100x100").resize("50x50") 7 | 8 | # #format returns self 9 | image.format("png").format("jpg") 10 | 11 | # Manually define dynamically generated methods 12 | image.type 13 | image.type("foo").resize("100x100") 14 | -------------------------------------------------------------------------------- /gems/mini_magick/4.13/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: pathname 8 | - name: tempfile 9 | - name: uri 10 | -------------------------------------------------------------------------------- /gems/mini_magick/5.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/mini_magick/5.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: logger 3 | - name: pathname 4 | - name: tempfile 5 | - name: tmpdir 6 | - name: uri 7 | -------------------------------------------------------------------------------- /gems/mini_magick/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - aki19035vc 3 | -------------------------------------------------------------------------------- /gems/mini_mime/0.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "mini_mime" 2 | 3 | MiniMime.lookup_by_filename("foo.txt") 4 | MiniMime.lookup_by_extension("txt") 5 | MiniMime.lookup_by_content_type("text/plain") 6 | 7 | raise unless info = MiniMime.lookup_by_filename("foo.txt") 8 | 9 | info.extension 10 | info.content_type 11 | info.encoding 12 | info[0] 13 | info.binary? 14 | 15 | MiniMime.lookup_by_filename("foo") #=> nil 16 | -------------------------------------------------------------------------------- /gems/mini_mime/0.1/mini_mime.rbs: -------------------------------------------------------------------------------- 1 | module MiniMime 2 | def self.lookup_by_filename: (String filename) -> Info? 3 | def self.lookup_by_extension: (String extension) -> Info? 4 | def self.lookup_by_content_type: (String mime) -> Info? 5 | 6 | class Info 7 | attr_accessor extension: String 8 | attr_accessor content_type: String 9 | attr_accessor encoding: String 10 | 11 | def []: (Integer idx) -> String 12 | def binary?: () -> bool 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /gems/mini_mime/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ursm 3 | -------------------------------------------------------------------------------- /gems/minitest/5.25/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "minitest" 5 | 6 | Minitest.clock_time 7 | Minitest.filter_backtrace(caller) 8 | Minitest.process_args 9 | Minitest.load_plugins 10 | Minitest.init_plugins({}) 11 | Minitest.after_run do end 12 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/assertion.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Represents run failures. 3 | # 4 | class Minitest::Assertion < ::Exception 5 | def error: () -> self 6 | 7 | # 11 | # Where was this run before an assertion was raised? 12 | # 13 | def location: () -> untyped 14 | def result_code: () -> untyped 15 | def result_label: () -> "Failure" 16 | RE: Regexp 17 | end 18 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/compress.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Compresses backtraces. 3 | # 4 | module Minitest::Compress 5 | # 9 | # Takes a backtrace (array of strings) and compresses repeating cycles in it to 10 | # make it more readable. 11 | # 12 | def compress: (untyped orig) -> untyped 13 | end 14 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/error_on_warning.rbs: -------------------------------------------------------------------------------- 1 | module Minitest::ErrorOnWarning 2 | def warn: (untyped message, ?category: untyped?) -> untyped 3 | end 4 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/expectation.rbs: -------------------------------------------------------------------------------- 1 | class Minitest::Expectation < ::Struct[untyped] 2 | end 3 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/parallel.rbs: -------------------------------------------------------------------------------- 1 | module Minitest::Parallel 2 | end 3 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/parallel/test.rbs: -------------------------------------------------------------------------------- 1 | module Minitest::Parallel::Test 2 | def _synchronize: () { () -> untyped } -> untyped 3 | end 4 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/parallel/test/class_methods.rbs: -------------------------------------------------------------------------------- 1 | module Minitest::Parallel::Test::ClassMethods 2 | def run_one_method: (untyped klass, untyped method_name, untyped reporter) -> untyped 3 | 4 | def test_order: () -> :parallel 5 | end 6 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/reporter.rbs: -------------------------------------------------------------------------------- 1 | class Minitest::Reporter < ::Minitest::AbstractReporter 2 | def initialize: (?untyped io, ?::Hash[untyped, untyped] options) -> void 3 | attr_accessor io: untyped 4 | attr_accessor options: untyped 5 | end 6 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/skip.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Assertion raised when skipping a run. 3 | # 4 | class Minitest::Skip < ::Minitest::Assertion 5 | def result_label: () -> "Skipped" 6 | end 7 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/spec.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Minitest::Spec -- The faster, better, less-magical spec framework! 3 | # 4 | # For a list of expectations, see Minitest::Expectations. 5 | # 6 | class Minitest::Spec < ::Minitest::Test 7 | def self.current: () -> untyped 8 | def initialize: (untyped name) -> void 9 | extend Minitest::Spec::DSL 10 | include Minitest::Spec::DSL::InstanceMethods 11 | end 12 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/unexpected_error.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Assertion wrapping an unexpected error that was raised during a run. 3 | # 4 | class Minitest::UnexpectedError < ::Minitest::Assertion 5 | def initialize: (untyped error) -> void 6 | def backtrace: () -> untyped 7 | def message: () -> ::String 8 | def result_label: () -> "Error" 9 | attr_accessor error: untyped 10 | include Minitest::Compress 11 | BASE_RE: Regexp 12 | end 13 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/unexpected_warning.rbs: -------------------------------------------------------------------------------- 1 | # 2 | # Assertion raised on warning when running in -Werror mode. 3 | # 4 | class Minitest::UnexpectedWarning < ::Minitest::Assertion 5 | def result_label: () -> "Warning" 6 | end 7 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/unit.rbs: -------------------------------------------------------------------------------- 1 | class Minitest::Unit 2 | def self.autorun: () -> untyped 3 | def self.after_tests: () { (?) -> untyped } -> untyped 4 | end 5 | -------------------------------------------------------------------------------- /gems/minitest/5.25/minitest/unit/test_case.rbs: -------------------------------------------------------------------------------- 1 | class Minitest::Unit::TestCase < ::Minitest::Test 2 | def self.inherited: (untyped klass) -> untyped 3 | end 4 | -------------------------------------------------------------------------------- /gems/minitest/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/moji/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/moji/1.6/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "moji" 2 | 3 | Moji.han_to_zen('ABC') 4 | 5 | Moji.zen_to_han('ABC') 6 | -------------------------------------------------------------------------------- /gems/moji/1.6/moji.rbs: -------------------------------------------------------------------------------- 1 | module Moji 2 | def self?.han_to_zen: (::String str, ?untyped type) -> String 3 | 4 | def self?.zen_to_han: (::String str, ?untyped type) -> String 5 | end 6 | -------------------------------------------------------------------------------- /gems/moneta/1.6/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/moneta/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - yykamei 3 | -------------------------------------------------------------------------------- /gems/mysql2-cs-bind/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/mysql2-cs-bind/0.1/mysql2-cs-bind.rbs: -------------------------------------------------------------------------------- 1 | module Mysql2 2 | class Client[ResultType] 3 | def xquery: (String sql, *untyped, as: :hash, **untyped) -> ResultAsHash 4 | | (String sql, *untyped, as: :array, **untyped) -> ResultAsArray 5 | | (String sql, *untyped, **untyped) -> ResultType 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/mysql2/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/_test/client.rb: -------------------------------------------------------------------------------- 1 | client = Mysql2::Client.new 2 | 3 | client.query("UPDATE users SET age = age + 1 WHERE name = 'John'") 4 | if client.affected_rows == 0 5 | puts "No rows were updated" 6 | else 7 | puts "Updated #{client.affected_rows} rows" 8 | end 9 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/_test/error_handling.rb: -------------------------------------------------------------------------------- 1 | require "mysql2" 2 | 3 | begin 4 | Mysql2::Client.new.query("INSERT INTO users (name) VALUES ('john')") 5 | rescue Mysql2::Error => e 6 | puts e.error_number 7 | end 8 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/_test/new.rb: -------------------------------------------------------------------------------- 1 | Mysql2::Client.new( 2 | host: '127.0.0.1', 3 | port: 3306, 4 | username: 'user', 5 | password: 'password', 6 | database: 'database', 7 | database_timezone: :local, 8 | cast_booleans: true, 9 | symbolize_keys: true, 10 | reconnect: true, 11 | flags: Mysql2::Client::MULTI_STATEMENTS, 12 | ) 13 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/_test/result.rb: -------------------------------------------------------------------------------- 1 | client = Mysql2::Client.new 2 | result = client.query("SELECT * FROM users WHERE age > 10") 3 | result.size 4 | result.to_a 5 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/_test/statement.rb: -------------------------------------------------------------------------------- 1 | client = Mysql2::Client.new 2 | 3 | statement = client.prepare("INSERT INTO users (name) VALUES (?)") 4 | result = statement.execute('John') 5 | result.size 6 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/error.rbs: -------------------------------------------------------------------------------- 1 | module Mysql2 2 | class Error < StandardError 3 | attr_reader error_number: Integer 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: bigdecimal 8 | - name: date 9 | -------------------------------------------------------------------------------- /gems/mysql2/0.5/statement.rbs: -------------------------------------------------------------------------------- 1 | module Mysql2 2 | class Statement 3 | def execute: (*untyped, **untyped) -> (Mysql2::ResultAsHash | Mysql2::ResultAsArray) 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/net-smtp/0.5/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: net-protocol 3 | -------------------------------------------------------------------------------- /gems/net-smtp/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/nkf/0.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "nkf" 5 | 6 | NKF.guess("str") 7 | NKF.nkf("-w", "str") 8 | -------------------------------------------------------------------------------- /gems/nkf/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/nokogiri/1.11/patch.rbs: -------------------------------------------------------------------------------- 1 | module Racc 2 | class Parser 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/observer/0.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "observer" 5 | -------------------------------------------------------------------------------- /gems/observer/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/octokit/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/octokit/8.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "octokit" 5 | 6 | # Provide authentication credentials 7 | client = Octokit::Client.new(:access_token => 'personal_access_token') 8 | 9 | # You can still use the username/password syntax by replacing the password value with your PAT. 10 | # client = Octokit::Client.new(:login => 'defunkt', :password => 'personal_access_token') 11 | 12 | # Fetch the current user 13 | client.user 14 | -------------------------------------------------------------------------------- /gems/oga/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/openid_connect/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/openid_connect/2.3/_test/test.rbs: -------------------------------------------------------------------------------- 1 | YOUR_CLIENT_ID: String 2 | YOUR_CLIENT_SECRET: String 3 | YOUR_REDIRECT_URI: String 4 | YOUR_USERNAME: String 5 | YOUR_PASSWORD: String 6 | YOUR_AUTHORIZATION_CODE: String 7 | YOUR_REFRESH_TOKEN_FOR_USER: String 8 | -------------------------------------------------------------------------------- /gems/operator_recordable/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/operator_recordable/2.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "operator_recordable" 5 | require "active_record" 6 | 7 | class ApplicationRecord < ActiveRecord::Base 8 | self.abstract_class = true 9 | 10 | include OperatorRecordable::Extension 11 | end 12 | 13 | class Post < ApplicationRecord 14 | record_operator_on :create, :update, :destroy 15 | end 16 | 17 | class Operator < ApplicationRecord 18 | end 19 | 20 | OperatorRecordable.operator = Operator.new 21 | -------------------------------------------------------------------------------- /gems/operator_recordable/2.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | include OperatorRecordable::Extension 3 | extend OperatorRecordable::Extension::ClassMethods 4 | end 5 | 6 | class Post < ApplicationRecord 7 | end 8 | 9 | class Operator < ApplicationRecord 10 | end 11 | -------------------------------------------------------------------------------- /gems/operator_recordable/2.0/operator_recordable.rbs: -------------------------------------------------------------------------------- 1 | module OperatorRecordable 2 | module Extension 3 | module ClassMethods 4 | def record_operator_on: (*untyped) -> void 5 | end 6 | end 7 | 8 | def self.config: () -> Hash[untyped, untyped] 9 | def self.operator: () -> untyped 10 | def self.operator=: (untyped operator) -> untyped 11 | end 12 | -------------------------------------------------------------------------------- /gems/parallel/1.20/_test/control.rb: -------------------------------------------------------------------------------- 1 | puts Parallel.map([1, 2, 3]) { |x| raise Parallel::Break, x if x == 2 } == 2 2 | 3 | puts Parallel.map([1, 2, 3]) { |x| raise Parallel::Break.new(x) if x == 2 } == 2 4 | 5 | Parallel.map([1, 2, 3]) do |x| 6 | if x == 1 7 | sleep 0.1 8 | puts 'DEAD' 9 | raise Parallel::Kill 10 | elsif x == 3 11 | sleep 10 12 | else 13 | x 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/parallel/1.20/_test/number.rb: -------------------------------------------------------------------------------- 1 | Parallel.each(1..5) { |i| puts "#{i}: #{Parallel.worker_number / 2.0}" } 2 | 3 | puts Parallel.physical_processor_count.even? 4 | 5 | puts Parallel.processor_count.odd? 6 | -------------------------------------------------------------------------------- /gems/parallel/1.20/_test/queue.rb: -------------------------------------------------------------------------------- 1 | queue = Queue.new 2 | queue.push 1 3 | queue.push 2 4 | queue.push 3 5 | queue.push Parallel::Stop 6 | 7 | puts Parallel.map(queue, in_threads: 2) { |i| "ITEM-#{i}" } 8 | -------------------------------------------------------------------------------- /gems/parallel/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ybiquitous 3 | -------------------------------------------------------------------------------- /gems/paranoia/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - casaper 3 | -------------------------------------------------------------------------------- /gems/parser/3.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "parser" 5 | 6 | node = Parser::CurrentRuby.parse("2 + 2") or raise 7 | node.loc 8 | 9 | buffer = Parser::Source::Buffer.new(__FILE__) 10 | buffer.name 11 | -------------------------------------------------------------------------------- /gems/parser/3.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/parser/3.2/polyfill.rbs: -------------------------------------------------------------------------------- 1 | module Racc 2 | class Parser 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/parser/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - pocke 3 | -------------------------------------------------------------------------------- /gems/prime/0.1.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: singleton 3 | -------------------------------------------------------------------------------- /gems/protobuf/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/_test/enum.rb: -------------------------------------------------------------------------------- 1 | module Enum 2 | States::ALABAMA 3 | States::ALABAMA.to_i 4 | States::ALABAMA.tag 5 | States::ALABAMA.name 6 | 7 | States.fetch(1).___error___ 8 | States.fetch(0) 9 | States.enums.___error___ 10 | States.all_tags.___error___ 11 | end 12 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/_test/enum.rbs: -------------------------------------------------------------------------------- 1 | module Enum 2 | class States < Protobuf::Enum 3 | ALABAMA: States 4 | CALIFORNIA: States 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/_test/messages.rb: -------------------------------------------------------------------------------- 1 | module Messages 2 | user = User.new 3 | 4 | user.field?(:first_name) 5 | user.field?(:address) 6 | user.field?(:last_name) 7 | user.respond_to_has_and_present?(:last_name) 8 | 9 | user.encode 10 | user.encode_to(STDERR) 11 | user.encode_to([]) 12 | user.encode_to(30) 13 | 14 | User.decode("") 15 | User.decode_from(STDIN) 16 | User.decode_from("") 17 | 18 | user.to_hash.___error___ 19 | user.to_json.___error___ 20 | end 21 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/_test/services.rb: -------------------------------------------------------------------------------- 1 | module Services 2 | class UserService 3 | method = rpc(:find, UserRequest, UserList) 4 | 5 | method.method 6 | method.request_type 7 | method.response_type 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/_test/services.rbs: -------------------------------------------------------------------------------- 1 | module Services 2 | class UserService < Protobuf::Rpc::Service 3 | end 4 | 5 | class UserRequest < Protobuf::Message 6 | end 7 | 8 | class UserList < Protobuf::Message 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/rpc_method.rbs: -------------------------------------------------------------------------------- 1 | module Protobuf 2 | module Rpc 3 | class RpcMethod 4 | include Optionable 5 | extend Optionable::ClassMethods 6 | 7 | attr_reader method: Symbol 8 | 9 | attr_reader request_type: singleton(Message) 10 | 11 | attr_reader response_type: singleton(Message) 12 | 13 | def initialize: (Symbol, singleton(Message), singleton(Message)) ?{ (self) [self: self] -> void } -> void 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /gems/protobuf/3.10.3/service.rbs: -------------------------------------------------------------------------------- 1 | module Protobuf 2 | module Rpc 3 | class Service 4 | def self.rpc: (Symbol, singleton(Message), singleton(Message)) -> RpcMethod 5 | 6 | def self.rpcs: () -> Hash[Symbol, RpcMethod] 7 | 8 | def rpcs: () -> Hash[Symbol, RpcMethod] 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/rack-oauth2/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rack-oauth2/2.2/_test/test.rbs: -------------------------------------------------------------------------------- 1 | 2 | YOUR_CLIENT_ID: String 3 | YOUR_CLIENT_SECRET: String 4 | YOUR_REDIRECT_URI: String 5 | YOUR_USERNAME: String 6 | YOUR_PASSWORD: String 7 | YOUR_AUTHORIZATION_CODE: String 8 | YOUR_REFRESH_TOKEN_FOR_USER: String 9 | -------------------------------------------------------------------------------- /gems/rack/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rack/2.2/_test/body_proxy.rb: -------------------------------------------------------------------------------- 1 | # @type var app: Rack::_Application 2 | app = _ = nil 3 | 4 | middleware = -> (env) do 5 | # @type var env: Rack::env 6 | # @type block: Rack::response 7 | 8 | status, headers, body = app.call(env) 9 | 10 | body_proxy = Rack::BodyProxy.new(body) do 11 | puts "Closed" 12 | end #: Rack::BodyProxy & _Each[String] 13 | 14 | body_proxy.close() 15 | 16 | [status, headers, body_proxy] 17 | end 18 | 19 | middleware #: Rack::_Application 20 | -------------------------------------------------------------------------------- /gems/rack/2.2/_test/string_body.rb: -------------------------------------------------------------------------------- 1 | # @type var app: Rack::_Application 2 | app = _ = nil 3 | 4 | middleware = -> (env) do 5 | # @type var env: Rack::env 6 | # @type block: Rack::response 7 | [404, { "FOO" => "BAR" }, "Not found"] 8 | end 9 | 10 | middleware #: Rack::_Application 11 | -------------------------------------------------------------------------------- /gems/rack/2.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "rack" 2 | require 'rack/lobster' 3 | 4 | Rack::Server.start(app: Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)), Port: 9292) 5 | -------------------------------------------------------------------------------- /gems/rack/2.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: cgi 3 | - name: uri 4 | -------------------------------------------------------------------------------- /gems/rails-dom-testing/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rails-dom-testing/2.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "rails-dom-testing" 5 | 6 | module Test 7 | include Rails::Dom::Testing::Assertions 8 | def assert(test, message) 9 | raise message unless test 10 | end 11 | 12 | def test_case 13 | assert_dom_equal 'Apples', 'Apples' 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/rails-dom-testing/2.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | module Test 2 | include Rails::Dom::Testing::Assertions 3 | 4 | def assert: (untyped, untyped) -> void 5 | 6 | def test_case: () -> void 7 | end 8 | -------------------------------------------------------------------------------- /gems/rails-dom-testing/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/rails-html-sanitizer/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/railties/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/railties/6.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: tsort 3 | -------------------------------------------------------------------------------- /gems/railties/6.0/patch.rbs: -------------------------------------------------------------------------------- 1 | # rbs gem has erb library but it doesn't have ERB::Compiler definition. 2 | class ERB 3 | class Compiler 4 | end 5 | end 6 | 7 | # Remove the fake RDoc type 8 | # if the real type of Minitest is available 9 | module RDoc 10 | module Generator 11 | class SDoc 12 | end 13 | end 14 | 15 | class Task 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/railties/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - tk0miya 4 | -------------------------------------------------------------------------------- /gems/rainbow/3.0/_scripts/gen_x11_colors.rb: -------------------------------------------------------------------------------- 1 | require "rainbow" 2 | 3 | existing_names = Rainbow::Presenter.public_instance_methods(false) 4 | x11_color_names = Rainbow::X11ColorNames::NAMES.keys - existing_names 5 | 6 | case ARGV[0] 7 | when "sig" 8 | puts x11_color_names.sort.map { |method| " def #{method}: () -> instance\n" }.join 9 | when "test" 10 | puts x11_color_names.sort.map { |method| "Rainbow('Hi').#{method}\n" }.join 11 | else 12 | abort "usage: #{__FILE__} " 13 | end 14 | -------------------------------------------------------------------------------- /gems/rainbow/3.0/global.rbs: -------------------------------------------------------------------------------- 1 | module Rainbow 2 | def self.enabled: () -> bool 3 | 4 | def self.enabled=: (bool value) -> bool 5 | 6 | def self.uncolor: (String string) -> String 7 | end 8 | -------------------------------------------------------------------------------- /gems/rainbow/3.0/rainbow.rbs: -------------------------------------------------------------------------------- 1 | class Object 2 | private 3 | 4 | def Rainbow: (String) -> Rainbow::Presenter 5 | end 6 | -------------------------------------------------------------------------------- /gems/rainbow/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ybiquitous 3 | -------------------------------------------------------------------------------- /gems/rake/13.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class Task < Rake::TaskLib 2 | def create_task: () -> void 3 | end 4 | -------------------------------------------------------------------------------- /gems/rake/13.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: fileutils 3 | -------------------------------------------------------------------------------- /gems/recaptcha/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/recaptcha/5.15/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - activerecord 3 | - actionpack 4 | -------------------------------------------------------------------------------- /gems/recaptcha/5.15/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "recaptcha" 5 | require "action_controller" 6 | require "active_record" 7 | 8 | class User < ActiveRecord::Base 9 | end 10 | 11 | class UsersController < ActionController::Base 12 | def create 13 | @user = User.new(**params) 14 | if verify_recaptcha(model: @user) && @user.save 15 | redirect_to @user 16 | else 17 | render 'new' 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /gems/recaptcha/5.15/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User < ActiveRecord::Base 2 | end 3 | 4 | class UsersController < ActionController::Base 5 | @user: User 6 | 7 | def create: () -> void 8 | end 9 | -------------------------------------------------------------------------------- /gems/redis/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/alternate_drivers.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new(:driver => :hiredis) 2 | 3 | redis = Redis.new(:driver => :synchrony) 4 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/cluster.rb: -------------------------------------------------------------------------------- 1 | # @type var nodes: Array[Redis::node] 2 | 3 | nodes = (7000..7005).map { |port| "redis://127.0.0.1:#{port}" } 4 | redis = Redis.new(cluster: nodes) 5 | 6 | nodes = (7000..7005).map do |port| 7 | # @type block: Redis::node 8 | { host: '127.0.0.1', port: port } 9 | end 10 | redis = Redis.new(cluster: nodes) 11 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/error_handling.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new 2 | 3 | begin 4 | redis.ping 5 | rescue StandardError => e 6 | e.inspect 7 | # => # 8 | 9 | e.message 10 | # => Timed out connecting to Redis on 10.0.1.1:6380 11 | end 12 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/expert-mode-options.rb: -------------------------------------------------------------------------------- 1 | Redis.new(inherit_socket: true) 2 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/get_set.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new 2 | 3 | redis.set("mykey", "hello world") 4 | # => "OK" 5 | 6 | redis.get("mykey") 7 | # => "hello world" 8 | 9 | redis.set(:other_key, 'hello world') 10 | # => "OK" 11 | 12 | redis.get(:other_key) 13 | # => "hello world" 14 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/initialize.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new 2 | 3 | redis = Redis.new(host: "10.0.1.1", port: 6380, db: 15) 4 | 5 | redis = Redis.new(url: "redis://:p4ssw0rd@10.0.1.1:6380/15") 6 | 7 | redis = Redis.new(path: "/tmp/redis.sock") 8 | 9 | redis = Redis.new(password: "mysecret") 10 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - openssl 3 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/mset_mget.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new(cluster: %w[redis://127.0.0.1:7000]) 2 | 3 | redis.mget('key1', 'key2') 4 | #=> Redis::CommandError (CROSSSLOT Keys in request don't hash to the same slot) 5 | 6 | redis.mget('{key}1', '{key}2') 7 | #=> [nil, nil] 8 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/multi.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new 2 | 3 | redis.multi do 4 | redis.set "foo", "bar" 5 | redis.incr "baz" 6 | end 7 | # => ["OK", 1] 8 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/pipeline.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new 2 | 3 | # @type ivar @set: Redis::Future[String] 4 | # @type ivar @incr: Redis::Future[Integer] 5 | 6 | redis.pipelined do |redis| 7 | @set = redis.set "foo", "bar" 8 | @incr = redis.incr "baz" 9 | end 10 | # => ["OK", 1] 11 | 12 | @set.value 13 | # => "OK" 14 | 15 | @incr.value 16 | # => 1 17 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/reconnect.rb: -------------------------------------------------------------------------------- 1 | Redis.new( 2 | :reconnect_attempts => 10, 3 | :reconnect_delay => 1.5, 4 | :reconnect_delay_max => 10.0, 5 | ) 6 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/sentinels.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new( 2 | url: "redis://mymaster", 3 | sentinels: [{ host: "127.0.0.1", port: 26380 }, { host: "127.0.0.1", port: 26381, password: "mysecret" }], 4 | role: :master 5 | ) 6 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/ssl.rb: -------------------------------------------------------------------------------- 1 | redis = Redis.new( 2 | :url => "rediss://:p4ssw0rd@10.0.1.1:6381/15", 3 | :ssl_params => { 4 | :ca_file => "/path/to/ca.crt" 5 | } 6 | ) 7 | 8 | redis = Redis.new( 9 | :url => "rediss://:p4ssw0rd@10.0.1.1:6381/15", 10 | :ssl_params => { 11 | :ca_file => "/path/to/ca.crt", 12 | :cert => OpenSSL::X509::Certificate.new(File.read("client.crt")), 13 | :key => OpenSSL::PKey::RSA.new(File.read("client.key")) 14 | } 15 | ) 16 | -------------------------------------------------------------------------------- /gems/redis/4.2/_test/timeout.rb: -------------------------------------------------------------------------------- 1 | Redis.new(:timeout => 1) 2 | 3 | Redis.new( 4 | :connect_timeout => 0.2, 5 | :read_timeout => 1.0, 6 | :write_timeout => 0.5 7 | ) 8 | -------------------------------------------------------------------------------- /gems/redis/4.2/future.rbs: -------------------------------------------------------------------------------- 1 | class Redis 2 | class Future[out T] 3 | attr_reader value: T 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/regexp_parser/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/regexp_parser/2.8/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "regexp_parser" 5 | 6 | regex = /a?(b+(c)d)*(?[0-9]+)/i 7 | Regexp::Parser.parse(regex, 'ruby/2.1') do |token| 8 | puts token.inspect 9 | end 10 | Regexp::Parser.parse( 11 | 'a+ # Recognizes a and A...', 12 | options: ::Regexp::EXTENDED | ::Regexp::IGNORECASE 13 | ) 14 | -------------------------------------------------------------------------------- /gems/regexp_trie/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/request_store/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/request_store/1.5/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "request_store" 2 | 3 | RequestStore.store[:a] = 1 4 | RequestStore.store 5 | RequestStore.store[:a] 6 | RequestStore.fetch(:block_test) do 7 | "some stored strings" 8 | end 9 | -------------------------------------------------------------------------------- /gems/request_store/1.5/request_store.rbs: -------------------------------------------------------------------------------- 1 | module RequestStore 2 | def self.store: () -> Hash[untyped, untyped] 3 | def self.[]: (untyped) -> untyped 4 | def self.[]=: (untyped) -> void 5 | def self.fetch: (untyped) { () -> void } -> untyped 6 | end 7 | -------------------------------------------------------------------------------- /gems/rest-client/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rest-client/2.1/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - json 3 | -------------------------------------------------------------------------------- /gems/rest-client/2.1/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class SomeCustomExceptionIfYouWant < Exception 2 | end 3 | -------------------------------------------------------------------------------- /gems/rest-client/2.1/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: net-http 3 | -------------------------------------------------------------------------------- /gems/retries/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/retries/0.0.5/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "retries" 5 | 6 | Retries.sleep_enabled = Retries.sleep_enabled 7 | 8 | with_retries max_tries: 10, base_sleep_seconds: 1.2, max_sleep_seconds: 3.4, handler: ->(e,a,t){}, rescue: [StandardError] do |attempt| 9 | puts "Attempt ##{attempt}" 10 | end 11 | -------------------------------------------------------------------------------- /gems/retryable/3.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: forwardable 3 | -------------------------------------------------------------------------------- /gems/retryable/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ybiquitous 3 | -------------------------------------------------------------------------------- /gems/rolify/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rolify/6.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "rolify" 5 | 6 | class User 7 | extend Rolify 8 | rolify :before_add => :before_add_method 9 | 10 | def before_add_method(role) 11 | # do something before it gets added 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/rolify/6.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User 2 | extend Rolify 3 | 4 | def before_add_method: (untyped) -> void 5 | end 6 | -------------------------------------------------------------------------------- /gems/rolify/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/roo/2.10/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/roo/2.10/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | - name: forwardable 9 | - name: uri 10 | - name: csv 11 | - name: openssl 12 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | TEMP_PREFIX: "roo_" 3 | 4 | CLASS_FOR_EXTENSION: { ods: singleton(OpenOffice), xlsx: singleton(Excelx), xlsm: singleton(Excelx), csv: singleton(CSV) } 5 | 6 | def self.const_missing: (untyped const_name) -> untyped 7 | end 8 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/constants.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | ROO_EXCEL_NOTICE: "Excel support has been extracted to roo-xls due to its dependency on the GPL'd spreadsheet gem. Install roo-xls to use Roo::Excel." 3 | 4 | ROO_EXCELML_NOTICE: "Excel SpreadsheetML support has been extracted to roo-xls. Install roo-xls to use Roo::Excel2003XML." 5 | 6 | ROO_GOOGLE_NOTICE: "Google support has been extracted to roo-google. Install roo-google to use Roo::Google." 7 | end 8 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/errors.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | # A base error class for Roo. Most errors thrown by Roo should inherit from 3 | # this class. 4 | class Error < StandardError 5 | end 6 | 7 | # Raised when Roo cannot find a header row that matches the given column 8 | # name(s). 9 | class HeaderRowNotFoundError < Error 10 | end 11 | 12 | class FileNotFound < Error 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/excelx/comments.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | class Excelx 3 | class Comments < Excelx::Extractor 4 | @comments: Hash[Coordinate, String] 5 | 6 | def comments: () -> Hash[Coordinate, String] 7 | 8 | private 9 | 10 | def extract_comments: () -> Hash[Coordinate, String] 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/excelx/coordinate.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | class Excelx 3 | class Coordinate < ::Array[Integer | String] 4 | def initialize: (Integer | String row, Integer | String column) -> void 5 | 6 | def row: () -> (Integer | String) 7 | 8 | def column: () -> (Integer | String) 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/excelx/images.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | class Excelx 3 | class Images < Excelx::Extractor 4 | @images: Hash[String, String] 5 | 6 | # Returns: Hash { id1: extracted_file_name1 }, 7 | # Example: { "rId1"=>"roo_media_image1.png", 8 | # "rId2"=>"roo_media_image2.png", 9 | # "rId3"=>"roo_media_image3.png" } 10 | def list: () -> Hash[String, String] 11 | 12 | private 13 | 14 | def extract_images_names: () -> Hash[String, String] 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/excelx/relationships.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | class Excelx 3 | class Relationships < Excelx::Extractor 4 | @relationships: Hash[String, Nokogiri::XML::Node] 5 | 6 | def []: (String index) -> Nokogiri::XML::Node 7 | 8 | def to_a: () -> Hash[String, Nokogiri::XML::Node] 9 | 10 | def include_type?: (String type) -> bool 11 | 12 | private 13 | 14 | def extract_relationships: () -> Hash[String, Nokogiri::XML::Node] 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/font.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | class Font 3 | attr_accessor bold: bool 4 | 5 | attr_accessor italic: bool 6 | 7 | attr_accessor underline: bool 8 | 9 | def bold?: () -> bool 10 | 11 | def italic?: () -> bool 12 | 13 | def underline?: () -> bool 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/formatters/base.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | module Formatters 3 | module Base 4 | # converts an integer value to a time string like '02:05:06' 5 | def integer_to_timestring: (untyped content) -> String 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/formatters/matrix.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | module Formatters 3 | module Matrix 4 | # returns a matrix object from the whole sheet or a rectangular area of a sheet 5 | def to_matrix: (?Integer? from_row, ?Integer? from_column, ?Integer? to_row, ?Integer? to_column, ?(String | Integer) sheet) -> untyped # TODO add type Matrix 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/formatters/xml.rbs: -------------------------------------------------------------------------------- 1 | # returns an XML representation of all sheets of a spreadsheet file 2 | module Roo 3 | module Formatters 4 | module XML 5 | def to_xml: () -> String 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/formatters/yaml.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | module Formatters 3 | module YAML 4 | # returns a rectangular area (default: all cells) as yaml-output 5 | # you can add additional attributes with the prefix parameter like: 6 | # oo.to_yaml({"file"=>"flightdata_2007-06-26", "sheet" => "1"}) 7 | def to_yaml: (?Hash[_ToS, _ToS] prefix, ?Integer? from_row, ?Integer? from_column, ?Integer? to_row, ?Integer? to_column, ?String | Integer sheet) -> String 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/helpers/default_attr_reader.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | module Helpers 3 | module DefaultAttrReader 4 | def attr_reader_with_default: (Hash[Symbol, untyped] attr_hash) -> void 5 | end 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/helpers/weak_instance_cache.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | module Helpers 3 | module WeakInstanceCache 4 | private 5 | 6 | def instance_cache: (untyped key) { () -> untyped } -> untyped 7 | 8 | def instance_cache_finalizer: (untyped key) -> ^(Integer object_id) -> void 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/libre_office.rbs: -------------------------------------------------------------------------------- 1 | # LibreOffice is just an alias for Roo::OpenOffice class 2 | Roo::LibreOffice: singleton(Roo::OpenOffice) 3 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/spreadsheet.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | class Spreadsheet 3 | interface _Path 4 | def path: () -> String 5 | end 6 | 7 | def self.open: (String | _Path path, ?::Hash[Symbol, untyped] options) -> (::Roo::OpenOffice | ::Roo::Excelx | ::Roo::CSV) 8 | 9 | def self.extension_for: (String path, ::Hash[Symbol, untyped] options) -> Symbol 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/tempdir.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | module Tempdir[CellValue] 3 | @tempdirs: Hash[Integer, Array[String]] 4 | 5 | def finalize_tempdirs: (Integer object_id) -> void 6 | 7 | def make_tempdir: (::Roo::Base[CellValue] object, String | nil prefix, String | nil root) -> String 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /gems/roo/2.10/roo/version.rbs: -------------------------------------------------------------------------------- 1 | module Roo 2 | VERSION: "2.10.1" 3 | end 4 | -------------------------------------------------------------------------------- /gems/roo/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - sanfrecce-osaka 3 | -------------------------------------------------------------------------------- /gems/rqrcode/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rubocop-ast/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rubocop-ast/1.30/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "rubocop-ast" 5 | -------------------------------------------------------------------------------- /gems/rubocop-ast/1.30/rubocop-ast.rbs: -------------------------------------------------------------------------------- 1 | module RuboCop 2 | module AST 3 | class ProcessedSource 4 | def raw_source: () -> String 5 | def buffer: () -> Parser::Source::Buffer 6 | def comments: () -> Array[Parser::Source::Comment] 7 | end 8 | 9 | module NodePattern 10 | module Macros 11 | def def_node_matcher: (Symbol, String) -> void 12 | end 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/rubocop/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rubocop/1.57/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "rubocop" 5 | -------------------------------------------------------------------------------- /gems/rubyzip/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/rubyzip/2.3/zip/ioextras.rbs: -------------------------------------------------------------------------------- 1 | module Zip 2 | module IOExtras 3 | CHUNK_SIZE: 131072 4 | 5 | RANGE_ALL: ::Range[::Integer] 6 | 7 | def self.copy_stream: (untyped ostream, untyped istream) -> untyped 8 | 9 | def self.copy_stream_n: (untyped ostream, untyped istream, untyped nbytes) -> untyped 10 | 11 | # Implements kind_of? in order to pretend to be an IO object 12 | module FakeIO 13 | def kind_of?: (untyped object) -> bool 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /gems/scanf/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/scanf/1.0/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require 'scanf' 5 | 6 | # String#scanf and IO#scanf take a single argument, the format string 7 | "123ac".scanf("%d%s") 8 | File.open('test.rb', "rb").scanf("%d%s") 9 | 10 | # Kernel#scanf reads from STDIN 11 | scanf("%d%s") 12 | -------------------------------------------------------------------------------- /gems/sentry-ruby/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/sentry-ruby/5.2/_test/foo_middleware.rbs: -------------------------------------------------------------------------------- 1 | class FooMiddleware 2 | @app: Rack::_Application 3 | def initialize: (untyped) -> void 4 | def call: (untyped env) -> untyped 5 | end 6 | -------------------------------------------------------------------------------- /gems/sentry-ruby/5.2/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - rack 3 | -------------------------------------------------------------------------------- /gems/shoryuken/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/_pending_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - aws-sdk-sqs 3 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/_pending_test/test.rbs: -------------------------------------------------------------------------------- 1 | class HelloWorker 2 | include Shoryuken::Worker 3 | extend Shoryuken::Worker::ClassMethods 4 | 5 | def perform: (String sqs_msg, String name) -> void 6 | end 7 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/client.rbs: -------------------------------------------------------------------------------- 1 | module Shoryuken 2 | class Client 3 | def self.queues: (String name) -> Queue 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/logging.rbs: -------------------------------------------------------------------------------- 1 | module Shoryuken 2 | module Logging 3 | def self.initialize_logger: (?Logger::logdev? log_target) -> Logger 4 | 5 | def self.logger: () -> Logger 6 | 7 | def self.logger=: (Logger log) -> void 8 | 9 | def self.with_context: (untyped msg) { () -> void } -> void 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: forwardable 3 | - name: logger 4 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/queue.rbs: -------------------------------------------------------------------------------- 1 | module Shoryuken 2 | class Queue 3 | def visibility_timeout: () -> Integer 4 | def delete_messages: (untyped options) -> void 5 | def send_message: (untyped options) -> void 6 | def send_messages: (untyped options) -> void 7 | def receive_messages: (untyped options) -> void 8 | def fifo?: () -> bool 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/shoryuken/6.0/worker.rbs: -------------------------------------------------------------------------------- 1 | module Shoryuken 2 | module Worker 3 | module ClassMethods 4 | def shoryuken_options: (?queue: String, ?delete: bool, ?auto_delete: bool, ?auto_visibility_timeout: bool, ?retry_intervals: Numeric, ?batch: bool, ?body_parser: untyped) -> void 5 | end 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /gems/shrine/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/shrine/3.6/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - activerecord 3 | -------------------------------------------------------------------------------- /gems/shrine/3.6/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class ImageUploader < Shrine 2 | end 3 | 4 | class Photo < ActiveRecord::Base 5 | end 6 | -------------------------------------------------------------------------------- /gems/shrine/3.6/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: tempfile 3 | -------------------------------------------------------------------------------- /gems/shrine/3.6/shrine/attacher.rbs: -------------------------------------------------------------------------------- 1 | class Shrine 2 | class Attacher 3 | module ClassMethods 4 | end 5 | 6 | module InstanceMethods 7 | attr_reader file: Shrine::UploadedFile? 8 | 9 | def initialize: (?file: untyped, ?cache: Symbol, ?store: Symbol) -> void 10 | def assign: (untyped value, **untyped options) -> void 11 | end 12 | 13 | extend ClassMethods 14 | include InstanceMethods 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /gems/sidekiq-ent/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - rhiroe 3 | -------------------------------------------------------------------------------- /gems/sidekiq-pro/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | - rhiroe 4 | -------------------------------------------------------------------------------- /gems/sidekiq/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/sidekiq/6.2/_test/test_1.rb: -------------------------------------------------------------------------------- 1 | # Test fundamental APIs 2 | # Taken from: https://github.com/mperham/sidekiq/wiki/Getting-Started 3 | class HardWorker 4 | include Sidekiq::Worker 5 | end 6 | HardWorker.perform_async('bob', 5) 7 | HardWorker.perform_at(Time.now + 5*60, 'bob', 5) 8 | -------------------------------------------------------------------------------- /gems/sidekiq/6.2/_test/test_1_2.rbs: -------------------------------------------------------------------------------- 1 | class HardWorker 2 | include Sidekiq::Worker 3 | extend Sidekiq::Worker::ClassMethods 4 | end 5 | 6 | class Hook 7 | end 8 | 9 | class Middleware 10 | end 11 | -------------------------------------------------------------------------------- /gems/sidekiq/6.2/_test/test_4.rb: -------------------------------------------------------------------------------- 1 | # Test advanced configurations 2 | # Taken from: https://github.com/mperham/sidekiq/wiki/Advanced-Options 3 | class ImportantWorker 4 | include Sidekiq::Worker 5 | sidekiq_options queue: 'critical', retry: true, dead: true, backtrace: false, tags: ['important', 'test'] 6 | 7 | def perform 8 | puts "Doing critical work" 9 | end 10 | end 11 | 12 | Sidekiq.default_worker_options = { 'backtrace' => true } 13 | ImportantWorker.set(queue: :critical).perform_async('name', 15) 14 | -------------------------------------------------------------------------------- /gems/sidekiq/6.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: logger 3 | - name: monitor 4 | -------------------------------------------------------------------------------- /gems/sidekiq/6.2/redis_connection.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | module RedisConnection 3 | def self.create: (?Hash[Symbol | String, untyped]) -> ConnectionPool[Redis] 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/sidekiq/6.3/_test/test_1.rb: -------------------------------------------------------------------------------- 1 | # Test fundamental APIs 2 | # Taken from: https://github.com/mperham/sidekiq/wiki/Getting-Started 3 | class HardWorker 4 | include Sidekiq::Worker 5 | end 6 | HardWorker.perform_async('bob', 5) 7 | HardWorker.perform_at(Time.now + 5*60, 'bob', 5) 8 | 9 | class HardJob 10 | include Sidekiq::Job 11 | end 12 | HardJob.perform_async('bob', 5) 13 | HardJob.perform_at(Time.now + 5*60, 'bob', 5) 14 | -------------------------------------------------------------------------------- /gems/sidekiq/6.3/_test/test_1_2.rbs: -------------------------------------------------------------------------------- 1 | class HardWorker 2 | include Sidekiq::Worker 3 | extend Sidekiq::Worker::ClassMethods 4 | end 5 | 6 | class HardJob 7 | include Sidekiq::Job 8 | extend Sidekiq::Job::ClassMethods 9 | end 10 | 11 | class Hook 12 | end 13 | 14 | class Middleware 15 | end 16 | -------------------------------------------------------------------------------- /gems/sidekiq/6.3/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: logger 3 | - name: monitor 4 | -------------------------------------------------------------------------------- /gems/sidekiq/6.3/redis_connection.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | module RedisConnection 3 | def self.create: (?Hash[Symbol | String, untyped]) -> ConnectionPool[Redis] 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/_test/test_1.rb: -------------------------------------------------------------------------------- 1 | # Test fundamental APIs 2 | # Taken from: https://github.com/mperham/sidekiq/wiki/Getting-Started 3 | class HardWorker 4 | include Sidekiq::Job 5 | end 6 | HardWorker.perform_async('bob', 5) 7 | HardWorker.perform_at(Time.now + 5*60, 'bob', 5) 8 | 9 | class HardJob 10 | include Sidekiq::Job 11 | end 12 | HardJob.perform_async('bob', 5) 13 | HardJob.perform_at(Time.now + 5*60, 'bob', 5) 14 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/_test/test_1_2.rbs: -------------------------------------------------------------------------------- 1 | class HardWorker 2 | include Sidekiq::Job 3 | extend Sidekiq::Job::ClassMethods 4 | end 5 | 6 | class HardJob 7 | include Sidekiq::Job 8 | extend Sidekiq::Job::ClassMethods 9 | end 10 | 11 | class Hook 12 | end 13 | 14 | class Middleware 15 | end 16 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/api.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | class WorkSet 3 | include Enumerable[[String, String, work]] 4 | 5 | type work = { 'queue' => String, 'run_at' => Integer, 'payload' => job_hash } 6 | 7 | type job_hash = { 'class' => String, 'args' => Array[untyped] } 8 | 9 | def each: () { ([String, String, work]) -> void } -> void 10 | 11 | def size: () -> Integer 12 | end 13 | 14 | class Workers = WorkSet 15 | end 16 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/embedded.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | class Embedded 3 | include Sidekiq::Component 4 | 5 | def quiet: () -> void 6 | 7 | def run: () -> void 8 | 9 | def stop: () -> void 10 | 11 | private 12 | 13 | def housekeeping: () -> void 14 | 15 | def initialize: (Config config) -> void 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/job_util.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | module JobUtil 3 | def normalize_item: (Hash[string, untyped] item) -> Hash[string, untyped] 4 | 5 | def normalized_hash: (untyped item_class) -> Hash[string, untyped] 6 | 7 | def validate: (Hash[string, untyped] item) -> void 8 | 9 | def verify_json: (Hash[string, untyped] item) -> void 10 | 11 | private 12 | 13 | def json_unsafe?: (untyped item) -> bool 14 | 15 | TRANSIENT_ATTRIBUTES: ::Array[String] 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - name: logger 3 | - name: forwardable 4 | - name: monitor 5 | - name: json 6 | - name: timeout 7 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/redis_client_adapter.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | class RedisClientAdapter 3 | def new_client: () -> CompatClient 4 | 5 | private 6 | 7 | def client_opts: (Hash[Symbol, untyped] options) -> Hash[Symbol, untyped] 8 | 9 | def initialize: (Hash[Symbol, untyped] options) -> void 10 | 11 | class CompatClient 12 | def config: () -> Config 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/redis_connection.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | module RedisConnection 3 | def self.create: (?Hash[_ToSym, untyped] options) -> ConnectionPool[RedisClientAdapter] 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/scheduled.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | module Scheduled 3 | class Enq 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /gems/sidekiq/7.0/transaction_aware_client.rbs: -------------------------------------------------------------------------------- 1 | module Sidekiq 2 | class TransactionAwareClient 3 | def push: (Hash[string, untyped] item) -> String 4 | 5 | def push_bulk: (untyped items) -> Array[String?] 6 | 7 | private 8 | 9 | def initialize: (?pool: untyped, ?config: Config) -> void 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/signet/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/signet/0.19/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "signet" 2 | 3 | begin 4 | raise Signet::AuthorizationError 5 | rescue Signet::AuthorizationError => e 6 | # nop 7 | end 8 | 9 | class MyClient < Signet::OAuth2::Client 10 | end 11 | -------------------------------------------------------------------------------- /gems/signet/0.19/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class MyClient < Signet::OAuth2::Client 2 | end 3 | -------------------------------------------------------------------------------- /gems/signet/0.19/signet.rbs: -------------------------------------------------------------------------------- 1 | module Signet 2 | class AuthorizationError < StandardError 3 | end 4 | 5 | module OAuth2 6 | class Client 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /gems/simple_oauth/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/simple_oauth/0.3/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "simple_oauth" 2 | 3 | params = { status: "Test." } 4 | 5 | oauth_params = { 6 | consumer_key: "consumer_key", 7 | consumer_secret: "consumer_secret", 8 | token: "access_token", 9 | token_secret: "access_token_secret", 10 | } 11 | 12 | auth_header = SimpleOAuth::Header.new(:get, "https://api.twitter.com/1.1/statuses/update.json", params, oauth_params).to_s 13 | -------------------------------------------------------------------------------- /gems/simple_oauth/0.3/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/simple_oauth/0.3/simple_oauth.rbs: -------------------------------------------------------------------------------- 1 | module SimpleOAuth 2 | class Header 3 | def initialize: (_ToS method, _ToS url, Hash[untyped, untyped] params, ?Hash[untyped, untyped] oauth) -> void 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/simplecov/0.22/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class LineFilter < SimpleCov::Filter[Integer] 2 | end 3 | -------------------------------------------------------------------------------- /gems/simplecov/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ybiquitous 3 | -------------------------------------------------------------------------------- /gems/sinatra-contrib/4.0/reloader.rbs: -------------------------------------------------------------------------------- 1 | module Sinatra 2 | module Reloader 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /gems/sinatra-contrib/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - euglena1215 3 | -------------------------------------------------------------------------------- /gems/sinatra/4.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - sinatra-contrib 3 | -------------------------------------------------------------------------------- /gems/sinatra/4.0/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class MyApp < Sinatra::Base 2 | def foo: () -> String 3 | def bar: () -> String 4 | 5 | class HttpError < StandardError 6 | attr_reader code: Integer 7 | 8 | def initialize: (Integer) -> void 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /gems/sinatra/4.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/sinatra/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - euglena1215 3 | -------------------------------------------------------------------------------- /gems/slack-notifier/2.4/_test/http_client.rbs: -------------------------------------------------------------------------------- 1 | class NoOpHTTPClient 2 | def self.post: (String message, ?untyped options) -> void 3 | end 4 | -------------------------------------------------------------------------------- /gems/slack-notifier/2.4/_test/middleware.rbs: -------------------------------------------------------------------------------- 1 | class SwapWords < Slack::Notifier::PayloadMiddleware::Base 2 | end 3 | -------------------------------------------------------------------------------- /gems/slack-notifier/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ericgpks 3 | -------------------------------------------------------------------------------- /gems/sorcery/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/sorcery/0.16/_test/test.rbs: -------------------------------------------------------------------------------- 1 | class User 2 | extend Sorcery::Model 3 | extend Sorcery::Model::ClassMethods 4 | end 5 | 6 | class TestController 7 | include Sorcery::Controller 8 | include Sorcery::Controller::InstanceMethods[User] 9 | end 10 | -------------------------------------------------------------------------------- /gems/spreadsheet/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/spreadsheet/1.3/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "spreadsheat" 2 | 3 | Spreadsheet.open('/path/to/an/excel-file.xls') 4 | -------------------------------------------------------------------------------- /gems/spreadsheet/1.3/spreadsheat.rbs: -------------------------------------------------------------------------------- 1 | module Spreadsheet 2 | def self.open: (::String | ::File io_or_path, ?::String mode) ?{ (untyped) -> untyped } -> Excel::Workbook? 3 | 4 | class Workbook 5 | end 6 | 7 | module Excel 8 | class Workbook < Spreadsheet::Workbook 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gems/sqlite3/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/sqlite3/2.0/pragmas.rbs: -------------------------------------------------------------------------------- 1 | module SQLite3 2 | module Pragmas 3 | def busy_timeout=: (Integer) -> void 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gems/stackprof/0.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "stackprof" 5 | StackProf.run(mode: :cpu, out: 'tmp/stackprof-cpu-myapp.dump') do 6 | # ... 7 | end 8 | -------------------------------------------------------------------------------- /gems/stackprof/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - pocke 3 | -------------------------------------------------------------------------------- /gems/stripe/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/stripe/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/thor/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/thor/1.2/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "thor" 5 | -------------------------------------------------------------------------------- /gems/thor/1.2/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/thor/1.2/thor.rbs: -------------------------------------------------------------------------------- 1 | class Thor 2 | class Group 3 | end 4 | 5 | module Actions 6 | class CreateFile 7 | end 8 | 9 | def create_file: (String destination, String data, ?verbose: bool) -> String 10 | | (String destination, ?verbose: bool) { () -> String } -> String 11 | end 12 | 13 | class Error 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /gems/tzinfo/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/tzinfo/2.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | # If the test needs gem's RBS files, declare them here. 2 | # 3 | # additional_gems: 4 | # - GEM_NAME 5 | -------------------------------------------------------------------------------- /gems/tzinfo/2.0/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | dependencies: 7 | - name: date 8 | -------------------------------------------------------------------------------- /gems/ulid/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/ulid/1.3/_test/ulid_test.rb: -------------------------------------------------------------------------------- 1 | require 'ulid' 2 | 3 | p ULID.generate.bytes 4 | p ULID.generate(Time.now).bytes 5 | p ULID.generate_bytes.bytes 6 | p ULID.generate_bytes(Time.now).bytes 7 | -------------------------------------------------------------------------------- /gems/wavedash/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/wavedash/0.1/_test/test.rb: -------------------------------------------------------------------------------- 1 | # Write Ruby code to test the RBS. 2 | # It is type checked by `steep check` command. 3 | 4 | require "wavedash" 5 | 6 | str = "こんにちは\u{301C}" 7 | 8 | Wavedash.destination_encoding = 'eucjp-ms' 9 | 10 | Wavedash.normalize(str) # => "こんにちは~" 11 | 12 | Wavedash.invalid?(str) # => true 13 | -------------------------------------------------------------------------------- /gems/wavedash/0.1/wavedash.rbs: -------------------------------------------------------------------------------- 1 | # Classes 2 | module Wavedash 3 | def self.destination_encoding=: (string encoding) -> void 4 | def self.normalize: (String str) -> String 5 | def self.invalid?: (String str) -> bool 6 | end 7 | -------------------------------------------------------------------------------- /gems/web-push/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/web-push/3.0/_test/metadata.yaml: -------------------------------------------------------------------------------- 1 | additional_gems: 2 | - json 3 | -------------------------------------------------------------------------------- /gems/webmock/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/webmock/3.19/_test/test.rb: -------------------------------------------------------------------------------- 1 | require "webmock" 2 | 3 | WebMock::VERSION + WebMock.version 4 | 5 | WebMock.enable! 6 | WebMock.enable! except: 'hello' 7 | WebMock.enable! except: ['hello', 'world'] 8 | 9 | WebMock.disable! 10 | WebMock.disable! except: 'hello' 11 | WebMock.disable! except: ['hello', 'world'] 12 | -------------------------------------------------------------------------------- /gems/webmock/3.19/manifest.yaml: -------------------------------------------------------------------------------- 1 | # manifest.yaml describes dependencies which do not appear in the gemspec. 2 | # If this gem includes such dependencies, comment-out the following lines and 3 | # declare the dependencies. 4 | # If all dependencies appear in the gemspec, you should remove this file. 5 | # 6 | # dependencies: 7 | # - name: pathname 8 | -------------------------------------------------------------------------------- /gems/webmock/3.19/webmock.rbs: -------------------------------------------------------------------------------- 1 | module WebMock 2 | VERSION: String 3 | 4 | def self.version: () -> String 5 | 6 | def self.disable!: (?Hash[Symbol, untyped] options) -> void 7 | 8 | def self.enable!: (?Hash[Symbol, untyped] options) -> void 9 | end -------------------------------------------------------------------------------- /gems/woothee/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | -------------------------------------------------------------------------------- /gems/woothee/1.11/woothee.rbs: -------------------------------------------------------------------------------- 1 | # Classes 2 | module Woothee 3 | def self.parse: (String useragent) -> { name: String, category: Symbol | String, os: String, os_version: String, version: String, vendor: String } 4 | def self.is_crawler: (String useragent) -> bool 5 | end 6 | -------------------------------------------------------------------------------- /gems/yard/0.9/_generators/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | 5 | gem "yard" 6 | gem "orthoses" 7 | gem "orthoses-yard" 8 | gem "rake" 9 | gem "rack" 10 | gem "rackup" 11 | -------------------------------------------------------------------------------- /gems/yard/0.9/_generators/README.md: -------------------------------------------------------------------------------- 1 | # yard-generator 2 | 3 | This is a RBS generator for [yard](https://github.com/lsegal/yard) gem. 4 | 5 | # Prepare 6 | 7 | ``` 8 | $ bundle install 9 | $ bundle exec rbs collection install 10 | ``` 11 | 12 | # Generate 13 | 14 | ``` 15 | $ bundle exec rake 16 | ``` 17 | 18 | Generate RBS to `gems/yard/0.9` dir 19 | -------------------------------------------------------------------------------- /gems/yard/0.9/_generators/rbs_collection.yaml: -------------------------------------------------------------------------------- 1 | # Download sources 2 | sources: 3 | - name: ruby/gem_rbs_collection 4 | remote: https://github.com/ruby/gem_rbs_collection.git 5 | revision: main 6 | repo_dir: gems 7 | 8 | # A directory to install the downloaded RBSs 9 | path: .gem_rbs_collection 10 | 11 | gems: 12 | - name: rbs 13 | - name: yard 14 | ignore: true 15 | - name: rack 16 | ingore: true 17 | -------------------------------------------------------------------------------- /gems/yard/0.9/_generators/templates/manifest.yaml.erb: -------------------------------------------------------------------------------- 1 | <%= notice %> 2 | 3 | dependencies: 4 | <% stdlib_dependencies.each do |stdlib| %> 5 | - name: <%= stdlib %> 6 | <% end %> 7 | -------------------------------------------------------------------------------- /gems/yard/0.9/manifest.yaml: -------------------------------------------------------------------------------- 1 | # !!! GENERATED FILE !!! 2 | # Please see yard/0.9/_generators/README.md 3 | 4 | dependencies: 5 | - name: optparse 6 | - name: logger 7 | - name: ripper 8 | -------------------------------------------------------------------------------- /gems/yard/0.9/yard/gem_index.rbs: -------------------------------------------------------------------------------- 1 | # !!! GENERATED FILE !!! 2 | # Please see yard/0.9/_generators/README.md 3 | 4 | module YARD::GemIndex 5 | private def find_all_by_name: (*untyped args) -> untyped 6 | 7 | def self.find_all_by_name: (*untyped args) -> untyped 8 | 9 | private def each: () -> untyped 10 | 11 | def self.each: () -> untyped 12 | 13 | private def all: () -> untyped 14 | 15 | def self.all: () -> untyped 16 | end 17 | -------------------------------------------------------------------------------- /gems/yard/0.9/yard/stub_proxy.rbs: -------------------------------------------------------------------------------- 1 | # !!! GENERATED FILE !!! 2 | # Please see yard/0.9/_generators/README.md 3 | 4 | # Stubs marshal dumps and acts a delegate class for an object by path 5 | # 6 | # @private 7 | class YARD::StubProxy 8 | def _dump: (untyped _depth) -> untyped 9 | def self._load: (untyped str) -> untyped 10 | def hash: () -> untyped 11 | def initialize: (untyped path, ?untyped transient) -> void 12 | def method_missing: (untyped meth, *untyped args) -> untyped 13 | FILELEN: untyped 14 | end 15 | -------------------------------------------------------------------------------- /gems/yard/_reviewers.yaml: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ksss 3 | -------------------------------------------------------------------------------- /gems/zengin_code/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../.rubocop.yml 2 | 3 | RBS/Layout: 4 | Enabled: true 5 | RBS/Lint: 6 | Enabled: true 7 | RBS/Style: 8 | Enabled: true 9 | --------------------------------------------------------------------------------