ruby-lsp 0.27.0.beta4 → 0.27.0.beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/ruby_lsp/addon.rb +9 -2
- data/lib/ruby_lsp/global_state.rb +0 -1
- data/lib/ruby_lsp/server.rb +1 -1
- data/lib/ruby_lsp/setup_bundler.rb +5 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 903ebc45a5a04d0cfde014fbf4fabae2e15248854fe699c6688ee20e002f258e
|
|
4
|
+
data.tar.gz: 32504e78105cf4534fa484884ff78b18c3ae79dde72aa90e3680ff46f5aeff7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 675bf06a96321cffb530e47b4a2c228e77250ba839ea2bb1a5f2dee610e84375c24538474005043661541b80d1deb548d3eb3e6d0d35b3efbeb8766bc0c03706
|
|
7
|
+
data.tar.gz: f705dc96d46659fbdfd112703f08d8d83804cc34c51cc832e483f00303503efe287e44e534056df5601897284e16cfd167979a08b35c9cdbbe057fdae4169502
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.27.0.
|
|
1
|
+
0.27.0.beta5
|
data/lib/ruby_lsp/addon.rb
CHANGED
|
@@ -56,9 +56,16 @@ module RubyLsp
|
|
|
56
56
|
addon_files = Gem.find_files("ruby_lsp/**/addon.rb")
|
|
57
57
|
|
|
58
58
|
if include_project_addons
|
|
59
|
-
bundle_path =
|
|
59
|
+
bundle_path = begin
|
|
60
|
+
Bundler.bundle_path.to_s
|
|
61
|
+
rescue Bundler::GemfileNotFound
|
|
62
|
+
nil
|
|
63
|
+
end
|
|
64
|
+
|
|
60
65
|
project_addons = Dir.glob("#{global_state.workspace_path}/**/ruby_lsp/**/addon.rb")
|
|
61
|
-
project_addons.reject!
|
|
66
|
+
project_addons.reject! do |path|
|
|
67
|
+
(bundle_path && path.start_with?(bundle_path)) || gem_installation_path?(path)
|
|
68
|
+
end
|
|
62
69
|
|
|
63
70
|
addon_files.concat(project_addons)
|
|
64
71
|
end
|
|
@@ -117,7 +117,6 @@ module RubyLsp
|
|
|
117
117
|
all_dependencies = gather_direct_and_indirect_dependencies
|
|
118
118
|
workspace_uri = options.dig(:workspaceFolders, 0, :uri)
|
|
119
119
|
@workspace_uri = URI(workspace_uri) if workspace_uri
|
|
120
|
-
@graph.workspace_path = workspace_path
|
|
121
120
|
|
|
122
121
|
specified_formatter = options.dig(:initializationOptions, :formatter)
|
|
123
122
|
rubocop_has_addon = defined?(::RuboCop::Version::STRING) &&
|
data/lib/ruby_lsp/server.rb
CHANGED
|
@@ -1463,7 +1463,7 @@ module RubyLsp
|
|
|
1463
1463
|
|
|
1464
1464
|
#: () -> void
|
|
1465
1465
|
def load_rubydex_config
|
|
1466
|
-
@global_state.graph.load_config
|
|
1466
|
+
@global_state.graph.load_config(Rubydex::Config.load(@global_state.workspace_path))
|
|
1467
1467
|
rescue Rubydex::ConfigError => e
|
|
1468
1468
|
send_message(Notification.window_show_message(
|
|
1469
1469
|
"Error loading rubydex config: #{e.message}",
|
|
@@ -191,7 +191,11 @@ module RubyLsp
|
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
if @rails_app && !@dependencies["ruby-lsp-rails"]
|
|
194
|
-
parts <<
|
|
194
|
+
parts << if @beta
|
|
195
|
+
'gem "ruby-lsp-rails", ">= 0.a", require: false, group: :development'
|
|
196
|
+
else
|
|
197
|
+
'gem "ruby-lsp-rails", require: false, group: :development'
|
|
198
|
+
end
|
|
195
199
|
end
|
|
196
200
|
|
|
197
201
|
content = parts.join("\n")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-lsp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.27.0.
|
|
4
|
+
version: 0.27.0.beta5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shopify
|
|
@@ -69,20 +69,20 @@ dependencies:
|
|
|
69
69
|
requirements:
|
|
70
70
|
- - ">="
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: 0.
|
|
72
|
+
version: 0.4.0
|
|
73
73
|
- - "<"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.
|
|
75
|
+
version: 0.5.0
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.
|
|
82
|
+
version: 0.4.0
|
|
83
83
|
- - "<"
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: 0.
|
|
85
|
+
version: 0.5.0
|
|
86
86
|
description: An opinionated language server for Ruby
|
|
87
87
|
email:
|
|
88
88
|
- ruby@shopify.com
|