Skip to content

Commit 73b93e4

Browse files
committed
chore: update Gemfile, .gitignore, and environment examples
- Update Gemfile with dependencies - Update .gitignore patterns - Update .env.example with required variables - Update .github workflows - Update README.md with latest instructions
1 parent 7ed3013 commit 73b93e4

6 files changed

Lines changed: 1164 additions & 762 deletions

File tree

.env.example

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
# Database
2-
DB_HOST=localhost
3-
DB_PORT=5432
4-
DB_USERNAME=postgres
5-
DB_PASSWORD=
6-
7-
# Rails
8-
RAILS_ENV=development
9-
SECRET_KEY_BASE=your_secret_key_here
10-
11-
# JWT
12-
JWT_SECRET_KEY=your_jwt_secret_key_here
13-
JWT_EXPIRATION_HOURS=24
14-
15-
# Riot API
16-
RIOT_API_KEY=your_riot_api_key_here
17-
18-
# Redis (for Sidekiq and caching)
19-
REDIS_URL=redis://localhost:6379/0
20-
21-
# CORS
22-
CORS_ORIGINS=http://localhost:5173,http://localhost:8080
23-
24-
# Email (for password reset)
25-
SMTP_ADDRESS=smtp.gmail.com
26-
SMTP_PORT=587
27-
SMTP_USERNAME=your_email@gmail.com
28-
SMTP_PASSWORD=your_password
29-
SMTP_DOMAIN=gmail.com
30-
31-
# Frontend URL (for email links)
32-
FRONTEND_URL=http://localhost:5173
33-
34-
# Rate Limiting
35-
RACK_ATTACK_LIMIT=300
1+
# Database
2+
DB_HOST=localhost
3+
DB_PORT=5432
4+
DB_USERNAME=postgres
5+
DB_PASSWORD=
6+
7+
# Rails
8+
RAILS_ENV=development
9+
SECRET_KEY_BASE=your_secret_key_here
10+
11+
# JWT
12+
JWT_SECRET_KEY=your_jwt_secret_key_here
13+
JWT_EXPIRATION_HOURS=24
14+
15+
# Riot API
16+
RIOT_API_KEY=your_riot_api_key_here
17+
18+
# Redis (for Sidekiq and caching)
19+
REDIS_URL=redis://localhost:6379/0
20+
21+
# CORS
22+
CORS_ORIGINS=http://localhost:5173,http://localhost:8080
23+
24+
# Email (for password reset)
25+
SMTP_ADDRESS=smtp.gmail.com
26+
SMTP_PORT=587
27+
SMTP_USERNAME=your_email@gmail.com
28+
SMTP_PASSWORD=your_password
29+
SMTP_DOMAIN=gmail.com
30+
31+
# Frontend URL (for email links)
32+
FRONTEND_URL=http://localhost:5173
33+
34+
# Rate Limiting
35+
RACK_ATTACK_LIMIT=300
3636
RACK_ATTACK_PERIOD=300
Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
name: Update Architecture Diagram
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
- main
8-
paths:
9-
- 'app/modules/**'
10-
- 'app/models/**'
11-
- 'app/controllers/**'
12-
- 'config/routes.rb'
13-
- 'Gemfile'
14-
pull_request:
15-
branches:
16-
- master
17-
- main
18-
paths:
19-
- 'app/modules/**'
20-
- 'app/models/**'
21-
- 'app/controllers/**'
22-
- 'config/routes.rb'
23-
- 'Gemfile'
24-
workflow_dispatch:
25-
26-
jobs:
27-
update-diagram:
28-
runs-on: ubuntu-latest
29-
permissions:
30-
contents: write
31-
32-
steps:
33-
- name: Checkout code
34-
uses: actions/checkout@v4
35-
with:
36-
token: ${{ secrets.GITHUB_TOKEN }}
37-
fetch-depth: 0
38-
39-
- name: Set up Ruby
40-
uses: ruby/setup-ruby@v1
41-
with:
42-
ruby-version: '3.1.7'
43-
bundler-cache: false
44-
45-
- name: Update architecture diagram
46-
run: |
47-
ruby scripts/update_architecture_diagram.rb
48-
49-
- name: Check for changes
50-
id: verify_diff
51-
run: |
52-
if git diff --quiet README.md; then
53-
echo "changed=false" >> $GITHUB_OUTPUT
54-
else
55-
echo "changed=true" >> $GITHUB_OUTPUT
56-
fi
57-
58-
- name: Commit and push if changed
59-
if: steps.verify_diff.outputs.changed == 'true'
60-
run: |
61-
git config user.name "github-actions[bot]"
62-
git config user.email "github-actions[bot]@users.noreply.github.com"
63-
git add README.md
64-
git commit -m "docs: auto-update architecture diagram [skip ci]"
65-
git push
1+
name: Update Architecture Diagram
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
paths:
9+
- 'app/modules/**'
10+
- 'app/models/**'
11+
- 'app/controllers/**'
12+
- 'config/routes.rb'
13+
- 'Gemfile'
14+
pull_request:
15+
branches:
16+
- master
17+
- main
18+
paths:
19+
- 'app/modules/**'
20+
- 'app/models/**'
21+
- 'app/controllers/**'
22+
- 'config/routes.rb'
23+
- 'Gemfile'
24+
workflow_dispatch:
25+
26+
jobs:
27+
update-diagram:
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
31+
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
with:
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
fetch-depth: 0
38+
39+
- name: Set up Ruby
40+
uses: ruby/setup-ruby@v1
41+
with:
42+
ruby-version: '3.1.7'
43+
bundler-cache: false
44+
45+
- name: Update architecture diagram
46+
run: |
47+
ruby scripts/update_architecture_diagram.rb
48+
49+
- name: Check for changes
50+
id: verify_diff
51+
run: |
52+
if git diff --quiet README.md; then
53+
echo "changed=false" >> $GITHUB_OUTPUT
54+
else
55+
echo "changed=true" >> $GITHUB_OUTPUT
56+
fi
57+
58+
- name: Commit and push if changed
59+
if: steps.verify_diff.outputs.changed == 'true'
60+
run: |
61+
git config user.name "github-actions[bot]"
62+
git config user.email "github-actions[bot]@users.noreply.github.com"
63+
git add README.md
64+
git commit -m "docs: auto-update architecture diagram [skip ci]"
65+
git push

0 commit comments

Comments
 (0)