Skip to content

Commit

Permalink
Ruby 3.2.3を使用 (#1851)
Browse files Browse the repository at this point in the history
* use Ruby 3.2.3

* install libvips42

* fix CI

* fix CI
  • Loading branch information
nabeta authored Jan 28, 2024
1 parent 9f37347 commit 8a73b7a
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 190 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.4
3.2.3
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.1.4 as builder
FROM ruby:3.2.3 as builder
LABEL maintainer="nabeta@fastmail.fm"

ARG http_proxy
Expand All @@ -8,7 +8,7 @@ COPY Gemfile /
COPY Gemfile.lock /
RUN apt-get update -qq && apt-get install -y libpq-dev && bundle install

FROM ruby:3.1.4
FROM ruby:3.2.3
LABEL maintainer="nabeta@fastmail.fm"

ARG http_proxy
Expand Down
101 changes: 58 additions & 43 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,59 +1,75 @@
source 'https://rubygems.org'
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.1.4'
ruby "3.2.3"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.0.8"

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 7.0.4'
# Use postgresql as the database for Active Record
gem 'pg', '~> 1.4.6'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
# gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
gem "pg", "~> 1.1"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
# gem "importmap-rails"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
# gem "turbo-rails"

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
# gem "stimulus-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'
gem "redis", "~> 4.0"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Storage variant
gem 'image_processing', '~> 1.2'
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false
gem "bootsnap", require: false

# Use Sass to process CSS
gem "sassc-rails"

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
gem "image_processing", "~> 1.2"

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri mingw x64_mingw ]
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.0'
gem 'listen', '~> 3.3'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
# gem 'spring'
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"

# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"

# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end

group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 3.26'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
# gem 'webdrivers'
end
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"

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

gem 'devise'
gem 'pundit'
Expand All @@ -62,7 +78,7 @@ gem 'kt-paperclip'
gem 'acts_as_list'
gem 'kaminari'
gem 'strip_attributes'
gem 'statesman', '~> 10.2.2'
gem 'statesman', '~> 12.1'
gem 'friendly_id'
gem 'globalize'
gem 'globalize-accessors'
Expand All @@ -82,7 +98,6 @@ gem 'rails_autolink'
gem 'faraday_middleware'
gem 'kramdown'
gem 'resque', require: 'resque/server'
gem 'sassc', '~> 2.1.0'
gem 'acts-as-taggable-on'
gem 'resync' # , github: 'nabeta/resync', branch: 'add-datetime'
gem 'pretender'
Expand All @@ -95,16 +110,16 @@ gem 'rdf-turtle', require: 'rdf/turtle'
gem 'rdf-vocab', require: 'rdf/vocab'
gem 'oai'
gem 'active_storage_validations'
gem 'mail', '~> 2.8'
gem 'sprockets', '~> 3.7'
gem 'webpacker', '~> 5.0'

group :development, :test do
gem 'annotate'
gem 'database_consistency'
gem 'rspec-rails'
gem 'vcr'
gem 'webmock'
gem 'factory_bot_rails', '~> 6.2.0'
gem 'factory_bot_rails', '~> 6.4.0'
gem 'rails-controller-testing'
gem 'simplecov'
gem 'parallel_tests'
Expand Down
Loading

0 comments on commit 8a73b7a

Please sign in to comment.