Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Rails7.0 への更新" #348

Merged
merged 19 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
878d789
chromedriver をシステムにインストールしなくてもテストを実行できるようにする
koi-chan Jan 11, 2024
b6c4434
selenium-webdriver が chrome だとエラーが出るため、firefox に変えてみた
koi-chan Jan 14, 2024
fb70014
webpacker を削除し、webpack を導入する
koi-chan Jan 16, 2024
25a0b72
webpack-dev-server を使用可能にする
koi-chan Jan 16, 2024
2d0f21a
GitHub Actions でのテストに対応する
koi-chan Jan 16, 2024
378b0b7
webpack でコンパイルしたファイルが読み込めていなかったのを修正
koi-chan Jan 16, 2024
36ba0ed
ドキュメントの修正 [skip CI]
koi-chan Jan 16, 2024
6deab1e
Revert "Rails7.0 への更新"
koi-chan Jan 16, 2024
393b4eb
library-verUP-202401: bundle update
koi-chan Jan 16, 2024
10d2c97
rails70: bundle update
koi-chan Jan 16, 2024
dfba811
rails70: LogArchiver::AppStatus を起動時の自動読み込み対象として設定する
koi-chan Jan 16, 2024
7a8c939
rails71: rails app:update
koi-chan Jan 16, 2024
7c83ac1
rails71: db/schema.rb を更新
koi-chan Jan 16, 2024
b28c854
rails71: config.load_defaults を 7.1 に設定した
koi-chan Jan 16, 2024
e6c3040
rails71: zeitwerk の自動読み込みチェックに失敗する
koi-chan Jan 16, 2024
3f4764b
rails71: uglifier を terser-ruby に置き換える
koi-chan Feb 2, 2024
e350202
テストする ruby 実行環境のバージョンを更新する
koi-chan Jan 16, 2024
a8ee2c3
library-verUP-202402: bundle update
koi-chan Feb 2, 2024
700b2da
Merge pull request #349 from cre-ne-jp/rails71-webpack
koi-chan Mar 5, 2024
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
1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
name: "Ruby 3.1: test and coverage measurement"
name: "Ruby 3.2: test and coverage measurement"
strategy:
fail-fast: false
runs-on: ubuntu-latest
Expand All @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
ruby-version: '3.2'

# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
Expand All @@ -44,6 +44,8 @@ jobs:
run: |
cp config/database.yml.github_actions config/database.yml
bin/rails db:setup
- name: Compile JavaScripts (webpack)
run: NODE_ENV=production bin/yarn webpack
- uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: 74e589ede57e23f089cbbd2eee75be23a93b5ace7b5cfce58213cd3f21447147
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
- '3.0'
- '3.1'
- '3.2'
- '3.3'
mroonga:
- latest
- mysql80-latest
Expand Down Expand Up @@ -53,5 +53,7 @@ jobs:
run: |
cp config/database.yml.github_actions config/database.yml
bin/rails db:setup
- name: Compile JavaScripts (webpack)
run: NODE_ENV=production bin/yarn webpack
- name: Run tests
run: bin/rails test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@
/yarn-error.log
yarn-debug.log*
.yarn-integrity
.yarn/
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
31 changes: 15 additions & 16 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ gem 'sysexits'
gem 'xmlrpc'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 7.0'
# rails 7.0 移行では sprockets が必須でなくなったため
gem 'sprockets-rails'
gem 'rails', '~> 7.1.0'

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

# Use mysql as the database for Active Record
gem 'mysql2', '~> 0.5'

Expand All @@ -24,13 +26,13 @@ gem 'activerecord-import'

# Use SCSS for stylesheets
gem 'sassc-rails', '>= 2.1'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3'
# Use Terser as compressor for JavaScript assets
gem 'terser'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use Webpack to manage app-like JavaScript modules in Rails
gem 'webpacker', '~> 5.x'
# webpack 用のヘルパーを提供する
gem 'simpacker'

# Use jquery as the JavaScript library
gem 'jquery-rails'
Expand All @@ -40,7 +42,7 @@ gem 'jquery-ui-rails'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 1.0', group: :doc
gem 'sdoc', '~> 2.6', group: :doc

# デザイン
gem 'bootstrap-sass', '>= 3.4.1'
Expand All @@ -59,10 +61,10 @@ gem 'puma_worker_killer'
# gem 'capistrano-rails', group: :development

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', '< 1.10', require: false
gem 'bootsnap', '~> 1.18', require: false

# カレンダー
gem "simple_calendar", "~> 2.0"
gem "simple_calendar", "~> 3.0"

# Markdown パーサ
gem 'redcarpet'
Expand Down Expand Up @@ -96,7 +98,7 @@ gem 'pry-rails'
gem 'simple-navigation'

# ActiveJob バックエンド
gem 'sidekiq', '< 7'
gem 'sidekiq', '~> 6.5.12'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down Expand Up @@ -124,19 +126,16 @@ group :test do
# Workaround for cc-test-reporter with SimpleCov 0.18.
# Stop upgrading SimpleCov until the following issue will be resolved.
# https://github.com/codeclimate/test-reporter/issues/418
gem 'simplecov', '~> 0.10', '< 0.18'
gem 'simplecov', '~> 0.22'

# 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'
#gem 'webdrivers'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 4.0'

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