Skip to content

Commit 8a73b7a

Browse files
authored
Ruby 3.2.3を使用 (#1851)
* use Ruby 3.2.3 * install libvips42 * fix CI * fix CI
1 parent 9f37347 commit 8a73b7a

File tree

5 files changed

+195
-190
lines changed

5 files changed

+195
-190
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.4
1+
3.2.3

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.1.4 as builder
1+
FROM ruby:3.2.3 as builder
22
LABEL maintainer="[email protected]"
33

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

11-
FROM ruby:3.1.4
11+
FROM ruby:3.2.3
1212
LABEL maintainer="[email protected]"
1313

1414
ARG http_proxy

Gemfile

Lines changed: 58 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,75 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '3.1.4'
4+
ruby "3.2.3"
5+
6+
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
7+
gem "rails", "~> 7.0.8"
8+
9+
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
10+
gem "sprockets-rails"
511

6-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7-
gem 'rails', '~> 7.0.4'
812
# Use postgresql as the database for Active Record
9-
gem 'pg', '~> 1.4.6'
10-
# Use Puma as the app server
11-
gem 'puma', '~> 5.0'
12-
# Use SCSS for stylesheets
13-
gem 'sass-rails', '>= 6'
14-
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15-
gem 'webpacker', '~> 5.0'
16-
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
17-
# gem 'turbolinks', '~> 5'
18-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19-
gem 'jbuilder', '~> 2.7'
13+
gem "pg", "~> 1.1"
14+
15+
# Use the Puma web server [https://github.com/puma/puma]
16+
gem "puma", "~> 5.0"
17+
18+
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
19+
# gem "importmap-rails"
20+
21+
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
22+
# gem "turbo-rails"
23+
24+
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
25+
# gem "stimulus-rails"
26+
27+
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
28+
gem "jbuilder"
29+
2030
# Use Redis adapter to run Action Cable in production
21-
gem 'redis', '~> 4.0'
22-
# Use Active Model has_secure_password
23-
# gem 'bcrypt', '~> 3.1.7'
31+
gem "redis", "~> 4.0"
32+
33+
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
34+
# gem "kredis"
2435

25-
# Use Active Storage variant
26-
gem 'image_processing', '~> 1.2'
36+
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
37+
# gem "bcrypt", "~> 3.1.7"
38+
39+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
40+
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
2741

2842
# Reduces boot times through caching; required in config/boot.rb
29-
gem 'bootsnap', '>= 1.4.4', require: false
43+
gem "bootsnap", require: false
44+
45+
# Use Sass to process CSS
46+
gem "sassc-rails"
47+
48+
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
49+
gem "image_processing", "~> 1.2"
3050

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

3656
group :development do
37-
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
38-
gem 'web-console', '>= 4.1.0'
39-
# Display performance information such as SQL time and flame graphs for each request in your browser.
40-
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
41-
gem 'rack-mini-profiler', '~> 2.0'
42-
gem 'listen', '~> 3.3'
43-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
44-
# gem 'spring'
57+
# Use console on exceptions pages [https://github.com/rails/web-console]
58+
gem "web-console"
59+
60+
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
61+
# gem "rack-mini-profiler"
62+
63+
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
64+
# gem "spring"
4565
end
4666

4767
group :test do
48-
# Adds support for Capybara system testing and selenium driver
49-
gem 'capybara', '>= 3.26'
50-
gem 'selenium-webdriver'
51-
# Easy installation and use of web drivers to run system tests with browsers
52-
# gem 'webdrivers'
53-
end
68+
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
69+
gem "capybara"
70+
gem "selenium-webdriver"
5471

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

5874
gem 'devise'
5975
gem 'pundit'
@@ -62,7 +78,7 @@ gem 'kt-paperclip'
6278
gem 'acts_as_list'
6379
gem 'kaminari'
6480
gem 'strip_attributes'
65-
gem 'statesman', '~> 10.2.2'
81+
gem 'statesman', '~> 12.1'
6682
gem 'friendly_id'
6783
gem 'globalize'
6884
gem 'globalize-accessors'
@@ -82,7 +98,6 @@ gem 'rails_autolink'
8298
gem 'faraday_middleware'
8399
gem 'kramdown'
84100
gem 'resque', require: 'resque/server'
85-
gem 'sassc', '~> 2.1.0'
86101
gem 'acts-as-taggable-on'
87102
gem 'resync' # , github: 'nabeta/resync', branch: 'add-datetime'
88103
gem 'pretender'
@@ -95,16 +110,16 @@ gem 'rdf-turtle', require: 'rdf/turtle'
95110
gem 'rdf-vocab', require: 'rdf/vocab'
96111
gem 'oai'
97112
gem 'active_storage_validations'
98-
gem 'mail', '~> 2.8'
99113
gem 'sprockets', '~> 3.7'
114+
gem 'webpacker', '~> 5.0'
100115

101116
group :development, :test do
102117
gem 'annotate'
103118
gem 'database_consistency'
104119
gem 'rspec-rails'
105120
gem 'vcr'
106121
gem 'webmock'
107-
gem 'factory_bot_rails', '~> 6.2.0'
122+
gem 'factory_bot_rails', '~> 6.4.0'
108123
gem 'rails-controller-testing'
109124
gem 'simplecov'
110125
gem 'parallel_tests'

0 commit comments

Comments
 (0)