Skip to content

Commit 1118b99

Browse files
Ruby: Fix failures - omit "ruby-debug-ide" (devcontainers#505)
* Ruby: Fix failures on debian image due to ruby-debug-ide * omit
1 parent 0e079ba commit 1118b99

5 files changed

Lines changed: 22 additions & 2 deletions

File tree

src/ruby/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "ruby",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"name": "Ruby (via rvm)",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/ruby",
66
"description": "Installs Ruby, rvm, rbenv, common Ruby utilities, and needed dependencies.",

src/ruby/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ ADDITIONAL_VERSIONS="${ADDITIONALVERSIONS:-""}"
1919

2020
# Note: ruby-debug-ide will install the right version of debase if missing and
2121
# installing debase directly fails on Ruby 3.1.0 as of 1/7/2022, so omitting.
22-
DEFAULT_GEMS="rake ruby-debug-ide"
22+
# installing ruby-debug-ide on debian fails, so omitting.
23+
DEFAULT_GEMS="rake"
2324

2425
RVM_GPG_KEYS="409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB"
2526
GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com

test/ruby/install_additional_ruby.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ check "ruby version 2.5.9 installed" rvm list | grep 2.5.9
1010
check "ruby version 3.0.4 installed" rvm list | grep 3.0.4
1111

1212
check "rbenv" bash -c 'eval "$(rbenv init -)" && rbenv --version'
13+
check "rake" bash -c "gem list | grep rake"
1314

1415
# Report result
1516
reportResults

test/ruby/ruby_debian.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Optional: Import test library
6+
source dev-container-features-test-lib
7+
8+
check "ruby" ruby -v
9+
check "rake" bash -c "gem list | grep rake"
10+
11+
# Report result
12+
reportResults

test/ruby/scenarios.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
77
"additionalVersions": "2.5,3.0.4"
88
}
99
}
10+
},
11+
"ruby_debian": {
12+
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
13+
"features": {
14+
"ruby": {}
15+
}
1016
}
1117
}

0 commit comments

Comments
 (0)