Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.5
image: mariadb:10.11.19
ports:
- "3306:3306"
env:
Expand All @@ -27,7 +27,7 @@ jobs:
MYSQL_TEST_DATABASE: rails_test
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.7.8
3.4.13
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ruby:2.7.8-alpine
FROM ruby:3.4.13-alpine
RUN apk --no-cache add build-base mysql-dev tzdata
RUN mkdir /anrop
WORKDIR /anrop
ADD Gemfile /anrop/Gemfile
ADD Gemfile.lock /anrop/Gemfile.lock
RUN bundle install -j4
RUN bundle install
ADD . /anrop
CMD rm -f tmp/pids/server.pid && rails server -b '0.0.0.0'
20 changes: 7 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source 'https://rubygems.org'
ruby '2.7.8'
ruby '3.4.13'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.2.8.1'
gem 'rails', '8.1.4.1'
# Use mysql2 as the database for Active Record
gem 'mysql2'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
Expand All @@ -27,18 +27,15 @@ group :development, :test do
gem 'byebug'

# rspec for testing
gem 'rspec-rails', '5.1.2'
gem 'rspec-rails', '8.1.0'

# factory bot for generating models during testing
gem 'factory_bot_rails', '6.4.3'
gem 'factory_bot_rails', '6.5.1'
end

group :development do
# The Listen gem listens to file modifications and notifies you about the changes. Used by Rails for auto reload in development.
gem 'listen'

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

group :production do
Expand All @@ -47,13 +44,10 @@ group :production do
end

# ActiveModel serialization
gem 'active_model_serializers', '0.10.9'
gem 'active_model_serializers', '0.10.16'

# CanCanCan for Authorization
gem 'cancancan', '2.3.0'
gem 'cancancan', '3.7.1'

# Clone ActiveModel objects with relations
gem 'deep_cloneable', '3.2.0'

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'deep_cloneable', '3.2.2'
Loading
Loading