Skip to content

Commit

Permalink
Support Ruby 3.2 and 3.3 (#31)
Browse files Browse the repository at this point in the history
* Support Ruby 3.2 and 3.3

* Update CHANGELOG
  • Loading branch information
christopher-b authored Apr 11, 2024
1 parent e845cb8 commit 2dc0b7a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.2.0 - [April 9, 2024](https://github.com/lando/ruby/releases/tag/v1.2.0)
* Added support for Ruby 3.2 and 3.3

## v1.1.0 - [March 8, 2024](https://github.com/lando/ruby/releases/tag/v1.1.0)
* Updated to latest database services.

Expand Down
2 changes: 1 addition & 1 deletion builders/ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
name: 'ruby',
config: {
version: '2.7',
supported: ['3.1', '3.0', '2.7', '2.6', '2.5', '2.4', '2.3', '1.9'],
supported: ['3.3', '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4', '2.3', '1.9'],
patchesSupported: true,
legacy: ['1.9', '2.5', '2.4', '2.3'],
command: 'tail -f /dev/null',
Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ You can easily add it to your Lando app by adding an entry to the [services](htt

## Supported versions

* [3.3](https://hub.docker.com/_/ruby)
* [3.2](https://hub.docker.com/_/ruby)
* [3.1](https://hub.docker.com/_/ruby)
* [3.0](https://hub.docker.com/_/ruby)
* **[2.7](https://hub.docker.com/_/ruby)** **(default)**
Expand Down
7 changes: 6 additions & 1 deletion examples/3.x/.lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ services:
type: ruby:3.1.2
cli:
type: ruby:3.1
v3_2:
type: ruby:3.2
v3_3:
type: ruby:3.3


# This is important because it lets lando know to test against the plugin in this repo
# DO NOT REMOVE THIS!
plugins:
"@lando/ruby": ./../../
"@lando/ruby": ./../../
6 changes: 6 additions & 0 deletions examples/3.x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ lando ssh -s defaults -c "curl http://localhost | grep TROUBLE"

# Should not serve port 80 for cli
lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1

# Should run Ruby v3.2
lando ssh -s v3_2 -c "ruby --version | grep 3.2."

# Should run Ruby 3.3
lando ssh -s v3_3 -c "ruby --version | grep 3.3."
```

Destroy tests
Expand Down

0 comments on commit 2dc0b7a

Please sign in to comment.