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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de1859a4f73bdc2007364195d5e2c8aae9f999455a7523ad290263efb0edab30
4
- data.tar.gz: 63e9388bc11ef954ed197db00c166a900e0f422c346c48af7bc485ab51a630c8
3
+ metadata.gz: 903ebc45a5a04d0cfde014fbf4fabae2e15248854fe699c6688ee20e002f258e
4
+ data.tar.gz: 32504e78105cf4534fa484884ff78b18c3ae79dde72aa90e3680ff46f5aeff7f
5
5
  SHA512:
6
- metadata.gz: cade33d50651fb915408b36b0537cb201c9b61ee0151e2ae6a8a1bee3099054af2a184e93b7790a0d283860159326f31d391c71bda798f00229262c4c58123f2
7
- data.tar.gz: 01f24b527c33cc3d741fe682d79b70a0881760a9dc6d599101356563cbfce30ce0e719619312f530f42256b6ecb82ac2a40c93d6cde0ad97ef5e2a8087922d3d
6
+ metadata.gz: 675bf06a96321cffb530e47b4a2c228e77250ba839ea2bb1a5f2dee610e84375c24538474005043661541b80d1deb548d3eb3e6d0d35b3efbeb8766bc0c03706
7
+ data.tar.gz: f705dc96d46659fbdfd112703f08d8d83804cc34c51cc832e483f00303503efe287e44e534056df5601897284e16cfd167979a08b35c9cdbbe057fdae4169502
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.27.0.beta4
1
+ 0.27.0.beta5
@@ -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 = Bundler.bundle_path.to_s
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! { |path| path.start_with?(bundle_path) || gem_installation_path?(path) }
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) &&
@@ -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 << 'gem "ruby-lsp-rails", require: false, group: :development'
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.beta4
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.2.7
72
+ version: 0.4.0
73
73
  - - "<"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.3.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.2.7
82
+ version: 0.4.0
83
83
  - - "<"
84
84
  - !ruby/object:Gem::Version
85
- version: 0.3.0
85
+ version: 0.5.0
86
86
  description: An opinionated language server for Ruby
87
87
  email:
88
88
  - ruby@shopify.com