orthoses-rails 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/rails/Rakefile +125 -183
- data/examples/rails/config/database.yml +8 -0
- data/examples/rails/config/storage.yml +3 -0
- data/examples/rails/gemfiles/Gemfile_6_0 +16 -0
- data/examples/rails/gemfiles/Gemfile_6_0.lock +172 -0
- data/examples/rails/gemfiles/Gemfile_6_1 +15 -0
- data/examples/rails/gemfiles/Gemfile_6_1.lock +173 -0
- data/examples/rails/gemfiles/Gemfile_7_0 +15 -0
- data/examples/rails/gemfiles/Gemfile_7_0.lock +172 -0
- data/examples/rails/tasks/active_job.rake +95 -0
- data/examples/rails/tasks/active_model.rake +46 -0
- data/examples/rails/tasks/active_record.rake +83 -0
- data/examples/rails/tasks/active_storage.rake +94 -0
- data/examples/rails/tasks/active_support.rake +92 -0
- data/lib/orthoses/active_model.rb +0 -1
- data/lib/orthoses/active_record.rb +0 -1
- data/lib/orthoses/active_support/delegation.rb +6 -6
- data/lib/orthoses/active_support/time_with_zone.rb +21 -3
- data/lib/orthoses/active_support.rb +0 -2
- data/lib/orthoses/rails/version.rb +1 -1
- data/lib/orthoses/rails.rb +0 -1
- data/orthoses-rails.gemspec +1 -1
- metadata +18 -89
- data/examples/rails/known_sig/action_cable/connection/test_cookie_jar.rbs +0 -2
- data/examples/rails/known_sig/action_controller/metal.rbs +0 -4
- data/examples/rails/known_sig/action_dispatch/cookies/cookie_jar.rbs +0 -3
- data/examples/rails/known_sig/action_dispatch/response.rbs +0 -4
- data/examples/rails/patch/drb/drb_undumped.rbs +0 -2
- data/examples/rails/patch/drb.rbs +0 -2
- data/examples/rails/patch/erubi/engine.rbs +0 -4
- data/examples/rails/patch/erubi.rbs +0 -2
- data/examples/rails/patch/minitest/kernel.rbs +0 -44
- data/examples/rails/patch/minitest/minitest/abstract_reporter.rbs +0 -49
- data/examples/rails/patch/minitest/minitest/assertion.rbs +0 -16
- data/examples/rails/patch/minitest/minitest/assertions.rbs +0 -545
- data/examples/rails/patch/minitest/minitest/backtrace_filter.rbs +0 -16
- data/examples/rails/patch/minitest/minitest/bench_spec.rbs +0 -101
- data/examples/rails/patch/minitest/minitest/benchmark.rbs +0 -258
- data/examples/rails/patch/minitest/minitest/composite_reporter.rbs +0 -25
- data/examples/rails/patch/minitest/minitest/expectations.rbs +0 -21
- data/examples/rails/patch/minitest/minitest/guard.rbs +0 -64
- data/examples/rails/patch/minitest/minitest/mock.rbs +0 -60
- data/examples/rails/patch/minitest/minitest/parallel/executor.rbs +0 -42
- data/examples/rails/patch/minitest/minitest/parallel/test/class_methods.rbs +0 -6
- data/examples/rails/patch/minitest/minitest/parallel/test.rbs +0 -3
- data/examples/rails/patch/minitest/minitest/parallel.rbs +0 -2
- data/examples/rails/patch/minitest/minitest/pride_io.rbs +0 -54
- data/examples/rails/patch/minitest/minitest/pride_lol.rbs +0 -17
- data/examples/rails/patch/minitest/minitest/progress_reporter.rbs +0 -11
- data/examples/rails/patch/minitest/minitest/reportable.rbs +0 -51
- data/examples/rails/patch/minitest/minitest/reporter.rbs +0 -5
- data/examples/rails/patch/minitest/minitest/result.rbs +0 -28
- data/examples/rails/patch/minitest/minitest/runnable.rbs +0 -131
- data/examples/rails/patch/minitest/minitest/skip.rbs +0 -6
- data/examples/rails/patch/minitest/minitest/spec/dsl/instance_methods.rbs +0 -48
- data/examples/rails/patch/minitest/minitest/spec/dsl.rbs +0 -125
- data/examples/rails/patch/minitest/minitest/spec.rbs +0 -10
- data/examples/rails/patch/minitest/minitest/statistics_reporter.rbs +0 -76
- data/examples/rails/patch/minitest/minitest/summary_reporter.rbs +0 -26
- data/examples/rails/patch/minitest/minitest/test/lifecycle_hooks.rbs +0 -92
- data/examples/rails/patch/minitest/minitest/test.rbs +0 -76
- data/examples/rails/patch/minitest/minitest/unexpected_error.rbs +0 -10
- data/examples/rails/patch/minitest/minitest/unit/test_case.rbs +0 -3
- data/examples/rails/patch/minitest/minitest/unit.rbs +0 -5
- data/examples/rails/patch/minitest/minitest.rbs +0 -966
- data/examples/rails/patch/pg/simple_decoder.rbs +0 -4
- data/examples/rails/patch/pg.rbs +0 -2
- data/examples/rails/patch/qc/queue.rbs +0 -2
- data/examples/rails/patch/qc.rbs +0 -2
- data/examples/rails/patch/que/job.rbs +0 -2
- data/examples/rails/patch/que.rbs +0 -2
- data/examples/rails/patch/rack/cache/entity_store.rbs +0 -2
- data/examples/rails/patch/rack/cache/meta_store.rbs +0 -2
- data/examples/rails/patch/rack/cache.rbs +0 -2
- data/examples/rails/patch/rack/session/dalli.rbs +0 -2
- data/examples/rails/patch/rack/session.rbs +0 -2
- data/examples/rails/patch/rboc.rbs +0 -2
- data/examples/rails/patch/rdoc/generator/sdoc.rbs +0 -3
- data/examples/rails/patch/rdoc/generator.rbs +0 -2
- data/examples/rails/patch/rdoc/task.rbs +0 -2
- data/examples/rails/patch/ripper.rbs +0 -2
- data/examples/rails/patch/sidekiq/worker.rbs +0 -2
- data/examples/rails/patch/sidekiq.rbs +0 -2
- data/examples/rails/patch/sneakers/worker.rbs +0 -2
- data/examples/rails/patch/sneakers.rbs +0 -2
- data/examples/rails/patch/sucker_punch/job.rbs +0 -2
- data/examples/rails/patch/sucker_punch.rbs +0 -2
- data/examples/rails/patch/thor/actions/create_file.rbs +0 -2
- data/examples/rails/patch/thor/actions.rbs +0 -2
- data/examples/rails/patch/thor/error.rbs +0 -2
- data/examples/rails/patch/thor/group.rbs +0 -2
- data/examples/rails/patch/thor.rbs +0 -2
- data/lib/orthoses/active_model/known_sig/7.0/serialization.rbs +0 -4
- data/lib/orthoses/active_model/known_sig/7.0/validations.rbs +0 -4
- data/lib/orthoses/active_model/known_sig.rb +0 -21
- data/lib/orthoses/active_record/known_sig/6.0/result.rbs +0 -5
- data/lib/orthoses/active_record/known_sig/6.1/result.rbs +0 -5
- data/lib/orthoses/active_record/known_sig/7.0/encryption/context.rbs +0 -9
- data/lib/orthoses/active_record/known_sig/7.0/result.rbs +0 -5
- data/lib/orthoses/active_record/known_sig.rb +0 -21
- data/lib/orthoses/active_support/known_sig/7.0/active_support/callbacks/callback_chain.rbs +0 -9
- data/lib/orthoses/active_support/known_sig/7.0/active_support/hash_with_indifferent_access.rbs +0 -6
- data/lib/orthoses/active_support/known_sig/7.0/active_support/multibyte/chars.rbs +0 -7
- data/lib/orthoses/active_support/known_sig/7.0/hash_with_indifferent_access.rbs +0 -2
- data/lib/orthoses/active_support/known_sig/7.0/time.rbs +0 -68
- data/lib/orthoses/active_support/known_sig.rb +0 -21
- data/lib/orthoses/rails/known_sig_helper.rb +0 -22
@@ -0,0 +1,92 @@
|
|
1
|
+
stdlib_dependencies = %w[benchmark date digest json logger monitor mutex_m pathname singleton time minitest]
|
2
|
+
gem_dependencies = %w[nokogiri]
|
3
|
+
rails_dependencies = %w[]
|
4
|
+
|
5
|
+
VERSIONS.each do |version|
|
6
|
+
namespace version do
|
7
|
+
namespace :active_support do
|
8
|
+
export = "export/activesupport/#{version}"
|
9
|
+
|
10
|
+
desc "export to #{export}"
|
11
|
+
task :export do
|
12
|
+
sh "rm -fr #{export}"
|
13
|
+
sh "mkdir -p #{export}"
|
14
|
+
|
15
|
+
# minimum
|
16
|
+
sh "cp -a out/#{version}/active_support.rbs #{export}"
|
17
|
+
sh "cp -a out/#{version}/active_support #{export}"
|
18
|
+
sh "rm #{export}/active_support/railtie.rbs"
|
19
|
+
|
20
|
+
# core_ext
|
21
|
+
%w[
|
22
|
+
array benchmark big_decimal class date date_and_time date_time digest
|
23
|
+
enumerable file hash integer kernel load_error marshal module name_error numeric
|
24
|
+
object pathname range regexp securerandom string symbol time uri
|
25
|
+
].each do |lib|
|
26
|
+
out = "out/#{version}/#{lib}"
|
27
|
+
sh "cp -a #{out} #{export}" if File.exist?(out)
|
28
|
+
sh "cp -a #{out}.rbs #{export}" if File.exist?("#{out}.rbs")
|
29
|
+
end
|
30
|
+
|
31
|
+
Pathname(export).join("EXTERNAL_TODO.rbs").write(<<~RBS)
|
32
|
+
# !!! GENERATED CODE !!!
|
33
|
+
# Please see generators/rails-generator
|
34
|
+
|
35
|
+
module DRb
|
36
|
+
module DRbUndumped
|
37
|
+
end
|
38
|
+
end
|
39
|
+
module Concurrent
|
40
|
+
class Map
|
41
|
+
end
|
42
|
+
end
|
43
|
+
RBS
|
44
|
+
|
45
|
+
case version
|
46
|
+
when "6.0", "6.1"
|
47
|
+
sh "rm -fr #{export}/uri"
|
48
|
+
when "7.0"
|
49
|
+
# deprecated
|
50
|
+
sh "rm -fr #{export}/uri{,.rbs}"
|
51
|
+
end
|
52
|
+
|
53
|
+
generate_test_script(
|
54
|
+
gem: :activesupport,
|
55
|
+
version: version,
|
56
|
+
export: export,
|
57
|
+
stdlib_dependencies: stdlib_dependencies,
|
58
|
+
gem_dependencies: gem_dependencies,
|
59
|
+
rails_dependencies: rails_dependencies,
|
60
|
+
)
|
61
|
+
|
62
|
+
Pathname(export).join('_test').join('test.rb').write(<<~'RUBY')
|
63
|
+
# !!! GENERATED CODE !!!
|
64
|
+
# Please see generators/rails-generator
|
65
|
+
|
66
|
+
require 'active_support/all'
|
67
|
+
|
68
|
+
# Test ActiveSupport::NumericWithFormat
|
69
|
+
42.to_s
|
70
|
+
42.to_s(:phone)
|
71
|
+
|
72
|
+
3.days.ago + 1.minute
|
73
|
+
RUBY
|
74
|
+
end
|
75
|
+
|
76
|
+
desc "validate version=#{version} gem=active_support"
|
77
|
+
task :validate do
|
78
|
+
stdlib_opt = stdlib_dependencies.map{"-r #{_1}"}.join(" ")
|
79
|
+
gem_opt = gem_dependencies.map{"-I ../../.gem_rbs_collection/#{_1}"}.join(" ")
|
80
|
+
rails_opt = rails_dependencies.map{"-I export/#{_1}/#{version}"}.join(" ")
|
81
|
+
sh "rbs #{stdlib_opt} #{gem_opt} #{rails_opt} -I #{export} validate --silent"
|
82
|
+
end
|
83
|
+
|
84
|
+
desc "install to ../../../gems/activesupport/#{version}"
|
85
|
+
task :install do
|
86
|
+
install_to = File.expand_path("../../../gems/activesupport/#{version}", __dir__)
|
87
|
+
sh "rm -fr #{install_to}"
|
88
|
+
sh "cp -a #{export} #{install_to}"
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -4,5 +4,4 @@ require_relative 'active_record/belongs_to'
|
|
4
4
|
require_relative 'active_record/generated_attribute_methods'
|
5
5
|
require_relative 'active_record/has_many'
|
6
6
|
require_relative 'active_record/has_one'
|
7
|
-
require_relative 'active_record/known_sig'
|
8
7
|
require_relative 'active_record/query_methods'
|
@@ -35,7 +35,7 @@ module Orthoses
|
|
35
35
|
receiver_content << "# defined by `delegate` to: #{to_module_name}"
|
36
36
|
receiver_content << sig
|
37
37
|
else
|
38
|
-
Orthoses.logger.warn("[ActiveSupport::Delegation] Ignore #{arg.inspect}")
|
38
|
+
Orthoses.logger.warn("[ActiveSupport::Delegation] Ignore since missing type for #{to_module_name}.#{arg.inspect} in #{capture.argument.inspect}")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
else
|
@@ -43,22 +43,22 @@ module Orthoses
|
|
43
43
|
tag, to_return_type = resource.find(receiver_name, to_name, :instance, false)
|
44
44
|
raise "bug" if tag == :multi
|
45
45
|
if to_return_type.nil?
|
46
|
-
Orthoses.logger.warn("[ActiveSupport::Delegation] Ignore #{capture.argument.inspect}")
|
46
|
+
Orthoses.logger.warn("[ActiveSupport::Delegation] Ignore since missing type for #{receiver_name}##{to_name.inspect} in #{capture.argument.inspect}")
|
47
47
|
next
|
48
48
|
end
|
49
49
|
if to_return_type.instance_of?(RBS::Types::Bases::Any)
|
50
50
|
capture.argument[:methods].each do |method|
|
51
|
-
receiver_content << "# defined by `delegate` to:
|
51
|
+
receiver_content << "# defined by `delegate` to: #{to_return_type}##{to_name}"
|
52
52
|
receiver_content << "def #{method}: (*untyped, **untyped) -> untyped"
|
53
53
|
end
|
54
54
|
else
|
55
55
|
to_typename = to_return_type.name.relative!.to_s
|
56
56
|
capture.argument[:methods].each do |method|
|
57
57
|
if sig = resource.build_signature(to_typename, method, :instance, true)
|
58
|
-
receiver_content << "# defined by `delegate` to
|
58
|
+
receiver_content << "# defined by `delegate` to #{to_return_type}##{to_name}"
|
59
59
|
receiver_content << sig
|
60
60
|
else
|
61
|
-
Orthoses.logger.warn("[ActiveSupport::Delegation] Ignore #{method.inspect}")
|
61
|
+
Orthoses.logger.warn("[ActiveSupport::Delegation] Ignore since missing type for #{to_typename}##{method.inspect} in #{capture.argument.inspect}")
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
@@ -146,7 +146,7 @@ module Orthoses
|
|
146
146
|
when RBS::AST::Members::Mixin, RBS::AST::Members::LocationOnly
|
147
147
|
next
|
148
148
|
else
|
149
|
-
|
149
|
+
raise "bug: #{member.class} is not supported yet"
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
@@ -22,16 +22,22 @@ module Orthoses
|
|
22
22
|
|
23
23
|
private
|
24
24
|
|
25
|
-
NOT_DELEGATE_METHODS = %i[
|
25
|
+
NOT_DELEGATE_METHODS = Set.new(%i[
|
26
26
|
utc
|
27
27
|
getgm
|
28
28
|
getutc
|
29
29
|
gmtime
|
30
30
|
localtime
|
31
|
-
]
|
31
|
+
])
|
32
|
+
|
33
|
+
TYPE_MERGE_METHODS = Set.new(%i[
|
34
|
+
+
|
35
|
+
-
|
36
|
+
])
|
32
37
|
|
33
38
|
def each_line_from_core_time_definition(store)
|
34
39
|
type_name_time = TypeName("::Time")
|
40
|
+
type_name_time_with_zone = TypeName("::ActiveSupport::TimeWithZone")
|
35
41
|
env = Utils.rbs_environment(collection: true, cache: false)
|
36
42
|
env << store["Time"].to_decl
|
37
43
|
env << store["DateAndTime"].to_decl
|
@@ -48,6 +54,7 @@ module Orthoses
|
|
48
54
|
one_ancestors.included_modules.each do |included_module|
|
49
55
|
yield "include #{included_module.source.name}"
|
50
56
|
end
|
57
|
+
twz_methods = builder.build_instance(type_name_time_with_zone).methods
|
51
58
|
builder.build_instance(type_name_time).methods.each do |sym, definition_method|
|
52
59
|
next if !definition_method.public?
|
53
60
|
definition_method.defs.reject! do |type_def|
|
@@ -65,7 +72,18 @@ module Orthoses
|
|
65
72
|
end
|
66
73
|
|
67
74
|
if definition_method.alias_of.nil?
|
68
|
-
|
75
|
+
method_types = definition_method.method_types
|
76
|
+
|
77
|
+
if TYPE_MERGE_METHODS.include?(sym)
|
78
|
+
if twz_definition_method = twz_methods[sym]
|
79
|
+
twz_definition_method.defs.each do |type_def|
|
80
|
+
if type_def.implemented_in == type_name_time_with_zone
|
81
|
+
method_types << type_def.type
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
yield "def #{sym}: #{method_types.join(" | ")}"
|
69
87
|
else
|
70
88
|
yield "alias #{sym} #{definition_method.alias_of.defs.first.member.name}"
|
71
89
|
end
|
@@ -5,7 +5,6 @@ require_relative 'active_support/configurable'
|
|
5
5
|
require_relative 'active_support/delegation'
|
6
6
|
require_relative 'active_support/mattr_accessor'
|
7
7
|
require_relative 'active_support/time_with_zone'
|
8
|
-
require_relative 'active_support/known_sig'
|
9
8
|
|
10
9
|
module Orthoses
|
11
10
|
module ActiveSupport
|
@@ -18,7 +17,6 @@ module Orthoses
|
|
18
17
|
yield Delegation
|
19
18
|
yield MattrAccessor
|
20
19
|
yield TimeWithZone
|
21
|
-
yield KnownSig
|
22
20
|
end
|
23
21
|
end
|
24
22
|
end
|
data/lib/orthoses/rails.rb
CHANGED
data/orthoses-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orthoses-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ksss
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orthoses
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.10'
|
27
27
|
description: Orthoses middleware collection for Ruby on Rails
|
28
28
|
email:
|
29
29
|
- co000ri@gmail.com
|
@@ -35,106 +35,35 @@ files:
|
|
35
35
|
- LICENSE.txt
|
36
36
|
- README.md
|
37
37
|
- examples/rails/Rakefile
|
38
|
-
- examples/rails/
|
39
|
-
- examples/rails/
|
40
|
-
- examples/rails/
|
41
|
-
- examples/rails/
|
42
|
-
- examples/rails/
|
43
|
-
- examples/rails/
|
44
|
-
- examples/rails/
|
45
|
-
- examples/rails/
|
46
|
-
- examples/rails/
|
47
|
-
- examples/rails/
|
48
|
-
- examples/rails/
|
49
|
-
- examples/rails/
|
50
|
-
- examples/rails/
|
51
|
-
- examples/rails/patch/minitest/minitest/backtrace_filter.rbs
|
52
|
-
- examples/rails/patch/minitest/minitest/bench_spec.rbs
|
53
|
-
- examples/rails/patch/minitest/minitest/benchmark.rbs
|
54
|
-
- examples/rails/patch/minitest/minitest/composite_reporter.rbs
|
55
|
-
- examples/rails/patch/minitest/minitest/expectations.rbs
|
56
|
-
- examples/rails/patch/minitest/minitest/guard.rbs
|
57
|
-
- examples/rails/patch/minitest/minitest/mock.rbs
|
58
|
-
- examples/rails/patch/minitest/minitest/parallel.rbs
|
59
|
-
- examples/rails/patch/minitest/minitest/parallel/executor.rbs
|
60
|
-
- examples/rails/patch/minitest/minitest/parallel/test.rbs
|
61
|
-
- examples/rails/patch/minitest/minitest/parallel/test/class_methods.rbs
|
62
|
-
- examples/rails/patch/minitest/minitest/pride_io.rbs
|
63
|
-
- examples/rails/patch/minitest/minitest/pride_lol.rbs
|
64
|
-
- examples/rails/patch/minitest/minitest/progress_reporter.rbs
|
65
|
-
- examples/rails/patch/minitest/minitest/reportable.rbs
|
66
|
-
- examples/rails/patch/minitest/minitest/reporter.rbs
|
67
|
-
- examples/rails/patch/minitest/minitest/result.rbs
|
68
|
-
- examples/rails/patch/minitest/minitest/runnable.rbs
|
69
|
-
- examples/rails/patch/minitest/minitest/skip.rbs
|
70
|
-
- examples/rails/patch/minitest/minitest/spec.rbs
|
71
|
-
- examples/rails/patch/minitest/minitest/spec/dsl.rbs
|
72
|
-
- examples/rails/patch/minitest/minitest/spec/dsl/instance_methods.rbs
|
73
|
-
- examples/rails/patch/minitest/minitest/statistics_reporter.rbs
|
74
|
-
- examples/rails/patch/minitest/minitest/summary_reporter.rbs
|
75
|
-
- examples/rails/patch/minitest/minitest/test.rbs
|
76
|
-
- examples/rails/patch/minitest/minitest/test/lifecycle_hooks.rbs
|
77
|
-
- examples/rails/patch/minitest/minitest/unexpected_error.rbs
|
78
|
-
- examples/rails/patch/minitest/minitest/unit.rbs
|
79
|
-
- examples/rails/patch/minitest/minitest/unit/test_case.rbs
|
80
|
-
- examples/rails/patch/pg.rbs
|
81
|
-
- examples/rails/patch/pg/simple_decoder.rbs
|
82
|
-
- examples/rails/patch/qc.rbs
|
83
|
-
- examples/rails/patch/qc/queue.rbs
|
84
|
-
- examples/rails/patch/que.rbs
|
85
|
-
- examples/rails/patch/que/job.rbs
|
86
|
-
- examples/rails/patch/rack/cache.rbs
|
87
|
-
- examples/rails/patch/rack/cache/entity_store.rbs
|
88
|
-
- examples/rails/patch/rack/cache/meta_store.rbs
|
89
|
-
- examples/rails/patch/rack/session.rbs
|
90
|
-
- examples/rails/patch/rack/session/dalli.rbs
|
91
|
-
- examples/rails/patch/rboc.rbs
|
92
|
-
- examples/rails/patch/rdoc/generator.rbs
|
93
|
-
- examples/rails/patch/rdoc/generator/sdoc.rbs
|
94
|
-
- examples/rails/patch/rdoc/task.rbs
|
95
|
-
- examples/rails/patch/ripper.rbs
|
96
|
-
- examples/rails/patch/sidekiq.rbs
|
97
|
-
- examples/rails/patch/sidekiq/worker.rbs
|
98
|
-
- examples/rails/patch/sneakers.rbs
|
99
|
-
- examples/rails/patch/sneakers/worker.rbs
|
100
|
-
- examples/rails/patch/sucker_punch.rbs
|
101
|
-
- examples/rails/patch/sucker_punch/job.rbs
|
102
|
-
- examples/rails/patch/thor.rbs
|
103
|
-
- examples/rails/patch/thor/actions.rbs
|
104
|
-
- examples/rails/patch/thor/actions/create_file.rbs
|
105
|
-
- examples/rails/patch/thor/error.rbs
|
106
|
-
- examples/rails/patch/thor/group.rbs
|
38
|
+
- examples/rails/config/database.yml
|
39
|
+
- examples/rails/config/storage.yml
|
40
|
+
- examples/rails/gemfiles/Gemfile_6_0
|
41
|
+
- examples/rails/gemfiles/Gemfile_6_0.lock
|
42
|
+
- examples/rails/gemfiles/Gemfile_6_1
|
43
|
+
- examples/rails/gemfiles/Gemfile_6_1.lock
|
44
|
+
- examples/rails/gemfiles/Gemfile_7_0
|
45
|
+
- examples/rails/gemfiles/Gemfile_7_0.lock
|
46
|
+
- examples/rails/tasks/active_job.rake
|
47
|
+
- examples/rails/tasks/active_model.rake
|
48
|
+
- examples/rails/tasks/active_record.rake
|
49
|
+
- examples/rails/tasks/active_storage.rake
|
50
|
+
- examples/rails/tasks/active_support.rake
|
107
51
|
- lib/orthoses-rails.rb
|
108
52
|
- lib/orthoses/active_model.rb
|
109
53
|
- lib/orthoses/active_model/has_secure_password.rb
|
110
|
-
- lib/orthoses/active_model/known_sig.rb
|
111
|
-
- lib/orthoses/active_model/known_sig/7.0/serialization.rbs
|
112
|
-
- lib/orthoses/active_model/known_sig/7.0/validations.rbs
|
113
54
|
- lib/orthoses/active_record.rb
|
114
55
|
- lib/orthoses/active_record/belongs_to.rb
|
115
56
|
- lib/orthoses/active_record/generated_attribute_methods.rb
|
116
57
|
- lib/orthoses/active_record/has_many.rb
|
117
58
|
- lib/orthoses/active_record/has_one.rb
|
118
|
-
- lib/orthoses/active_record/known_sig.rb
|
119
|
-
- lib/orthoses/active_record/known_sig/6.0/result.rbs
|
120
|
-
- lib/orthoses/active_record/known_sig/6.1/result.rbs
|
121
|
-
- lib/orthoses/active_record/known_sig/7.0/encryption/context.rbs
|
122
|
-
- lib/orthoses/active_record/known_sig/7.0/result.rbs
|
123
59
|
- lib/orthoses/active_record/query_methods.rb
|
124
60
|
- lib/orthoses/active_support.rb
|
125
61
|
- lib/orthoses/active_support/class_attribute.rb
|
126
62
|
- lib/orthoses/active_support/configurable.rb
|
127
63
|
- lib/orthoses/active_support/delegation.rb
|
128
|
-
- lib/orthoses/active_support/known_sig.rb
|
129
|
-
- lib/orthoses/active_support/known_sig/7.0/active_support/callbacks/callback_chain.rbs
|
130
|
-
- lib/orthoses/active_support/known_sig/7.0/active_support/hash_with_indifferent_access.rbs
|
131
|
-
- lib/orthoses/active_support/known_sig/7.0/active_support/multibyte/chars.rbs
|
132
|
-
- lib/orthoses/active_support/known_sig/7.0/hash_with_indifferent_access.rbs
|
133
|
-
- lib/orthoses/active_support/known_sig/7.0/time.rbs
|
134
64
|
- lib/orthoses/active_support/mattr_accessor.rb
|
135
65
|
- lib/orthoses/active_support/time_with_zone.rb
|
136
66
|
- lib/orthoses/rails.rb
|
137
|
-
- lib/orthoses/rails/known_sig_helper.rb
|
138
67
|
- lib/orthoses/rails/version.rb
|
139
68
|
- orthoses-rails.gemspec
|
140
69
|
- sig/orthoses/rails.rbs
|
@@ -160,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
89
|
- !ruby/object:Gem::Version
|
161
90
|
version: '0'
|
162
91
|
requirements: []
|
163
|
-
rubygems_version: 3.3.
|
92
|
+
rubygems_version: 3.3.16
|
164
93
|
signing_key:
|
165
94
|
specification_version: 4
|
166
95
|
summary: Orthoses middleware collection for Ruby on Rails
|
@@ -1,44 +0,0 @@
|
|
1
|
-
%a{annotate:rdoc:skip}
|
2
|
-
module Kernel : ::BasicObject
|
3
|
-
private
|
4
|
-
|
5
|
-
# <!--
|
6
|
-
# rdoc-file=lib/minitest/spec.rb
|
7
|
-
# - describe(desc, *additional_desc, &block)
|
8
|
-
# -->
|
9
|
-
# Describe a series of expectations for a given target `desc`.
|
10
|
-
#
|
11
|
-
# Defines a test class subclassing from either Minitest::Spec or from the
|
12
|
-
# surrounding describe's class. The surrounding class may subclass
|
13
|
-
# Minitest::Spec manually in order to easily share code:
|
14
|
-
#
|
15
|
-
# class MySpec < Minitest::Spec
|
16
|
-
# # ... shared code ...
|
17
|
-
# end
|
18
|
-
#
|
19
|
-
# class TestStuff < MySpec
|
20
|
-
# it "does stuff" do
|
21
|
-
# # shared code available here
|
22
|
-
# end
|
23
|
-
# describe "inner stuff" do
|
24
|
-
# it "still does stuff" do
|
25
|
-
# # ...and here
|
26
|
-
# end
|
27
|
-
# end
|
28
|
-
# end
|
29
|
-
#
|
30
|
-
# For more information on getting started with writing specs, see:
|
31
|
-
#
|
32
|
-
# http://www.rubyinside.com/a-minitestspec-tutorial-elegant-spec-style-testing-t
|
33
|
-
# hat-comes-with-ruby-5354.html
|
34
|
-
#
|
35
|
-
# For some suggestions on how to improve your specs, try:
|
36
|
-
#
|
37
|
-
# http://betterspecs.org
|
38
|
-
#
|
39
|
-
# but do note that several items there are debatable or specific to rspec.
|
40
|
-
#
|
41
|
-
# For more information about expectations, see Minitest::Expectations.
|
42
|
-
#
|
43
|
-
def describe: (untyped desc, *untyped additional_desc) { () -> untyped } -> untyped
|
44
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# <!-- rdoc-file=lib/minitest.rb -->
|
2
|
-
# Defines the API for Reporters. Subclass this and override whatever you want.
|
3
|
-
# Go nuts.
|
4
|
-
#
|
5
|
-
class Minitest::AbstractReporter
|
6
|
-
# <!--
|
7
|
-
# rdoc-file=lib/minitest.rb
|
8
|
-
# - start()
|
9
|
-
# -->
|
10
|
-
# Starts reporting on the run.
|
11
|
-
#
|
12
|
-
def start: () -> nil
|
13
|
-
|
14
|
-
# <!--
|
15
|
-
# rdoc-file=lib/minitest.rb
|
16
|
-
# - prerecord(klass, name)
|
17
|
-
# -->
|
18
|
-
# About to start running a test. This allows a reporter to show that it is
|
19
|
-
# starting or that we are in the middle of a test run.
|
20
|
-
#
|
21
|
-
def prerecord: (untyped klass, untyped name) -> nil
|
22
|
-
|
23
|
-
# <!--
|
24
|
-
# rdoc-file=lib/minitest.rb
|
25
|
-
# - record(result)
|
26
|
-
# -->
|
27
|
-
# Output and record the result of the test. Call
|
28
|
-
# [result#result_code](rdoc-ref:Runnable#result_code) to get the result
|
29
|
-
# character string. Stores the result of the run if the run did not pass.
|
30
|
-
#
|
31
|
-
def record: (untyped result) -> nil
|
32
|
-
|
33
|
-
# <!--
|
34
|
-
# rdoc-file=lib/minitest.rb
|
35
|
-
# - report()
|
36
|
-
# -->
|
37
|
-
# Outputs the summary of the run.
|
38
|
-
#
|
39
|
-
def report: () -> nil
|
40
|
-
|
41
|
-
# <!--
|
42
|
-
# rdoc-file=lib/minitest.rb
|
43
|
-
# - passed?()
|
44
|
-
# -->
|
45
|
-
# Did this run pass?
|
46
|
-
#
|
47
|
-
def passed?: () -> true
|
48
|
-
include Mutex_m
|
49
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# <!-- rdoc-file=lib/minitest.rb -->
|
2
|
-
# Represents run failures.
|
3
|
-
#
|
4
|
-
class Minitest::Assertion < ::Exception
|
5
|
-
def error: () -> self
|
6
|
-
|
7
|
-
# <!--
|
8
|
-
# rdoc-file=lib/minitest.rb
|
9
|
-
# - location()
|
10
|
-
# -->
|
11
|
-
# Where was this run before an assertion was raised?
|
12
|
-
#
|
13
|
-
def location: () -> untyped
|
14
|
-
def result_code: () -> untyped
|
15
|
-
def result_label: () -> "Failure"
|
16
|
-
end
|