steep 1.9.0.dev.2 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +82 -0
  3. data/README.md +9 -4
  4. data/Rakefile +1 -0
  5. data/Steepfile +11 -0
  6. data/bin/generate-diagnostics-docs.rb +112 -0
  7. data/lib/steep/ast/builtin.rb +1 -0
  8. data/lib/steep/ast/ignore.rb +1 -1
  9. data/lib/steep/ast/types/factory.rb +2 -0
  10. data/lib/steep/cli.rb +9 -2
  11. data/lib/steep/diagnostic/lsp_formatter.rb +8 -1
  12. data/lib/steep/diagnostic/ruby.rb +65 -3
  13. data/lib/steep/diagnostic/signature.rb +4 -4
  14. data/lib/steep/drivers/annotations.rb +1 -1
  15. data/lib/steep/drivers/check.rb +3 -3
  16. data/lib/steep/drivers/diagnostic_printer.rb +1 -1
  17. data/lib/steep/drivers/init.rb +6 -3
  18. data/lib/steep/expectations.rb +1 -1
  19. data/lib/steep/interface/builder.rb +7 -5
  20. data/lib/steep/interface/function.rb +13 -0
  21. data/lib/steep/interface/method_type.rb +5 -0
  22. data/lib/steep/interface/shape.rb +1 -1
  23. data/lib/steep/project/dsl.rb +11 -1
  24. data/lib/steep/project/target.rb +3 -1
  25. data/lib/steep/server/change_buffer.rb +1 -1
  26. data/lib/steep/server/interaction_worker.rb +5 -5
  27. data/lib/steep/server/master.rb +2 -17
  28. data/lib/steep/server/type_check_controller.rb +3 -3
  29. data/lib/steep/server/type_check_worker.rb +1 -1
  30. data/lib/steep/services/completion_provider.rb +4 -4
  31. data/lib/steep/services/goto_service.rb +3 -3
  32. data/lib/steep/services/hover_provider/rbs.rb +1 -1
  33. data/lib/steep/services/hover_provider/ruby.rb +6 -6
  34. data/lib/steep/services/signature_help_provider.rb +8 -8
  35. data/lib/steep/services/signature_service.rb +12 -8
  36. data/lib/steep/services/type_check_service.rb +9 -9
  37. data/lib/steep/signature/validator.rb +3 -3
  38. data/lib/steep/source.rb +4 -4
  39. data/lib/steep/subtyping/check.rb +3 -3
  40. data/lib/steep/subtyping/constraints.rb +4 -4
  41. data/lib/steep/type_construction.rb +84 -45
  42. data/lib/steep/type_inference/block_params.rb +3 -3
  43. data/lib/steep/type_inference/context.rb +1 -1
  44. data/lib/steep/type_inference/method_params.rb +1 -1
  45. data/lib/steep/type_inference/type_env.rb +3 -3
  46. data/lib/steep/version.rb +1 -1
  47. data/manual/annotations.md +37 -0
  48. data/manual/ignore.md +20 -0
  49. data/manual/ruby-diagnostics.md +1812 -0
  50. data/steep.gemspec +1 -1
  51. metadata +8 -5
data/steep.gemspec CHANGED
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
42
42
  spec.add_runtime_dependency "rainbow", ">= 2.2.2", "< 4.0"
43
43
  spec.add_runtime_dependency "listen", "~> 3.0"
44
44
  spec.add_runtime_dependency "language_server-protocol", ">= 3.15", "< 4.0"
45
- spec.add_runtime_dependency "rbs", "~> 3.7.0.dev"
45
+ spec.add_runtime_dependency "rbs", "~> 3.7.0"
46
46
  spec.add_runtime_dependency "concurrent-ruby", ">= 1.1.10"
47
47
  spec.add_runtime_dependency "terminal-table", ">= 2", "< 4"
48
48
  spec.add_runtime_dependency "securerandom", ">= 0.1"
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: 1.9.0.dev.2
4
+ version: 1.9.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: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -98,14 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: 3.7.0.dev
101
+ version: 3.7.0
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: 3.7.0.dev
108
+ version: 3.7.0
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: concurrent-ruby
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -240,6 +240,7 @@ files:
240
240
  - Rakefile
241
241
  - Steepfile
242
242
  - bin/console
243
+ - bin/generate-diagnostics-docs.rb
243
244
  - bin/mem_graph.rb
244
245
  - bin/mem_prof.rb
245
246
  - bin/output_rebaseline.rb
@@ -384,6 +385,8 @@ files:
384
385
  - lib/steep/typing.rb
385
386
  - lib/steep/version.rb
386
387
  - manual/annotations.md
388
+ - manual/ignore.md
389
+ - manual/ruby-diagnostics.md
387
390
  - sample/Steepfile
388
391
  - sample/lib/conference.rb
389
392
  - sample/lib/length.rb
@@ -413,7 +416,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
416
  - !ruby/object:Gem::Version
414
417
  version: '0'
415
418
  requirements: []
416
- rubygems_version: 3.5.11
419
+ rubygems_version: 3.5.22
417
420
  signing_key:
418
421
  specification_version: 4
419
422
  summary: Gradual Typing for Ruby