ruby-lsp 0.26.10 → 0.26.11

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: 8c98cbc9dfd7d9b5bd299f9dc258841c7b3e3cc69fb58b537a9df8f4332332b3
4
- data.tar.gz: b627dd5f43911a8b11b469998f1b7ed539a8651e87f80d13d3fe65ac0614ff0e
3
+ metadata.gz: 8c49f507d132aa56e83a1bc78b2c9d51380720d1741f2fa842b5cc703a120f85
4
+ data.tar.gz: aaef95ca8aa9882039e4779ccff619944e7197b27d9235df17a1cd9f360eda8d
5
5
  SHA512:
6
- metadata.gz: bbc993bf3cdfc2371d29b47812dbee2b39bab7b25bd8214be7fd289abff9c92f5eaa4b43d1da0f64c4e2f8170d616c260942e5e5adfa44a728a8573d059cd9fc
7
- data.tar.gz: 2e3bb291df191f0ae3c71ccca73305852b93258468942e9cc5e1de29de36161bba4d0640941bb76a3bfdf2d7c8e80c99d599bf4dd930ce9342277e4731600398
6
+ metadata.gz: d74e43b92f8205947c3ab0fd33c7c72ad173bbad910f8c223501695870dda4765cd6fde8f9a59e7fe286f109a393ec72f9d51103f74f8839bccdd6cc9cf06dd2
7
+ data.tar.gz: db06722c4dda7d57abbaebcb35be5aa60e3e246e29e28095a6da9851b7a0c99e0a3156657b2fc7c1298977539296ba8b636e2b15320fc258f2fbecd2822182e4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.26.10
1
+ 0.26.11
@@ -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
@@ -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.26.10
4
+ version: 0.26.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify