solargraph 0.40.1 → 0.41.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/README.md +15 -0
  4. data/SPONSORS.md +1 -0
  5. data/lib/.rubocop.yml +1 -1
  6. data/lib/solargraph.rb +8 -7
  7. data/lib/solargraph/api_map.rb +52 -75
  8. data/lib/solargraph/api_map/store.rb +5 -0
  9. data/lib/solargraph/bench.rb +19 -18
  10. data/lib/solargraph/compat.rb +15 -1
  11. data/lib/solargraph/diagnostics/rubocop.rb +10 -2
  12. data/lib/solargraph/diagnostics/rubocop_helpers.rb +19 -20
  13. data/lib/solargraph/language_server/host.rb +74 -1
  14. data/lib/solargraph/language_server/message/completion_item/resolve.rb +1 -0
  15. data/lib/solargraph/language_server/message/extended/environment.rb +3 -3
  16. data/lib/solargraph/language_server/message/initialize.rb +30 -35
  17. data/lib/solargraph/language_server/message/text_document/formatting.rb +68 -18
  18. data/lib/solargraph/language_server/message/text_document/hover.rb +1 -1
  19. data/lib/solargraph/library.rb +94 -21
  20. data/lib/solargraph/parser/legacy/node_methods.rb +4 -0
  21. data/lib/solargraph/parser/rubyvm/node_chainer.rb +0 -1
  22. data/lib/solargraph/parser/rubyvm/node_methods.rb +9 -2
  23. data/lib/solargraph/parser/rubyvm/node_processors/args_node.rb +11 -12
  24. data/lib/solargraph/parser/rubyvm/node_processors/opt_arg_node.rb +1 -6
  25. data/lib/solargraph/parser/rubyvm/node_processors/send_node.rb +1 -1
  26. data/lib/solargraph/source.rb +1 -1
  27. data/lib/solargraph/source/chain/head.rb +0 -16
  28. data/lib/solargraph/source/source_chainer.rb +1 -0
  29. data/lib/solargraph/source_map/mapper.rb +0 -5
  30. data/lib/solargraph/type_checker.rb +49 -39
  31. data/lib/solargraph/type_checker/checks.rb +9 -5
  32. data/lib/solargraph/type_checker/rules.rb +5 -1
  33. data/lib/solargraph/version.rb +1 -1
  34. data/lib/solargraph/workspace/config.rb +19 -3
  35. data/lib/solargraph/yard_map/core_fills.rb +1 -0
  36. data/solargraph.gemspec +1 -1
  37. metadata +4 -4
@@ -111,6 +111,7 @@ module Solargraph
111
111
  @param y [Numeric]
112
112
  @return [Numeric]
113
113
  )),
114
+ Override.method_return('Integer#times', 'Enumerator', delete: [:overload]),
114
115
 
115
116
  Override.method_return('Kernel#puts', 'nil'),
116
117
 
data/solargraph.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.add_runtime_dependency 'jaro_winkler', '~> 1.5'
27
27
  s.add_runtime_dependency 'kramdown', '~> 2.3'
28
28
  s.add_runtime_dependency 'kramdown-parser-gfm', '~> 1.1'
29
- s.add_runtime_dependency 'parser', '~> 2.3'
29
+ s.add_runtime_dependency 'parser', '~> 3.0'
30
30
  s.add_runtime_dependency 'reverse_markdown', '>= 1.0.5', '< 3'
31
31
  s.add_runtime_dependency 'rubocop', '>= 0.52'
32
32
  s.add_runtime_dependency 'thor', '~> 1.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.1
4
+ version: 0.41.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backport
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '2.3'
117
+ version: '3.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '2.3'
124
+ version: '3.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: reverse_markdown
127
127
  requirement: !ruby/object:Gem::Requirement