orthoses-rails 0.4.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -39
- data/examples/rails/Gemfile +16 -0
- data/examples/rails/Gemfile.lock +178 -0
- data/examples/rails/Rakefile +149 -193
- data/examples/rails/config/database.yml +8 -0
- data/examples/rails/config/storage.yml +3 -0
- data/examples/rails/known_sig/actionpack/7.0/action_controller/metal.rbs +4 -0
- data/{lib/orthoses/active_model/known_sig/7.0 → examples/rails/known_sig/activemodel/7.0/active_model}/serialization.rbs +0 -0
- data/{lib/orthoses/active_model/known_sig/7.0 → examples/rails/known_sig/activemodel/7.0/active_model}/validations.rbs +0 -0
- data/examples/rails/known_sig/activerecord/6.0/_active_record_relation.rbs +49 -0
- data/examples/rails/known_sig/activerecord/6.0/_active_record_relation_class_methods.rbs +45 -0
- data/{lib/orthoses/active_record/known_sig/6.0 → examples/rails/known_sig/activerecord/6.0/active_record}/result.rbs +0 -0
- data/examples/rails/known_sig/activerecord/6.1/_active_record_relation.rbs +49 -0
- data/examples/rails/known_sig/activerecord/6.1/_active_record_relation_class_methods.rbs +45 -0
- data/{lib/orthoses/active_record/known_sig/6.1 → examples/rails/known_sig/activerecord/6.1/active_record}/result.rbs +0 -0
- data/examples/rails/known_sig/activerecord/7.0/_active_record_relation.rbs +49 -0
- data/examples/rails/known_sig/activerecord/7.0/_active_record_relation_class_methods.rbs +45 -0
- data/{lib/orthoses/active_record/known_sig/7.0 → examples/rails/known_sig/activerecord/7.0/active_record}/encryption/context.rbs +0 -0
- data/{lib/orthoses/active_record/known_sig/7.0 → examples/rails/known_sig/activerecord/7.0/active_record}/result.rbs +0 -0
- data/{lib/orthoses/active_support/known_sig → examples/rails/known_sig/activesupport}/7.0/active_support/callbacks/callback_chain.rbs +0 -0
- data/examples/rails/known_sig/activesupport/7.0/active_support/duration.rbs +4 -0
- data/{lib/orthoses/active_support/known_sig → examples/rails/known_sig/activesupport}/7.0/active_support/hash_with_indifferent_access.rbs +0 -0
- data/{lib/orthoses/active_support/known_sig → examples/rails/known_sig/activesupport}/7.0/active_support/multibyte/chars.rbs +0 -0
- data/examples/rails/known_sig/activesupport/7.0/active_support/time_with_zone.rbs +5 -0
- data/examples/rails/known_sig/activesupport/7.0/active_support/time_zone.rbs +3 -0
- data/examples/rails/known_sig/activesupport/7.0/date.rbs +6 -0
- data/examples/rails/known_sig/activesupport/7.0/date_and_time/zones.rbs +4 -0
- data/{lib/orthoses/active_support/known_sig → examples/rails/known_sig/activesupport}/7.0/hash_with_indifferent_access.rbs +0 -0
- data/examples/rails/known_sig/activesupport/7.0/integer.rbs +9 -0
- data/examples/rails/known_sig/activesupport/7.0/numeric.rbs +15 -0
- data/examples/rails/known_sig/activesupport/7.0/string.rbs +4 -0
- data/{lib/orthoses/active_support/known_sig → examples/rails/known_sig/activesupport}/7.0/time.rbs +8 -0
- data/examples/rails/tasks/action_pack.rake +141 -0
- data/examples/rails/tasks/action_view.rake +77 -0
- data/examples/rails/tasks/active_job.rake +99 -0
- data/examples/rails/tasks/active_model.rake +46 -0
- data/examples/rails/tasks/active_record.rake +88 -0
- data/examples/rails/tasks/active_storage.rake +94 -0
- data/examples/rails/tasks/active_support.rake +99 -0
- data/examples/rails/tasks/railties.rake +37 -0
- data/lib/orthoses/active_model/has_secure_password.rb +2 -10
- data/lib/orthoses/active_model.rb +0 -1
- data/lib/orthoses/active_record/delegated_type.rb +44 -0
- data/lib/orthoses/active_record/enum.rb +77 -0
- data/lib/orthoses/active_record/generated_attribute_methods.rb +1 -0
- data/lib/orthoses/active_record/scope.rb +63 -0
- data/lib/orthoses/active_record.rb +3 -1
- data/lib/orthoses/active_support/class_attribute.rb +3 -10
- data/lib/orthoses/active_support/configurable.rb +3 -2
- data/lib/orthoses/active_support/delegation.rb +11 -19
- data/lib/orthoses/active_support/mattr_accessor.rb +4 -12
- data/lib/orthoses/active_support/time_with_zone.rb +21 -3
- data/lib/orthoses/active_support.rb +0 -17
- data/lib/orthoses/rails/version.rb +1 -1
- data/lib/orthoses/rails.rb +1 -1
- data/lib/orthoses/railties/mixin.rb +107 -0
- data/lib/orthoses/railties.rb +3 -0
- data/orthoses-rails.gemspec +1 -1
- metadata +48 -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.rb +0 -21
- data/lib/orthoses/active_record/known_sig.rb +0 -21
- data/lib/orthoses/active_support/known_sig.rb +0 -21
- data/lib/orthoses/rails/known_sig_helper.rb +0 -22
@@ -5,20 +5,3 @@ 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
|
-
|
10
|
-
module Orthoses
|
11
|
-
module ActiveSupport
|
12
|
-
# Interface for adding middleware in bulk.
|
13
|
-
# Orthoses::ActiveSupport.each do |middleware, **args|
|
14
|
-
# use middleware, **args
|
15
|
-
# end
|
16
|
-
def self.each
|
17
|
-
yield ClassAttribute
|
18
|
-
yield Delegation
|
19
|
-
yield MattrAccessor
|
20
|
-
yield TimeWithZone
|
21
|
-
yield KnownSig
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
data/lib/orthoses/rails.rb
CHANGED
@@ -0,0 +1,107 @@
|
|
1
|
+
module Orthoses
|
2
|
+
module Railties
|
3
|
+
class Mixin
|
4
|
+
class MultiTracer
|
5
|
+
module Hook
|
6
|
+
def include(*mods)
|
7
|
+
super
|
8
|
+
end
|
9
|
+
def extend(*mods)
|
10
|
+
super
|
11
|
+
end
|
12
|
+
def prepend(*mods)
|
13
|
+
super
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class MiniTracer
|
18
|
+
attr_reader :captures
|
19
|
+
|
20
|
+
def initialize
|
21
|
+
@depth = []
|
22
|
+
@captures = []
|
23
|
+
@tp = TracePoint.new(:call) do |tp|
|
24
|
+
if @depth.length > 0
|
25
|
+
@captures << [tp.self, tp.method_id, tp.binding.local_variable_get(:mods)]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def trace(target:, &block)
|
31
|
+
@tp.enable(target: target, &block)
|
32
|
+
end
|
33
|
+
|
34
|
+
def push
|
35
|
+
@depth << true
|
36
|
+
end
|
37
|
+
|
38
|
+
def pop
|
39
|
+
@depth.pop
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def initialize
|
44
|
+
::Module.prepend(Hook)
|
45
|
+
@run = LazyTracePoint.new(:call, :return) do |tp|
|
46
|
+
case tp.event
|
47
|
+
when :call
|
48
|
+
@include.push
|
49
|
+
@extend.push
|
50
|
+
@prepend.push
|
51
|
+
when :return
|
52
|
+
@include.pop
|
53
|
+
@extend.pop
|
54
|
+
@prepend.pop
|
55
|
+
end
|
56
|
+
end
|
57
|
+
@include = MiniTracer.new
|
58
|
+
@extend = MiniTracer.new
|
59
|
+
@prepend = MiniTracer.new
|
60
|
+
end
|
61
|
+
|
62
|
+
def trace
|
63
|
+
@run.enable(target: 'ActiveSupport::LazyLoadHooks#execute_hook') do
|
64
|
+
@include.trace(target: Hook.instance_method(:include)) do
|
65
|
+
@extend.trace(target: Hook.instance_method(:extend)) do
|
66
|
+
@prepend.trace(target: Hook.instance_method(:prepend)) do
|
67
|
+
yield
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def captures
|
75
|
+
@include.captures.concat(@extend.captures).concat(@prepend.captures)
|
76
|
+
end
|
77
|
+
end # MultiTracer
|
78
|
+
|
79
|
+
def initialize(loader, callback:)
|
80
|
+
@loader = loader
|
81
|
+
@callback = callback
|
82
|
+
end
|
83
|
+
|
84
|
+
def call
|
85
|
+
multi_tracer = MultiTracer.new
|
86
|
+
store = multi_tracer.trace do
|
87
|
+
@loader.call
|
88
|
+
end
|
89
|
+
|
90
|
+
railties_mixin = Utils.new_store
|
91
|
+
|
92
|
+
multi_tracer.captures.each do |base_mod, how, mods|
|
93
|
+
base_mod_name = Utils.module_name(base_mod) or next
|
94
|
+
mod_names = mods.map { |mod| Utils.module_name(mod) }.compact
|
95
|
+
mod_names.each do |mod_name|
|
96
|
+
store[base_mod_name].delete("#{how} #{mod_name}")
|
97
|
+
railties_mixin[base_mod_name] << "#{how} #{mod_name}"
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
@callback.call(railties_mixin)
|
102
|
+
|
103
|
+
store
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
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.7.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-
|
11
|
+
date: 2022-08-28 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.11'
|
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.11'
|
27
27
|
description: Orthoses middleware collection for Ruby on Rails
|
28
28
|
email:
|
29
29
|
- co000ri@gmail.com
|
@@ -34,108 +34,67 @@ files:
|
|
34
34
|
- CODE_OF_CONDUCT.md
|
35
35
|
- LICENSE.txt
|
36
36
|
- README.md
|
37
|
+
- examples/rails/Gemfile
|
38
|
+
- examples/rails/Gemfile.lock
|
37
39
|
- examples/rails/Rakefile
|
38
|
-
- examples/rails/
|
39
|
-
- examples/rails/
|
40
|
-
- examples/rails/known_sig/
|
41
|
-
- examples/rails/known_sig/
|
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/
|
52
|
-
- examples/rails/
|
53
|
-
- examples/rails/
|
54
|
-
- examples/rails/
|
55
|
-
- examples/rails/
|
56
|
-
- examples/rails/
|
57
|
-
- examples/rails/
|
58
|
-
- examples/rails/
|
59
|
-
- examples/rails/
|
60
|
-
- examples/rails/
|
61
|
-
- examples/rails/
|
62
|
-
- examples/rails/
|
63
|
-
- examples/rails/
|
64
|
-
- examples/rails/
|
65
|
-
- examples/rails/
|
66
|
-
- examples/rails/
|
67
|
-
- examples/rails/
|
68
|
-
- examples/rails/
|
69
|
-
- examples/rails/
|
70
|
-
- examples/rails/
|
71
|
-
- examples/rails/
|
72
|
-
- examples/rails/
|
73
|
-
- examples/rails/
|
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
|
40
|
+
- examples/rails/config/database.yml
|
41
|
+
- examples/rails/config/storage.yml
|
42
|
+
- examples/rails/known_sig/actionpack/7.0/action_controller/metal.rbs
|
43
|
+
- examples/rails/known_sig/activemodel/7.0/active_model/serialization.rbs
|
44
|
+
- examples/rails/known_sig/activemodel/7.0/active_model/validations.rbs
|
45
|
+
- examples/rails/known_sig/activerecord/6.0/_active_record_relation.rbs
|
46
|
+
- examples/rails/known_sig/activerecord/6.0/_active_record_relation_class_methods.rbs
|
47
|
+
- examples/rails/known_sig/activerecord/6.0/active_record/result.rbs
|
48
|
+
- examples/rails/known_sig/activerecord/6.1/_active_record_relation.rbs
|
49
|
+
- examples/rails/known_sig/activerecord/6.1/_active_record_relation_class_methods.rbs
|
50
|
+
- examples/rails/known_sig/activerecord/6.1/active_record/result.rbs
|
51
|
+
- examples/rails/known_sig/activerecord/7.0/_active_record_relation.rbs
|
52
|
+
- examples/rails/known_sig/activerecord/7.0/_active_record_relation_class_methods.rbs
|
53
|
+
- examples/rails/known_sig/activerecord/7.0/active_record/encryption/context.rbs
|
54
|
+
- examples/rails/known_sig/activerecord/7.0/active_record/result.rbs
|
55
|
+
- examples/rails/known_sig/activesupport/7.0/active_support/callbacks/callback_chain.rbs
|
56
|
+
- examples/rails/known_sig/activesupport/7.0/active_support/duration.rbs
|
57
|
+
- examples/rails/known_sig/activesupport/7.0/active_support/hash_with_indifferent_access.rbs
|
58
|
+
- examples/rails/known_sig/activesupport/7.0/active_support/multibyte/chars.rbs
|
59
|
+
- examples/rails/known_sig/activesupport/7.0/active_support/time_with_zone.rbs
|
60
|
+
- examples/rails/known_sig/activesupport/7.0/active_support/time_zone.rbs
|
61
|
+
- examples/rails/known_sig/activesupport/7.0/date.rbs
|
62
|
+
- examples/rails/known_sig/activesupport/7.0/date_and_time/zones.rbs
|
63
|
+
- examples/rails/known_sig/activesupport/7.0/hash_with_indifferent_access.rbs
|
64
|
+
- examples/rails/known_sig/activesupport/7.0/integer.rbs
|
65
|
+
- examples/rails/known_sig/activesupport/7.0/numeric.rbs
|
66
|
+
- examples/rails/known_sig/activesupport/7.0/string.rbs
|
67
|
+
- examples/rails/known_sig/activesupport/7.0/time.rbs
|
68
|
+
- examples/rails/tasks/action_pack.rake
|
69
|
+
- examples/rails/tasks/action_view.rake
|
70
|
+
- examples/rails/tasks/active_job.rake
|
71
|
+
- examples/rails/tasks/active_model.rake
|
72
|
+
- examples/rails/tasks/active_record.rake
|
73
|
+
- examples/rails/tasks/active_storage.rake
|
74
|
+
- examples/rails/tasks/active_support.rake
|
75
|
+
- examples/rails/tasks/railties.rake
|
107
76
|
- lib/orthoses-rails.rb
|
108
77
|
- lib/orthoses/active_model.rb
|
109
78
|
- 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
79
|
- lib/orthoses/active_record.rb
|
114
80
|
- lib/orthoses/active_record/belongs_to.rb
|
81
|
+
- lib/orthoses/active_record/delegated_type.rb
|
82
|
+
- lib/orthoses/active_record/enum.rb
|
115
83
|
- lib/orthoses/active_record/generated_attribute_methods.rb
|
116
84
|
- lib/orthoses/active_record/has_many.rb
|
117
85
|
- 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
86
|
- lib/orthoses/active_record/query_methods.rb
|
87
|
+
- lib/orthoses/active_record/scope.rb
|
124
88
|
- lib/orthoses/active_support.rb
|
125
89
|
- lib/orthoses/active_support/class_attribute.rb
|
126
90
|
- lib/orthoses/active_support/configurable.rb
|
127
91
|
- 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
92
|
- lib/orthoses/active_support/mattr_accessor.rb
|
135
93
|
- lib/orthoses/active_support/time_with_zone.rb
|
136
94
|
- lib/orthoses/rails.rb
|
137
|
-
- lib/orthoses/rails/known_sig_helper.rb
|
138
95
|
- lib/orthoses/rails/version.rb
|
96
|
+
- lib/orthoses/railties.rb
|
97
|
+
- lib/orthoses/railties/mixin.rb
|
139
98
|
- orthoses-rails.gemspec
|
140
99
|
- sig/orthoses/rails.rbs
|
141
100
|
homepage: https://github.com/ksss/orthoses-rails
|
@@ -160,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
119
|
- !ruby/object:Gem::Version
|
161
120
|
version: '0'
|
162
121
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
122
|
+
rubygems_version: 3.4.0.dev
|
164
123
|
signing_key:
|
165
124
|
specification_version: 4
|
166
125
|
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
|