solargraph 0.40.4 → 0.42.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -5
  3. data/CHANGELOG.md +32 -0
  4. data/README.md +15 -0
  5. data/SPONSORS.md +1 -0
  6. data/lib/.rubocop.yml +4 -3
  7. data/lib/solargraph.rb +8 -7
  8. data/lib/solargraph/api_map.rb +40 -111
  9. data/lib/solargraph/bench.rb +13 -16
  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 +18 -0
  13. data/lib/solargraph/diagnostics/type_check.rb +1 -1
  14. data/lib/solargraph/language_server/host.rb +108 -7
  15. data/lib/solargraph/language_server/host/diagnoser.rb +9 -1
  16. data/lib/solargraph/language_server/host/sources.rb +1 -1
  17. data/lib/solargraph/language_server/message/completion_item/resolve.rb +1 -0
  18. data/lib/solargraph/language_server/message/extended/environment.rb +3 -3
  19. data/lib/solargraph/language_server/message/initialize.rb +37 -35
  20. data/lib/solargraph/language_server/message/text_document/formatting.rb +28 -7
  21. data/lib/solargraph/language_server/message/text_document/hover.rb +1 -1
  22. data/lib/solargraph/library.rb +132 -22
  23. data/lib/solargraph/parser/rubyvm/node_chainer.rb +0 -1
  24. data/lib/solargraph/parser/rubyvm/node_processors/args_node.rb +0 -1
  25. data/lib/solargraph/shell.rb +5 -1
  26. data/lib/solargraph/source/chain/head.rb +0 -16
  27. data/lib/solargraph/source/source_chainer.rb +2 -1
  28. data/lib/solargraph/source_map/mapper.rb +0 -5
  29. data/lib/solargraph/type_checker/checks.rb +4 -4
  30. data/lib/solargraph/version.rb +1 -1
  31. data/lib/solargraph/workspace.rb +1 -0
  32. data/lib/solargraph/workspace/config.rb +4 -3
  33. data/lib/solargraph/yard_map.rb +41 -39
  34. data/lib/solargraph/yard_map/core_fills.rb +1 -0
  35. data/solargraph.gemspec +1 -0
  36. metadata +16 -2
@@ -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
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency 'backport', '~> 1.1'
23
23
  s.add_runtime_dependency 'benchmark'
24
24
  s.add_runtime_dependency 'bundler', '>= 1.17.2'
25
+ s.add_runtime_dependency 'diff-lcs', '~> 1.4'
25
26
  s.add_runtime_dependency 'e2mmap'
26
27
  s.add_runtime_dependency 'jaro_winkler', '~> 1.5'
27
28
  s.add_runtime_dependency 'kramdown', '~> 2.3'
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.4
4
+ version: 0.42.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: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backport
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.17.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: diff-lcs
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.4'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: e2mmap
57
71
  requirement: !ruby/object:Gem::Requirement