Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "autoproj",
"image": "ubuntu:24.04",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers-extra/features/apt-get-packages:1": {
"packages": "bash-completion,sudo,libyaml-dev,ruby-dev,build-essential,git,python3-pip"
}
},
"remoteUser": "ubuntu",
"waitFor": "postCreateCommand",
"postCreateCommand": "./.devcontainer/post-create.sh",
"customizations": {
"vscode": {
"extensions": [
"Shopify.ruby-extensions-pack"
]
}
}
}
9 changes: 9 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

sudo gem install bundler

bundle config set path vendor/bundle
bundle config set with dev:vscode
bundle install
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ pkg/
/.yardoc/
test/gem_home
tmp/
Gemfile.lock
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"Shopify.ruby-lsp"
]
}
13 changes: 4 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@
"configurations": [
{
"name": "Minitest - all",
"type": "Ruby",
"type": "ruby_lsp",
"request": "launch",
"useBundler": true,
"cwd": "${workspaceRoot}",
"program": "/usr/bin/rake",
"args": ["test"]
"program": "rake test",
},
{
"name": "Minitest - active tasks only",
"type": "Ruby",
"type": "ruby_lsp",
"request": "launch",
"useBundler": true,
"cwd": "${workspaceRoot}",
"program": "${file}"
"program": "ruby -Itest ${file}"
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rubyLsp.rubyVersionManager": {
"identifier": "custom"
},
"rubyLsp.customRubyCommand": "eval $(ruby -rbundler -e 'Bundler.setup; ENV.each { |k, v| puts %{export #{k}=#{v.dump}} }' 2> /dev/null)"
}
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ group :dev do
end

group :vscode do
gem "debase", ">= 0.2.2.beta10"
gem "debug"
gem "pry"
gem "pry-byebug"
gem "ruby-debug-ide", ">= 0.6.0"
gem "solargraph"
gem "ruby-lsp"
end

gemspec