packwerk 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +29 -20
  3. data/.github/workflows/cla.yml +22 -0
  4. data/.rubocop.yml +48 -19
  5. data/Gemfile +7 -2
  6. data/Gemfile.lock +201 -175
  7. data/README.md +1 -1
  8. data/RESOLVING_VIOLATIONS.md +81 -0
  9. data/Rakefile +1 -1
  10. data/USAGE.md +14 -5
  11. data/bin/m +1 -1
  12. data/bin/rake +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/srb +1 -1
  15. data/bin/tapioca +1 -1
  16. data/gemfiles/Gemfile-rails-6-0 +1 -1
  17. data/gemfiles/Gemfile-rails-6-1 +22 -0
  18. data/lib/packwerk/application_validator.rb +7 -6
  19. data/lib/packwerk/association_inspector.rb +17 -15
  20. data/lib/packwerk/cache.rb +36 -29
  21. data/lib/packwerk/cli.rb +5 -6
  22. data/lib/packwerk/const_node_inspector.rb +8 -7
  23. data/lib/packwerk/constant_name_inspector.rb +2 -2
  24. data/lib/packwerk/deprecated_references.rb +34 -19
  25. data/lib/packwerk/file_processor.rb +14 -14
  26. data/lib/packwerk/files_for_processing.rb +27 -31
  27. data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
  28. data/lib/packwerk/formatters/progress_formatter.rb +2 -2
  29. data/lib/packwerk/node.rb +1 -294
  30. data/lib/packwerk/node_helpers.rb +335 -0
  31. data/lib/packwerk/node_processor.rb +6 -5
  32. data/lib/packwerk/node_processor_factory.rb +3 -3
  33. data/lib/packwerk/node_visitor.rb +1 -1
  34. data/lib/packwerk/offense_collection.rb +6 -3
  35. data/lib/packwerk/offenses_formatter.rb +2 -2
  36. data/lib/packwerk/package.rb +3 -0
  37. data/lib/packwerk/package_set.rb +2 -0
  38. data/lib/packwerk/parse_run.rb +15 -13
  39. data/lib/packwerk/parsed_constant_definitions.rb +23 -20
  40. data/lib/packwerk/parsers/erb.rb +3 -3
  41. data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
  42. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
  43. data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
  44. data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
  45. data/lib/packwerk/reference_extractor.rb +51 -48
  46. data/lib/packwerk/reference_offense.rb +3 -27
  47. data/lib/packwerk/run_context.rb +3 -3
  48. data/lib/packwerk/spring_command.rb +1 -1
  49. data/lib/packwerk/version.rb +1 -1
  50. data/lib/packwerk.rb +1 -0
  51. data/packwerk.gemspec +4 -12
  52. data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
  53. data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
  54. data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
  55. data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
  56. data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
  57. data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
  58. data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
  59. data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
  60. data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
  61. data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
  62. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
  63. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
  64. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
  65. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  66. data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
  67. data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
  68. data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
  69. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  70. data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
  71. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
  72. data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
  73. data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
  74. data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
  75. data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
  76. data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
  77. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
  78. data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
  79. data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
  80. data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
  81. data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
  82. data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
  83. data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
  84. data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
  85. data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
  86. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
  87. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  88. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
  89. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
  90. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  91. data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
  92. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
  93. data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
  94. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
  95. data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
  96. data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
  97. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
  98. data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
  99. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
  100. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
  101. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
  102. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
  103. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
  104. data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
  105. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
  106. data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
  107. data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
  108. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
  109. data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
  110. data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
  111. data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
  112. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
  113. data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
  114. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  115. data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
  116. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
  117. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
  118. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
  119. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
  120. data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
  121. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
  122. data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
  123. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
  124. data/sorbet/rbi/shims/psych.rbi +5 -0
  125. data/sorbet/tapioca/require.rb +2 -3
  126. metadata +88 -157
  127. data/.github/probots.yml +0 -2
  128. data/library.yml +0 -6
  129. data/service.yml +0 -1
  130. data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
  131. data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
  132. data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
  133. data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
  134. data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
  135. data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
  136. data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
  137. data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
  138. data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
  139. data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
  140. data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
  141. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
  142. data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
  143. data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
  144. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
  145. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
  146. data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
  147. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  148. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
  149. data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
  150. data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
  151. data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
  152. data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
  153. data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
  154. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
  155. data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
  156. data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
  157. data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
  158. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
  159. data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
  160. data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
  161. data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
  162. data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
  163. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
  164. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
  165. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
  166. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
  167. data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
  168. data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
  169. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
  170. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
  171. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  172. data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
  173. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
  174. data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
  175. data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
  176. data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
  177. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
  178. data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
  179. data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
  180. data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
  181. data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
  182. data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
  183. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
  184. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
  185. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  186. data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
  187. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
@@ -0,0 +1,411 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `spring` gem.
5
+ # Please instead update this file by running `bin/tapioca gem spring`.
6
+
7
+ # Some parts adapted from
8
+ # https://golang.org/src/pkg/json/decode.go and
9
+ # https://golang.org/src/pkg/utf8/utf8.go
10
+ #
11
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:5
12
+ module Spring
13
+ class << self
14
+ # source://spring-4.0.0/lib/spring/configuration.rb:30
15
+ def after_fork(&block); end
16
+
17
+ # source://spring-4.0.0/lib/spring/configuration.rb:26
18
+ def after_fork_callbacks; end
19
+
20
+ # Returns the value of attribute application_root.
21
+ #
22
+ # source://spring-4.0.0/lib/spring/configuration.rb:5
23
+ def application_root; end
24
+
25
+ # Sets the attribute application_root
26
+ #
27
+ # @param value the value to set the attribute application_root to.
28
+ #
29
+ # source://spring-4.0.0/lib/spring/configuration.rb:5
30
+ def application_root=(_arg0); end
31
+
32
+ # source://spring-4.0.0/lib/spring/configuration.rb:38
33
+ def application_root_path; end
34
+
35
+ # source://spring-4.0.0/lib/spring/commands.rb:19
36
+ def command(name); end
37
+
38
+ # @return [Boolean]
39
+ #
40
+ # source://spring-4.0.0/lib/spring/commands.rb:15
41
+ def command?(name); end
42
+
43
+ # Returns the value of attribute commands.
44
+ #
45
+ # source://spring-4.0.0/lib/spring/commands.rb:8
46
+ def commands; end
47
+
48
+ # source://spring-4.0.0/lib/spring/configuration.rb:7
49
+ def gemfile; end
50
+
51
+ # source://spring-4.0.0/lib/spring/configuration.rb:17
52
+ def gemfile_lock; end
53
+
54
+ # source://spring-4.0.0/lib/spring/configuration.rb:51
55
+ def project_root_path; end
56
+
57
+ # Returns the value of attribute quiet.
58
+ #
59
+ # source://spring-4.0.0/lib/spring/configuration.rb:5
60
+ def quiet; end
61
+
62
+ # Sets the attribute quiet
63
+ #
64
+ # @param value the value to set the attribute quiet to.
65
+ #
66
+ # source://spring-4.0.0/lib/spring/configuration.rb:5
67
+ def quiet=(_arg0); end
68
+
69
+ # source://spring-4.0.0/lib/spring/commands.rb:11
70
+ def register_command(name, command = T.unsafe(nil)); end
71
+
72
+ # source://spring-4.0.0/lib/spring/configuration.rb:34
73
+ def verify_environment; end
74
+
75
+ # source://spring-4.0.0/lib/spring/watcher.rb:27
76
+ def watch(*items); end
77
+
78
+ # Returns the value of attribute watch_interval.
79
+ #
80
+ # source://spring-4.0.0/lib/spring/watcher.rb:6
81
+ def watch_interval; end
82
+
83
+ # Sets the attribute watch_interval
84
+ #
85
+ # @param value the value to set the attribute watch_interval to.
86
+ #
87
+ # source://spring-4.0.0/lib/spring/watcher.rb:6
88
+ def watch_interval=(_arg0); end
89
+
90
+ # Returns the value of attribute watch_method.
91
+ #
92
+ # source://spring-4.0.0/lib/spring/watcher.rb:8
93
+ def watch_method; end
94
+
95
+ # source://spring-4.0.0/lib/spring/watcher.rb:11
96
+ def watch_method=(method); end
97
+
98
+ # source://spring-4.0.0/lib/spring/watcher.rb:23
99
+ def watcher; end
100
+
101
+ # Sets the attribute watcher
102
+ #
103
+ # @param value the value to set the attribute watcher to.
104
+ #
105
+ # source://spring-4.0.0/lib/spring/watcher.rb:7
106
+ def watcher=(_arg0); end
107
+
108
+ private
109
+
110
+ # source://spring-4.0.0/lib/spring/configuration.rb:57
111
+ def find_project_root(current_dir); end
112
+ end
113
+ end
114
+
115
+ # source://spring-4.0.0/lib/spring/errors.rb:2
116
+ class Spring::ClientError < ::StandardError; end
117
+
118
+ # source://spring-4.0.0/lib/spring/errors.rb:34
119
+ class Spring::CommandNotFound < ::Spring::ClientError; end
120
+
121
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:4
122
+ class Spring::CommandWrapper
123
+ # @return [CommandWrapper] a new instance of CommandWrapper
124
+ #
125
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:7
126
+ def initialize(name, command = T.unsafe(nil)); end
127
+
128
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:60
129
+ def binstub; end
130
+
131
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:64
132
+ def binstub_name; end
133
+
134
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:36
135
+ def call; end
136
+
137
+ # Returns the value of attribute command.
138
+ #
139
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:5
140
+ def command; end
141
+
142
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:13
143
+ def description; end
144
+
145
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:76
146
+ def env(args); end
147
+
148
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:68
149
+ def exec; end
150
+
151
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:52
152
+ def exec_name; end
153
+
154
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:44
155
+ def gem_name; end
156
+
157
+ # Returns the value of attribute name.
158
+ #
159
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:5
160
+ def name; end
161
+
162
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:25
163
+ def setup; end
164
+
165
+ # @return [Boolean]
166
+ #
167
+ # source://spring-4.0.0/lib/spring/command_wrapper.rb:21
168
+ def setup?; end
169
+ end
170
+
171
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:2
172
+ module Spring::Commands; end
173
+
174
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:3
175
+ class Spring::Commands::Rails
176
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:4
177
+ def call; end
178
+
179
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:9
180
+ def description; end
181
+ end
182
+
183
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:14
184
+ class Spring::Commands::RailsConsole < ::Spring::Commands::Rails
185
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:31
186
+ def command_name; end
187
+
188
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:15
189
+ def env(args); end
190
+ end
191
+
192
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:42
193
+ class Spring::Commands::RailsDestroy < ::Spring::Commands::Rails
194
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:43
195
+ def command_name; end
196
+ end
197
+
198
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:36
199
+ class Spring::Commands::RailsGenerate < ::Spring::Commands::Rails
200
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:37
201
+ def command_name; end
202
+ end
203
+
204
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:48
205
+ class Spring::Commands::RailsRunner < ::Spring::Commands::Rails
206
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:49
207
+ def call; end
208
+
209
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:58
210
+ def command_name; end
211
+
212
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:54
213
+ def env(args); end
214
+
215
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:62
216
+ def extract_environment(args); end
217
+ end
218
+
219
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:86
220
+ class Spring::Commands::RailsTest < ::Spring::Commands::Rails
221
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:101
222
+ def command_name; end
223
+
224
+ # source://spring-4.0.0/lib/spring/commands/rails.rb:87
225
+ def env(args); end
226
+ end
227
+
228
+ # source://spring-4.0.0/lib/spring/commands/rake.rb:3
229
+ class Spring::Commands::Rake
230
+ # source://spring-4.0.0/lib/spring/commands/rake.rb:13
231
+ def env(args); end
232
+
233
+ class << self
234
+ # Returns the value of attribute environment_matchers.
235
+ #
236
+ # source://spring-4.0.0/lib/spring/commands/rake.rb:5
237
+ def environment_matchers; end
238
+
239
+ # Sets the attribute environment_matchers
240
+ #
241
+ # @param value the value to set the attribute environment_matchers to.
242
+ #
243
+ # source://spring-4.0.0/lib/spring/commands/rake.rb:5
244
+ def environment_matchers=(_arg0); end
245
+ end
246
+ end
247
+
248
+ # source://spring-4.0.0/lib/spring/errors.rb:18
249
+ class Spring::MissingApplication < ::Spring::ClientError
250
+ # @return [MissingApplication] a new instance of MissingApplication
251
+ #
252
+ # source://spring-4.0.0/lib/spring/errors.rb:21
253
+ def initialize(project_root); end
254
+
255
+ # source://spring-4.0.0/lib/spring/errors.rb:25
256
+ def message; end
257
+
258
+ # Returns the value of attribute project_root.
259
+ #
260
+ # source://spring-4.0.0/lib/spring/errors.rb:19
261
+ def project_root; end
262
+ end
263
+
264
+ # source://spring-4.0.0/lib/spring/errors.rb:4
265
+ class Spring::UnknownProject < ::StandardError
266
+ # @return [UnknownProject] a new instance of UnknownProject
267
+ #
268
+ # source://spring-4.0.0/lib/spring/errors.rb:7
269
+ def initialize(current_dir); end
270
+
271
+ # Returns the value of attribute current_dir.
272
+ #
273
+ # source://spring-4.0.0/lib/spring/errors.rb:5
274
+ def current_dir; end
275
+
276
+ # source://spring-4.0.0/lib/spring/errors.rb:11
277
+ def message; end
278
+ end
279
+
280
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:6
281
+ module Spring::Watcher; end
282
+
283
+ # A user of a watcher can use IO.select to wait for changes:
284
+ #
285
+ # watcher = MyWatcher.new(root, latency)
286
+ # IO.select([watcher]) # watcher is running in background
287
+ # watcher.stale? # => true
288
+ #
289
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:12
290
+ class Spring::Watcher::Abstract
291
+ include ::Mutex_m
292
+
293
+ # @return [Abstract] a new instance of Abstract
294
+ #
295
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:17
296
+ def initialize(root, latency); end
297
+
298
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:38
299
+ def add(*items); end
300
+
301
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:34
302
+ def debug; end
303
+
304
+ # Returns the value of attribute directories.
305
+ #
306
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:15
307
+ def directories; end
308
+
309
+ # Returns the value of attribute files.
310
+ #
311
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:15
312
+ def files; end
313
+
314
+ # Returns the value of attribute latency.
315
+ #
316
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:15
317
+ def latency; end
318
+
319
+ # source://RUBY_ROOT/mutex_m.rb:92
320
+ def lock; end
321
+
322
+ # source://RUBY_ROOT/mutex_m.rb:82
323
+ def locked?; end
324
+
325
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:91
326
+ def mark_stale; end
327
+
328
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:30
329
+ def on_debug(&block); end
330
+
331
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:86
332
+ def on_stale(&block); end
333
+
334
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:98
335
+ def restart; end
336
+
337
+ # Returns the value of attribute root.
338
+ #
339
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:15
340
+ def root; end
341
+
342
+ # @return [Boolean]
343
+ #
344
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:82
345
+ def stale?; end
346
+
347
+ # @raise [NotImplementedError]
348
+ #
349
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:104
350
+ def start; end
351
+
352
+ # @raise [NotImplementedError]
353
+ #
354
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:108
355
+ def stop; end
356
+
357
+ # @raise [NotImplementedError]
358
+ #
359
+ # source://spring-4.0.0/lib/spring/watcher/abstract.rb:112
360
+ def subjects_changed; end
361
+
362
+ # source://RUBY_ROOT/mutex_m.rb:77
363
+ def synchronize(&block); end
364
+
365
+ # source://RUBY_ROOT/mutex_m.rb:87
366
+ def try_lock; end
367
+
368
+ # source://RUBY_ROOT/mutex_m.rb:97
369
+ def unlock; end
370
+ end
371
+
372
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:5
373
+ class Spring::Watcher::Polling < ::Spring::Watcher::Abstract
374
+ # @return [Polling] a new instance of Polling
375
+ #
376
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:8
377
+ def initialize(root, latency); end
378
+
379
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:24
380
+ def add(*_arg0); end
381
+
382
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:14
383
+ def check_stale; end
384
+
385
+ # Returns the value of attribute mtime.
386
+ #
387
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:6
388
+ def mtime; end
389
+
390
+ # @return [Boolean]
391
+ #
392
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:60
393
+ def running?; end
394
+
395
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:29
396
+ def start; end
397
+
398
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:52
399
+ def stop; end
400
+
401
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:64
402
+ def subjects_changed; end
403
+
404
+ private
405
+
406
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:72
407
+ def compute_mtime; end
408
+
409
+ # source://spring-4.0.0/lib/spring/watcher/polling.rb:93
410
+ def expanded_files; end
411
+ end
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `strscan` gem.
5
+ # Please instead update this file by running `bin/tapioca gem strscan`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `syntax_tree` gem.
5
+ # Please instead update this file by running `bin/tapioca gem syntax_tree`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires