Skip to content

Commit 703d1e7

Browse files
committed
Merge branch 'main' into add_bandai_dojo
2 parents 2e248d8 + 6a2fc41 commit 703d1e7

File tree

148 files changed

+1968
-1321
lines changed

Some content is hidden

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

148 files changed

+1968
-1321
lines changed

.devcontainer/devcontainer.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
// Config options: https://github.com/microsoft/vscode-dev-containers/tree/main/containers/ruby
44
{
55
"name": "coderdojo.jp",
6+
"dockerComposeFile": "../docker-compose.yml",
7+
"service": "rails",
8+
"workspaceFolder": "/app",
9+
"overrideCommand": true,
610

7-
// Universal is well-customized image for Codespaces:
8-
// https://hub.docker.com/_/microsoft-devcontainers-universal
9-
"image": "mcr.microsoft.com/devcontainers/universal:latest",
10-
11-
// Use Ruby image if you want to pin Ruby version like '3.2'
12-
// https://github.com/devcontainers/images/tree/main/src/ruby
13-
//"image": "mcr.microsoft.com/devcontainers/ruby:3.0",
11+
"containerEnv": {
12+
"DATABASE_USER": "postgres",
13+
"DATABASE_PASSWORD": "password",
14+
"DATABASE_HOST": "db",
15+
"DATABASE_PORT": "5432"
16+
},
1417

1518
// Enable learners to choose an affordable spec, starting at minimum one.
1619
//"hostRequirements": {
@@ -21,17 +24,15 @@
2124

2225
"waitFor": "onCreateCommand",
2326
"onCreateCommand": "gem install solargraph -N",
24-
//"onCreateCommand": "",
2527
//# => Solargraph gem not found. Run `gem install solargraph` or update your Gemfile.
2628
"updateContentCommand": "bundle install",
27-
"postCreateCommand": "",
2829
"postAttachCommand": {
29-
"server": "rails server"
30+
"server": "rm -f /app/tmp/pids/server.pid && rails server -b 0.0.0.0"
3031
},
3132
"customizations": {
3233
"codespaces": {
3334
"openFiles": [
34-
"app/views/home/show.html.haml"
35+
"app/views/home/show.html.erb"
3536
]
3637
},
3738
"vscode": {
@@ -47,7 +48,7 @@
4748
//"ruby.lint": { "rubocop": true },
4849
//"ruby.intellisense": "rubyLocate",
4950
"editor.tabSize": 2,
50-
"editor.renderWhitespace": false,
51+
"editor.renderWhitespace": "none",
5152
"files.associations": { "*.erb": "erb" },
5253
"emmet.includeLanguages": { "erb": "html" },
5354

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ public/assets/*
3636

3737
# rspec
3838
spec/examples.txt
39+
40+
# Credentials
41+
/config/master.key

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.6
1+
3.2.8

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.1.6
1+
FROM ruby:3.2.8
22

33
ENV LANG C.UTF-8
44

Gemfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
source 'https://rubygems.org'
2-
ruby '3.1.6'
2+
ruby '3.2.8'
33

44
gem 'bootsnap'
55
gem 'pg'
66
gem 'puma'
77
gem 'puma_worker_killer'
8-
gem 'rails', '~> 7.0'
8+
gem 'rails', '~> 7.1.5'
99

1010
gem 'coffee-rails'
1111
gem 'jbuilder'
1212
gem 'jquery-rails'
1313

1414
gem 'bootstrap-sass'
1515
gem 'font-awesome-rails'
16-
gem 'haml-rails'
17-
gem 'rails-html-sanitizer', '~> 1.4.4'
16+
gem 'rails-html-sanitizer'
1817
gem 'sass-rails', '>= 5'
1918
gem 'simple_grid_rails'
2019
gem 'uglifier'
2120

22-
# Specify to 1.3.4 to prevent error
23-
# TODO: This can be removed on Rails 7.1
24-
# https://github.com/rails/rails/issues/54260
25-
# https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror
26-
gem 'concurrent-ruby', '1.3.4'
21+
# Rails 7.1では不要になったため、バージョン制限を解除
22+
gem 'concurrent-ruby'
2723

2824
# For handling error
2925
# https://github.com/yuki24/rambulance
3026
# Using patch gem due to NameError: uninitialized constant ApplicationHelper
3127
# https://github.com/coderdojo-japan/coderdojo.jp/pull/1631#issuecomment-2424826474
3228
gem 'rambulance', git: 'https://github.com/yasslab/rambulance'
3329

30+
# Error Monitoring by Airbrake
31+
# https://github.com/airbrake/airbrake
32+
gem 'airbrake'
33+
3434
# For redirection
3535
gem 'rack-host-redirect'
3636

@@ -94,7 +94,7 @@ group :development, :test do
9494

9595
gem 'capybara'
9696
gem 'factory_bot_rails'
97-
gem 'rspec-rails', '~> 4.0'
97+
gem 'rspec-rails', '~> 6.1.1'
9898
gem 'selenium-webdriver'
9999

100100
gem 'dotenv-rails'

0 commit comments

Comments
 (0)