aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2023-03-29 02:05:17 +0300
committerGitHub <noreply@github.com>2023-03-29 02:05:17 +0300
commit1118b992d970b53d92b3379a5b05de7738f3dc8b (patch)
tree6015c18da0e775338d81ee977c4896b8f1d117b4
parent0e079baaf7c67c7df9521d1dd5059a293702c5d5 (diff)
Ruby: Fix failures - omit "ruby-debug-ide" (#505)feature_ruby_1.0.10
* Ruby: Fix failures on debian image due to ruby-debug-ide * omit
-rw-r--r--src/ruby/devcontainer-feature.json2
-rwxr-xr-xsrc/ruby/install.sh3
-rw-r--r--test/ruby/install_additional_ruby.sh1
-rw-r--r--test/ruby/ruby_debian.sh12
-rw-r--r--test/ruby/scenarios.json6
5 files changed, 22 insertions, 2 deletions
diff --git a/src/ruby/devcontainer-feature.json b/src/ruby/devcontainer-feature.json
index 8d2a4e3..e9fafee 100644
--- a/src/ruby/devcontainer-feature.json
+++ b/src/ruby/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "ruby",
- "version": "1.0.9",
+ "version": "1.0.10",
"name": "Ruby (via rvm)",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/ruby",
"description": "Installs Ruby, rvm, rbenv, common Ruby utilities, and needed dependencies.",
diff --git a/src/ruby/install.sh b/src/ruby/install.sh
index daae7fa..0871085 100755
--- a/src/ruby/install.sh
+++ b/src/ruby/install.sh
@@ -19,7 +19,8 @@ ADDITIONAL_VERSIONS="${ADDITIONALVERSIONS:-""}"
# Note: ruby-debug-ide will install the right version of debase if missing and
# installing debase directly fails on Ruby 3.1.0 as of 1/7/2022, so omitting.
-DEFAULT_GEMS="rake ruby-debug-ide"
+# installing ruby-debug-ide on debian fails, so omitting.
+DEFAULT_GEMS="rake"
RVM_GPG_KEYS="409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB"
GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com
diff --git a/test/ruby/install_additional_ruby.sh b/test/ruby/install_additional_ruby.sh
index e5a651c..4fa8444 100644
--- a/test/ruby/install_additional_ruby.sh
+++ b/test/ruby/install_additional_ruby.sh
@@ -10,6 +10,7 @@ check "ruby version 2.5.9 installed" rvm list | grep 2.5.9
check "ruby version 3.0.4 installed" rvm list | grep 3.0.4
check "rbenv" bash -c 'eval "$(rbenv init -)" && rbenv --version'
+check "rake" bash -c "gem list | grep rake"
# Report result
reportResults
diff --git a/test/ruby/ruby_debian.sh b/test/ruby/ruby_debian.sh
new file mode 100644
index 0000000..bc5e655
--- /dev/null
+++ b/test/ruby/ruby_debian.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "ruby" ruby -v
+check "rake" bash -c "gem list | grep rake"
+
+# Report result
+reportResults
diff --git a/test/ruby/scenarios.json b/test/ruby/scenarios.json
index 9f88d9e..04cac73 100644
--- a/test/ruby/scenarios.json
+++ b/test/ruby/scenarios.json
@@ -7,5 +7,11 @@
"additionalVersions": "2.5,3.0.4"
}
}
+ },
+ "ruby_debian": {
+ "image": "mcr.microsoft.com/devcontainers/base:bullseye",
+ "features": {
+ "ruby": {}
+ }
}
} \ No newline at end of file