Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
efd88326
Unverified
Commit
efd88326
authored
Apr 04, 2025
by
Kaniska
Committed by
GitHub
Apr 04, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Ruby] - 3.1 EOL and 3.4 addition (#1312)
Ruby 3.1 EOL and 3.4 addition
parent
2eb4b5ce
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
devcontainer-feature.json
src/ruby/devcontainer-feature.json
+3
-4
install_additional_ruby.sh
test/ruby/install_additional_ruby.sh
+3
-3
ruby_fallback_test.sh
test/ruby/ruby_fallback_test.sh
+1
-1
scenarios.json
test/ruby/scenarios.json
+2
-2
No files found.
src/ruby/devcontainer-feature.json
View file @
efd88326
{
{
"id"
:
"ruby"
,
"id"
:
"ruby"
,
"version"
:
"1.
2.3
"
,
"version"
:
"1.
3.0
"
,
"name"
:
"Ruby (via rvm)"
,
"name"
:
"Ruby (via rvm)"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/ruby"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/ruby"
,
"description"
:
"Installs Ruby, rvm, rbenv, common Ruby utilities, and needed dependencies."
,
"description"
:
"Installs Ruby, rvm, rbenv, common Ruby utilities, and needed dependencies."
,
...
@@ -10,9 +10,8 @@
...
@@ -10,9 +10,8 @@
"proposals"
:
[
"proposals"
:
[
"latest"
,
"latest"
,
"none"
,
"none"
,
"3.1"
,
"3.4"
,
"3.0"
,
"3.2"
"2.7"
],
],
"default"
:
"latest"
,
"default"
:
"latest"
,
"description"
:
"Select or enter a Ruby version to install"
"description"
:
"Select or enter a Ruby version to install"
...
...
test/ruby/install_additional_ruby.sh
View file @
efd88326
...
@@ -5,9 +5,9 @@ set -e
...
@@ -5,9 +5,9 @@ set -e
# Optional: Import test library
# Optional: Import test library
source
dev-container-features-test-lib
source
dev-container-features-test-lib
check
"ruby version 3.
1.2 installed as default"
ruby
-v
|
grep
3.1
.2
check
"ruby version 3.
4.2 installed as default"
ruby
-v
|
grep
3.4
.2
check
"ruby version
2.5.9 installed"
rvm list |
grep
2.5.9
check
"ruby version
3.2.8 installed"
rvm list |
grep
3.2.8
check
"ruby version 3.
0.4 installed"
rvm list |
grep
3.0.4
check
"ruby version 3.
3.2 installed"
rvm list |
grep
3.3.2
check
"rbenv"
bash
-c
'eval "$(rbenv init -)" && rbenv --version'
check
"rbenv"
bash
-c
'eval "$(rbenv init -)" && rbenv --version'
check
"rake"
bash
-c
"gem list | grep rake"
check
"rake"
bash
-c
"gem list | grep rake"
...
...
test/ruby/ruby_fallback_test.sh
View file @
efd88326
...
@@ -248,7 +248,7 @@ get_github_api_repo_url() {
...
@@ -248,7 +248,7 @@ get_github_api_repo_url() {
# Figure out correct version of a three part version number is not passed
# Figure out correct version of a three part version number is not passed
ruby_url
=
"https://github.com/ruby/ruby"
ruby_url
=
"https://github.com/ruby/ruby"
RUBY_VERSION
=
"3.
1
.xyz"
RUBY_VERSION
=
"3.
4
.xyz"
set_rvm_install_args
()
{
set_rvm_install_args
()
{
RUBY_VERSION
=
$1
RUBY_VERSION
=
$1
...
...
test/ruby/scenarios.json
View file @
efd88326
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
"image"
:
"ubuntu:focal"
,
"image"
:
"ubuntu:focal"
,
"features"
:
{
"features"
:
{
"ruby"
:
{
"ruby"
:
{
"version"
:
"3.
1
.2"
,
"version"
:
"3.
4
.2"
,
"additionalVersions"
:
"
2.5,3.0.4
"
"additionalVersions"
:
"
3.2,3.3.2
"
}
}
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment