Skip to content

Commit 3bf6d9c

Browse files
authored
Merge pull request #659 from OpenC3/ruby32
Alpine 3.18.0 and test ruby 3.2
2 parents ad07167 + c15036e commit 3bf6d9c

30 files changed

+167
-148
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ OPENC3_SR_REDIS_PASSWORD=scriptrunnerpassword
3838
OPENC3_SR_BUCKET_USERNAME=scriptrunnerminio
3939
OPENC3_SR_BUCKET_PASSWORD=scriptrunnerminiopassword
4040
# Build and repository settings
41-
ALPINE_VERSION=3.17
42-
ALPINE_BUILD=3
41+
ALPINE_VERSION=3.18
42+
ALPINE_BUILD=0
4343
APK_URL=https://dl-cdn.alpinelinux.org
4444
RUBYGEMS_URL=https://rubygems.org
4545
NPM_URL=https://registry.npmjs.org

.github/workflows/api_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
matrix:
35-
ruby-version: ["3.0", "3.1"]
35+
ruby-version: ["3.1", "3.2"]
3636

3737
steps:
3838
- uses: actions/checkout@v3
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: ubuntu-latest
6565
strategy:
6666
matrix:
67-
ruby-version: ["3.0", "3.1"]
67+
ruby-version: ["3.1", "3.2"]
6868

6969
steps:
7070
- uses: actions/checkout@v3

.github/workflows/clamav.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Set up Ruby 3.1
21+
- name: Set up Ruby 3.2
2222
uses: ruby/setup-ruby@v1
2323
with:
24-
ruby-version: 3.1
24+
ruby-version: 3.2
2525
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
2626
working-directory: openc3
2727
- name: openc3.sh build

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
environment: Release
3030
steps:
3131
- uses: actions/checkout@v3
32-
- name: Set up Ruby 3.1
32+
- name: Set up Ruby 3.2
3333
uses: ruby/setup-ruby@v1
3434
with:
35-
ruby-version: 3.1
35+
ruby-version: 3.2
3636
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
3737
working-directory: openc3
3838
- uses: actions/setup-node@v3

.github/workflows/ruby_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
ruby-version: ["3.0", "3.1"]
27+
ruby-version: ["3.1", "3.2"]
2828

2929
steps:
3030
- uses: actions/checkout@v3

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ inherit_from:
33

44
AllCops:
55
NewCops: enable
6-
TargetRubyVersion: 3.1
6+
TargetRubyVersion: 3.2
77

88
# Layout
99
Layout/LineLength:

openc3-cosmos-cmd-tlm-api/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ gem 'prometheus-client', '~> 4.0'
2121
gem 'bootsnap', '>= 1.9.3', require: false
2222

2323
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
24-
gem 'rack-cors', '~> 1.1'
24+
gem 'rack-cors', '~> 2.0'
2525

2626
group :development do
2727
gem 'debase-ruby_core_source'

openc3-cosmos-cmd-tlm-api/app/controllers/internal_metrics_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# All changes Copyright 2022, OpenC3, Inc.
1818
# All Rights Reserved
1919
#
20-
# This file may also be used under the terms of a commercial license
20+
# This file may also be used under the terms of a commercial license
2121
# if purchased from OpenC3, Inc.
2222

2323
require 'openc3/models/scope_model'
@@ -35,7 +35,7 @@
3535
# foobar{code="200",method="get",path="/metrics"} 5.0
3636
# items = {"name|labels" => [value_array], ...}
3737
# items = {"http_server_requests_total|code=200,method=get,path=/metrics" => [1,2,3,4,5], ...}
38-
class InternalMetricsController < ActionController::Base
38+
class InternalMetricsController < ApplicationController
3939
def index
4040
OpenC3::Logger.debug("request for aggregator metrics")
4141
begin

openc3-cosmos-cmd-tlm-api/app/controllers/internal_status_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# All changes Copyright 2022, OpenC3, Inc.
1818
# All Rights Reserved
1919
#
20-
# This file may also be used under the terms of a commercial license
20+
# This file may also be used under the terms of a commercial license
2121
# if purchased from OpenC3, Inc.
2222

2323
require 'openc3/models/info_model'
@@ -26,7 +26,7 @@
2626
# InternalStatusController is designed to check the status of OpenC3. Status will
2727
# check that Redis is up but that does not equal that everything is
2828
# working just that OpenC3 can talk to Redis.
29-
class InternalStatusController < ActionController::Base
29+
class InternalStatusController < ApplicationController
3030
def status
3131
begin
3232
render :json => { :status => OpenC3::PingModel.get() }, :status => 200

openc3-cosmos-script-runner-api/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ gem 'prometheus-client', '~> 4.0'
2121
gem 'bootsnap', '>= 1.9.3', require: false
2222

2323
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
24-
gem 'rack-cors', '~> 1.1'
24+
gem 'rack-cors', '~> 2.0'
2525

2626
group :development, :test do
2727
# Call 'byebug' anywhere in the code to stop execution and get a debugger console

0 commit comments

Comments
 (0)