sorbet-rails 0.7.27 → 0.7.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci-master.yml +2 -0
  3. data/.github/workflows/publish-gem.yml +9 -19
  4. data/README.md +14 -2
  5. data/lib/sorbet-rails/active_record_rbi_formatter.rb +3 -3
  6. data/lib/sorbet-rails/gem_plugins/aasm_plugin.rb +7 -2
  7. data/lib/sorbet-rails/model_column_utils.rb +1 -1
  8. data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +1 -1
  9. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +13 -0
  10. data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
  11. data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +8 -0
  12. data/sorbet-rails.gemspec +2 -2
  13. data/spec/custom_finder_methods_spec.rb +23 -0
  14. data/spec/sorbet_spec.rb +3 -0
  15. data/spec/support/v5.2/Gemfile.lock +76 -67
  16. data/spec/support/v6.0/Gemfile.lock +93 -85
  17. data/spec/support/v6.1/Gemfile +1 -1
  18. data/spec/support/v6.1/Gemfile.lock +115 -108
  19. data/spec/support/v6.1/sorbet_test_cases.rb +3 -0
  20. data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
  21. data/spec/test_data/v5.2/expected_attachment.rbi +3 -3
  22. data/spec/test_data/v5.2/expected_blob.rbi +3 -3
  23. data/spec/test_data/v5.2/expected_habtm_subjects.rbi +3 -3
  24. data/spec/test_data/v5.2/expected_habtm_wizards.rbi +3 -3
  25. data/spec/test_data/v5.2/expected_headmaster.rbi +3 -3
  26. data/spec/test_data/v5.2/expected_internal_metadata.rbi +3 -3
  27. data/spec/test_data/v5.2/expected_potion.rbi +3 -3
  28. data/spec/test_data/v5.2/expected_robe.rbi +3 -3
  29. data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
  30. data/spec/test_data/v5.2/expected_school.rbi +3 -3
  31. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +3 -3
  32. data/spec/test_data/v5.2/expected_spell.rbi +3 -3
  33. data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +3 -3
  34. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +3 -3
  35. data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
  36. data/spec/test_data/v5.2/expected_squib.rbi +3 -3
  37. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +3 -3
  38. data/spec/test_data/v5.2/expected_subject.rbi +3 -3
  39. data/spec/test_data/v5.2/expected_wand.rbi +3 -3
  40. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +3 -3
  41. data/spec/test_data/v5.2/expected_wizard.rbi +3 -3
  42. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +6 -6
  43. data/spec/test_data/v6.0/expected_active_record_relation.rbi +2 -2
  44. data/spec/test_data/v6.0/expected_attachment.rbi +3 -3
  45. data/spec/test_data/v6.0/expected_blob.rbi +3 -3
  46. data/spec/test_data/v6.0/expected_habtm_subjects.rbi +3 -3
  47. data/spec/test_data/v6.0/expected_habtm_wizards.rbi +3 -3
  48. data/spec/test_data/v6.0/expected_headmaster.rbi +3 -3
  49. data/spec/test_data/v6.0/expected_internal_metadata.rbi +3 -3
  50. data/spec/test_data/v6.0/expected_potion.rbi +3 -3
  51. data/spec/test_data/v6.0/expected_robe.rbi +3 -3
  52. data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
  53. data/spec/test_data/v6.0/expected_school.rbi +3 -3
  54. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +3 -3
  55. data/spec/test_data/v6.0/expected_spell.rbi +3 -3
  56. data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +3 -3
  57. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +3 -3
  58. data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
  59. data/spec/test_data/v6.0/expected_squib.rbi +3 -3
  60. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +3 -3
  61. data/spec/test_data/v6.0/expected_subject.rbi +3 -3
  62. data/spec/test_data/v6.0/expected_wand.rbi +3 -3
  63. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +3 -3
  64. data/spec/test_data/v6.0/expected_wizard.rbi +3 -3
  65. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +6 -6
  66. data/spec/test_data/v6.1/expected_active_record_relation.rbi +2 -2
  67. data/spec/test_data/v6.1/expected_attachment.rbi +9 -3
  68. data/spec/test_data/v6.1/expected_blob.rbi +9 -3
  69. data/spec/test_data/v6.1/expected_habtm_subjects.rbi +3 -3
  70. data/spec/test_data/v6.1/expected_habtm_wizards.rbi +3 -3
  71. data/spec/test_data/v6.1/expected_headmaster.rbi +9 -3
  72. data/spec/test_data/v6.1/expected_internal_metadata.rbi +9 -3
  73. data/spec/test_data/v6.1/expected_potion.rbi +9 -3
  74. data/spec/test_data/v6.1/expected_record.rbi +9 -3
  75. data/spec/test_data/v6.1/expected_robe.rbi +9 -3
  76. data/spec/test_data/v6.1/expected_schema_migration.rbi +9 -3
  77. data/spec/test_data/v6.1/expected_school.rbi +9 -3
  78. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +9 -3
  79. data/spec/test_data/v6.1/expected_spell.rbi +9 -3
  80. data/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +3 -3
  81. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +9 -3
  82. data/spec/test_data/v6.1/expected_spell_book.rbi +9 -3
  83. data/spec/test_data/v6.1/expected_squib.rbi +9 -3
  84. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +9 -3
  85. data/spec/test_data/v6.1/expected_subject.rbi +9 -3
  86. data/spec/test_data/v6.1/expected_variant_record.rbi +9 -3
  87. data/spec/test_data/v6.1/expected_wand.rbi +9 -3
  88. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +9 -3
  89. data/spec/test_data/v6.1/expected_wizard.rbi +9 -3
  90. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +12 -6
  91. metadata +3 -3
@@ -1,66 +1,66 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- sorbet-rails (0.7.100)
4
+ sorbet-rails (0.7.32)
5
5
  method_source (>= 0.9.2)
6
6
  parlour (>= 4.0.1)
7
7
  parser (>= 2.7)
8
8
  sorbet-coerce (>= 0.2.6)
9
- sorbet-runtime (>= 0.5)
9
+ sorbet-runtime (>= 0.5.9892)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actioncable (6.0.4)
15
- actionpack (= 6.0.4)
14
+ actioncable (6.0.4.7)
15
+ actionpack (= 6.0.4.7)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (6.0.4)
19
- actionpack (= 6.0.4)
20
- activejob (= 6.0.4)
21
- activerecord (= 6.0.4)
22
- activestorage (= 6.0.4)
23
- activesupport (= 6.0.4)
18
+ actionmailbox (6.0.4.7)
19
+ actionpack (= 6.0.4.7)
20
+ activejob (= 6.0.4.7)
21
+ activerecord (= 6.0.4.7)
22
+ activestorage (= 6.0.4.7)
23
+ activesupport (= 6.0.4.7)
24
24
  mail (>= 2.7.1)
25
- actionmailer (6.0.4)
26
- actionpack (= 6.0.4)
27
- actionview (= 6.0.4)
28
- activejob (= 6.0.4)
25
+ actionmailer (6.0.4.7)
26
+ actionpack (= 6.0.4.7)
27
+ actionview (= 6.0.4.7)
28
+ activejob (= 6.0.4.7)
29
29
  mail (~> 2.5, >= 2.5.4)
30
30
  rails-dom-testing (~> 2.0)
31
- actionpack (6.0.4)
32
- actionview (= 6.0.4)
33
- activesupport (= 6.0.4)
31
+ actionpack (6.0.4.7)
32
+ actionview (= 6.0.4.7)
33
+ activesupport (= 6.0.4.7)
34
34
  rack (~> 2.0, >= 2.0.8)
35
35
  rack-test (>= 0.6.3)
36
36
  rails-dom-testing (~> 2.0)
37
37
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
38
- actiontext (6.0.4)
39
- actionpack (= 6.0.4)
40
- activerecord (= 6.0.4)
41
- activestorage (= 6.0.4)
42
- activesupport (= 6.0.4)
38
+ actiontext (6.0.4.7)
39
+ actionpack (= 6.0.4.7)
40
+ activerecord (= 6.0.4.7)
41
+ activestorage (= 6.0.4.7)
42
+ activesupport (= 6.0.4.7)
43
43
  nokogiri (>= 1.8.5)
44
- actionview (6.0.4)
45
- activesupport (= 6.0.4)
44
+ actionview (6.0.4.7)
45
+ activesupport (= 6.0.4.7)
46
46
  builder (~> 3.1)
47
47
  erubi (~> 1.4)
48
48
  rails-dom-testing (~> 2.0)
49
49
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
50
- activejob (6.0.4)
51
- activesupport (= 6.0.4)
50
+ activejob (6.0.4.7)
51
+ activesupport (= 6.0.4.7)
52
52
  globalid (>= 0.3.6)
53
- activemodel (6.0.4)
54
- activesupport (= 6.0.4)
55
- activerecord (6.0.4)
56
- activemodel (= 6.0.4)
57
- activesupport (= 6.0.4)
58
- activestorage (6.0.4)
59
- actionpack (= 6.0.4)
60
- activejob (= 6.0.4)
61
- activerecord (= 6.0.4)
53
+ activemodel (6.0.4.7)
54
+ activesupport (= 6.0.4.7)
55
+ activerecord (6.0.4.7)
56
+ activemodel (= 6.0.4.7)
57
+ activesupport (= 6.0.4.7)
58
+ activestorage (6.0.4.7)
59
+ actionpack (= 6.0.4.7)
60
+ activejob (= 6.0.4.7)
61
+ activerecord (= 6.0.4.7)
62
62
  marcel (~> 1.0.0)
63
- activesupport (6.0.4)
63
+ activesupport (6.0.4.7)
64
64
  concurrent-ruby (~> 1.0, >= 1.0.2)
65
65
  i18n (>= 0.7, < 2)
66
66
  minitest (~> 5.1)
@@ -72,97 +72,105 @@ GEM
72
72
  byebug (11.1.3)
73
73
  commander (4.6.0)
74
74
  highline (~> 2.0.0)
75
- concurrent-ruby (1.1.9)
75
+ concurrent-ruby (1.1.10)
76
76
  crass (1.0.6)
77
77
  erubi (1.10.0)
78
- globalid (0.4.2)
79
- activesupport (>= 4.2.0)
78
+ globalid (1.0.0)
79
+ activesupport (>= 5.0)
80
80
  highline (2.0.3)
81
- i18n (1.8.10)
81
+ i18n (1.10.0)
82
82
  concurrent-ruby (~> 1.0)
83
- jbuilder (2.11.2)
83
+ jbuilder (2.11.5)
84
+ actionview (>= 5.0.0)
84
85
  activesupport (>= 5.0.0)
85
- loofah (2.10.0)
86
+ loofah (2.16.0)
86
87
  crass (~> 1.0.2)
87
88
  nokogiri (>= 1.5.9)
88
89
  mail (2.7.1)
89
90
  mini_mime (>= 0.1.1)
90
- marcel (1.0.1)
91
+ marcel (1.0.2)
91
92
  method_source (1.0.0)
92
- mini_mime (1.1.0)
93
- mini_portile2 (2.5.3)
94
- minitest (5.14.4)
95
- nio4r (2.5.7)
96
- nokogiri (1.11.7)
97
- mini_portile2 (~> 2.5.0)
93
+ mini_mime (1.1.2)
94
+ mini_portile2 (2.8.0)
95
+ minitest (5.15.0)
96
+ nio4r (2.5.8)
97
+ nokogiri (1.13.4)
98
+ mini_portile2 (~> 2.8.0)
98
99
  racc (~> 1.4)
99
- nokogiri (1.11.7-x86_64-darwin)
100
+ nokogiri (1.13.4-x86_64-darwin)
100
101
  racc (~> 1.4)
101
- parlour (6.0.1)
102
+ parlour (7.0.0)
102
103
  commander (~> 4.5)
103
104
  parser
104
105
  rainbow (~> 3.0)
105
106
  sorbet-runtime (>= 0.5)
106
- parser (3.0.2.0)
107
+ parser (3.1.2.0)
107
108
  ast (~> 2.4.1)
108
109
  polyfill (1.9.0)
109
- puma (4.3.8)
110
+ puma (4.3.12)
110
111
  nio4r (~> 2.0)
111
- racc (1.5.2)
112
+ racc (1.6.0)
112
113
  rack (2.2.3)
113
114
  rack-test (1.1.0)
114
115
  rack (>= 1.0, < 3)
115
- rails (6.0.4)
116
- actioncable (= 6.0.4)
117
- actionmailbox (= 6.0.4)
118
- actionmailer (= 6.0.4)
119
- actionpack (= 6.0.4)
120
- actiontext (= 6.0.4)
121
- actionview (= 6.0.4)
122
- activejob (= 6.0.4)
123
- activemodel (= 6.0.4)
124
- activerecord (= 6.0.4)
125
- activestorage (= 6.0.4)
126
- activesupport (= 6.0.4)
116
+ rails (6.0.4.7)
117
+ actioncable (= 6.0.4.7)
118
+ actionmailbox (= 6.0.4.7)
119
+ actionmailer (= 6.0.4.7)
120
+ actionpack (= 6.0.4.7)
121
+ actiontext (= 6.0.4.7)
122
+ actionview (= 6.0.4.7)
123
+ activejob (= 6.0.4.7)
124
+ activemodel (= 6.0.4.7)
125
+ activerecord (= 6.0.4.7)
126
+ activestorage (= 6.0.4.7)
127
+ activesupport (= 6.0.4.7)
127
128
  bundler (>= 1.3.0)
128
- railties (= 6.0.4)
129
+ railties (= 6.0.4.7)
129
130
  sprockets-rails (>= 2.0.0)
130
131
  rails-dom-testing (2.0.3)
131
132
  activesupport (>= 4.2.0)
132
133
  nokogiri (>= 1.6)
133
- rails-html-sanitizer (1.3.0)
134
+ rails-html-sanitizer (1.4.2)
134
135
  loofah (~> 2.3)
135
- railties (6.0.4)
136
- actionpack (= 6.0.4)
137
- activesupport (= 6.0.4)
136
+ railties (6.0.4.7)
137
+ actionpack (= 6.0.4.7)
138
+ activesupport (= 6.0.4.7)
138
139
  method_source
139
140
  rake (>= 0.8.7)
140
141
  thor (>= 0.20.3, < 2.0)
141
- rainbow (3.0.0)
142
+ rainbow (3.1.1)
142
143
  rake (13.0.6)
143
144
  safe_type (1.1.1)
144
- sorbet (0.5.6519)
145
- sorbet-static (= 0.5.6519)
145
+ sorbet (0.5.9892)
146
+ sorbet-static (= 0.5.9892)
146
147
  sorbet-coerce (0.5.0)
147
148
  polyfill (~> 1.8)
148
149
  safe_type (~> 1.1, >= 1.1.1)
149
150
  sorbet-runtime (>= 0.4.4704)
150
- sorbet-runtime (0.5.6519)
151
- sorbet-static (0.5.6519-universal-darwin-19)
152
- sorbet-static (0.5.6519-x86_64-linux)
153
- sprockets (4.0.2)
151
+ sorbet-runtime (0.5.9892)
152
+ sorbet-static (0.5.9892-universal-darwin-14)
153
+ sorbet-static (0.5.9892-universal-darwin-15)
154
+ sorbet-static (0.5.9892-universal-darwin-16)
155
+ sorbet-static (0.5.9892-universal-darwin-17)
156
+ sorbet-static (0.5.9892-universal-darwin-18)
157
+ sorbet-static (0.5.9892-universal-darwin-19)
158
+ sorbet-static (0.5.9892-universal-darwin-20)
159
+ sorbet-static (0.5.9892-universal-darwin-21)
160
+ sorbet-static (0.5.9892-x86_64-linux)
161
+ sprockets (4.0.3)
154
162
  concurrent-ruby (~> 1.0)
155
163
  rack (> 1, < 3)
156
- sprockets-rails (3.2.2)
157
- actionpack (>= 4.0)
158
- activesupport (>= 4.0)
164
+ sprockets-rails (3.4.2)
165
+ actionpack (>= 5.2)
166
+ activesupport (>= 5.2)
159
167
  sprockets (>= 3.0.0)
160
168
  sqlite3 (1.4.2)
161
- thor (1.1.0)
169
+ thor (1.2.1)
162
170
  thread_safe (0.3.6)
163
171
  tzinfo (1.2.9)
164
172
  thread_safe (~> 0.1)
165
- web-console (4.1.0)
173
+ web-console (4.2.0)
166
174
  actionview (>= 6.0.0)
167
175
  activemodel (>= 6.0.0)
168
176
  bindex (>= 0.4.0)
@@ -170,7 +178,7 @@ GEM
170
178
  websocket-driver (0.7.5)
171
179
  websocket-extensions (>= 0.1.0)
172
180
  websocket-extensions (0.1.5)
173
- zeitwerk (2.4.2)
181
+ zeitwerk (2.5.4)
174
182
 
175
183
  PLATFORMS
176
184
  ruby
@@ -189,4 +197,4 @@ DEPENDENCIES
189
197
  web-console (>= 3.3.0)
190
198
 
191
199
  BUNDLED WITH
192
- 2.2.24
200
+ 2.2.32
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
- ruby '2.5.5'
4
+ #ruby '2.5.5'
5
5
 
6
6
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7
7
  gem 'rails', '~> 6.1.4'
@@ -1,177 +1,187 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- sorbet-rails (0.7.4)
4
+ sorbet-rails (0.7.32)
5
5
  method_source (>= 0.9.2)
6
6
  parlour (>= 4.0.1)
7
7
  parser (>= 2.7)
8
8
  sorbet-coerce (>= 0.2.6)
9
- sorbet-runtime (>= 0.5)
9
+ sorbet-runtime (>= 0.5.9892)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actioncable (6.0.3.2)
15
- actionpack (= 6.0.3.2)
14
+ actioncable (6.1.5)
15
+ actionpack (= 6.1.5)
16
+ activesupport (= 6.1.5)
16
17
  nio4r (~> 2.0)
17
18
  websocket-driver (>= 0.6.1)
18
- actionmailbox (6.0.3.2)
19
- actionpack (= 6.0.3.2)
20
- activejob (= 6.0.3.2)
21
- activerecord (= 6.0.3.2)
22
- activestorage (= 6.0.3.2)
23
- activesupport (= 6.0.3.2)
19
+ actionmailbox (6.1.5)
20
+ actionpack (= 6.1.5)
21
+ activejob (= 6.1.5)
22
+ activerecord (= 6.1.5)
23
+ activestorage (= 6.1.5)
24
+ activesupport (= 6.1.5)
24
25
  mail (>= 2.7.1)
25
- actionmailer (6.0.3.2)
26
- actionpack (= 6.0.3.2)
27
- actionview (= 6.0.3.2)
28
- activejob (= 6.0.3.2)
26
+ actionmailer (6.1.5)
27
+ actionpack (= 6.1.5)
28
+ actionview (= 6.1.5)
29
+ activejob (= 6.1.5)
30
+ activesupport (= 6.1.5)
29
31
  mail (~> 2.5, >= 2.5.4)
30
32
  rails-dom-testing (~> 2.0)
31
- actionpack (6.0.3.2)
32
- actionview (= 6.0.3.2)
33
- activesupport (= 6.0.3.2)
34
- rack (~> 2.0, >= 2.0.8)
33
+ actionpack (6.1.5)
34
+ actionview (= 6.1.5)
35
+ activesupport (= 6.1.5)
36
+ rack (~> 2.0, >= 2.0.9)
35
37
  rack-test (>= 0.6.3)
36
38
  rails-dom-testing (~> 2.0)
37
39
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
38
- actiontext (6.0.3.2)
39
- actionpack (= 6.0.3.2)
40
- activerecord (= 6.0.3.2)
41
- activestorage (= 6.0.3.2)
42
- activesupport (= 6.0.3.2)
40
+ actiontext (6.1.5)
41
+ actionpack (= 6.1.5)
42
+ activerecord (= 6.1.5)
43
+ activestorage (= 6.1.5)
44
+ activesupport (= 6.1.5)
43
45
  nokogiri (>= 1.8.5)
44
- actionview (6.0.3.2)
45
- activesupport (= 6.0.3.2)
46
+ actionview (6.1.5)
47
+ activesupport (= 6.1.5)
46
48
  builder (~> 3.1)
47
49
  erubi (~> 1.4)
48
50
  rails-dom-testing (~> 2.0)
49
51
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
50
- activejob (6.0.3.2)
51
- activesupport (= 6.0.3.2)
52
+ activejob (6.1.5)
53
+ activesupport (= 6.1.5)
52
54
  globalid (>= 0.3.6)
53
- activemodel (6.0.3.2)
54
- activesupport (= 6.0.3.2)
55
- activerecord (6.0.3.2)
56
- activemodel (= 6.0.3.2)
57
- activesupport (= 6.0.3.2)
58
- activestorage (6.0.3.2)
59
- actionpack (= 6.0.3.2)
60
- activejob (= 6.0.3.2)
61
- activerecord (= 6.0.3.2)
62
- marcel (~> 0.3.1)
63
- activesupport (6.0.3.2)
55
+ activemodel (6.1.5)
56
+ activesupport (= 6.1.5)
57
+ activerecord (6.1.5)
58
+ activemodel (= 6.1.5)
59
+ activesupport (= 6.1.5)
60
+ activestorage (6.1.5)
61
+ actionpack (= 6.1.5)
62
+ activejob (= 6.1.5)
63
+ activerecord (= 6.1.5)
64
+ activesupport (= 6.1.5)
65
+ marcel (~> 1.0)
66
+ mini_mime (>= 1.1.0)
67
+ activesupport (6.1.5)
64
68
  concurrent-ruby (~> 1.0, >= 1.0.2)
65
- i18n (>= 0.7, < 2)
66
- minitest (~> 5.1)
67
- tzinfo (~> 1.1)
68
- zeitwerk (~> 2.2, >= 2.2.2)
69
+ i18n (>= 1.6, < 2)
70
+ minitest (>= 5.1)
71
+ tzinfo (~> 2.0)
72
+ zeitwerk (~> 2.3)
69
73
  ast (2.4.2)
70
74
  bindex (0.8.1)
71
75
  builder (3.2.4)
72
76
  byebug (11.1.3)
73
77
  commander (4.6.0)
74
78
  highline (~> 2.0.0)
75
- concurrent-ruby (1.1.6)
79
+ concurrent-ruby (1.1.10)
76
80
  crass (1.0.6)
77
- erubi (1.9.0)
78
- globalid (0.4.2)
79
- activesupport (>= 4.2.0)
81
+ erubi (1.10.0)
82
+ globalid (1.0.0)
83
+ activesupport (>= 5.0)
80
84
  highline (2.0.3)
81
- i18n (1.8.3)
85
+ i18n (1.10.0)
82
86
  concurrent-ruby (~> 1.0)
83
- jbuilder (2.10.0)
87
+ jbuilder (2.11.5)
88
+ actionview (>= 5.0.0)
84
89
  activesupport (>= 5.0.0)
85
- loofah (2.6.0)
90
+ loofah (2.16.0)
86
91
  crass (~> 1.0.2)
87
92
  nokogiri (>= 1.5.9)
88
93
  mail (2.7.1)
89
94
  mini_mime (>= 0.1.1)
90
- marcel (0.3.3)
91
- mimemagic (~> 0.3.2)
95
+ marcel (1.0.2)
92
96
  method_source (1.0.0)
93
- mimemagic (0.3.5)
94
- mini_mime (1.0.2)
95
- mini_portile2 (2.5.0)
96
- minitest (5.14.1)
97
- nio4r (2.5.2)
98
- nokogiri (1.11.1)
99
- mini_portile2 (~> 2.5.0)
97
+ mini_mime (1.1.2)
98
+ mini_portile2 (2.8.0)
99
+ minitest (5.15.0)
100
+ nio4r (2.5.8)
101
+ nokogiri (1.13.4)
102
+ mini_portile2 (~> 2.8.0)
100
103
  racc (~> 1.4)
101
- nokogiri (1.11.1-x86_64-darwin)
104
+ nokogiri (1.13.4-x86_64-darwin)
102
105
  racc (~> 1.4)
103
- parlour (6.0.0)
106
+ parlour (7.0.0)
104
107
  commander (~> 4.5)
105
108
  parser
106
109
  rainbow (~> 3.0)
107
110
  sorbet-runtime (>= 0.5)
108
- parser (3.0.1.1)
111
+ parser (3.1.2.0)
109
112
  ast (~> 2.4.1)
110
113
  polyfill (1.9.0)
111
- puma (4.3.5)
114
+ puma (5.6.4)
112
115
  nio4r (~> 2.0)
113
- racc (1.5.2)
116
+ racc (1.6.0)
114
117
  rack (2.2.3)
115
118
  rack-test (1.1.0)
116
119
  rack (>= 1.0, < 3)
117
- rails (6.0.3.2)
118
- actioncable (= 6.0.3.2)
119
- actionmailbox (= 6.0.3.2)
120
- actionmailer (= 6.0.3.2)
121
- actionpack (= 6.0.3.2)
122
- actiontext (= 6.0.3.2)
123
- actionview (= 6.0.3.2)
124
- activejob (= 6.0.3.2)
125
- activemodel (= 6.0.3.2)
126
- activerecord (= 6.0.3.2)
127
- activestorage (= 6.0.3.2)
128
- activesupport (= 6.0.3.2)
129
- bundler (>= 1.3.0)
130
- railties (= 6.0.3.2)
120
+ rails (6.1.5)
121
+ actioncable (= 6.1.5)
122
+ actionmailbox (= 6.1.5)
123
+ actionmailer (= 6.1.5)
124
+ actionpack (= 6.1.5)
125
+ actiontext (= 6.1.5)
126
+ actionview (= 6.1.5)
127
+ activejob (= 6.1.5)
128
+ activemodel (= 6.1.5)
129
+ activerecord (= 6.1.5)
130
+ activestorage (= 6.1.5)
131
+ activesupport (= 6.1.5)
132
+ bundler (>= 1.15.0)
133
+ railties (= 6.1.5)
131
134
  sprockets-rails (>= 2.0.0)
132
135
  rails-dom-testing (2.0.3)
133
136
  activesupport (>= 4.2.0)
134
137
  nokogiri (>= 1.6)
135
- rails-html-sanitizer (1.3.0)
138
+ rails-html-sanitizer (1.4.2)
136
139
  loofah (~> 2.3)
137
- railties (6.0.3.2)
138
- actionpack (= 6.0.3.2)
139
- activesupport (= 6.0.3.2)
140
+ railties (6.1.5)
141
+ actionpack (= 6.1.5)
142
+ activesupport (= 6.1.5)
140
143
  method_source
141
- rake (>= 0.8.7)
142
- thor (>= 0.20.3, < 2.0)
143
- rainbow (3.0.0)
144
- rake (13.0.1)
144
+ rake (>= 12.2)
145
+ thor (~> 1.0)
146
+ rainbow (3.1.1)
147
+ rake (13.0.6)
145
148
  safe_type (1.1.1)
146
- sorbet (0.5.5815)
147
- sorbet-static (= 0.5.5815)
148
- sorbet-coerce (0.4.0)
149
+ sorbet (0.5.9892)
150
+ sorbet-static (= 0.5.9892)
151
+ sorbet-coerce (0.5.0)
149
152
  polyfill (~> 1.8)
150
153
  safe_type (~> 1.1, >= 1.1.1)
151
154
  sorbet-runtime (>= 0.4.4704)
152
- sorbet-runtime (0.5.5815)
153
- sorbet-static (0.5.5815-universal-darwin-19)
154
- sprockets (4.0.2)
155
+ sorbet-runtime (0.5.9892)
156
+ sorbet-static (0.5.9892-universal-darwin-14)
157
+ sorbet-static (0.5.9892-universal-darwin-15)
158
+ sorbet-static (0.5.9892-universal-darwin-16)
159
+ sorbet-static (0.5.9892-universal-darwin-17)
160
+ sorbet-static (0.5.9892-universal-darwin-18)
161
+ sorbet-static (0.5.9892-universal-darwin-19)
162
+ sorbet-static (0.5.9892-universal-darwin-20)
163
+ sorbet-static (0.5.9892-universal-darwin-21)
164
+ sorbet-static (0.5.9892-x86_64-linux)
165
+ sprockets (4.0.3)
155
166
  concurrent-ruby (~> 1.0)
156
167
  rack (> 1, < 3)
157
- sprockets-rails (3.2.1)
158
- actionpack (>= 4.0)
159
- activesupport (>= 4.0)
168
+ sprockets-rails (3.4.2)
169
+ actionpack (>= 5.2)
170
+ activesupport (>= 5.2)
160
171
  sprockets (>= 3.0.0)
161
172
  sqlite3 (1.4.2)
162
- thor (1.0.1)
163
- thread_safe (0.3.6)
164
- tzinfo (1.2.7)
165
- thread_safe (~> 0.1)
166
- web-console (4.0.4)
173
+ thor (1.2.1)
174
+ tzinfo (2.0.4)
175
+ concurrent-ruby (~> 1.0)
176
+ web-console (4.2.0)
167
177
  actionview (>= 6.0.0)
168
178
  activemodel (>= 6.0.0)
169
179
  bindex (>= 0.4.0)
170
180
  railties (>= 6.0.0)
171
- websocket-driver (0.7.3)
181
+ websocket-driver (0.7.5)
172
182
  websocket-extensions (>= 0.1.0)
173
183
  websocket-extensions (0.1.5)
174
- zeitwerk (2.3.1)
184
+ zeitwerk (2.5.4)
175
185
 
176
186
  PLATFORMS
177
187
  ruby
@@ -180,17 +190,14 @@ PLATFORMS
180
190
  DEPENDENCIES
181
191
  byebug
182
192
  jbuilder (~> 2.7)
183
- puma (~> 4.1)
184
- rails (~> 6.0.3)
193
+ puma (~> 5.0)
194
+ rails (~> 6.1.4)
185
195
  sorbet
186
196
  sorbet-rails!
187
197
  sorbet-runtime
188
198
  sqlite3 (~> 1.4)
189
199
  tzinfo-data
190
- web-console (>= 3.3.0)
191
-
192
- RUBY VERSION
193
- ruby 2.5.5p157
200
+ web-console (>= 4.1.0)
194
201
 
195
202
  BUNDLED WITH
196
- 2.2.0
203
+ 2.2.32
@@ -86,6 +86,7 @@ T.assert_type!(Wizard.eager_load(:spell_books), Wizard::ActiveRecord_Relation)
86
86
  T.assert_type!(Wizard.order(:id), Wizard::ActiveRecord_Relation)
87
87
  T.assert_type!(Wizard.select { |r| r.id == 1 }, T::Array[Wizard])
88
88
  T.assert_type!(Wizard.select_columns(:id, :name), Wizard::ActiveRecord_Relation)
89
+ T.assert_type!(Wizard.where_missing(:wand), Wizard::ActiveRecord_Relation)
89
90
 
90
91
  # Finder methods -- ActiveRecord::Relation
91
92
  T.assert_type!(Wizard.all.exists?(name: 'Harry Potter'), T::Boolean)
@@ -150,6 +151,7 @@ T.assert_type!(Wizard.all.eager_load(:spell_books), Wizard::ActiveRecord_Relatio
150
151
  T.assert_type!(Wizard.all.order(:id), Wizard::ActiveRecord_Relation)
151
152
  T.assert_type!(Wizard.all.select { |r| r.id == 1 }, T::Array[Wizard])
152
153
  T.assert_type!(Wizard.all.select_columns(:id, :name), Wizard::ActiveRecord_Relation)
154
+ T.assert_type!(Wizard.all.where_missing(:wand), Wizard::ActiveRecord_Relation)
153
155
  # Enumerable methods
154
156
  Wizard.all.each { |w| T.assert_type!(w, Wizard) }
155
157
  Wizard.all.map { |w| T.assert_type!(w, Wizard) }
@@ -220,6 +222,7 @@ T.assert_type!(spell_books.eager_load(:wizard), SpellBook::ActiveRecord_Associat
220
222
  T.assert_type!(spell_books.order(:id), SpellBook::ActiveRecord_AssociationRelation)
221
223
  T.assert_type!(spell_books.select { |r| r.id == 1 }, T::Array[SpellBook])
222
224
  T.assert_type!(spell_books.select_columns(:id, :name), SpellBook::ActiveRecord_AssociationRelation)
225
+ T.assert_type!(spell_books.where_missing(:wizard), SpellBook::ActiveRecord_AssociationRelation)
223
226
 
224
227
  # Enumerable methods
225
228
  spell_books.each { |s| T.assert_type!(s, SpellBook) }
@@ -133,7 +133,7 @@ class ActiveRecord::Relation
133
133
  end
134
134
 
135
135
  class ActiveRecord::AssociationRelation < ActiveRecord::Relation
136
- Elem = type_member(fixed: T.untyped)
136
+ Elem = type_member {{fixed: T.untyped}}
137
137
 
138
138
  sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
139
139
  def new(*args, &block); end
@@ -149,7 +149,7 @@ class ActiveRecord::AssociationRelation < ActiveRecord::Relation
149
149
  end
150
150
 
151
151
  class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation
152
- Elem = type_member(fixed: T.untyped)
152
+ Elem = type_member {{fixed: T.untyped}}
153
153
 
154
154
  sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
155
155
  def new(attributes = nil, &block); end
@@ -281,20 +281,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
281
281
  include ActiveStorage::Attachment::ActiveRelation_WhereNot
282
282
  include ActiveStorage::Attachment::CustomFinderMethods
283
283
  include ActiveStorage::Attachment::QueryMethodsReturningRelation
284
- Elem = type_member(fixed: ActiveStorage::Attachment)
284
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
285
285
  end
286
286
 
287
287
  class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
288
288
  include ActiveStorage::Attachment::ActiveRelation_WhereNot
289
289
  include ActiveStorage::Attachment::CustomFinderMethods
290
290
  include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
291
- Elem = type_member(fixed: ActiveStorage::Attachment)
291
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
292
292
  end
293
293
 
294
294
  class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
295
295
  include ActiveStorage::Attachment::CustomFinderMethods
296
296
  include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
297
- Elem = type_member(fixed: ActiveStorage::Attachment)
297
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
298
298
 
299
299
  sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
300
300
  def <<(*records); end