Skip to content

Commit 7268aed

Browse files
committed
Preprint
0 parents  commit 7268aed

File tree

186 files changed

+8050
-0
lines changed

Some content is hidden

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

186 files changed

+8050
-0
lines changed

.erb_lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
glob: "**/*.{html,text,js}{+*,}.erb"
2+
exclude:
3+
- '**/vendor/**/*'
4+
- '**/node_modules/**/*'
5+
linters:
6+
Rubocop:
7+
enabled: true
8+
rubocop_config:
9+
inherit_from:
10+
- .rubocop.yml
11+
Layout/InitialIndentation:
12+
Enabled: false
13+
Layout/TrailingEmptyLines:
14+
Enabled: false
15+
Style/FrozenStringLiteralComment:
16+
Enabled: false

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# Temporary files generated by your text editor or operating system
4+
# belong in git's global ignore instead:
5+
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all environment files.
11+
/.env*
12+
13+
# Ignore all logfiles and tempfiles.
14+
/log/*
15+
/tmp/*
16+
!/log/.keep
17+
!/tmp/.keep
18+
19+
# Ignore pidfiles, but keep the directory.
20+
/tmp/pids/*
21+
!/tmp/pids/
22+
!/tmp/pids/.keep
23+
24+
# Ignore storage (uploaded files in development and any SQLite databases).
25+
/storage/*
26+
!/storage/.keep
27+
/tmp/storage/*
28+
!/tmp/storage/
29+
!/tmp/storage/.keep
30+
31+
/public/assets
32+
/app/assets/builds
33+
34+
# Ignore master key for decrypting credentials and more.
35+
/config/master.key
36+
37+
# Ignore environment-variable-override files.
38+
.env.*
39+
40+
# Ignore SimpleCov-generated files.
41+
/coverage/*

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

.rubocop.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# We want Exclude directives from different
2+
# config files to get merged, not overwritten
3+
inherit_mode:
4+
merge:
5+
- Exclude
6+
7+
inherit_gem:
8+
rubocop-rails_config:
9+
- config/rails.yml
10+
standard:
11+
- config/base.yml
12+
13+
require:
14+
# Base
15+
- rubocop-rspec
16+
# Performance cops are bundled with Standard
17+
- rubocop-performance
18+
# Standard's config uses this custom cop, so it must be loaded
19+
- standard/cop/block_single_line_braces
20+
21+
AllCops:
22+
NewCops: enable
23+
TargetRubyVersion: 3.4.2
24+
DisabledByDefault: false
25+
Exclude:
26+
- "app/vendor/**/*"
27+
- "db/schema.rb"
28+
- "node_modules/**/*"
29+
- "bin/**/*"
30+
- "vendor/**/*"
31+
- "tmp/**/*"
32+
33+
# Rails
34+
35+
# StrongMigrations recommends against `change_table`
36+
Rails/BulkChangeTable:
37+
Enabled: false
38+
39+
# RSpec
40+
41+
RSpec/ExampleLength:
42+
Max: 10
43+
44+
RSpec/MultipleExpectations:
45+
Enabled: false
46+
47+
RSpec/MultipleMemoizedHelpers:
48+
Max: 15
49+
50+
RSpec/NestedGroups:
51+
Max: 5

Gemfile

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
ruby "3.4.2"
6+
7+
gem "rails", "~> 8.0.2"
8+
9+
# DB
10+
gem "pg"
11+
gem "strong_migrations"
12+
13+
# State machine
14+
gem "aasm"
15+
16+
# Authentication
17+
gem "devise"
18+
gem "devise-i18n"
19+
20+
# Authorization
21+
gem "pundit"
22+
23+
# Server
24+
gem "puma"
25+
gem "thruster", require: false
26+
27+
# Solid Cache/Cable
28+
gem "solid_cache"
29+
gem "solid_cable"
30+
31+
# Frontend
32+
gem "importmap-rails"
33+
gem "propshaft"
34+
gem "stimulus-rails"
35+
gem "turbo-rails"
36+
37+
# Background jobs
38+
gem "solid_queue"
39+
gem "mission_control-jobs"
40+
41+
# Error reporting
42+
gem "sentry-rails"
43+
gem "sentry-ruby"
44+
45+
# Misc
46+
gem "aws-sdk-s3"
47+
gem "bootsnap", require: false
48+
gem "httparty"
49+
gem "rubyzip"
50+
51+
group :development, :test do
52+
gem "better_html"
53+
gem "debug", platforms: %i[mri windows], require: "debug/prelude"
54+
gem "erb_lint", require: false
55+
gem "factory_bot_rails"
56+
gem "faker"
57+
gem "i18n-tasks"
58+
gem "parallel_tests"
59+
gem "rspec-rails"
60+
gem "rubocop-rails_config", require: false
61+
gem "rubocop-rspec", require: false
62+
gem "standard"
63+
end
64+
65+
group :development do
66+
gem "brakeman"
67+
gem "web-console"
68+
gem "letter_opener_web"
69+
end
70+
71+
group :test do
72+
gem "capybara"
73+
gem "simplecov", require: false
74+
gem "selenium-webdriver"
75+
gem "shoulda-matchers"
76+
gem "webmock"
77+
end

0 commit comments

Comments
 (0)