From ba9d73ca1bb99a4f7ee75d09576f79f30da06e72 Mon Sep 17 00:00:00 2001 From: Kevin Olbrich Date: Wed, 1 Jan 2025 19:22:45 +0000 Subject: [PATCH] Add devcontainer configs --- .devcontainer/devcontainer.json | 38 +++++++++++++++++++++++++++++++++ .gitignore | 1 + Gemfile.lock | 4 ++++ lib/ruby_units/unit.rb | 2 +- 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c2f715d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,38 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/ruby +{ + "name": "Ruby", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/ruby:1-3.1-bookworm", + "features": { + "ghcr.io/devcontainers/features/github-cli:1": { + "installDirectlyFromGitHubRelease": true, + "version": "latest" + }, + "ghcr.io/devcontainers-extra/features/ruby-asdf:0": { + "version": "3.1.6" + } + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "bundle install", + "customizations": { + "vscode": { + "extensions": [ + "castwide.solargraph" + ] + } + }, + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.gitignore b/.gitignore index 8b80bb7..5c3dfc6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /bin/ # rspec failure tracking .rspec_status +tags diff --git a/Gemfile.lock b/Gemfile.lock index 7308734..43d5fed 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,6 +20,7 @@ GEM diff-lcs (1.5.1) docile (1.4.1) e2mmap (0.1.0) + ffi (1.17.0-aarch64-linux-gnu) ffi (1.17.0-arm64-darwin) ffi (1.17.0-java) ffi (1.17.0-x86_64-darwin) @@ -61,6 +62,8 @@ GEM lumberjack (1.2.10) method_source (1.1.0) nenv (0.3.0) + nokogiri (1.18.0-aarch64-linux-gnu) + racc (~> 1.4) nokogiri (1.18.0-arm64-darwin) racc (~> 1.4) nokogiri (1.18.0-java) @@ -177,6 +180,7 @@ GEM yard (0.9.37) PLATFORMS + aarch64-linux arm64-darwin-21 arm64-darwin-22 arm64-darwin-23 diff --git a/lib/ruby_units/unit.rb b/lib/ruby_units/unit.rb index 5de4930..fdd40b6 100644 --- a/lib/ruby_units/unit.rb +++ b/lib/ruby_units/unit.rb @@ -2,7 +2,7 @@ require "date" module RubyUnits - # Copyright 2006-2024 + # Copyright 2006-2025 # @author Kevin C. Olbrich, Ph.D. # @see https://github.com/olbrich/ruby-units #