Skip to content

Commit cdb8ebd

Browse files
committed
Merge commit '9ffebee72cef44122700c90ae4931affd6aeec6f' into elasticsearch
2 parents d50a9b8 + 9ffebee commit cdb8ebd

File tree

81 files changed

+3477
-3265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3477
-3265
lines changed

.erb-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ linters:
2525
Enabled: false
2626
Rails/OutputSafety:
2727
Enabled: false
28+
# ERBではメソッドだけでなくマクロも括弧省略を許さない
29+
# renderやlink_toなどが当てはまる
30+
Style/MethodCallWithArgsParentheses:
31+
IgnoreMacros: false

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
run: yarn lint-style
3535

3636
# lint by rubocop
37-
- name: Set up Ruby 2.7
37+
- name: Set up Ruby 3
3838
uses: ruby/setup-ruby@v1
3939
with:
40-
ruby-version: 2.7
40+
ruby-version: 3.0
4141
- name: Cache gems
4242
uses: actions/cache@v2
4343
env:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-env }}-
3535
- name: Install Dependencies
3636
run: yarn install --production=true
37-
- name: Set up Ruby 2.7
37+
- name: Set up Ruby 3
3838
uses: ruby/setup-ruby@v1
3939
with:
40-
ruby-version: 2.7
40+
ruby-version: 3.0
4141
- name: Cache gems
4242
uses: actions/cache@v2
4343
env:

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ capybara-*.html
1010
*.orig
1111
rerun.txt
1212
pickle-email-*.html
13+
.rubocop-https---*
1314

1415
# Ignore all logfiles and tempfiles.
1516
/log/*
@@ -43,3 +44,10 @@ yarn-debug.log*
4344
# Ignore uploaded files in development
4445
/storage/*
4546
!/storage/.keep
47+
48+
# YARD files
49+
/.yardoc/
50+
/doc/
51+
52+
# Ignore uploaded images and files compiled by webpacker
53+
/public

.prettierrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = {
22
semi: false,
3-
singleQuote: true,
43
}

.rubocop.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
inherit_from:
2+
- https://raw.githubusercontent.com/cookpad/styleguide/5a2d036bd80c801678c76d133662d29d42247099/.rubocop.yml
3+
14
require:
25
- rubocop-rails
36
- rubocop-rspec
47

58
AllCops:
6-
TargetRubyVersion: 2.7.2
9+
TargetRubyVersion: 3.0.1
710
Exclude:
811
- "bin/*"
912
- "db/schema.rb"
@@ -31,15 +34,18 @@ Style/FrozenStringLiteralComment:
3134
Style/Documentation:
3235
Enabled: false
3336

34-
# Arg/Array/Hashの最後のカンマを許可
35-
Style/TrailingCommaInArguments:
36-
EnforcedStyleForMultiline: comma
37-
38-
Style/TrailingCommaInArrayLiteral:
39-
EnforcedStyleForMultiline: comma
37+
# メソッド呼び出しのカッコの省略を禁止
38+
# specとfactoryは英文っぽく書きたいので許可
39+
Style/MethodCallWithArgsParentheses:
40+
Enabled: true
41+
Exclude:
42+
- "spec/**/*_spec.rb"
43+
- "spec/factories/*.rb"
4044

41-
Style/TrailingCommaInHashLiteral:
42-
EnforcedStyleForMultiline: comma
45+
# メソッド名のエイリアスをつけるときは"alias"を使い、"alias_method"は使わない
46+
# aliasの方が自由度は低いが安全であるため
47+
Style/Alias:
48+
EnforcedStyle: prefer_alias
4349

4450
# テストファイルは長さ制限をなくす
4551
Metrics/ClassLength:

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.2
1+
3.0.1

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7.2-slim-buster
1+
FROM ruby:3.0.1-slim-buster
22

33
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
44

Gemfile

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

4-
ruby "2.7.2"
4+
ruby "3.0.1"
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
77
gem "rails", "~> 6.1.1"
88
# Use Puma as the app server
9-
gem "puma", "~> 5.2"
9+
gem "puma", "~> 5.3"
1010
# Use SCSS for stylesheets
11-
gem "sass-rails", ">= 6"
1211
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
13-
gem "webpacker", "~> 5.2.1"
12+
gem "webpacker", "~> 5.4"
1413
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
1514
gem "turbolinks", "~> 5"
1615
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
@@ -50,8 +49,8 @@ gem "ransack"
5049
# Pagination
5150
gem "kaminari"
5251

53-
# Bootstrap icons
54-
gem "bootstrap-icons-helper"
52+
# Japanese Era
53+
gem "era_ja"
5554

5655
# ElasticSearch
5756
gem "bonsai-elasticsearch-rails"
@@ -88,6 +87,7 @@ group :development do
8887
# background. Read more: https://github.com/rails/spring
8988
gem "spring"
9089
gem "spring-watcher-listen", "~> 2.0.0"
90+
gem "yard"
9191
end
9292

9393
group :test do

0 commit comments

Comments
 (0)