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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.dependabot/config.yml +5 -0
  3. data/.github/workflows/ci.yml +11 -2
  4. data/.gitignore +1 -1
  5. data/CHANGELOG.md +30 -0
  6. data/Gemfile +6 -3
  7. data/Gemfile.lock +179 -0
  8. data/README.md +11 -4
  9. data/Rakefile +4 -2
  10. data/Steepfile +1 -14
  11. data/bin/add-type-params.rb +1 -0
  12. data/bin/setup +1 -0
  13. data/lib/rbs_rails/active_record.rb +135 -18
  14. data/lib/rbs_rails/rake_task.rb +3 -14
  15. data/lib/rbs_rails/version.rb +1 -1
  16. data/rbs_collection.lock.yaml +132 -0
  17. data/rbs_collection.yaml +45 -0
  18. data/rbs_rails.gemspec +2 -2
  19. data/sig/activerecord.rbs +4 -0
  20. data/sig/rbs_rails/active_record.rbs +11 -0
  21. metadata +9 -29
  22. data/assets/sig/action_mailer.rbs +0 -8
  23. data/assets/sig/builtin.rbs +0 -7
  24. data/assets/sig/capybara.rbs +0 -14
  25. data/assets/sig/concurrent.rbs +0 -4
  26. data/assets/sig/erb.rbs +0 -4
  27. data/assets/sig/erubi.rbs +0 -4
  28. data/assets/sig/i18n.rbs +0 -4
  29. data/assets/sig/libxml.rbs +0 -10
  30. data/assets/sig/minitest.rbs +0 -13
  31. data/assets/sig/nokogiri.rbs +0 -8
  32. data/assets/sig/pg.rbs +0 -5
  33. data/assets/sig/que.rbs +0 -4
  34. data/assets/sig/queue_classic.rbs +0 -4
  35. data/assets/sig/racc.rbs +0 -4
  36. data/assets/sig/rack-test.rbs +0 -6
  37. data/assets/sig/rack.rbs +0 -47
  38. data/assets/sig/rails.rbs +0 -10
  39. data/assets/sig/rdoc.rbs +0 -9
  40. data/assets/sig/sidekiq.rbs +0 -4
  41. data/assets/sig/sneakers.rbs +0 -4
  42. data/assets/sig/stdlib.rbs +0 -24
  43. data/assets/sig/sucker_punch.rbs +0 -4
  44. data/assets/sig/thor.rbs +0 -12
  45. data/assets/sig/tzinfo.rbs +0 -4
  46. data/bin/gem_rbs +0 -94
  47. 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
-