Skip to content

Commit

Permalink
Merge pull request #151 from pact-foundation/deps/ruby_3.3.5
Browse files Browse the repository at this point in the history
chore(deps): update to use Ruby 3.3.5
  • Loading branch information
YOU54F authored Sep 30, 2024
2 parents 68441bb + a8da9fe commit 890cc5e
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 47 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1.180.0
- uses: ruby/setup-ruby@v1.194.0
with:
ruby-version: 3.3.3
ruby-version: 3.3.5
- name: Set up environment
run: bundle install
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
with:
fetch-depth: 0

- uses: ruby/setup-ruby@v1.180.0
- uses: ruby/setup-ruby@v1.194.0
with:
ruby-version: 3.3.3
ruby-version: 3.3.5

- name: Set up environment
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
with:
fetch-depth: 0

- uses: ruby/setup-ruby@v1.180.0
- uses: ruby/setup-ruby@v1.194.0
with:
ruby-version: 3.3.3
ruby-version: 3.3.5

- name: Set up environment
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
with:
fetch-depth: 0

- uses: ruby/setup-ruby@v1.180.0
- uses: ruby/setup-ruby@v1.194.0
with:
ruby-version: 3.3.3
ruby-version: 3.3.5

- name: Set up environment
run: |
Expand Down
30 changes: 15 additions & 15 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ Script is designed to run on Linux, but can be run on macOS or windows.
For windows x86_64

cd windows
bash -c 'mkdir -p cache output/3.3.3'
bash -c './build-ruby -a x86 -r 3.3.3 cache output/3.3.3'
bash -c './package -r traveling-ruby-20230428-3.3.3-x86-windows.tar.gz output/3.3.3'
bash -c 'mkdir -p cache output/3.3.5'
bash -c './build-ruby -a x86 -r 3.3.5 cache output/3.3.5'
bash -c './package -r traveling-ruby-20230428-3.3.5-x86-windows.tar.gz output/3.3.5'

For windows x86

bash -c 'mkdir -p cache output/3.3.3'
bash -c './build-ruby -a x86_64 -r 3.3.3 cache output/3.3.3'
bash -c './package -r traveling-ruby-20230428-3.3.3-x86_64-windows.tar.gz output/3.3.3'
bash -c 'mkdir -p cache output/3.3.5'
bash -c './build-ruby -a x86_64 -r 3.3.5 cache output/3.3.5'
bash -c './package -r traveling-ruby-20230428-3.3.5-x86_64-windows.tar.gz output/3.3.5'

### Building the pact-ruby-standalone packages

Expand Down Expand Up @@ -118,10 +118,10 @@ Build only selected platforms
2. Copy your built `traveling-ruby` package into the `build` folder
3. Ensure the version number in `tasks/package.rake` matches your package name
1. eg
1. `traveling-ruby-20230508-3.3.3-linux-arm64.tar.gz`
1. `traveling-ruby-20230508-3.3.5-linux-arm64.tar.gz`

```ruby
TRAVELING_RUBY_VERSION = "20230508-3.3.3"
TRAVELING_RUBY_VERSION = "20230508-3.3.5"
```

4. Run `bundle exec rake package` as before
Expand All @@ -130,13 +130,13 @@ Build only selected platforms

| OS | Ruby | Architecture | Supported |
| -------| ------- | ------------ | --------- |
| OSX | 3.3.3 | x86_64 ||
| OSX | 3.3.3 | aarch64 (arm)||
| Linux | 3.3.3 | x86_64 ||
| Linux | 3.3.3 | aarch64 (arm)||
| Windows| 3.3.3 | x86_64 ||
| Windows| 3.3.3 | x86 ||
| Windows| 3.3.3 | aarch64 (via x86 emulation) ||
| OSX | 3.3.5 | x86_64 ||
| OSX | 3.3.5 | aarch64 (arm)||
| Linux | 3.3.5 | x86_64 ||
| Linux | 3.3.5 | aarch64 (arm)||
| Windows| 3.3.5 | x86_64 ||
| Windows| 3.3.5 | x86 ||
| Windows| 3.3.5 | aarch64 (via x86 emulation) ||

## Testing

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-package-base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 ruby:3.3.3-slim
FROM --platform=linux/amd64 ruby:3.3.5-slim

RUN apt-get update && apt-get install -y \
curl \
Expand All @@ -12,7 +12,7 @@ RUN useradd --create-home --home-dir $HOME user \
&& mkdir -p $HOME \
&& chown -R user:user $HOME

RUN gem install bundler:2.5.9
RUN gem install bundler:2.5.18
RUN bundle install
COPY Rakefile README.md Gemfile Gemfile.lock VERSION $HOME/
COPY tasks $HOME/tasks
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-release-base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 ruby:3.3.3-alpine
FROM --platform=linux/amd64 ruby:3.3.5-alpine

# Installation path
ENV HOME=/app
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ DEPENDENCIES
rake (~> 12.3)

BUNDLED WITH
2.5.9
2.5.18
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ See the [release page][releases].

## Supported Platforms

Ruby is not required on the host platform, Ruby 3.3.3 is provided in the distributable.
Ruby is not required on the host platform, Ruby 3.3.5 is provided in the distributable.

| OS | Ruby | Architecture | Supported |
| -------| ------- | ------------ | --------- |
| MacOS | 3.3.3 | x86_64 ||
| MacOS | 3.3.3 | aarch64 (arm64)||
| Linux | 3.3.3 | x86_64 ||
| Linux | 3.3.3 | aarch64 (arm64)||
| Windows| 3.3.3 | x86_64 ||
| Windows| 3.3.3 | x86 ||
| Windows| 3.3.3 | aarch64 (arm64)| 🚧 |
| MacOS | 3.3.5 | x86_64 ||
| MacOS | 3.3.5 | aarch64 (arm64)||
| Linux | 3.3.5 | x86_64 ||
| Linux | 3.3.5 | aarch64 (arm64)||
| Windows| 3.3.5 | x86_64 ||
| Windows| 3.3.5 | x86 ||
| Windows| 3.3.5 | aarch64 (arm64)| 🚧 |

🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM

Expand Down
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

Run:

chruby 3.3.3 #or whatever your version manager is
chruby 3.3.5 #or whatever your version manager is
script/release.sh [major|minor|patch] # default is minor
2 changes: 1 addition & 1 deletion packaging/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ DEPENDENCIES
webrick (= 1.8.2)

BUNDLED WITH
2.5.9
2.5.18
16 changes: 8 additions & 8 deletions packaging/README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ See the [release page][releases].

## Supported Platforms

Ruby is not required on the host platform, Ruby 3.3.3 is provided in the distributable.
Ruby is not required on the host platform, Ruby 3.3.5 is provided in the distributable.

| OS | Ruby | Architecture | Supported |
| -------| ------- | ------------ | --------- |
| MacOS | 3.3.3 | x86_64 | ✅ |
| MacOS | 3.3.3 | aarch64 (arm64)| ✅ |
| Linux | 3.3.3 | x86_64 | ✅ |
| Linux | 3.3.3 | aarch64 (arm64)| ✅ |
| Windows| 3.3.3 | x86_64 | ✅ |
| Windows| 3.3.3 | x86 | ✅ |
| Windows| 3.3.3 | aarch64 (arm64)| 🚧 |
| MacOS | 3.3.5 | x86_64 | ✅ |
| MacOS | 3.3.5 | aarch64 (arm64)| ✅ |
| Linux | 3.3.5 | x86_64 | ✅ |
| Linux | 3.3.5 | aarch64 (arm64)| ✅ |
| Windows| 3.3.5 | x86_64 | ✅ |
| Windows| 3.3.5 | x86 | ✅ |
| Windows| 3.3.5 | aarch64 (arm64)| 🚧 |

🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM

Expand Down
4 changes: 2 additions & 2 deletions tasks/package.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'bundler/setup'

PACKAGE_NAME = "pact"
VERSION = File.read('VERSION').strip
TRAVELING_RUBY_VERSION = "20240615-3.3.3"
TRAVELING_RUBY_VERSION = "20240904-3.3.5"
TRAVELING_RUBY_PKG_DATE = TRAVELING_RUBY_VERSION.split("-").first
PLUGIN_CLI_VERSION = "0.1.2"

Expand Down Expand Up @@ -47,7 +47,7 @@ namespace :package do
desc "Install gems to local directory"
task :bundle_install do
if RUBY_VERSION !~ /^3\.3\./
abort "You can only 'bundle install' using Ruby 3.3.3, because that's what Traveling Ruby uses."
abort "You can only 'bundle install' using Ruby 3.3.5, because that's what Traveling Ruby uses."
end
sh "rm -rf build/tmp"
sh "mkdir -p build/tmp"
Expand Down

0 comments on commit 890cc5e

Please sign in to comment.