Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
30692d0
Version bump Ruby, Rails, all gems to latest (2025-08-08)
veganstraightedge Aug 9, 2025
c4ee0f9
Add .ruby-version file
veganstraightedge Aug 9, 2025
7514976
Create Rubocop TODO
veganstraightedge Aug 9, 2025
e727888
Rubocop some things
veganstraightedge Aug 9, 2025
7f413e2
Rubocop some things
veganstraightedge Aug 9, 2025
088ac0b
Rubocop: Rails/FilePath
veganstraightedge Aug 9, 2025
364381a
Rubocop: Rails/StrongParametersExpect
veganstraightedge Aug 9, 2025
63a0d39
Rubocop: Style/StringLiterals
veganstraightedge Aug 9, 2025
e58e8e9
Rubocop: Style/StringLiteralsInInterpolation
veganstraightedge Aug 9, 2025
6aa4038
RSpecRails/InferredSpecType
veganstraightedge Aug 9, 2025
642f6c2
Style/RedundantInterpolation
veganstraightedge Aug 9, 2025
96e29ff
Remove Spring
veganstraightedge Aug 9, 2025
96d329b
HTTPS links in footer
veganstraightedge Aug 9, 2025
9150d1f
Update Bootstrap-isms and views
veganstraightedge Aug 9, 2025
9d71124
Remove a bunch of obviated gems
veganstraightedge Aug 9, 2025
9f78c64
Update code of conduct to latest code covenant
veganstraightedge Aug 9, 2025
c334f9b
Rubocop: Style/GlobalStdStream
veganstraightedge Aug 9, 2025
ef2632f
Style/RedundantConstantBase
veganstraightedge Aug 9, 2025
89c2ead
Style/RedundantFetchBlock
veganstraightedge Aug 9, 2025
179d93f
Layout/HashAlignment
veganstraightedge Aug 9, 2025
3505765
Style/SymbolArray
veganstraightedge Aug 9, 2025
1720015
Style/Documentation
veganstraightedge Aug 9, 2025
4990ad5
Rails/I18nLocaleTexts
veganstraightedge Aug 9, 2025
1282d9f
Fix tests
veganstraightedge Aug 9, 2025
476c041
Rubocop tests
veganstraightedge Aug 9, 2025
2084378
TODO
veganstraightedge Aug 9, 2025
a36ad4b
Fix tests
veganstraightedge Aug 9, 2025
95c6833
More Seattle.rb style
veganstraightedge Aug 9, 2025
f2cd33f
Symbol routes
veganstraightedge Aug 9, 2025
de1587d
RSpec/InstanceVariable
veganstraightedge Aug 9, 2025
962498b
Parens
veganstraightedge Aug 9, 2025
1eb4fde
Parens
veganstraightedge Aug 9, 2025
796bf39
Delete empty test
veganstraightedge Aug 9, 2025
a2d3adb
Remove factorybot
veganstraightedge Aug 9, 2025
a716deb
RSpec style
veganstraightedge Aug 9, 2025
1b2c8c0
RSpec/RepeatedExample
veganstraightedge Aug 9, 2025
9baa901
Add rubocop capybara
veganstraightedge Aug 9, 2025
452a2b5
Rename test
veganstraightedge Aug 9, 2025
9cdb593
Update app to Rails 8
veganstraightedge Aug 9, 2025
24b3452
Apply new defaults
veganstraightedge Aug 9, 2025
eb80444
HTML linter fixes
veganstraightedge Aug 9, 2025
5e56fc3
Add GitHub Actions CI workflows
veganstraightedge Aug 12, 2025
c5ae359
Add Bootstrap CDN comment
veganstraightedge Aug 12, 2025
37f4f62
Rails 8 defaults
veganstraightedge Aug 12, 2025
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
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
19 changes: 19 additions & 0 deletions .github/workflows/linter_erb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push]

name: Linter, ERB

jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@main

- name: Set up Ruby
uses: ruby/setup-ruby@master
with:
bundler-cache: true

- name: Run ERB linter
run: bundle exec erb_lint app
19 changes: 19 additions & 0 deletions .github/workflows/linter_rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push]

name: Linter, Rubocop

jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@main

- name: Set up Ruby
uses: ruby/setup-ruby@master
with:
bundler-cache: true

- name: Run Rubocop linter
run: bundle exec rubocop
19 changes: 19 additions & 0 deletions .github/workflows/scan_ruby_brakeman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push]

name: Scan Ruby, Brakeman

jobs:
scan_ruby:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@main

- name: Set up Ruby
uses: ruby/setup-ruby@master
with:
bundler-cache: true

- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager
111 changes: 22 additions & 89 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,100 +1,33 @@
require: rubocop-rspec
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.5

Exclude:
- 'db/**/*'
- 'script/*'
- 'bin/*'
- 'log/**/*'
- 'node_modules/**/*'
- 'public/**/*'
- 'vendor/**/*'
- 'tmp/**/*'
- '.git/**/*'

IndentationConsistency:
EnforcedStyle: 'rails'

Naming/FileName:
Exclude:
- 'Gemfile'
- 'Guardfile'
- 'Rakefile'

Rails:
Enabled: true

Metrics/CyclomaticComplexity:
Max: 15

Metrics/PerceivedComplexity:
Max: 15

Metrics/ClassLength:
Max: 210

Metrics/ParameterLists:
Max: 6

Metrics/LineLength:
Max: 200

Metrics/MethodLength:
Max: 40

Metrics/BlockLength:
Max: 140
plugins:
- rubocop-capybara
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails

AllCops:
NewCops: enable
Exclude:
- 'spec/**/*'

Metrics/AbcSize:
Max: 65

Style/Documentation:
Enabled: false
- "db/schema.rb"
- "script/*"
- "bin/*"
- "log/**/*"
- "node_modules/**/*"
- "public/**/*"
- "vendor/**/*"
- "tmp/**/*"
- ".git/**/*"

Style/SymbolArray:
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table

Style/MethodDefParentheses:
Rails/I18nLocaleTexts:
Enabled: false

Style/AsciiComments:
Enabled: false

Style/NestedParenthesizedCalls:
Enabled: false

# TEMP: private and def foo() are at the same indentation level
# This should NOT cause an offense but it does. ¯\_(ツ)_/¯
# https://rubocop.readthedocs.io/en/latest/cops_layout/
Layout/IndentationWidth:
Style/Documentation:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Rails/OutputSafety:
Enabled: false

RSpec/NestedGroups:
Max: 4

RSpec/ExampleLength:
Max: 20

RSpec/MultipleExpectations:
Max: 10

RSpec/VerifiedDoubles:
Enabled: false

RSpec/MessageSpies:
Enabled: false

RSpec/DescribeClass:
Exclude:
- 'spec/system/*'
28 changes: 28 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2025-08-09 04:53:37 UTC using RuboCop version 1.79.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 2
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 15

# Offense count: 5
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 9

# Offense count: 3
RSpec/MultipleExpectations:
Max: 3

# Offense count: 2
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ThreeStateBooleanColumn:
Exclude:
- 'db/migrate/20170516194159_create_submissions.rb'
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.4.5
119 changes: 65 additions & 54 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,85 @@
# Contributor Covenant Code of Conduct
# Contributor Covenant 3.0 Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
We pledge to make our community welcoming, safe, and equitable for all.

## Our Standards
We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.

Examples of behavior that contributes to creating a positive environment
include:
## Encouraged Behaviors

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.

Examples of unacceptable behavior by participants include:
With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
2. Engaging **kindly and honestly** with others.
3. Respecting **different viewpoints** and experiences.
4. **Taking responsibility** for our actions and contributions.
5. Gracefully giving and accepting **constructive feedback**.
6. Committing to **repairing harm** when it occurs.
7. Behaving in other ways that promote and sustain the **well-being of our community**.

## Our Responsibilities
## Restricted Behaviors

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
7. Behaving in other ways that **threaten the well-being** of our community.

## Scope
### Other Restrictions

1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.

## Reporting an Issue

Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.

When an incident does occur, it is important to report it promptly. To report a possible violation, **[NOTE: describe your means of reporting here.]**

Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Addressing and Repairing Harm

## Enforcement
**[NOTE: The remedies and repairs outlined below are suggestions based on best practices in code of conduct enforcement. If your community has its own established enforcement process, be sure to edit this section to describe your own policies.]**

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
1) Warning
1) Event: A violation involving a single incident or series of incidents.
2) Consequence: A private, written warning from the Community Moderators.
3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
2) Temporarily Limited Activities
1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
3) Temporary Suspension
1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
4) Permanent Ban
1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
3) Repair: There is no possible repair in cases of this severity.

This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.

## Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).

Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).
Loading