rbs_rails 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dependabot/config.yml +5 -0
- data/.github/workflows/ci.yml +11 -2
- data/.gitignore +1 -1
- data/CHANGELOG.md +30 -0
- data/Gemfile +6 -3
- data/Gemfile.lock +179 -0
- data/README.md +11 -4
- data/Rakefile +4 -2
- data/Steepfile +1 -14
- data/bin/add-type-params.rb +1 -0
- data/bin/setup +1 -0
- data/lib/rbs_rails/active_record.rb +135 -18
- data/lib/rbs_rails/rake_task.rb +3 -14
- data/lib/rbs_rails/version.rb +1 -1
- data/rbs_collection.lock.yaml +132 -0
- data/rbs_collection.yaml +45 -0
- data/rbs_rails.gemspec +2 -2
- data/sig/activerecord.rbs +4 -0
- data/sig/rbs_rails/active_record.rbs +11 -0
- metadata +9 -29
- data/assets/sig/action_mailer.rbs +0 -8
- data/assets/sig/builtin.rbs +0 -7
- data/assets/sig/capybara.rbs +0 -14
- data/assets/sig/concurrent.rbs +0 -4
- data/assets/sig/erb.rbs +0 -4
- data/assets/sig/erubi.rbs +0 -4
- data/assets/sig/i18n.rbs +0 -4
- data/assets/sig/libxml.rbs +0 -10
- data/assets/sig/minitest.rbs +0 -13
- data/assets/sig/nokogiri.rbs +0 -8
- data/assets/sig/pg.rbs +0 -5
- data/assets/sig/que.rbs +0 -4
- data/assets/sig/queue_classic.rbs +0 -4
- data/assets/sig/racc.rbs +0 -4
- data/assets/sig/rack-test.rbs +0 -6
- data/assets/sig/rack.rbs +0 -47
- data/assets/sig/rails.rbs +0 -10
- data/assets/sig/rdoc.rbs +0 -9
- data/assets/sig/sidekiq.rbs +0 -4
- data/assets/sig/sneakers.rbs +0 -4
- data/assets/sig/stdlib.rbs +0 -24
- data/assets/sig/sucker_punch.rbs +0 -4
- data/assets/sig/thor.rbs +0 -12
- data/assets/sig/tzinfo.rbs +0 -4
- data/bin/gem_rbs +0 -94
- data/bin/rbs +0 -30
data/bin/rbs
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!ruby
|
2
|
-
|
3
|
-
require 'pathname'
|
4
|
-
root = Pathname(__dir__) / '../'
|
5
|
-
|
6
|
-
def v(require)
|
7
|
-
if v = ENV['RAILS_VERSION']
|
8
|
-
"#{require}:#{v}"
|
9
|
-
else
|
10
|
-
require
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def repo
|
15
|
-
ENV['RBS_REPO_DIR'] || Pathname(__dir__).join('../gem_rbs/gems').to_s
|
16
|
-
end
|
17
|
-
|
18
|
-
exec(
|
19
|
-
'rbs',
|
20
|
-
# Require stdlibs
|
21
|
-
'-rlogger', '-rpathname', '-rmutex_m', '-rdate',
|
22
|
-
"--repo=#{repo}",
|
23
|
-
# Require Rails libraries
|
24
|
-
v('-ractivesupport'), v('-ractionpack'), v('-ractivejob'), v('-ractivemodel'), v('-ractionview'), v('-ractiverecord'), v('-rrailties'),
|
25
|
-
# Load signatures that are bundled in rbs_rails
|
26
|
-
'-I' + root.join('sig').to_s, '-I' + root.join('assets/sig').to_s,
|
27
|
-
# Expand arguments
|
28
|
-
*ARGV,
|
29
|
-
)
|
30
|
-
|