Skip to content

Commit

Permalink
Fix: Fix tests breaking in latest Ruby, update devcontainer to 3.3 (#143
Browse files Browse the repository at this point in the history
)

* Fix: Update to Ruby 3.3/3.4 and fix broken tests due to bad import
* Chore: Update devcontainer to ruby 3.3
  • Loading branch information
mdp authored Jan 6, 2025
1 parent 1fbd30d commit 642deba
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 52 deletions.
19 changes: 0 additions & 19 deletions .devcontainer/Dockerfile

This file was deleted.

41 changes: 11 additions & 30 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/ruby
// 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",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update 'VARIANT' to pick a Ruby version: 3, 3.1, 3.0, 2, 2.7
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3-bullseye",
// Options
"NODE_VERSION": "16"
}
},
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bullseye"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"rebornix.Ruby"
]
}
},

// 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": "ruby --version",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers-contrib/features/act:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
}
// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
5 changes: 2 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
pull_request:
types: [opened, reopened, synchronize]
branches: [ main ]

jobs:
test:
Expand All @@ -13,8 +13,7 @@ jobs:

strategy:
matrix:
ruby-version: ['3.2', '3.0', '2.7', '2.3', truffleruby-head]

ruby-version: ['3.4', '3.3', '3.2', '3.0', '2.7', '2.3', truffleruby-head]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
Expand Down
1 change: 1 addition & 0 deletions spec/lib/rotp/hotp_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'spec_helper'
require 'uri'

RSpec.describe ROTP::HOTP do
let(:counter) { 1234 }
Expand Down

0 comments on commit 642deba

Please sign in to comment.