orthoses 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -8
- data/README.md +1 -6
- data/lib/orthoses/content/duplication_checker.rb +1 -1
- data/lib/orthoses/content/environment.rb +1 -1
- data/lib/orthoses/content.rb +19 -4
- data/lib/orthoses/create_file_by_name.rb +2 -23
- data/lib/orthoses/outputable/avoid_recursive_ancestor_error.rb +3 -0
- data/lib/orthoses/outputable/constantizable_filter.rb +32 -0
- data/lib/orthoses/outputable/uniq_content_body.rb +21 -0
- data/lib/orthoses/outputable.rb +4 -0
- data/lib/orthoses/utils/underscore.rb +21 -0
- data/lib/orthoses/utils.rb +6 -4
- data/lib/orthoses/version.rb +1 -1
- data/lib/orthoses.rb +23 -25
- data/sig/orthoses/attribute/hook.rbs +3 -0
- data/sig/orthoses/call_tracer/capturable.rbs +2 -0
- data/sig/orthoses/content.rbs +1 -0
- data/sig/orthoses/mixin/hook.rbs +2 -0
- data/sig/orthoses/outputable/constantizable_filter.rbs +6 -0
- data/sig/orthoses/outputable/uniq_content_body.rbs +6 -0
- data/sig/orthoses/utils/underscore.rbs +4 -0
- data/sig/orthoses/utils.rbs +12 -0
- data/sig/orthoses.rbs +5 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 758b4661d8c0df218aa722a78505efee6dec692b601aad81e660c86444389f5e
|
4
|
+
data.tar.gz: bcfbe10b12f0d3ef2444a7461d2a5004410b89b8d88ef3c100fb6e88f3325e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8813677299e76fe253d87e0ab8460ba596c0c6805225767525c60c7f9845bc62cdd9e4f491cb8a2a6197ae473deacd15e78ce29f209305e7e3b1a86a391661
|
7
|
+
data.tar.gz: b3979ddfbc4f209ce221c2e93e0a80c7d7120d0ef541d6f0061777db7f30b290170fae324aa3d3c4e6d99fbbd37c96a166473aefcc10b404647a5b4bfa0250f3
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
orthoses (1.
|
4
|
+
orthoses (1.3.0)
|
5
5
|
rbs (~> 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (7.0.
|
10
|
+
activesupport (7.0.4)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
ffi (1.15.5)
|
18
18
|
i18n (1.12.0)
|
19
19
|
concurrent-ruby (~> 1.0)
|
20
|
-
language_server-protocol (3.17.0.
|
20
|
+
language_server-protocol (3.17.0.1)
|
21
21
|
listen (3.7.1)
|
22
22
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
23
23
|
rb-inotify (~> 0.9, >= 0.9.10)
|
@@ -27,25 +27,27 @@ GEM
|
|
27
27
|
ast (~> 2.4.1)
|
28
28
|
rainbow (3.1.1)
|
29
29
|
rake (13.0.6)
|
30
|
-
rb-fsevent (0.11.
|
30
|
+
rb-fsevent (0.11.2)
|
31
31
|
rb-inotify (0.10.1)
|
32
32
|
ffi (~> 1.0)
|
33
|
-
rbs (2.
|
33
|
+
rbs (2.7.0)
|
34
34
|
rgot (1.1.0)
|
35
|
-
|
35
|
+
securerandom (0.2.0)
|
36
|
+
steep (1.2.0)
|
36
37
|
activesupport (>= 5.1)
|
37
38
|
language_server-protocol (>= 3.15, < 4.0)
|
38
39
|
listen (~> 3.0)
|
39
40
|
parallel (>= 1.0.0)
|
40
41
|
parser (>= 3.1)
|
41
42
|
rainbow (>= 2.2.2, < 4.0)
|
42
|
-
rbs (>= 2.
|
43
|
+
rbs (>= 2.7.0)
|
44
|
+
securerandom (>= 0.1)
|
43
45
|
terminal-table (>= 2, < 4)
|
44
46
|
terminal-table (3.0.2)
|
45
47
|
unicode-display_width (>= 1.1.1, < 3)
|
46
48
|
tzinfo (2.0.5)
|
47
49
|
concurrent-ruby (~> 1.0)
|
48
|
-
unicode-display_width (2.
|
50
|
+
unicode-display_width (2.3.0)
|
49
51
|
|
50
52
|
PLATFORMS
|
51
53
|
ruby
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ namespace :rbs do
|
|
32
32
|
desc "build RBS to sig/out"
|
33
33
|
task :build do
|
34
34
|
Orthoses::Builder.new do
|
35
|
-
use Orthoses::CreateFileByName
|
35
|
+
use Orthoses::CreateFileByName,
|
36
36
|
base_dir: Rails.root.join("sig/out"),
|
37
37
|
header: "# !!! GENERATED CODE !!!"
|
38
38
|
use Orthoses::Filter do |name, _content|
|
@@ -165,11 +165,6 @@ Run `rbs prototype rb` command process to `paths` option files.
|
|
165
165
|
|
166
166
|
Run `rbs prototype runtime` command process with `patterns` option string.
|
167
167
|
|
168
|
-
### Orthoses::AvoidRecursiveAncestorError
|
169
|
-
|
170
|
-
Mixin a module into an Object class raises `RBS::RecursiveAncestorError` when validation.
|
171
|
-
Please add this middleware then.
|
172
|
-
|
173
168
|
### Orthoses::Autoload
|
174
169
|
|
175
170
|
Force load const defined by `autoload`.
|
@@ -17,7 +17,7 @@ module Orthoses
|
|
17
17
|
|
18
18
|
def initialize(constant_filter: nil, mixin_filter: nil, attribute_filter: nil)
|
19
19
|
@load_env = RBS::Environment.new
|
20
|
-
@known_env = Utils.rbs_environment(
|
20
|
+
@known_env = Utils.rbs_environment(cache: false)
|
21
21
|
@constant_filter = constant_filter
|
22
22
|
@mixin_filter = mixin_filter
|
23
23
|
@attribute_filter = attribute_filter
|
data/lib/orthoses/content.rb
CHANGED
@@ -19,19 +19,24 @@ module Orthoses
|
|
19
19
|
attr_reader :name
|
20
20
|
attr_reader :body
|
21
21
|
attr_accessor :header
|
22
|
+
attr_accessor :comment
|
22
23
|
|
23
24
|
def initialize(name:)
|
24
25
|
Orthoses.logger.debug("Create Orthoses::Content for #{name}")
|
25
26
|
@name = name
|
26
27
|
@body = []
|
27
28
|
@header = nil
|
29
|
+
@comment = nil
|
30
|
+
@uniq = false
|
28
31
|
end
|
29
32
|
|
30
33
|
def <<(line)
|
34
|
+
@uniq = false
|
31
35
|
@body << line
|
32
36
|
end
|
33
37
|
|
34
38
|
def concat(other)
|
39
|
+
@uniq = false
|
35
40
|
@body.concat(other)
|
36
41
|
end
|
37
42
|
|
@@ -39,7 +44,12 @@ module Orthoses
|
|
39
44
|
@body.empty?
|
40
45
|
end
|
41
46
|
|
47
|
+
def interface?
|
48
|
+
@name.split('::').last.start_with?('_')
|
49
|
+
end
|
50
|
+
|
42
51
|
def delete(val)
|
52
|
+
@uniq = false
|
43
53
|
@body.delete(val)
|
44
54
|
end
|
45
55
|
|
@@ -63,7 +73,9 @@ module Orthoses
|
|
63
73
|
end
|
64
74
|
|
65
75
|
def original_rbs
|
66
|
-
a = [
|
76
|
+
a = []
|
77
|
+
a << @comment if @comment
|
78
|
+
a << @header
|
67
79
|
a << " #{@body.join("\n ")}" if @body.length > 0
|
68
80
|
a << "end"
|
69
81
|
a.join("\n")
|
@@ -103,7 +115,10 @@ module Orthoses
|
|
103
115
|
end
|
104
116
|
parsed_decl = parsed_decls.first or raise
|
105
117
|
parsed_decl.tap do |decl|
|
106
|
-
|
118
|
+
if !@uniq
|
119
|
+
DuplicationChecker.new(decl).update_decl
|
120
|
+
@uniq = true
|
121
|
+
end
|
107
122
|
end
|
108
123
|
rescue RBS::ParsingError
|
109
124
|
Orthoses.logger.error "```rbs\n#{original_rbs}```"
|
@@ -111,7 +126,7 @@ module Orthoses
|
|
111
126
|
end
|
112
127
|
|
113
128
|
def auto_header
|
114
|
-
env = Utils.rbs_environment
|
129
|
+
env = Utils.rbs_environment
|
115
130
|
if entry = env.class_decls[TypeName(name).absolute!]
|
116
131
|
@header = Content::HeaderBuilder.new(env: env).build(entry: entry)
|
117
132
|
return
|
@@ -119,7 +134,7 @@ module Orthoses
|
|
119
134
|
|
120
135
|
return unless @header.nil?
|
121
136
|
|
122
|
-
if
|
137
|
+
if interface?
|
123
138
|
self.header = "interface #{name}"
|
124
139
|
return
|
125
140
|
end
|
@@ -13,33 +13,12 @@ module Orthoses
|
|
13
13
|
@if = binding.local_variable_get(:if)
|
14
14
|
end
|
15
15
|
|
16
|
-
using
|
17
|
-
refine String do
|
18
|
-
# avoid load active_support
|
19
|
-
def underscore
|
20
|
-
return self unless /[A-Z-]|::/.match?(self)
|
21
|
-
word = self.to_s.gsub("::", "/")
|
22
|
-
word.gsub!(/(?:(?<=([A-Za-z\d]))|\b)((?-mix:(?=a)b))(?=\b|[^a-z])/) { "#{$1 && '_' }#{$2.downcase}" }
|
23
|
-
word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
|
24
|
-
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
|
25
|
-
word.tr!("-", "_")
|
26
|
-
word.downcase!
|
27
|
-
word
|
28
|
-
end
|
29
|
-
end
|
30
|
-
})
|
16
|
+
using Utils::Underscore
|
31
17
|
|
32
18
|
def call
|
33
19
|
store = @loader.call
|
34
20
|
|
35
21
|
store.each do |name, content|
|
36
|
-
begin
|
37
|
-
content.uniq!
|
38
|
-
rescue NameError, LoadError => err
|
39
|
-
Orthoses.logger.error(err.inspect)
|
40
|
-
next
|
41
|
-
end
|
42
|
-
|
43
22
|
next unless @if.nil? || @if.call(name, content)
|
44
23
|
|
45
24
|
file_path = Pathname("#{@base_dir}/#{name.to_s.split('::').map(&:underscore).join('/')}.rbs")
|
@@ -49,7 +28,7 @@ module Orthoses
|
|
49
28
|
out.puts @header
|
50
29
|
out.puts
|
51
30
|
end
|
52
|
-
out.puts content.
|
31
|
+
out.puts content.to_rbs
|
53
32
|
end
|
54
33
|
Orthoses.logger.info("Generate file to #{file_path.to_s}")
|
55
34
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Orthoses
|
4
|
+
module Outputable
|
5
|
+
# Constantizable is an internal middleware
|
6
|
+
# It's using on orthoses/outputable.rb
|
7
|
+
class ConstantizableFilter
|
8
|
+
def initialize(loader)
|
9
|
+
@loader = loader
|
10
|
+
end
|
11
|
+
|
12
|
+
def call
|
13
|
+
@loader.call.tap do |store|
|
14
|
+
failures = []
|
15
|
+
store.each do |name, content|
|
16
|
+
next if content.header
|
17
|
+
next if content.interface?
|
18
|
+
|
19
|
+
begin
|
20
|
+
Object.const_get(name)
|
21
|
+
rescue NameError, LoadError => err
|
22
|
+
Orthoses.logger.error(err.inspect)
|
23
|
+
failures << name
|
24
|
+
next
|
25
|
+
end
|
26
|
+
end
|
27
|
+
failures.each { |name| store.delete(name) }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Orthoses
|
4
|
+
module Outputable
|
5
|
+
# UniqContentBody is an internal middleware
|
6
|
+
# It's using on orthoses/outputable.rb
|
7
|
+
class UniqContentBody
|
8
|
+
def initialize(loader)
|
9
|
+
@loader = loader
|
10
|
+
end
|
11
|
+
|
12
|
+
def call
|
13
|
+
@loader.call.tap do |store|
|
14
|
+
store.each do |name, content|
|
15
|
+
content.uniq!
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/orthoses/outputable.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'orthoses/outputable/avoid_recursive_ancestor_error'
|
4
|
+
require 'orthoses/outputable/constantizable_filter'
|
5
|
+
require 'orthoses/outputable/uniq_content_body'
|
4
6
|
|
5
7
|
module Orthoses
|
6
8
|
# Module for output middleware.
|
@@ -15,6 +17,8 @@ module Orthoses
|
|
15
17
|
module Outputable
|
16
18
|
def call
|
17
19
|
@loader = AvoidRecursiveAncestorError.new(@loader)
|
20
|
+
@loader = ConstantizableFilter.new(@loader)
|
21
|
+
@loader = UniqContentBody.new(@loader)
|
18
22
|
super
|
19
23
|
end
|
20
24
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Orthoses
|
4
|
+
module Utils
|
5
|
+
module Underscore
|
6
|
+
refine String do
|
7
|
+
# avoid load active_support
|
8
|
+
def underscore
|
9
|
+
return self unless /[A-Z-]|::/.match?(self)
|
10
|
+
word = self.to_s.gsub("::", "/")
|
11
|
+
word.gsub!(/(?:(?<=([A-Za-z\d]))|\b)((?-mix:(?=a)b))(?=\b|[^a-z])/) { "#{$1 && '_' }#{$2.downcase}" }
|
12
|
+
word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
|
13
|
+
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
|
14
|
+
word.tr!("-", "_")
|
15
|
+
word.downcase!
|
16
|
+
word
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/orthoses/utils.rb
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
module Orthoses
|
4
4
|
module Utils
|
5
|
+
autoload :Underscore, "orthoses/utils/underscore"
|
6
|
+
|
5
7
|
def self.unautoload!
|
6
8
|
warn "`Orthoses::Utils.unautoload!` is deprecated. please use `Orthoses::Autoload` middleware instead."
|
7
9
|
ObjectSpace.each_object(Module) do |mod|
|
@@ -27,7 +29,7 @@ module Orthoses
|
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
30
|
-
def self.rbs_defined_const?(name, library: nil, collection:
|
32
|
+
def self.rbs_defined_const?(name, library: nil, collection: true)
|
31
33
|
return false if name.start_with?("#<")
|
32
34
|
env = rbs_environment(library: library, collection: collection)
|
33
35
|
name = name.sub(/Object::/, '')
|
@@ -35,7 +37,7 @@ module Orthoses
|
|
35
37
|
env.constant_decls.has_key?(target)
|
36
38
|
end
|
37
39
|
|
38
|
-
def self.rbs_defined_class?(name, library: nil, collection:
|
40
|
+
def self.rbs_defined_class?(name, library: nil, collection: true)
|
39
41
|
return false if name.start_with?("#<")
|
40
42
|
env = rbs_environment(library: library, collection: collection)
|
41
43
|
target = rbs_type_name(name)
|
@@ -69,7 +71,7 @@ module Orthoses
|
|
69
71
|
end
|
70
72
|
}.call
|
71
73
|
|
72
|
-
def self.rbs_environment(library: nil, collection:
|
74
|
+
def self.rbs_environment(library: nil, collection: true, cache: true)
|
73
75
|
@env_cache ||= {}
|
74
76
|
if cache && hit = @env_cache[[library, collection]]
|
75
77
|
return hit
|
@@ -188,7 +190,7 @@ module Orthoses
|
|
188
190
|
else
|
189
191
|
raise TypeError
|
190
192
|
end
|
191
|
-
rbs_environment
|
193
|
+
rbs_environment.class_decls[type_name]&.then do |entry|
|
192
194
|
entry.decls.first.decl.type_params
|
193
195
|
end
|
194
196
|
end
|
data/lib/orthoses/version.rb
CHANGED
data/lib/orthoses.rb
CHANGED
@@ -3,33 +3,31 @@
|
|
3
3
|
require 'rbs'
|
4
4
|
require 'pathname'
|
5
5
|
|
6
|
-
require_relative 'orthoses/attribute'
|
7
|
-
require_relative 'orthoses/builder'
|
8
|
-
require_relative 'orthoses/call_tracer'
|
9
|
-
require_relative 'orthoses/constant'
|
10
|
-
require_relative 'orthoses/content'
|
11
|
-
require_relative 'orthoses/create_file_by_name'
|
12
|
-
require_relative 'orthoses/delegate_class'
|
13
|
-
require_relative 'orthoses/filter'
|
14
|
-
require_relative 'orthoses/mixin'
|
15
|
-
require_relative 'orthoses/load_rbs'
|
16
|
-
require_relative 'orthoses/object_space_all'
|
17
|
-
require_relative 'orthoses/outputable'
|
18
|
-
require_relative 'orthoses/path_helper'
|
19
|
-
require_relative 'orthoses/pp'
|
20
|
-
require_relative 'orthoses/rbs_prototype_rb'
|
21
|
-
require_relative 'orthoses/rbs_prototype_runtime'
|
22
|
-
require_relative 'orthoses/store'
|
23
|
-
require_relative 'orthoses/tap'
|
24
|
-
require_relative 'orthoses/autoload'
|
25
|
-
require_relative 'orthoses/utils'
|
26
|
-
require_relative 'orthoses/version'
|
27
|
-
require_relative 'orthoses/walk'
|
28
|
-
require_relative 'orthoses/writer'
|
29
|
-
|
30
6
|
module Orthoses
|
31
|
-
|
7
|
+
autoload :Attribute, 'orthoses/attribute'
|
8
|
+
autoload :Builder, 'orthoses/builder'
|
9
|
+
autoload :CallTracer, 'orthoses/call_tracer'
|
10
|
+
autoload :Constant, 'orthoses/constant'
|
11
|
+
autoload :Content, 'orthoses/content'
|
12
|
+
autoload :CreateFileByName, 'orthoses/create_file_by_name'
|
13
|
+
autoload :DelegateClass, 'orthoses/delegate_class'
|
14
|
+
autoload :Filter, 'orthoses/filter'
|
15
|
+
autoload :Mixin, 'orthoses/mixin'
|
32
16
|
autoload :LazyTracePoint, 'orthoses/lazy_trace_point'
|
17
|
+
autoload :LoadRBS, 'orthoses/load_rbs'
|
18
|
+
autoload :ObjectSpaceAll, 'orthoses/object_space_all'
|
19
|
+
autoload :Outputable, 'orthoses/outputable'
|
20
|
+
autoload :PathHelper, 'orthoses/path_helper'
|
21
|
+
autoload :PP, 'orthoses/pp'
|
22
|
+
autoload :RBSPrototypeRB, 'orthoses/rbs_prototype_rb'
|
23
|
+
autoload :RBSPrototypeRuntime, 'orthoses/rbs_prototype_runtime'
|
24
|
+
autoload :Store, 'orthoses/store'
|
25
|
+
autoload :Tap, 'orthoses/tap'
|
26
|
+
autoload :Autoload, 'orthoses/autoload'
|
27
|
+
autoload :Utils, 'orthoses/utils'
|
28
|
+
autoload :VERSION, 'orthoses/version'
|
29
|
+
autoload :Walk, 'orthoses/walk'
|
30
|
+
autoload :Writer, 'orthoses/writer'
|
33
31
|
|
34
32
|
METHOD_METHOD = ::Kernel.instance_method(:method)
|
35
33
|
INSTANCE_METHOD_METHOD = ::Module.instance_method(:instance_method)
|
data/sig/orthoses/content.rbs
CHANGED
data/sig/orthoses/mixin/hook.rbs
CHANGED
data/sig/orthoses/utils.rbs
CHANGED
@@ -2,16 +2,28 @@
|
|
2
2
|
|
3
3
|
module Orthoses::Utils
|
4
4
|
def self.unautoload!: () -> untyped
|
5
|
+
|
5
6
|
def self.each_const_recursive: (Module root, ?cache: Hash[untyped, true], ?on_error: ^(Orthoses::ConstLoadError) -> void) ?{ (Module, Symbol, untyped) -> void } -> void
|
7
|
+
|
6
8
|
def self.rbs_defined_const?: (String name, ?library: (String | Array[String])?, ?collection: boolish) -> bool
|
9
|
+
|
7
10
|
def self.rbs_defined_class?: (String name, ?library: (String | Array[String])?, ?collection: boolish) -> bool
|
11
|
+
|
8
12
|
def self.rbs_type_name: (String) -> RBS::TypeName
|
13
|
+
|
9
14
|
def self.rbs_environment: (?library: String | Array[String] | nil, ?collection: boolish, ?cache: boolish) -> RBS::Environment
|
15
|
+
|
10
16
|
def self.object_to_rbs: (untyped object, strict: bool) -> String
|
17
|
+
|
11
18
|
def self.module_name: (Module mod) -> String?
|
19
|
+
|
12
20
|
def self.module_to_type_name: (Module) -> RBS::TypeName?
|
21
|
+
|
13
22
|
def self.known_type_params: (Module | String) -> Array[RBS::AST::TypeParam]?
|
23
|
+
|
14
24
|
def self.new_store: () -> Orthoses::store
|
25
|
+
|
15
26
|
UNBOUND_NAME_METHOD: UnboundMethod
|
27
|
+
|
16
28
|
attr_accessor self.rbs_collection_pathname: Pathname
|
17
29
|
end
|
data/sig/orthoses.rbs
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# THIS IS GENERATED CODE from `$ rake generate_self_sig`
|
2
2
|
|
3
3
|
module Orthoses
|
4
|
-
VERSION: "1.
|
4
|
+
VERSION: "1.3.0"
|
5
|
+
|
5
6
|
attr_accessor self.logger: ::Logger
|
7
|
+
|
6
8
|
type store = Hash[String, Orthoses::Content]
|
9
|
+
|
7
10
|
INSTANCE_METHOD_METHOD: UnboundMethod
|
11
|
+
|
8
12
|
METHOD_METHOD: UnboundMethod
|
9
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orthoses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbs
|
@@ -60,6 +60,8 @@ files:
|
|
60
60
|
- lib/orthoses/object_space_all.rb
|
61
61
|
- lib/orthoses/outputable.rb
|
62
62
|
- lib/orthoses/outputable/avoid_recursive_ancestor_error.rb
|
63
|
+
- lib/orthoses/outputable/constantizable_filter.rb
|
64
|
+
- lib/orthoses/outputable/uniq_content_body.rb
|
63
65
|
- lib/orthoses/path_helper.rb
|
64
66
|
- lib/orthoses/pp.rb
|
65
67
|
- lib/orthoses/rbs_prototype_rb.rb
|
@@ -67,6 +69,7 @@ files:
|
|
67
69
|
- lib/orthoses/store.rb
|
68
70
|
- lib/orthoses/tap.rb
|
69
71
|
- lib/orthoses/utils.rb
|
72
|
+
- lib/orthoses/utils/underscore.rb
|
70
73
|
- lib/orthoses/version.rb
|
71
74
|
- lib/orthoses/walk.rb
|
72
75
|
- lib/orthoses/writer.rb
|
@@ -103,6 +106,8 @@ files:
|
|
103
106
|
- sig/orthoses/object_space_all.rbs
|
104
107
|
- sig/orthoses/outputable.rbs
|
105
108
|
- sig/orthoses/outputable/avoid_recursive_ancestor_error.rbs
|
109
|
+
- sig/orthoses/outputable/constantizable_filter.rbs
|
110
|
+
- sig/orthoses/outputable/uniq_content_body.rbs
|
106
111
|
- sig/orthoses/path_helper.rbs
|
107
112
|
- sig/orthoses/pp.rbs
|
108
113
|
- sig/orthoses/rbs_prototype_rb.rbs
|
@@ -110,6 +115,7 @@ files:
|
|
110
115
|
- sig/orthoses/store.rbs
|
111
116
|
- sig/orthoses/tap.rbs
|
112
117
|
- sig/orthoses/utils.rbs
|
118
|
+
- sig/orthoses/utils/underscore.rbs
|
113
119
|
- sig/orthoses/walk.rbs
|
114
120
|
- sig/orthoses/writer.rbs
|
115
121
|
homepage: https://github.com/ksss/orthoses
|
@@ -133,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
139
|
- !ruby/object:Gem::Version
|
134
140
|
version: '0'
|
135
141
|
requirements: []
|
136
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.3.16
|
137
143
|
signing_key:
|
138
144
|
specification_version: 4
|
139
145
|
summary: Framework for Generate RBS
|