steep 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +0 -3
  3. data/CHANGELOG.md +6 -0
  4. data/Rakefile +0 -13
  5. data/bin/setup +0 -2
  6. data/bin/smoke_runner.rb +0 -1
  7. data/exe/steep +0 -1
  8. data/lib/steep/project/file.rb +1 -1
  9. data/lib/steep/project/hover_content.rb +1 -1
  10. data/lib/steep/server/code_worker.rb +1 -1
  11. data/lib/steep/server/signature_worker.rb +4 -4
  12. data/lib/steep/type_construction.rb +10 -16
  13. data/lib/steep/type_inference/constant_env.rb +2 -10
  14. data/lib/steep/type_inference/context.rb +1 -0
  15. data/lib/steep/version.rb +1 -1
  16. data/steep.gemspec +1 -5
  17. metadata +17 -135
  18. data/exe/rbs +0 -3
  19. data/vendor/ruby-signature/.github/workflows/ruby.yml +0 -27
  20. data/vendor/ruby-signature/.gitignore +0 -12
  21. data/vendor/ruby-signature/.rubocop.yml +0 -15
  22. data/vendor/ruby-signature/BSDL +0 -22
  23. data/vendor/ruby-signature/COPYING +0 -56
  24. data/vendor/ruby-signature/Gemfile +0 -6
  25. data/vendor/ruby-signature/README.md +0 -93
  26. data/vendor/ruby-signature/Rakefile +0 -142
  27. data/vendor/ruby-signature/bin/annotate-with-rdoc +0 -157
  28. data/vendor/ruby-signature/bin/console +0 -14
  29. data/vendor/ruby-signature/bin/query-rdoc +0 -103
  30. data/vendor/ruby-signature/bin/setup +0 -10
  31. data/vendor/ruby-signature/bin/sort +0 -89
  32. data/vendor/ruby-signature/bin/test_runner.rb +0 -16
  33. data/vendor/ruby-signature/docs/CONTRIBUTING.md +0 -97
  34. data/vendor/ruby-signature/docs/sigs.md +0 -148
  35. data/vendor/ruby-signature/docs/stdlib.md +0 -152
  36. data/vendor/ruby-signature/docs/syntax.md +0 -528
  37. data/vendor/ruby-signature/exe/rbs +0 -7
  38. data/vendor/ruby-signature/lib/rbs.rb +0 -64
  39. data/vendor/ruby-signature/lib/rbs/ast/annotation.rb +0 -27
  40. data/vendor/ruby-signature/lib/rbs/ast/comment.rb +0 -27
  41. data/vendor/ruby-signature/lib/rbs/ast/declarations.rb +0 -395
  42. data/vendor/ruby-signature/lib/rbs/ast/members.rb +0 -362
  43. data/vendor/ruby-signature/lib/rbs/buffer.rb +0 -50
  44. data/vendor/ruby-signature/lib/rbs/builtin_names.rb +0 -55
  45. data/vendor/ruby-signature/lib/rbs/cli.rb +0 -558
  46. data/vendor/ruby-signature/lib/rbs/constant.rb +0 -26
  47. data/vendor/ruby-signature/lib/rbs/constant_table.rb +0 -150
  48. data/vendor/ruby-signature/lib/rbs/definition.rb +0 -170
  49. data/vendor/ruby-signature/lib/rbs/definition_builder.rb +0 -919
  50. data/vendor/ruby-signature/lib/rbs/environment.rb +0 -281
  51. data/vendor/ruby-signature/lib/rbs/environment_loader.rb +0 -136
  52. data/vendor/ruby-signature/lib/rbs/environment_walker.rb +0 -124
  53. data/vendor/ruby-signature/lib/rbs/errors.rb +0 -187
  54. data/vendor/ruby-signature/lib/rbs/location.rb +0 -102
  55. data/vendor/ruby-signature/lib/rbs/method_type.rb +0 -123
  56. data/vendor/ruby-signature/lib/rbs/namespace.rb +0 -91
  57. data/vendor/ruby-signature/lib/rbs/parser.y +0 -1344
  58. data/vendor/ruby-signature/lib/rbs/prototype/rb.rb +0 -553
  59. data/vendor/ruby-signature/lib/rbs/prototype/rbi.rb +0 -587
  60. data/vendor/ruby-signature/lib/rbs/prototype/runtime.rb +0 -381
  61. data/vendor/ruby-signature/lib/rbs/substitution.rb +0 -46
  62. data/vendor/ruby-signature/lib/rbs/test.rb +0 -26
  63. data/vendor/ruby-signature/lib/rbs/test/errors.rb +0 -61
  64. data/vendor/ruby-signature/lib/rbs/test/hook.rb +0 -294
  65. data/vendor/ruby-signature/lib/rbs/test/setup.rb +0 -58
  66. data/vendor/ruby-signature/lib/rbs/test/spy.rb +0 -325
  67. data/vendor/ruby-signature/lib/rbs/test/test_helper.rb +0 -183
  68. data/vendor/ruby-signature/lib/rbs/test/type_check.rb +0 -254
  69. data/vendor/ruby-signature/lib/rbs/type_name.rb +0 -70
  70. data/vendor/ruby-signature/lib/rbs/types.rb +0 -936
  71. data/vendor/ruby-signature/lib/rbs/variance_calculator.rb +0 -138
  72. data/vendor/ruby-signature/lib/rbs/vendorer.rb +0 -47
  73. data/vendor/ruby-signature/lib/rbs/version.rb +0 -3
  74. data/vendor/ruby-signature/lib/rbs/writer.rb +0 -269
  75. data/vendor/ruby-signature/lib/ruby/signature.rb +0 -7
  76. data/vendor/ruby-signature/rbs.gemspec +0 -46
  77. data/vendor/ruby-signature/stdlib/abbrev/abbrev.rbs +0 -60
  78. data/vendor/ruby-signature/stdlib/base64/base64.rbs +0 -71
  79. data/vendor/ruby-signature/stdlib/benchmark/benchmark.rbs +0 -372
  80. data/vendor/ruby-signature/stdlib/builtin/array.rbs +0 -1997
  81. data/vendor/ruby-signature/stdlib/builtin/basic_object.rbs +0 -280
  82. data/vendor/ruby-signature/stdlib/builtin/binding.rbs +0 -177
  83. data/vendor/ruby-signature/stdlib/builtin/builtin.rbs +0 -45
  84. data/vendor/ruby-signature/stdlib/builtin/class.rbs +0 -145
  85. data/vendor/ruby-signature/stdlib/builtin/comparable.rbs +0 -116
  86. data/vendor/ruby-signature/stdlib/builtin/complex.rbs +0 -400
  87. data/vendor/ruby-signature/stdlib/builtin/constants.rbs +0 -37
  88. data/vendor/ruby-signature/stdlib/builtin/data.rbs +0 -5
  89. data/vendor/ruby-signature/stdlib/builtin/deprecated.rbs +0 -2
  90. data/vendor/ruby-signature/stdlib/builtin/dir.rbs +0 -413
  91. data/vendor/ruby-signature/stdlib/builtin/encoding.rbs +0 -607
  92. data/vendor/ruby-signature/stdlib/builtin/enumerable.rbs +0 -404
  93. data/vendor/ruby-signature/stdlib/builtin/enumerator.rbs +0 -260
  94. data/vendor/ruby-signature/stdlib/builtin/errno.rbs +0 -781
  95. data/vendor/ruby-signature/stdlib/builtin/errors.rbs +0 -582
  96. data/vendor/ruby-signature/stdlib/builtin/exception.rbs +0 -194
  97. data/vendor/ruby-signature/stdlib/builtin/false_class.rbs +0 -40
  98. data/vendor/ruby-signature/stdlib/builtin/fiber.rbs +0 -68
  99. data/vendor/ruby-signature/stdlib/builtin/fiber_error.rbs +0 -12
  100. data/vendor/ruby-signature/stdlib/builtin/file.rbs +0 -1076
  101. data/vendor/ruby-signature/stdlib/builtin/file_test.rbs +0 -59
  102. data/vendor/ruby-signature/stdlib/builtin/float.rbs +0 -696
  103. data/vendor/ruby-signature/stdlib/builtin/gc.rbs +0 -243
  104. data/vendor/ruby-signature/stdlib/builtin/hash.rbs +0 -1029
  105. data/vendor/ruby-signature/stdlib/builtin/integer.rbs +0 -707
  106. data/vendor/ruby-signature/stdlib/builtin/io.rbs +0 -683
  107. data/vendor/ruby-signature/stdlib/builtin/kernel.rbs +0 -576
  108. data/vendor/ruby-signature/stdlib/builtin/marshal.rbs +0 -161
  109. data/vendor/ruby-signature/stdlib/builtin/match_data.rbs +0 -271
  110. data/vendor/ruby-signature/stdlib/builtin/math.rbs +0 -369
  111. data/vendor/ruby-signature/stdlib/builtin/method.rbs +0 -185
  112. data/vendor/ruby-signature/stdlib/builtin/module.rbs +0 -1104
  113. data/vendor/ruby-signature/stdlib/builtin/nil_class.rbs +0 -82
  114. data/vendor/ruby-signature/stdlib/builtin/numeric.rbs +0 -409
  115. data/vendor/ruby-signature/stdlib/builtin/object.rbs +0 -824
  116. data/vendor/ruby-signature/stdlib/builtin/proc.rbs +0 -429
  117. data/vendor/ruby-signature/stdlib/builtin/process.rbs +0 -1227
  118. data/vendor/ruby-signature/stdlib/builtin/random.rbs +0 -267
  119. data/vendor/ruby-signature/stdlib/builtin/range.rbs +0 -226
  120. data/vendor/ruby-signature/stdlib/builtin/rational.rbs +0 -424
  121. data/vendor/ruby-signature/stdlib/builtin/rb_config.rbs +0 -57
  122. data/vendor/ruby-signature/stdlib/builtin/regexp.rbs +0 -1083
  123. data/vendor/ruby-signature/stdlib/builtin/ruby_vm.rbs +0 -14
  124. data/vendor/ruby-signature/stdlib/builtin/signal.rbs +0 -55
  125. data/vendor/ruby-signature/stdlib/builtin/string.rbs +0 -1901
  126. data/vendor/ruby-signature/stdlib/builtin/string_io.rbs +0 -284
  127. data/vendor/ruby-signature/stdlib/builtin/struct.rbs +0 -40
  128. data/vendor/ruby-signature/stdlib/builtin/symbol.rbs +0 -228
  129. data/vendor/ruby-signature/stdlib/builtin/thread.rbs +0 -1108
  130. data/vendor/ruby-signature/stdlib/builtin/thread_group.rbs +0 -23
  131. data/vendor/ruby-signature/stdlib/builtin/time.rbs +0 -1047
  132. data/vendor/ruby-signature/stdlib/builtin/trace_point.rbs +0 -290
  133. data/vendor/ruby-signature/stdlib/builtin/true_class.rbs +0 -46
  134. data/vendor/ruby-signature/stdlib/builtin/unbound_method.rbs +0 -153
  135. data/vendor/ruby-signature/stdlib/builtin/warning.rbs +0 -17
  136. data/vendor/ruby-signature/stdlib/coverage/coverage.rbs +0 -62
  137. data/vendor/ruby-signature/stdlib/csv/csv.rbs +0 -773
  138. data/vendor/ruby-signature/stdlib/erb/erb.rbs +0 -392
  139. data/vendor/ruby-signature/stdlib/find/find.rbs +0 -40
  140. data/vendor/ruby-signature/stdlib/ipaddr/ipaddr.rbs +0 -247
  141. data/vendor/ruby-signature/stdlib/json/json.rbs +0 -335
  142. data/vendor/ruby-signature/stdlib/pathname/pathname.rbs +0 -1093
  143. data/vendor/ruby-signature/stdlib/prime/integer-extension.rbs +0 -23
  144. data/vendor/ruby-signature/stdlib/prime/prime.rbs +0 -188
  145. data/vendor/ruby-signature/stdlib/securerandom/securerandom.rbs +0 -9
  146. data/vendor/ruby-signature/stdlib/set/set.rbs +0 -301
  147. data/vendor/ruby-signature/stdlib/tmpdir/tmpdir.rbs +0 -53
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4dda8122216dc9af384ceba2c84f7cb1076df5be7060d2aa32dbaff32140ed6
4
- data.tar.gz: d4ce7351acc02b06cd608a10639c00bc8bb1bed8ca81596bb1ed718112392a68
3
+ metadata.gz: 42abbd58a114142d676d6f6a5ba60d736c56385814491f2c6b6c3eb7f84fbeed
4
+ data.tar.gz: cecbb129ec52814935611a36eb9596e6cdce3857389880fc16c25102ba3d1641
5
5
  SHA512:
6
- metadata.gz: 0bc09bf14d4fbfe8cea15d8f939efd2f9b75672a25fdfbbd19011461001786d15e7d84fadfa37cf67a0303f742c6b2a718855095603119276d1154c4b97cc673
7
- data.tar.gz: 7d3d1d4f8acb18de067228fe38d52a7cb62dbd5049555fa748d96226c6ce1906fc49e034f3e19ae346c215ee89a715e04e0138b985cbedcc89b922499adc0a08
6
+ metadata.gz: 259698c20f17fbf9f19efd0fe46e5e1c9c4b8f50295c50dea3a9e8934be10ce3d017ad0410fdb3cd81822cd59968c3f3b2acf72ff55cbc99a6ab17e62173f91c
7
+ data.tar.gz: f799370012998a8f6a418a497c816ed407e708fac59a6adcdbcaf2cb57d0ce241ce0494a0a0cedc557880eb195fe5620ac5d182664df984a158dbe8335a78b5f
data/.gitmodules CHANGED
@@ -1,3 +0,0 @@
1
- [submodule "vendor/ruby-signature"]
2
- path = vendor/ruby-signature
3
- url = https://github.com/ruby/rbs.git
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.16.1 (2020-05-22)
6
+
7
+ * Fix constant resolution ([#143](https://github.com/soutaro/steep/pull/143))
8
+ * Fix RBS diagnostics line number in LSP ([142](https://github.com/soutaro/steep/pull/142))
9
+ * Fix crash caused by hover on `def` in LSP ([140](https://github.com/soutaro/steep/pull/140))
10
+
5
11
  ## 0.16.0 (2020-05-19)
6
12
 
7
13
  * Spawn workers for type check performance ([#137](https://github.com/soutaro/steep/pull/137))
data/Rakefile CHANGED
@@ -8,19 +8,6 @@ Rake::TestTask.new(:test) do |t|
8
8
  end
9
9
 
10
10
  task :default => :test
11
- task :build => :parser
12
- task :test => :parser
13
- task :install => [:reset, :parser]
14
-
15
- task :parser do
16
- Dir.chdir "vendor/ruby-signature" do
17
- sh "bundle exec rake parser"
18
- end
19
- end
20
-
21
- task :reset do
22
- sh "git submodule update -f --init"
23
- end
24
11
 
25
12
  task :smoke do
26
13
  sh "bundle", "exec", "bin/smoke_runner.rb", *Dir.glob("smoke/*")
data/bin/setup CHANGED
@@ -5,5 +5,3 @@ set -vx
5
5
 
6
6
  bundle install
7
7
 
8
- # Do any other automated setup that you need to do here
9
- bundle exec rake reset parser
data/bin/smoke_runner.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "pathname"
4
4
 
5
- $LOAD_PATH << Pathname(__dir__) + '../vendor/ruby-signature/lib'
6
5
  $LOAD_PATH << Pathname(__dir__) + "../lib"
7
6
 
8
7
  require "steep"
data/exe/steep CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'pathname'
4
4
 
5
- $LOAD_PATH << Pathname(__dir__) + "../vendor/ruby-signature/lib"
6
5
  $LOAD_PATH << Pathname(__dir__) + "../lib"
7
6
 
8
7
  require 'steep'
@@ -42,7 +42,7 @@ module Steep
42
42
 
43
43
  def self.type_check(source, subtyping:)
44
44
  annotations = source.annotations(block: source.node, factory: subtyping.factory, current_module: AST::Namespace.root)
45
- const_env = TypeInference::ConstantEnv.new(factory: subtyping.factory, context: nil)
45
+ const_env = TypeInference::ConstantEnv.new(factory: subtyping.factory, context: [AST::Namespace.root])
46
46
  type_env = TypeInference::TypeEnv.build(annotations: annotations,
47
47
  subtyping: subtyping,
48
48
  const_env: const_env,
@@ -110,7 +110,7 @@ module Steep
110
110
  context = status.typing.context_at(line: line, column: column)
111
111
  method_context = context.method_context
112
112
 
113
- if method_context
113
+ if method_context && method_context.method
114
114
  DefinitionContent.new(
115
115
  node: node,
116
116
  method_name: method_context.name,
@@ -84,7 +84,7 @@ module Steep
84
84
  loc = error.location_to_str
85
85
 
86
86
  LSP::Interface::Diagnostic.new(
87
- message: StringIO.new.tap {|io| error.print_to(io) }.string.gsub(/\A#{loc}: /, "").chomp,
87
+ message: StringIO.new.tap {|io| error.print_to(io) }.string.gsub(/\A#{Regexp.escape(loc)}: /, "").chomp,
88
88
  severity: LSP::Constant::DiagnosticSeverity::ERROR,
89
89
  range: LSP::Interface::Range.new(
90
90
  start: LSP::Interface::Position.new(
@@ -72,11 +72,11 @@ module Steep
72
72
  severity: LSP::Constant::DiagnosticSeverity::ERROR,
73
73
  range: LSP::Interface::Range.new(
74
74
  start: LSP::Interface::Position.new(
75
- line: location.start_line,
75
+ line: location.start_line - 1,
76
76
  character: location.start_column,
77
77
  ),
78
78
  end: LSP::Interface::Position.new(
79
- line: location.end_line,
79
+ line: location.end_line - 1,
80
80
  character: location.end_column
81
81
  )
82
82
  )
@@ -97,11 +97,11 @@ module Steep
97
97
  severity: LSP::Constant::DiagnosticSeverity::ERROR,
98
98
  range: LSP::Interface::Range.new(
99
99
  start: LSP::Interface::Position.new(
100
- line: error.location.start_line,
100
+ line: error.location.start_line - 1,
101
101
  character: error.location.start_column,
102
102
  ),
103
103
  end: LSP::Interface::Position.new(
104
- line: error.location.end_line,
104
+ line: error.location.end_line - 1,
105
105
  character: error.location.end_column
106
106
  )
107
107
  )
@@ -235,6 +235,9 @@ module Steep
235
235
  new_module_name = Names::Module.from_node(node.children.first) or raise "Unexpected module name: #{node.children.first}"
236
236
  new_namespace = nested_namespace_for_module(new_module_name)
237
237
 
238
+ const_context = [new_namespace] + self.module_context.const_env.context
239
+ module_const_env = TypeInference::ConstantEnv.new(factory: checker.factory, context: const_context)
240
+
238
241
  annots = source.annotations(block: node, factory: checker.factory, current_module: new_namespace)
239
242
  module_type = AST::Builtin::Module.instance_type
240
243
 
@@ -292,13 +295,6 @@ module Steep
292
295
  module_type = annots.module_type
293
296
  end
294
297
 
295
- const_context = if new_namespace.empty?
296
- nil
297
- else
298
- Names::Module.new(name: new_namespace.path.last, namespace: new_namespace.parent)
299
- end
300
- module_const_env = TypeInference::ConstantEnv.new(factory: checker.factory, context: const_context)
301
-
302
298
  module_context_ = TypeInference::Context::ModuleContext.new(
303
299
  instance_type: instance_type,
304
300
  module_type: annots.self_type || module_type,
@@ -397,11 +393,7 @@ module Steep
397
393
  module_type = annots.module_type
398
394
  end
399
395
 
400
- const_context = if new_namespace.empty?
401
- nil
402
- else
403
- Names::Module.new(name: new_namespace.path.last, namespace: new_namespace.parent)
404
- end
396
+ const_context = [new_namespace] + self.module_context.const_env.context
405
397
  class_const_env = TypeInference::ConstantEnv.new(factory: checker.factory, context: const_context)
406
398
 
407
399
  module_context = TypeInference::Context::ModuleContext.new(
@@ -1128,6 +1120,7 @@ module Steep
1128
1120
 
1129
1121
  when :const
1130
1122
  const_name = Names::Module.from_node(node)
1123
+
1131
1124
  if const_name
1132
1125
  type = type_env.get(const: const_name) do
1133
1126
  fallback_to_any node
@@ -1141,7 +1134,8 @@ module Steep
1141
1134
  yield_self do
1142
1135
  const_name = Names::Module.from_node(node)
1143
1136
  if const_name
1144
- value_type = synthesize(node.children.last).type
1137
+ const_type = type_env.get(const: const_name) {}
1138
+ value_type = synthesize(node.children.last, hint: const_type).type
1145
1139
  type = type_env.assign(const: const_name, type: value_type, self_type: self_type) do |error|
1146
1140
  case error
1147
1141
  when Subtyping::Result::Failure
@@ -2729,10 +2723,10 @@ module Steep
2729
2723
  end
2730
2724
 
2731
2725
  def nested_namespace_for_module(module_name)
2732
- if module_name.relative? && module_name.namespace.empty?
2733
- current_namespace.append(module_name.name)
2726
+ if module_name.relative?
2727
+ (current_namespace + module_name.namespace).append(module_name.name)
2734
2728
  else
2735
- current_namespace
2729
+ module_name
2736
2730
  end
2737
2731
  end
2738
2732
 
@@ -15,26 +15,18 @@ module Steep
15
15
  @table = RBS::ConstantTable.new(builder: factory.definition_builder)
16
16
  end
17
17
 
18
- def namespace
19
- @namespace ||= if context
20
- context.namespace.append(context.name)
21
- else
22
- AST::Namespace.root
23
- end
24
- end
25
-
26
18
  def lookup(name)
27
19
  cache[name] ||= begin
28
20
  constant = table.resolve_constant_reference(
29
21
  factory.type_name_1(name),
30
- context: factory.namespace_1(namespace)
22
+ context: context.map {|namespace| factory.namespace_1(namespace) }
31
23
  )
32
24
 
33
25
  if constant
34
26
  factory.type(constant.type)
35
27
  end
36
28
  rescue => exn
37
- Steep.logger.error "Looking up a constant failed: name=#{name}, context=#{context}, error=#{exn.inspect}"
29
+ Steep.logger.error "Looking up a constant failed: name=#{name}, context=[#{context.join(", ")}], error=#{exn.inspect}"
38
30
  nil
39
31
  end
40
32
  end
@@ -48,6 +48,7 @@ module Steep
48
48
  attr_reader :defined_module_methods
49
49
  attr_reader :const_env
50
50
  attr_reader :implement_name
51
+ attr_reader :namespaces
51
52
  attr_reader :current_namespace
52
53
  attr_reader :class_name
53
54
  attr_reader :instance_definition
data/lib/steep/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Steep
2
- VERSION = "0.16.0"
2
+ VERSION = "0.16.1"
3
3
  end
data/steep.gemspec CHANGED
@@ -16,12 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject {|f|
18
18
  f.match(%r{^(test|spec|features)/})
19
- } + Dir.chdir("vendor/ruby-signature") {
20
- `git ls-files -z`.split("\x0")
21
- .reject {|f| f.match(%r{^(test|spec|features)/}) }
22
- .map {|f| File.join("vendor/ruby-signature", f) }
23
19
  }
24
- spec.files << "vendor/ruby-signature/lib/rbs/parser.rb"
25
20
 
26
21
  spec.bindir = "exe"
27
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -43,4 +38,5 @@ Gem::Specification.new do |spec|
43
38
  spec.add_runtime_dependency "listen", "~> 3.1"
44
39
  spec.add_runtime_dependency "pry", "~> 0.12.2"
45
40
  spec.add_runtime_dependency "language_server-protocol", "~> 3.14.0.2"
41
+ spec.add_runtime_dependency "rbs", "~> 0.3.1"
46
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -198,11 +198,24 @@ dependencies:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
200
  version: 3.14.0.2
201
+ - !ruby/object:Gem::Dependency
202
+ name: rbs
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: 0.3.1
208
+ type: :runtime
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - "~>"
213
+ - !ruby/object:Gem::Version
214
+ version: 0.3.1
201
215
  description: Gradual Typing for Ruby
202
216
  email:
203
217
  - matsumoto@soutaro.com
204
218
  executables:
205
- - rbs
206
219
  - steep
207
220
  extensions: []
208
221
  extra_rdoc_files: []
@@ -219,7 +232,6 @@ files:
219
232
  - bin/console
220
233
  - bin/setup
221
234
  - bin/smoke_runner.rb
222
- - exe/rbs
223
235
  - exe/steep
224
236
  - lib/steep.rb
225
237
  - lib/steep/annotation_parser.rb
@@ -437,136 +449,6 @@ files:
437
449
  - smoke/yield/Steepfile
438
450
  - smoke/yield/a.rb
439
451
  - steep.gemspec
440
- - vendor/ruby-signature/.github/workflows/ruby.yml
441
- - vendor/ruby-signature/.gitignore
442
- - vendor/ruby-signature/.rubocop.yml
443
- - vendor/ruby-signature/BSDL
444
- - vendor/ruby-signature/COPYING
445
- - vendor/ruby-signature/Gemfile
446
- - vendor/ruby-signature/README.md
447
- - vendor/ruby-signature/Rakefile
448
- - vendor/ruby-signature/bin/annotate-with-rdoc
449
- - vendor/ruby-signature/bin/console
450
- - vendor/ruby-signature/bin/query-rdoc
451
- - vendor/ruby-signature/bin/setup
452
- - vendor/ruby-signature/bin/sort
453
- - vendor/ruby-signature/bin/test_runner.rb
454
- - vendor/ruby-signature/docs/CONTRIBUTING.md
455
- - vendor/ruby-signature/docs/sigs.md
456
- - vendor/ruby-signature/docs/stdlib.md
457
- - vendor/ruby-signature/docs/syntax.md
458
- - vendor/ruby-signature/exe/rbs
459
- - vendor/ruby-signature/lib/rbs.rb
460
- - vendor/ruby-signature/lib/rbs/ast/annotation.rb
461
- - vendor/ruby-signature/lib/rbs/ast/comment.rb
462
- - vendor/ruby-signature/lib/rbs/ast/declarations.rb
463
- - vendor/ruby-signature/lib/rbs/ast/members.rb
464
- - vendor/ruby-signature/lib/rbs/buffer.rb
465
- - vendor/ruby-signature/lib/rbs/builtin_names.rb
466
- - vendor/ruby-signature/lib/rbs/cli.rb
467
- - vendor/ruby-signature/lib/rbs/constant.rb
468
- - vendor/ruby-signature/lib/rbs/constant_table.rb
469
- - vendor/ruby-signature/lib/rbs/definition.rb
470
- - vendor/ruby-signature/lib/rbs/definition_builder.rb
471
- - vendor/ruby-signature/lib/rbs/environment.rb
472
- - vendor/ruby-signature/lib/rbs/environment_loader.rb
473
- - vendor/ruby-signature/lib/rbs/environment_walker.rb
474
- - vendor/ruby-signature/lib/rbs/errors.rb
475
- - vendor/ruby-signature/lib/rbs/location.rb
476
- - vendor/ruby-signature/lib/rbs/method_type.rb
477
- - vendor/ruby-signature/lib/rbs/namespace.rb
478
- - vendor/ruby-signature/lib/rbs/parser.rb
479
- - vendor/ruby-signature/lib/rbs/parser.y
480
- - vendor/ruby-signature/lib/rbs/prototype/rb.rb
481
- - vendor/ruby-signature/lib/rbs/prototype/rbi.rb
482
- - vendor/ruby-signature/lib/rbs/prototype/runtime.rb
483
- - vendor/ruby-signature/lib/rbs/substitution.rb
484
- - vendor/ruby-signature/lib/rbs/test.rb
485
- - vendor/ruby-signature/lib/rbs/test/errors.rb
486
- - vendor/ruby-signature/lib/rbs/test/hook.rb
487
- - vendor/ruby-signature/lib/rbs/test/setup.rb
488
- - vendor/ruby-signature/lib/rbs/test/spy.rb
489
- - vendor/ruby-signature/lib/rbs/test/test_helper.rb
490
- - vendor/ruby-signature/lib/rbs/test/type_check.rb
491
- - vendor/ruby-signature/lib/rbs/type_name.rb
492
- - vendor/ruby-signature/lib/rbs/types.rb
493
- - vendor/ruby-signature/lib/rbs/variance_calculator.rb
494
- - vendor/ruby-signature/lib/rbs/vendorer.rb
495
- - vendor/ruby-signature/lib/rbs/version.rb
496
- - vendor/ruby-signature/lib/rbs/writer.rb
497
- - vendor/ruby-signature/lib/ruby/signature.rb
498
- - vendor/ruby-signature/rbs.gemspec
499
- - vendor/ruby-signature/stdlib/abbrev/abbrev.rbs
500
- - vendor/ruby-signature/stdlib/base64/base64.rbs
501
- - vendor/ruby-signature/stdlib/benchmark/benchmark.rbs
502
- - vendor/ruby-signature/stdlib/builtin/array.rbs
503
- - vendor/ruby-signature/stdlib/builtin/basic_object.rbs
504
- - vendor/ruby-signature/stdlib/builtin/binding.rbs
505
- - vendor/ruby-signature/stdlib/builtin/builtin.rbs
506
- - vendor/ruby-signature/stdlib/builtin/class.rbs
507
- - vendor/ruby-signature/stdlib/builtin/comparable.rbs
508
- - vendor/ruby-signature/stdlib/builtin/complex.rbs
509
- - vendor/ruby-signature/stdlib/builtin/constants.rbs
510
- - vendor/ruby-signature/stdlib/builtin/data.rbs
511
- - vendor/ruby-signature/stdlib/builtin/deprecated.rbs
512
- - vendor/ruby-signature/stdlib/builtin/dir.rbs
513
- - vendor/ruby-signature/stdlib/builtin/encoding.rbs
514
- - vendor/ruby-signature/stdlib/builtin/enumerable.rbs
515
- - vendor/ruby-signature/stdlib/builtin/enumerator.rbs
516
- - vendor/ruby-signature/stdlib/builtin/errno.rbs
517
- - vendor/ruby-signature/stdlib/builtin/errors.rbs
518
- - vendor/ruby-signature/stdlib/builtin/exception.rbs
519
- - vendor/ruby-signature/stdlib/builtin/false_class.rbs
520
- - vendor/ruby-signature/stdlib/builtin/fiber.rbs
521
- - vendor/ruby-signature/stdlib/builtin/fiber_error.rbs
522
- - vendor/ruby-signature/stdlib/builtin/file.rbs
523
- - vendor/ruby-signature/stdlib/builtin/file_test.rbs
524
- - vendor/ruby-signature/stdlib/builtin/float.rbs
525
- - vendor/ruby-signature/stdlib/builtin/gc.rbs
526
- - vendor/ruby-signature/stdlib/builtin/hash.rbs
527
- - vendor/ruby-signature/stdlib/builtin/integer.rbs
528
- - vendor/ruby-signature/stdlib/builtin/io.rbs
529
- - vendor/ruby-signature/stdlib/builtin/kernel.rbs
530
- - vendor/ruby-signature/stdlib/builtin/marshal.rbs
531
- - vendor/ruby-signature/stdlib/builtin/match_data.rbs
532
- - vendor/ruby-signature/stdlib/builtin/math.rbs
533
- - vendor/ruby-signature/stdlib/builtin/method.rbs
534
- - vendor/ruby-signature/stdlib/builtin/module.rbs
535
- - vendor/ruby-signature/stdlib/builtin/nil_class.rbs
536
- - vendor/ruby-signature/stdlib/builtin/numeric.rbs
537
- - vendor/ruby-signature/stdlib/builtin/object.rbs
538
- - vendor/ruby-signature/stdlib/builtin/proc.rbs
539
- - vendor/ruby-signature/stdlib/builtin/process.rbs
540
- - vendor/ruby-signature/stdlib/builtin/random.rbs
541
- - vendor/ruby-signature/stdlib/builtin/range.rbs
542
- - vendor/ruby-signature/stdlib/builtin/rational.rbs
543
- - vendor/ruby-signature/stdlib/builtin/rb_config.rbs
544
- - vendor/ruby-signature/stdlib/builtin/regexp.rbs
545
- - vendor/ruby-signature/stdlib/builtin/ruby_vm.rbs
546
- - vendor/ruby-signature/stdlib/builtin/signal.rbs
547
- - vendor/ruby-signature/stdlib/builtin/string.rbs
548
- - vendor/ruby-signature/stdlib/builtin/string_io.rbs
549
- - vendor/ruby-signature/stdlib/builtin/struct.rbs
550
- - vendor/ruby-signature/stdlib/builtin/symbol.rbs
551
- - vendor/ruby-signature/stdlib/builtin/thread.rbs
552
- - vendor/ruby-signature/stdlib/builtin/thread_group.rbs
553
- - vendor/ruby-signature/stdlib/builtin/time.rbs
554
- - vendor/ruby-signature/stdlib/builtin/trace_point.rbs
555
- - vendor/ruby-signature/stdlib/builtin/true_class.rbs
556
- - vendor/ruby-signature/stdlib/builtin/unbound_method.rbs
557
- - vendor/ruby-signature/stdlib/builtin/warning.rbs
558
- - vendor/ruby-signature/stdlib/coverage/coverage.rbs
559
- - vendor/ruby-signature/stdlib/csv/csv.rbs
560
- - vendor/ruby-signature/stdlib/erb/erb.rbs
561
- - vendor/ruby-signature/stdlib/find/find.rbs
562
- - vendor/ruby-signature/stdlib/ipaddr/ipaddr.rbs
563
- - vendor/ruby-signature/stdlib/json/json.rbs
564
- - vendor/ruby-signature/stdlib/pathname/pathname.rbs
565
- - vendor/ruby-signature/stdlib/prime/integer-extension.rbs
566
- - vendor/ruby-signature/stdlib/prime/prime.rbs
567
- - vendor/ruby-signature/stdlib/securerandom/securerandom.rbs
568
- - vendor/ruby-signature/stdlib/set/set.rbs
569
- - vendor/ruby-signature/stdlib/tmpdir/tmpdir.rbs
570
452
  homepage: https://github.com/soutaro/steep
571
453
  licenses:
572
454
  - MIT
@@ -586,7 +468,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
586
468
  - !ruby/object:Gem::Version
587
469
  version: '0'
588
470
  requirements: []
589
- rubygems_version: 3.0.6
471
+ rubygems_version: 3.0.3
590
472
  signing_key:
591
473
  specification_version: 4
592
474
  summary: Gradual Typing for Ruby