Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gem_rbs_collection and fix duplicated type definition #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
# rspec failure tracking
.rspec_status
Gemfile.lock
.gem_rbs_collection
196 changes: 196 additions & 0 deletions rbs_collection.lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
---
path: ".gem_rbs_collection"
gems:
- name: activesupport
version: '6.0'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: ast
version: '2.4'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: binding_of_caller
version: '1.0'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: concurrent-ruby
version: '1.1'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: date
version: '0'
source:
type: stdlib
- name: dbm
version: '0'
source:
type: stdlib
- name: diff-lcs
version: '1.5'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: erb
version: '0'
source:
type: stdlib
- name: fileutils
version: '0'
source:
type: stdlib
- name: i18n
version: '1.10'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: json
version: '0'
source:
type: stdlib
- name: logger
version: '0'
source:
type: stdlib
- name: minitest
version: '0'
source:
type: stdlib
- name: monitor
version: '0'
source:
type: stdlib
- name: mutex_m
version: '0'
source:
type: stdlib
- name: open-uri
version: '0'
source:
type: stdlib
- name: parallel
version: '1.20'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: parser
version: '3.2'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: pathname
version: '0'
source:
type: stdlib
- name: pstore
version: '0'
source:
type: stdlib
- name: psych
version: '0'
source:
type: stdlib
- name: rainbow
version: '3.0'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: rake
version: '13.0'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: regexp_parser
version: '2.8'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: rspec-parameterized-core
version: 1.0.0
source:
type: rubygems
- name: rspec-parameterized-table_syntax
version: 1.0.1
source:
type: rubygems
- name: rubocop
version: '1.57'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: rubocop-ast
version: '1.30'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: securerandom
version: '0'
source:
type: stdlib
- name: simplecov
version: '0.22'
source:
type: git
name: ruby/gem_rbs_collection
revision: 823e015090cd291d53c4f9d9d7e76b931a6cc75d
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: singleton
version: '0'
source:
type: stdlib
- name: tempfile
version: '0'
source:
type: stdlib
- name: time
version: '0'
source:
type: stdlib
- name: uri
version: '0'
source:
type: stdlib
gemfile_lock_path: Gemfile.lock
21 changes: 21 additions & 0 deletions rbs_collection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Download sources
sources:
- type: git
name: ruby/gem_rbs_collection
remote: https://github.com/ruby/gem_rbs_collection.git
revision: main
repo_dir: gems

# You can specify local directories as sources also.
# - type: local
# path: path/to/your/local/repository

# A directory to install the downloaded RBSs
path: .gem_rbs_collection

gems:
- name: steep
ignore: true
- name: uri
- name: psych
- name: open-uri
3 changes: 1 addition & 2 deletions sig/types.rbs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module OpenURI
module OpenRead
def open: () -> (IO | nil)
def path: () -> String
def scheme: () -> String
end
end


module Psych
def self.safe_load: (untyped content, untyped parmitted_classes) -> Hash[bot, bot]
def self.safe_load: (untyped content, untyped parmitted_classes) -> Hash[bot, bot] | ...
end