typeprof 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,5 +26,5 @@ File.read(ARGV[0]).scan(r) do
26
26
  end
27
27
  INSN_TABLE[name.to_sym] = operands
28
28
  end
29
- target = File.join(__dir__, "../lib/type-profiler/insns-def.rb")
29
+ target = File.join(__dir__, "../lib/typeprof/insns-def.rb")
30
30
  File.write(target, "TypeProf::INSN_TABLE = " + INSN_TABLE.pretty_inspect)
@@ -3,7 +3,7 @@
3
3
  require "stackprof"
4
4
  StackProf.start(mode: :cpu, out: "stackprof-cpu.dump", raw: true, interval: 1000)
5
5
  begin
6
- load File.join(__dir__, "../exe/type-profiler")
6
+ load File.join(__dir__, "../exe/typeprof")
7
7
  ensure
8
8
  StackProf.stop
9
9
  StackProf.results
@@ -1,12 +1,18 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "typeprof" # temporal
3
- spec.version = "0.1.4"
3
+ spec.version = "0.2.0"
4
4
  spec.authors = ["Yusuke Endoh"]
5
5
  spec.email = ["mame@ruby-lang.org"]
6
6
 
7
7
  spec.summary = %q{TypeProf is a type analysis tool for Ruby code based on abstract interpretation}
8
- spec.description = %q{TypeProf is a type analysis tool for Ruby code based on abstract interpretation}
9
- spec.homepage = "https://github.com/mame/ruby-type-profiler"
8
+ spec.description = <<~EOD
9
+ TypeProf performs a type analysis of non-annotated Ruby code.
10
+
11
+ It abstractly executes input Ruby code in a level of types instead of values, gathers what types are passed to and returned by methods, and prints the analysis result in RBS format, a standard type description format for Ruby 3.0.
12
+
13
+ This tool is planned to be bundled with Ruby 3.0.
14
+ EOD
15
+ spec.homepage = "https://github.com/ruby/typeprof"
10
16
  spec.license = "MIT"
11
17
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7")
12
18
 
@@ -22,5 +28,5 @@ Gem::Specification.new do |spec|
22
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
29
  spec.require_paths = ["lib"]
24
30
 
25
- spec.add_runtime_dependency "rbs", ">= 0.12.0"
31
+ spec.add_runtime_dependency "rbs", ">= 0.14.0"
26
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typeprof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Endoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbs
@@ -16,15 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.0
19
+ version: 0.14.0
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.12.0
27
- description: TypeProf is a type analysis tool for Ruby code based on abstract interpretation
26
+ version: 0.14.0
27
+ description: |
28
+ TypeProf performs a type analysis of non-annotated Ruby code.
29
+
30
+ It abstractly executes input Ruby code in a level of types instead of values, gathers what types are passed to and returned by methods, and prints the analysis result in RBS format, a standard type description format for Ruby 3.0.
31
+
32
+ This tool is planned to be bundled with Ruby 3.0.
28
33
  email:
29
34
  - mame@ruby-lang.org
30
35
  executables:
@@ -95,6 +100,8 @@ files:
95
100
  - smoke/block10.rb
96
101
  - smoke/block11.rb
97
102
  - smoke/block12.rb
103
+ - smoke/block13.rb
104
+ - smoke/block13.rbs
98
105
  - smoke/block2.rb
99
106
  - smoke/block3.rb
100
107
  - smoke/block4.rb
@@ -150,6 +157,8 @@ files:
150
157
  - smoke/freeze.rb
151
158
  - smoke/function.rb
152
159
  - smoke/gvar.rb
160
+ - smoke/gvar2.rb
161
+ - smoke/gvar2.rbs
153
162
  - smoke/hash-fetch.rb
154
163
  - smoke/hash1.rb
155
164
  - smoke/hash2.rb
@@ -164,6 +173,8 @@ files:
164
173
  - smoke/integer.rb
165
174
  - smoke/ivar.rb
166
175
  - smoke/ivar2.rb
176
+ - smoke/ivar3.rb
177
+ - smoke/ivar3.rbs
167
178
  - smoke/kernel-class.rb
168
179
  - smoke/keyword1.rb
169
180
  - smoke/keyword2.rb
@@ -176,6 +187,8 @@ files:
176
187
  - smoke/manual-rbs.rbs
177
188
  - smoke/manual-rbs2.rb
178
189
  - smoke/manual-rbs2.rbs
190
+ - smoke/manual-rbs3.rb
191
+ - smoke/manual-rbs3.rbs
179
192
  - smoke/masgn1.rb
180
193
  - smoke/masgn2.rb
181
194
  - smoke/masgn3.rb
@@ -203,6 +216,12 @@ files:
203
216
  - smoke/proc3.rb
204
217
  - smoke/proc4.rb
205
218
  - smoke/range.rb
219
+ - smoke/rbs-alias.rb
220
+ - smoke/rbs-alias.rbs
221
+ - smoke/rbs-attr.rb
222
+ - smoke/rbs-attr.rbs
223
+ - smoke/rbs-vars.rb
224
+ - smoke/rbs-vars.rbs
206
225
  - smoke/redo1.rb
207
226
  - smoke/redo2.rb
208
227
  - smoke/req-keyword.rb
@@ -247,11 +266,11 @@ files:
247
266
  - tools/setup-insns-def.rb
248
267
  - tools/stackprof-wrapper.rb
249
268
  - typeprof.gemspec
250
- homepage: https://github.com/mame/ruby-type-profiler
269
+ homepage: https://github.com/ruby/typeprof
251
270
  licenses:
252
271
  - MIT
253
272
  metadata:
254
- homepage_uri: https://github.com/mame/ruby-type-profiler
273
+ homepage_uri: https://github.com/ruby/typeprof
255
274
  source_code_uri: https://github.com/ruby/typeprof
256
275
  post_install_message:
257
276
  rdoc_options: []