active_cached_resource 0.0.1.pre → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -1
- data/Rakefile +22 -14
- data/lib/active_cached_resource/version.rb +3 -3
- data/lib/activeresource/examples/performance.rb +1 -1
- data/lib/activeresource/lib/active_resource/collection.rb +14 -1
- data/lib/activeresource/lib/active_resource/railtie.rb +2 -2
- data/lib/activeresource/lib/active_resource.rb +1 -1
- data/lib/activeresource/test/abstract_unit.rb +2 -1
- data/lib/activeresource/test/cases/active_job_serializer_test.rb +1 -1
- data/lib/activeresource/test/cases/collection_test.rb +24 -0
- data/lib/activeresource/test/cases/log_subscriber_test.rb +2 -1
- data/lib/activeresource/test/fixtures/fixtures.rbi +46 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/{actioncable@8.0.0.rbi → actioncable@8.0.1.rbi} +51 -51
- data/sorbet/rbi/gems/{actionpack@8.0.0.rbi → actionpack@8.0.1.rbi} +548 -346
- data/sorbet/rbi/gems/{actionview@8.0.0.rbi → actionview@8.0.1.rbi} +465 -263
- data/sorbet/rbi/gems/activejob@8.0.1.rbi +90 -0
- data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +4 -4
- data/sorbet/rbi/gems/{activemodel@8.0.0.rbi → activemodel@8.0.1.rbi} +11 -3
- data/sorbet/rbi/gems/{activerecord@8.0.0.rbi → activerecord@8.0.1.rbi} +957 -576
- data/sorbet/rbi/gems/{activesupport@8.0.0.rbi → activesupport@8.0.1.rbi} +287 -112
- data/sorbet/rbi/gems/{json@2.8.2.rbi → json@2.9.0.rbi} +107 -64
- data/sorbet/rbi/gems/{logger@1.6.1.rbi → logger@1.6.3.rbi} +31 -11
- data/sorbet/rbi/gems/mocha@2.7.1.rbi +12 -0
- data/sorbet/rbi/gems/msgpack@1.7.5.rbi +320 -0
- data/sorbet/rbi/gems/{nokogiri@1.16.7.rbi → nokogiri@1.17.2.rbi} +1692 -802
- data/sorbet/rbi/gems/{psych@5.2.0.rbi → psych@5.2.1.rbi} +47 -47
- data/sorbet/rbi/gems/rack@3.1.8.rbi +1 -1
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +22 -22
- data/sorbet/rbi/gems/{rails-html-sanitizer@1.6.0.rbi → rails-html-sanitizer@1.6.2.rbi} +100 -100
- data/sorbet/rbi/gems/{railties@8.0.0.rbi → railties@8.0.1.rbi} +186 -126
- data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -63
- data/sorbet/rbi/gems/{rdoc@6.8.1.rbi → rdoc@6.9.1.rbi} +160 -139
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.9.3.rbi} +35 -35
- data/sorbet/rbi/gems/{reline@0.5.12.rbi → reline@0.6.0.rbi} +473 -435
- data/sorbet/rbi/gems/{rexml@3.3.9.rbi → rexml@3.4.0.rbi} +87 -74
- data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +3 -6
- data/sorbet/rbi/gems/{rubocop-ast@1.36.1.rbi → rubocop-ast@1.37.0.rbi} +514 -104
- data/sorbet/rbi/gems/rubocop-md@1.2.4.rbi +123 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.36.0.rbi +2613 -0
- data/sorbet/rbi/gems/rubocop-packaging@0.5.2.rbi +388 -0
- data/sorbet/rbi/gems/rubocop-rails@2.27.0.rbi +9535 -0
- data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.69.2.rbi} +4058 -2628
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +78 -0
- data/sorbet/rbi/gems/sqlite3@2.3.1.rbi +1824 -0
- data/sorbet/rbi/gems/{standard@1.40.0.rbi → standard@1.43.0.rbi} +61 -64
- data/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi +130 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/tapioca/require.rb +2 -1
- metadata +49 -139
- data/sorbet/rbi/gems/activejob@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/activeresource@6.1.4.rbi +0 -3944
- data/sorbet/rbi/gems/securerandom@0.3.2.rbi +0 -395
- data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +0 -66
- /data/sorbet/rbi/gems/{actionmailbox@8.0.0.rbi → actionmailbox@8.0.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{actionmailer@8.0.0.rbi → actionmailer@8.0.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{actiontext@8.0.0.rbi → actiontext@8.0.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{activestorage@8.0.0.rbi → activestorage@8.0.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{date@3.4.0.rbi → date@3.4.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{minitest@5.25.2.rbi → minitest@5.25.4.rbi} +0 -0
- /data/sorbet/rbi/gems/{net-imap@0.5.1.rbi → net-imap@0.5.2.rbi} +0 -0
- /data/sorbet/rbi/gems/{rails@8.0.0.rbi → rails@8.0.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-performance@1.21.1.rbi → rubocop-performance@1.23.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{standard-performance@1.4.0.rbi → standard-performance@1.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{useragent@0.16.10.rbi → useragent@0.16.11.rbi} +0 -0
@@ -0,0 +1,388 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `rubocop-packaging` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rubocop-packaging`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://rubocop-packaging//lib/rubocop/packaging/version.rb#3
|
9
|
+
module RuboCop; end
|
10
|
+
|
11
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#6
|
12
|
+
module RuboCop::Cop; end
|
13
|
+
|
14
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#7
|
15
|
+
module RuboCop::Cop::Packaging; end
|
16
|
+
|
17
|
+
# This cop flags the `require "bundler/setup"` calls if they're
|
18
|
+
# made from inside the tests directory.
|
19
|
+
#
|
20
|
+
# @example
|
21
|
+
#
|
22
|
+
# # bad
|
23
|
+
# require "foo"
|
24
|
+
# require "bundler/setup"
|
25
|
+
#
|
26
|
+
# # good
|
27
|
+
# require "foo"
|
28
|
+
#
|
29
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#20
|
30
|
+
class RuboCop::Cop::Packaging::BundlerSetupInTests < ::RuboCop::Cop::Base
|
31
|
+
include ::RuboCop::Packaging::LibHelperModule
|
32
|
+
include ::RuboCop::Cop::RangeHelp
|
33
|
+
extend ::RuboCop::Cop::AutoCorrector
|
34
|
+
|
35
|
+
# Called from on_send, this method helps to autocorrect
|
36
|
+
# the offenses flagged by this cop.
|
37
|
+
#
|
38
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#57
|
39
|
+
def autocorrect(corrector, node); end
|
40
|
+
|
41
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#29
|
42
|
+
def bundler_setup?(param0 = T.unsafe(nil)); end
|
43
|
+
|
44
|
+
# This method is called from inside `#def_node_matcher`.
|
45
|
+
# It flags an offense if the `require "bundler/setup"`
|
46
|
+
# call is made from the tests directory.
|
47
|
+
#
|
48
|
+
# @return [Boolean]
|
49
|
+
#
|
50
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#66
|
51
|
+
def bundler_setup_in_test_dir?(str); end
|
52
|
+
|
53
|
+
# This method determines if the call is made *from* the tests directory.
|
54
|
+
#
|
55
|
+
# @return [Boolean]
|
56
|
+
#
|
57
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#71
|
58
|
+
def falls_in_test_dir?; end
|
59
|
+
|
60
|
+
# Extended from the Base class.
|
61
|
+
# More about the `#on_new_investigation` method can be found here:
|
62
|
+
# https://github.com/rubocop-hq/rubocop/blob/343f62e4555be0470326f47af219689e21c61a37/lib/rubocop/cop/base.rb
|
63
|
+
#
|
64
|
+
# Processing of the AST happens here.
|
65
|
+
#
|
66
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#39
|
67
|
+
def on_new_investigation; end
|
68
|
+
|
69
|
+
# Extended from AST::Traversal.
|
70
|
+
# More about the `#on_send` method can be found here:
|
71
|
+
# https://github.com/rubocop-hq/rubocop-ast/blob/08d0f49a47af1e9a30a6d8f67533ba793c843d67/lib/rubocop/ast/traversal.rb#L112
|
72
|
+
#
|
73
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#47
|
74
|
+
def on_send(node); end
|
75
|
+
end
|
76
|
+
|
77
|
+
# This is the message that will be displayed when RuboCop::Packaging finds
|
78
|
+
# an offense of using `require "bundler/setup"` in the tests directory.
|
79
|
+
#
|
80
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/bundler_setup_in_tests.rb#27
|
81
|
+
RuboCop::Cop::Packaging::BundlerSetupInTests::MSG = T.let(T.unsafe(nil), String)
|
82
|
+
|
83
|
+
# This cop flags the usage of `git ls-files` in gemspec
|
84
|
+
# and suggests to use a plain Ruby alternative, like `Dir`,
|
85
|
+
# `Dir.glob`, or `Rake::FileList` instead.
|
86
|
+
#
|
87
|
+
# @example
|
88
|
+
#
|
89
|
+
# # bad
|
90
|
+
# Gem::Specification.new do |spec|
|
91
|
+
# spec.files = `git ls-files`.split("\n")
|
92
|
+
# end
|
93
|
+
#
|
94
|
+
# # good
|
95
|
+
# Gem::Specification.new do |spec|
|
96
|
+
# spec.files = Dir["lib/**/*", "LICENSE", "README.md"]
|
97
|
+
# end
|
98
|
+
#
|
99
|
+
# # bad
|
100
|
+
# Gem::Specification.new do |spec|
|
101
|
+
# spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
102
|
+
# `git ls-files -z`.split("\\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
103
|
+
# end
|
104
|
+
# end
|
105
|
+
#
|
106
|
+
# # good
|
107
|
+
# require "rake/file_list"
|
108
|
+
#
|
109
|
+
# Gem::Specification.new do |spec|
|
110
|
+
# spec.files = Rake::FileList["**/*"].exclude(*File.read(".gitignore").split)
|
111
|
+
# end
|
112
|
+
#
|
113
|
+
# # bad
|
114
|
+
# Gem::Specification.new do |spec|
|
115
|
+
# spec.files = `git ls-files -- lib/`.split("\n")
|
116
|
+
# spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
117
|
+
# end
|
118
|
+
#
|
119
|
+
# # good
|
120
|
+
# Gem::Specification.new do |spec|
|
121
|
+
# spec.files = Dir.glob("lib/**/*")
|
122
|
+
# spec.executables = Dir.glob("bin/*").map{ |f| File.basename(f) }
|
123
|
+
# end
|
124
|
+
#
|
125
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#48
|
126
|
+
class RuboCop::Cop::Packaging::GemspecGit < ::RuboCop::Cop::Base
|
127
|
+
# Extended from the Cop class.
|
128
|
+
# More about the `#investigate` method can be found here:
|
129
|
+
# https://github.com/rubocop-hq/rubocop/blob/59543c8e2b66bff249de131fa9105f3eb11e9edb/lib/rubocop/cop/cop.rb#L13-L25
|
130
|
+
#
|
131
|
+
# Processing of the AST happens here.
|
132
|
+
#
|
133
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#70
|
134
|
+
def on_new_investigation; end
|
135
|
+
|
136
|
+
# This method is called from inside `#def_node_search`.
|
137
|
+
# It is used to find strings which start with "git".
|
138
|
+
#
|
139
|
+
# @return [Boolean]
|
140
|
+
#
|
141
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#83
|
142
|
+
def starts_with_git?(str); end
|
143
|
+
|
144
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#56
|
145
|
+
def xstr(param0); end
|
146
|
+
end
|
147
|
+
|
148
|
+
# This is the message that will be displayed when RuboCop finds an
|
149
|
+
# offense of using `git ls-files`.
|
150
|
+
#
|
151
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/gemspec_git.rb#51
|
152
|
+
RuboCop::Cop::Packaging::GemspecGit::MSG = T.let(T.unsafe(nil), String)
|
153
|
+
|
154
|
+
# This cop flags the `require` calls, from anywhere mapping to
|
155
|
+
# the "lib" directory, except originating from lib/.
|
156
|
+
#
|
157
|
+
# @example
|
158
|
+
#
|
159
|
+
# # bad
|
160
|
+
# require "../lib/foo/bar"
|
161
|
+
#
|
162
|
+
# # good
|
163
|
+
# require "foo/bar"
|
164
|
+
#
|
165
|
+
# # bad
|
166
|
+
# require File.expand_path("../../lib/foo", __FILE__)
|
167
|
+
#
|
168
|
+
# # good
|
169
|
+
# require "foo"
|
170
|
+
#
|
171
|
+
# # bad
|
172
|
+
# require File.expand_path("../../../lib/foo/bar/baz/qux", __dir__)
|
173
|
+
#
|
174
|
+
# # good
|
175
|
+
# require "foo/bar/baz/qux"
|
176
|
+
#
|
177
|
+
# # bad
|
178
|
+
# require File.dirname(__FILE__) + "/../../lib/baz/qux"
|
179
|
+
#
|
180
|
+
# # good
|
181
|
+
# require "baz/qux"
|
182
|
+
#
|
183
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#37
|
184
|
+
class RuboCop::Cop::Packaging::RequireHardcodingLib < ::RuboCop::Cop::Base
|
185
|
+
include ::RuboCop::Packaging::LibHelperModule
|
186
|
+
extend ::RuboCop::Cop::AutoCorrector
|
187
|
+
|
188
|
+
# This method is called from inside `#def_node_matcher`.
|
189
|
+
# It flags an offense if the `require` call is made from
|
190
|
+
# anywhere except the "lib" directory.
|
191
|
+
#
|
192
|
+
# @return [Boolean]
|
193
|
+
#
|
194
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#85
|
195
|
+
def falls_in_lib?(str); end
|
196
|
+
|
197
|
+
# This method is called from inside `#def_node_matcher`.
|
198
|
+
# It flags an offense if the `require` call (using the __FILE__
|
199
|
+
# arguement) is made from anywhere except the "lib" directory.
|
200
|
+
#
|
201
|
+
# @return [Boolean]
|
202
|
+
#
|
203
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#93
|
204
|
+
def falls_in_lib_using_file?(str); end
|
205
|
+
|
206
|
+
# This method preprends a "." to the string that starts with "/".
|
207
|
+
# And then determines if that call is made to "lib/".
|
208
|
+
#
|
209
|
+
# @return [Boolean]
|
210
|
+
#
|
211
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#100
|
212
|
+
def falls_in_lib_with_file_dirname_plus_str?(str); end
|
213
|
+
|
214
|
+
# Called from on_send, this method helps to replace
|
215
|
+
# the "bad" require call with the "good" one.
|
216
|
+
#
|
217
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#77
|
218
|
+
def good_require_call; end
|
219
|
+
|
220
|
+
# Extended from the Base class.
|
221
|
+
# More about the `#on_new_investigation` method can be found here:
|
222
|
+
# https://github.com/rubocop-hq/rubocop/blob/343f62e4555be0470326f47af219689e21c61a37/lib/rubocop/cop/base.rb
|
223
|
+
#
|
224
|
+
# Processing of the AST happens here.
|
225
|
+
#
|
226
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#59
|
227
|
+
def on_new_investigation; end
|
228
|
+
|
229
|
+
# Extended from AST::Traversal.
|
230
|
+
# More about the `#on_send` method can be found here:
|
231
|
+
# https://github.com/rubocop-hq/rubocop-ast/blob/08d0f49a47af1e9a30a6d8f67533ba793c843d67/lib/rubocop/ast/traversal.rb#L112
|
232
|
+
#
|
233
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#67
|
234
|
+
def on_send(node); end
|
235
|
+
|
236
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#46
|
237
|
+
def require?(param0 = T.unsafe(nil)); end
|
238
|
+
end
|
239
|
+
|
240
|
+
# This is the message that will be displayed when RuboCop::Packaging
|
241
|
+
# finds an offense of using `require` with relative path to lib.
|
242
|
+
#
|
243
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_hardcoding_lib.rb#43
|
244
|
+
RuboCop::Cop::Packaging::RequireHardcodingLib::MSG = T.let(T.unsafe(nil), String)
|
245
|
+
|
246
|
+
# This cop flags the `require_relative` calls, from anywhere
|
247
|
+
# mapping to the "lib" directory, except originating from lib/ or
|
248
|
+
# the gemspec file, and suggests to use `require` instead.
|
249
|
+
#
|
250
|
+
# @example
|
251
|
+
#
|
252
|
+
# # bad
|
253
|
+
# require_relative "lib/foo"
|
254
|
+
#
|
255
|
+
# # good
|
256
|
+
# require "foo"
|
257
|
+
#
|
258
|
+
# # bad
|
259
|
+
# require_relative "../../lib/foo/bar"
|
260
|
+
#
|
261
|
+
# # good
|
262
|
+
# require "foo/bar"
|
263
|
+
#
|
264
|
+
# # good
|
265
|
+
# require_relative "foo/bar/bax"
|
266
|
+
# require_relative "baz/qux"
|
267
|
+
#
|
268
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#30
|
269
|
+
class RuboCop::Cop::Packaging::RequireRelativeHardcodingLib < ::RuboCop::Cop::Base
|
270
|
+
include ::RuboCop::Packaging::LibHelperModule
|
271
|
+
extend ::RuboCop::Cop::AutoCorrector
|
272
|
+
|
273
|
+
# This method is called from inside `#def_node_matcher`.
|
274
|
+
# It flags an offense if the `require_relative` call is made
|
275
|
+
# from anywhere except the "lib" directory.
|
276
|
+
#
|
277
|
+
# @return [Boolean]
|
278
|
+
#
|
279
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#75
|
280
|
+
def falls_in_lib?(str); end
|
281
|
+
|
282
|
+
# Called from on_send, this method helps to replace the
|
283
|
+
# "bad" require_relative call with the "good" one.
|
284
|
+
#
|
285
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#67
|
286
|
+
def good_require_call; end
|
287
|
+
|
288
|
+
# Extended from the Base class.
|
289
|
+
# More about the `#on_new_investigation` method can be found here:
|
290
|
+
# https://github.com/rubocop-hq/rubocop/blob/343f62e4555be0470326f47af219689e21c61a37/lib/rubocop/cop/base.rb
|
291
|
+
#
|
292
|
+
# Processing of the AST happens here.
|
293
|
+
#
|
294
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#49
|
295
|
+
def on_new_investigation; end
|
296
|
+
|
297
|
+
# Extended from AST::Traversal.
|
298
|
+
# More about the `#on_send` method can be found here:
|
299
|
+
# https://github.com/rubocop-hq/rubocop-ast/blob/08d0f49a47af1e9a30a6d8f67533ba793c843d67/lib/rubocop/ast/traversal.rb#L112
|
300
|
+
#
|
301
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#57
|
302
|
+
def on_send(node); end
|
303
|
+
|
304
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#39
|
305
|
+
def require_relative(param0 = T.unsafe(nil)); end
|
306
|
+
end
|
307
|
+
|
308
|
+
# This is the message that will be displayed when RuboCop finds an
|
309
|
+
# offense of using `require_relative` with relative path to lib.
|
310
|
+
#
|
311
|
+
# source://rubocop-packaging//lib/rubocop/cop/packaging/require_relative_hardcoding_lib.rb#36
|
312
|
+
RuboCop::Cop::Packaging::RequireRelativeHardcodingLib::MSG = T.let(T.unsafe(nil), String)
|
313
|
+
|
314
|
+
# RuboCop Packaging project namespace
|
315
|
+
#
|
316
|
+
# source://rubocop-packaging//lib/rubocop/packaging/version.rb#4
|
317
|
+
module RuboCop::Packaging; end
|
318
|
+
|
319
|
+
# source://rubocop-packaging//lib/rubocop/packaging.rb#10
|
320
|
+
RuboCop::Packaging::CONFIG = T.let(T.unsafe(nil), Hash)
|
321
|
+
|
322
|
+
# source://rubocop-packaging//lib/rubocop/packaging.rb#9
|
323
|
+
RuboCop::Packaging::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
324
|
+
|
325
|
+
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
326
|
+
# bit of our configuration.
|
327
|
+
#
|
328
|
+
# source://rubocop-packaging//lib/rubocop/packaging/inject.rb#7
|
329
|
+
module RuboCop::Packaging::Inject
|
330
|
+
class << self
|
331
|
+
# source://rubocop-packaging//lib/rubocop/packaging/inject.rb#8
|
332
|
+
def defaults!; end
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
# This helper module extracts the methods which can be used
|
337
|
+
# in other cop classes.
|
338
|
+
#
|
339
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#7
|
340
|
+
module RuboCop::Packaging::LibHelperModule
|
341
|
+
# This method determines if that call is made *from* the "lib" directory.
|
342
|
+
#
|
343
|
+
# @return [Boolean]
|
344
|
+
#
|
345
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#25
|
346
|
+
def inspected_file_falls_in_lib?; end
|
347
|
+
|
348
|
+
# This method determines if that call is made *from* the "gemspec" file.
|
349
|
+
#
|
350
|
+
# @return [Boolean]
|
351
|
+
#
|
352
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#30
|
353
|
+
def inspected_file_is_gemspec?; end
|
354
|
+
|
355
|
+
# This method determines if the inspected file is not in lib/ or
|
356
|
+
# isn't a gemspec file.
|
357
|
+
#
|
358
|
+
# @return [Boolean]
|
359
|
+
#
|
360
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#36
|
361
|
+
def inspected_file_is_not_in_lib_or_gemspec?; end
|
362
|
+
|
363
|
+
# For determining the root directory of the project.
|
364
|
+
#
|
365
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#9
|
366
|
+
def root_dir; end
|
367
|
+
|
368
|
+
# This method determines if the calls are made to the "lib" directory.
|
369
|
+
#
|
370
|
+
# @return [Boolean]
|
371
|
+
#
|
372
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#14
|
373
|
+
def target_falls_in_lib?(str); end
|
374
|
+
|
375
|
+
# This method determines if the calls (using the __FILE__ argument)
|
376
|
+
# are made to the "lib" directory.
|
377
|
+
#
|
378
|
+
# @return [Boolean]
|
379
|
+
#
|
380
|
+
# source://rubocop-packaging//lib/rubocop/packaging/lib_helper_module.rb#20
|
381
|
+
def target_falls_in_lib_using_file?(str); end
|
382
|
+
end
|
383
|
+
|
384
|
+
# source://rubocop-packaging//lib/rubocop/packaging.rb#8
|
385
|
+
RuboCop::Packaging::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
386
|
+
|
387
|
+
# source://rubocop-packaging//lib/rubocop/packaging/version.rb#5
|
388
|
+
RuboCop::Packaging::VERSION = T.let(T.unsafe(nil), String)
|