rbs_active_hash 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +84 -57
- data/lib/rbs_active_hash/active_hash/parser.rb +2 -2
- data/lib/rbs_active_hash/active_hash.rb +5 -4
- data/lib/rbs_active_hash/rake_task.rb +1 -1
- data/lib/rbs_active_hash/version.rb +1 -1
- data/rbs_collection.lock.yaml +81 -17
- metadata +3 -4
- data/sig/shims/rake.rbs +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 885515470d42b99892b06b8e302a0a92085f1cb048d46c8b0f5b95ea2bc2f03c
|
4
|
+
data.tar.gz: 804a6904837b2d14b0ba529f9060342c231c58d624153ab53ecb2ac07153841b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0751c6dd849f3edfe89f741cf271d71ffd43309d9dce4b1f956bf4b0c82f910e70032e3a97857cb25d41c5fd5e5ea8ba62e8cfa280e1fee23278f1486a159f71
|
7
|
+
data.tar.gz: 6ce51db140684cda4156200a1e6fea5a0fd6efe2a522e7870ec432a6cfc5c5b06f3193295eba83aea1dadb204b939c4bcb3afdae239308751fade4d169f2de38
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,77 +1,97 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rbs_active_hash (1.
|
4
|
+
rbs_active_hash (1.5.0)
|
5
5
|
active_hash
|
6
6
|
rbs
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (7.
|
12
|
-
actionview (= 7.
|
13
|
-
activesupport (= 7.
|
14
|
-
|
11
|
+
actionpack (7.1.3)
|
12
|
+
actionview (= 7.1.3)
|
13
|
+
activesupport (= 7.1.3)
|
14
|
+
nokogiri (>= 1.8.5)
|
15
|
+
racc
|
16
|
+
rack (>= 2.2.4)
|
17
|
+
rack-session (>= 1.0.1)
|
15
18
|
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.
|
17
|
-
rails-html-sanitizer (~> 1.
|
18
|
-
actionview (7.
|
19
|
-
activesupport (= 7.
|
19
|
+
rails-dom-testing (~> 2.2)
|
20
|
+
rails-html-sanitizer (~> 1.6)
|
21
|
+
actionview (7.1.3)
|
22
|
+
activesupport (= 7.1.3)
|
20
23
|
builder (~> 3.1)
|
21
|
-
erubi (~> 1.
|
22
|
-
rails-dom-testing (~> 2.
|
23
|
-
rails-html-sanitizer (~> 1.
|
24
|
-
active_hash (3.2.
|
24
|
+
erubi (~> 1.11)
|
25
|
+
rails-dom-testing (~> 2.2)
|
26
|
+
rails-html-sanitizer (~> 1.6)
|
27
|
+
active_hash (3.2.1)
|
25
28
|
activesupport (>= 5.0.0)
|
26
|
-
activemodel (7.
|
27
|
-
activesupport (= 7.
|
28
|
-
activerecord (7.
|
29
|
-
activemodel (= 7.
|
30
|
-
activesupport (= 7.
|
31
|
-
|
29
|
+
activemodel (7.1.3)
|
30
|
+
activesupport (= 7.1.3)
|
31
|
+
activerecord (7.1.3)
|
32
|
+
activemodel (= 7.1.3)
|
33
|
+
activesupport (= 7.1.3)
|
34
|
+
timeout (>= 0.4.0)
|
35
|
+
activesupport (7.1.3)
|
36
|
+
base64
|
37
|
+
bigdecimal
|
32
38
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
39
|
+
connection_pool (>= 2.2.5)
|
40
|
+
drb
|
33
41
|
i18n (>= 1.6, < 2)
|
34
42
|
minitest (>= 5.1)
|
43
|
+
mutex_m
|
35
44
|
tzinfo (~> 2.0)
|
36
45
|
ast (2.4.2)
|
37
|
-
base64 (0.
|
46
|
+
base64 (0.2.0)
|
47
|
+
bigdecimal (3.1.6)
|
38
48
|
builder (3.2.4)
|
39
|
-
|
40
|
-
|
49
|
+
concurrent-ruby (1.2.3)
|
50
|
+
connection_pool (2.4.1)
|
41
51
|
crass (1.0.6)
|
42
52
|
csv (3.2.7)
|
43
53
|
diff-lcs (1.5.0)
|
54
|
+
drb (2.2.0)
|
55
|
+
ruby2_keywords
|
44
56
|
erubi (1.12.0)
|
45
57
|
ffi (1.15.5)
|
46
58
|
fileutils (1.7.1)
|
47
59
|
i18n (1.14.1)
|
48
60
|
concurrent-ruby (~> 1.0)
|
49
|
-
|
61
|
+
io-console (0.7.2)
|
62
|
+
irb (1.11.1)
|
63
|
+
rdoc
|
64
|
+
reline (>= 0.4.2)
|
65
|
+
json (2.7.1)
|
50
66
|
language_server-protocol (3.17.0.3)
|
51
67
|
listen (3.8.0)
|
52
68
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
53
69
|
rb-inotify (~> 0.9, >= 0.9.10)
|
54
70
|
logger (1.5.3)
|
55
|
-
loofah (2.
|
71
|
+
loofah (2.22.0)
|
56
72
|
crass (~> 1.0.2)
|
57
73
|
nokogiri (>= 1.12.0)
|
58
|
-
|
59
|
-
|
60
|
-
nokogiri (1.15.
|
74
|
+
minitest (5.21.2)
|
75
|
+
mutex_m (0.2.0)
|
76
|
+
nokogiri (1.15.5-x86_64-darwin)
|
61
77
|
racc (~> 1.4)
|
62
|
-
nokogiri (1.15.
|
78
|
+
nokogiri (1.15.5-x86_64-linux)
|
63
79
|
racc (~> 1.4)
|
64
|
-
parallel (1.
|
65
|
-
parser (3.
|
80
|
+
parallel (1.24.0)
|
81
|
+
parser (3.3.0.5)
|
66
82
|
ast (~> 2.4.1)
|
67
83
|
racc
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
rack (2.
|
84
|
+
psych (5.1.2)
|
85
|
+
stringio
|
86
|
+
racc (1.7.3)
|
87
|
+
rack (3.0.8)
|
88
|
+
rack-session (2.0.0)
|
89
|
+
rack (>= 3.0.0)
|
73
90
|
rack-test (2.1.0)
|
74
91
|
rack (>= 1.3)
|
92
|
+
rackup (2.1.0)
|
93
|
+
rack (>= 3)
|
94
|
+
webrick (~> 1.8)
|
75
95
|
rails-dom-testing (2.2.0)
|
76
96
|
activesupport (>= 5.0.0)
|
77
97
|
minitest
|
@@ -79,20 +99,25 @@ GEM
|
|
79
99
|
rails-html-sanitizer (1.6.0)
|
80
100
|
loofah (~> 2.21)
|
81
101
|
nokogiri (~> 1.14)
|
82
|
-
railties (7.
|
83
|
-
actionpack (= 7.
|
84
|
-
activesupport (= 7.
|
85
|
-
|
102
|
+
railties (7.1.3)
|
103
|
+
actionpack (= 7.1.3)
|
104
|
+
activesupport (= 7.1.3)
|
105
|
+
irb
|
106
|
+
rackup (>= 1.0.0)
|
86
107
|
rake (>= 12.2)
|
87
|
-
thor (~> 1.0)
|
88
|
-
zeitwerk (~> 2.
|
108
|
+
thor (~> 1.0, >= 1.2.2)
|
109
|
+
zeitwerk (~> 2.6)
|
89
110
|
rainbow (3.1.1)
|
90
|
-
rake (13.0
|
111
|
+
rake (13.1.0)
|
91
112
|
rb-fsevent (0.11.2)
|
92
113
|
rb-inotify (0.10.1)
|
93
114
|
ffi (~> 1.0)
|
94
115
|
rbs (3.1.3)
|
95
|
-
|
116
|
+
rdoc (6.6.2)
|
117
|
+
psych (>= 4.0.0)
|
118
|
+
regexp_parser (2.9.0)
|
119
|
+
reline (0.4.2)
|
120
|
+
io-console (~> 0.5)
|
96
121
|
rexml (3.2.6)
|
97
122
|
rspec (3.12.0)
|
98
123
|
rspec-core (~> 3.12.0)
|
@@ -100,31 +125,30 @@ GEM
|
|
100
125
|
rspec-mocks (~> 3.12.0)
|
101
126
|
rspec-core (3.12.2)
|
102
127
|
rspec-support (~> 3.12.0)
|
103
|
-
rspec-daemon (
|
104
|
-
pry
|
128
|
+
rspec-daemon (1.1.1)
|
105
129
|
rspec
|
106
130
|
rspec-expectations (3.12.3)
|
107
131
|
diff-lcs (>= 1.2.0, < 2.0)
|
108
132
|
rspec-support (~> 3.12.0)
|
109
|
-
rspec-mocks (3.12.
|
133
|
+
rspec-mocks (3.12.6)
|
110
134
|
diff-lcs (>= 1.2.0, < 2.0)
|
111
135
|
rspec-support (~> 3.12.0)
|
112
|
-
rspec-support (3.12.
|
113
|
-
rubocop (1.
|
114
|
-
base64 (~> 0.1.1)
|
136
|
+
rspec-support (3.12.1)
|
137
|
+
rubocop (1.60.2)
|
115
138
|
json (~> 2.3)
|
116
139
|
language_server-protocol (>= 3.17.0)
|
117
140
|
parallel (~> 1.10)
|
118
|
-
parser (>= 3.
|
141
|
+
parser (>= 3.3.0.2)
|
119
142
|
rainbow (>= 2.2.2, < 4.0)
|
120
143
|
regexp_parser (>= 1.8, < 3.0)
|
121
144
|
rexml (>= 3.2.5, < 4.0)
|
122
|
-
rubocop-ast (>= 1.
|
145
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
123
146
|
ruby-progressbar (~> 1.7)
|
124
147
|
unicode-display_width (>= 2.4.0, < 3.0)
|
125
|
-
rubocop-ast (1.
|
148
|
+
rubocop-ast (1.30.0)
|
126
149
|
parser (>= 3.2.1.0)
|
127
150
|
ruby-progressbar (1.13.0)
|
151
|
+
ruby2_keywords (0.0.5)
|
128
152
|
securerandom (0.2.2)
|
129
153
|
steep (1.5.3)
|
130
154
|
activesupport (>= 5.1)
|
@@ -141,14 +165,17 @@ GEM
|
|
141
165
|
securerandom (>= 0.1)
|
142
166
|
strscan (>= 1.0.0)
|
143
167
|
terminal-table (>= 2, < 4)
|
168
|
+
stringio (3.1.0)
|
144
169
|
strscan (3.0.6)
|
145
170
|
terminal-table (3.0.2)
|
146
171
|
unicode-display_width (>= 1.1.1, < 3)
|
147
|
-
thor (1.
|
172
|
+
thor (1.3.0)
|
173
|
+
timeout (0.4.1)
|
148
174
|
tzinfo (2.0.6)
|
149
175
|
concurrent-ruby (~> 1.0)
|
150
|
-
unicode-display_width (2.
|
151
|
-
|
176
|
+
unicode-display_width (2.5.0)
|
177
|
+
webrick (1.8.1)
|
178
|
+
zeitwerk (2.6.12)
|
152
179
|
|
153
180
|
PLATFORMS
|
154
181
|
x86_64-darwin-19
|
@@ -158,11 +185,11 @@ PLATFORMS
|
|
158
185
|
DEPENDENCIES
|
159
186
|
activerecord
|
160
187
|
railties
|
161
|
-
rake (~> 13.
|
188
|
+
rake (~> 13.1)
|
162
189
|
rbs_active_hash!
|
163
190
|
rspec
|
164
191
|
rspec-daemon
|
165
|
-
rubocop (~> 1.
|
192
|
+
rubocop (~> 1.60)
|
166
193
|
steep
|
167
194
|
|
168
195
|
BUNDLED WITH
|
@@ -91,7 +91,7 @@ module RbsActiveHash
|
|
91
91
|
|
92
92
|
def process_scope_definition(node)
|
93
93
|
scope_id, args = node_to_literal(node.args)
|
94
|
-
@scopes << [scope_id, args
|
94
|
+
@scopes << [scope_id, args]
|
95
95
|
end
|
96
96
|
|
97
97
|
def node_to_literal(node)
|
@@ -103,7 +103,7 @@ module RbsActiveHash
|
|
103
103
|
when :HASH
|
104
104
|
Hash[*node_to_literal(node.children.first)]
|
105
105
|
when :LAMBDA
|
106
|
-
|
106
|
+
node.children.first.children.first # Convert to the list of argument names
|
107
107
|
else
|
108
108
|
node
|
109
109
|
end
|
@@ -114,9 +114,10 @@ module RbsActiveHash
|
|
114
114
|
def scope_decls
|
115
115
|
return if parser.scopes.empty?
|
116
116
|
|
117
|
-
parser.scopes.map do |scope_id,
|
118
|
-
|
119
|
-
|
117
|
+
parser.scopes.map do |scope_id, args|
|
118
|
+
arguments = args.map { |arg| "untyped #{arg}" }.join(", ")
|
119
|
+
<<~RBS.strip
|
120
|
+
def self.#{scope_id}: (#{arguments}) -> ActiveHash::Relation[instance]
|
120
121
|
RBS
|
121
122
|
end.join("\n")
|
122
123
|
end
|
@@ -177,7 +178,7 @@ module RbsActiveHash
|
|
177
178
|
method_names.map do |method|
|
178
179
|
method_type = stringify_type(method_types.fetch(method, "untyped"))
|
179
180
|
if method == :id
|
180
|
-
"def self.find: (#{method_type} id) -> instance
|
181
|
+
"def self.find: (#{method_type} id) -> instance | ...\n"
|
181
182
|
else
|
182
183
|
<<~RBS
|
183
184
|
def #{method}: () -> #{method_type}
|
@@ -39,7 +39,7 @@ module RbsActiveHash
|
|
39
39
|
def define_generate_task
|
40
40
|
desc "Generate RBS files for ActiveHash models"
|
41
41
|
task("#{name}:generate": :environment) do
|
42
|
-
require "rbs_active_hash"
|
42
|
+
require "rbs_active_hash" # load RbsActiveHash lazily
|
43
43
|
|
44
44
|
Rails.application.eager_load!
|
45
45
|
|
data/rbs_collection.lock.yaml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
sources:
|
3
3
|
- type: git
|
4
4
|
name: ruby/gem_rbs_collection
|
5
|
-
revision:
|
5
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
6
6
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
7
7
|
repo_dir: gems
|
8
8
|
path: ".gem_rbs_collection"
|
@@ -16,7 +16,7 @@ gems:
|
|
16
16
|
source:
|
17
17
|
type: git
|
18
18
|
name: ruby/gem_rbs_collection
|
19
|
-
revision:
|
19
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
20
20
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
21
21
|
repo_dir: gems
|
22
22
|
- name: actionview
|
@@ -24,7 +24,7 @@ gems:
|
|
24
24
|
source:
|
25
25
|
type: git
|
26
26
|
name: ruby/gem_rbs_collection
|
27
|
-
revision:
|
27
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
28
28
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
29
29
|
repo_dir: gems
|
30
30
|
- name: active_hash
|
@@ -32,7 +32,7 @@ gems:
|
|
32
32
|
source:
|
33
33
|
type: git
|
34
34
|
name: ruby/gem_rbs_collection
|
35
|
-
revision:
|
35
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
36
36
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
37
37
|
repo_dir: gems
|
38
38
|
- name: activemodel
|
@@ -40,7 +40,7 @@ gems:
|
|
40
40
|
source:
|
41
41
|
type: git
|
42
42
|
name: ruby/gem_rbs_collection
|
43
|
-
revision:
|
43
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
44
44
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
45
45
|
repo_dir: gems
|
46
46
|
- name: activerecord
|
@@ -48,7 +48,7 @@ gems:
|
|
48
48
|
source:
|
49
49
|
type: git
|
50
50
|
name: ruby/gem_rbs_collection
|
51
|
-
revision:
|
51
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
52
52
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
53
53
|
repo_dir: gems
|
54
54
|
- name: activesupport
|
@@ -56,7 +56,7 @@ gems:
|
|
56
56
|
source:
|
57
57
|
type: git
|
58
58
|
name: ruby/gem_rbs_collection
|
59
|
-
revision:
|
59
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
60
60
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
61
61
|
repo_dir: gems
|
62
62
|
- name: ast
|
@@ -64,13 +64,17 @@ gems:
|
|
64
64
|
source:
|
65
65
|
type: git
|
66
66
|
name: ruby/gem_rbs_collection
|
67
|
-
revision:
|
67
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
68
68
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
69
69
|
repo_dir: gems
|
70
70
|
- name: base64
|
71
71
|
version: '0'
|
72
72
|
source:
|
73
73
|
type: stdlib
|
74
|
+
- name: bigdecimal
|
75
|
+
version: '0'
|
76
|
+
source:
|
77
|
+
type: stdlib
|
74
78
|
- name: cgi
|
75
79
|
version: '0'
|
76
80
|
source:
|
@@ -80,7 +84,15 @@ gems:
|
|
80
84
|
source:
|
81
85
|
type: git
|
82
86
|
name: ruby/gem_rbs_collection
|
83
|
-
revision:
|
87
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
88
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
89
|
+
repo_dir: gems
|
90
|
+
- name: connection_pool
|
91
|
+
version: '2.4'
|
92
|
+
source:
|
93
|
+
type: git
|
94
|
+
name: ruby/gem_rbs_collection
|
95
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
84
96
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
85
97
|
repo_dir: gems
|
86
98
|
- name: date
|
@@ -91,14 +103,22 @@ gems:
|
|
91
103
|
version: '0'
|
92
104
|
source:
|
93
105
|
type: stdlib
|
106
|
+
- name: fileutils
|
107
|
+
version: '0'
|
108
|
+
source:
|
109
|
+
type: stdlib
|
94
110
|
- name: i18n
|
95
111
|
version: '1.10'
|
96
112
|
source:
|
97
113
|
type: git
|
98
114
|
name: ruby/gem_rbs_collection
|
99
|
-
revision:
|
115
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
100
116
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
101
117
|
repo_dir: gems
|
118
|
+
- name: io-console
|
119
|
+
version: '0'
|
120
|
+
source:
|
121
|
+
type: stdlib
|
102
122
|
- name: json
|
103
123
|
version: '0'
|
104
124
|
source:
|
@@ -124,7 +144,7 @@ gems:
|
|
124
144
|
source:
|
125
145
|
type: git
|
126
146
|
name: ruby/gem_rbs_collection
|
127
|
-
revision:
|
147
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
128
148
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
129
149
|
repo_dir: gems
|
130
150
|
- name: optparse
|
@@ -136,7 +156,15 @@ gems:
|
|
136
156
|
source:
|
137
157
|
type: git
|
138
158
|
name: ruby/gem_rbs_collection
|
139
|
-
revision:
|
159
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
160
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
161
|
+
repo_dir: gems
|
162
|
+
- name: parser
|
163
|
+
version: '3.2'
|
164
|
+
source:
|
165
|
+
type: git
|
166
|
+
name: ruby/gem_rbs_collection
|
167
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
140
168
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
141
169
|
repo_dir: gems
|
142
170
|
- name: pathname
|
@@ -148,7 +176,7 @@ gems:
|
|
148
176
|
source:
|
149
177
|
type: git
|
150
178
|
name: ruby/gem_rbs_collection
|
151
|
-
revision:
|
179
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
152
180
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
153
181
|
repo_dir: gems
|
154
182
|
- name: rails-dom-testing
|
@@ -156,7 +184,7 @@ gems:
|
|
156
184
|
source:
|
157
185
|
type: git
|
158
186
|
name: ruby/gem_rbs_collection
|
159
|
-
revision:
|
187
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
160
188
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
161
189
|
repo_dir: gems
|
162
190
|
- name: railties
|
@@ -164,7 +192,7 @@ gems:
|
|
164
192
|
source:
|
165
193
|
type: git
|
166
194
|
name: ruby/gem_rbs_collection
|
167
|
-
revision:
|
195
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
168
196
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
169
197
|
repo_dir: gems
|
170
198
|
- name: rainbow
|
@@ -172,7 +200,15 @@ gems:
|
|
172
200
|
source:
|
173
201
|
type: git
|
174
202
|
name: ruby/gem_rbs_collection
|
175
|
-
revision:
|
203
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
204
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
205
|
+
repo_dir: gems
|
206
|
+
- name: rake
|
207
|
+
version: '13.0'
|
208
|
+
source:
|
209
|
+
type: git
|
210
|
+
name: ruby/gem_rbs_collection
|
211
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
176
212
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
177
213
|
repo_dir: gems
|
178
214
|
- name: rbs
|
@@ -183,6 +219,30 @@ gems:
|
|
183
219
|
version: '0'
|
184
220
|
source:
|
185
221
|
type: stdlib
|
222
|
+
- name: regexp_parser
|
223
|
+
version: '2.8'
|
224
|
+
source:
|
225
|
+
type: git
|
226
|
+
name: ruby/gem_rbs_collection
|
227
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
228
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
229
|
+
repo_dir: gems
|
230
|
+
- name: rubocop
|
231
|
+
version: '1.57'
|
232
|
+
source:
|
233
|
+
type: git
|
234
|
+
name: ruby/gem_rbs_collection
|
235
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
236
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
237
|
+
repo_dir: gems
|
238
|
+
- name: rubocop-ast
|
239
|
+
version: '1.30'
|
240
|
+
source:
|
241
|
+
type: git
|
242
|
+
name: ruby/gem_rbs_collection
|
243
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
244
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
245
|
+
repo_dir: gems
|
186
246
|
- name: securerandom
|
187
247
|
version: '0'
|
188
248
|
source:
|
@@ -200,13 +260,17 @@ gems:
|
|
200
260
|
source:
|
201
261
|
type: git
|
202
262
|
name: ruby/gem_rbs_collection
|
203
|
-
revision:
|
263
|
+
revision: 846c09971455f0e144cef2f5a6c9fe6d8905d3e1
|
204
264
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
205
265
|
repo_dir: gems
|
206
266
|
- name: time
|
207
267
|
version: '0'
|
208
268
|
source:
|
209
269
|
type: stdlib
|
270
|
+
- name: timeout
|
271
|
+
version: '0'
|
272
|
+
source:
|
273
|
+
type: stdlib
|
210
274
|
- name: tsort
|
211
275
|
version: '0'
|
212
276
|
source:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbs_active_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takeshi KOMIYA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_hash
|
@@ -69,7 +69,6 @@ files:
|
|
69
69
|
- sig/rbs_active_hash/active_hash.rbs
|
70
70
|
- sig/rbs_active_hash/active_hash/parser.rbs
|
71
71
|
- sig/rbs_active_hash/rake_task.rbs
|
72
|
-
- sig/shims/rake.rbs
|
73
72
|
homepage: https://github.com/tk0miya/rbs_active_hash
|
74
73
|
licenses:
|
75
74
|
- MIT
|
@@ -92,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
91
|
- !ruby/object:Gem::Version
|
93
92
|
version: '0'
|
94
93
|
requirements: []
|
95
|
-
rubygems_version: 3.4.
|
94
|
+
rubygems_version: 3.4.19
|
96
95
|
signing_key:
|
97
96
|
specification_version: 4
|
98
97
|
summary: A RBS files generator for ActiveHash models
|
data/sig/shims/rake.rbs
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module Rake
|
2
|
-
class TaskLib
|
3
|
-
include Rake::DSL
|
4
|
-
end
|
5
|
-
|
6
|
-
module DSL
|
7
|
-
private
|
8
|
-
|
9
|
-
def desc: (String description) -> void
|
10
|
-
def file: (*untyped args) ?{ () -> void } -> void
|
11
|
-
def import: (*String fns) -> void
|
12
|
-
def multitask: (*untyped args) ?{ () -> void } -> void
|
13
|
-
def namespace: (?String? name) ?{ () -> void } -> void
|
14
|
-
def rule: (*untyped args) ?{ () -> void } -> void
|
15
|
-
def task: (*untyped args) ?{ () -> void } -> void
|
16
|
-
def sh: (*String cmd) ?{ (bool, Process::Status) -> void } -> void
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|