Created
August 9, 2024 12:57
-
-
Save fnordfish/47e611eebf535af8faf5aea478b8c677 to your computer and use it in GitHub Desktop.
Dev Container Ruby LSP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby; indent-tabs-mode: nil; tab-width: 2 -*- | |
# .devcontainer/Gemfile | |
File.expand_path("../Gemfile", __dir__).tap do |gemfile| | |
File.read(gemfile).scan(/^(?:ruby|source|git_source)\s.*/) do |match| | |
instance_eval(match) | |
end | |
end | |
Bundler::LockfileParser.new(Bundler.read_file(File.expand_path("../Gemfile.lock", __dir__))).specs.group_by(&:name).values.each do |specs| | |
gem specs.first.name, specs.first.version.to_s | |
end | |
gem "ruby-lsp", require: false, group: :development | |
gem "ruby-lsp-rspec", require: false, group: :development | |
gem "debug", require: false, group: :development, platforms: :mri | |
gem "standard", require: false, group: :development |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment