Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
version: 2

updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: weekly
time: "02:00"
timezone: "Etc/UTC"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
time: "02:00"
timezone: "Etc/UTC"
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build
on:
pull_request:
push:
branches: [ main ]

jobs:
build:
name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
strategy:
fail-fast: false
matrix:
ruby:
- "3.4"
- "3.3"
- "3.2"
- "3.1"
- "3.0"
rails:
- "6.1"
- "7.0"
- "7.1"
- "7.2"
- "8.0"
- main
exclude:
# Ruby 3.0 is supported up to Rails 6.1
- ruby: "3.0"
rails: "7.2"
- ruby: "3.0"
rails: "8.0"
- ruby: "3.0"
rails: "main"
# Ruby 3.1 is supported up to Rails 7.2
- ruby: "3.1"
rails: "8.0"
- ruby: "3.1"
rails: "main"



runs-on: 'ubuntu-latest'

env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Setup project
run: bundle install
- name: Run test
run: bundle exec rake
19 changes: 19 additions & 0 deletions .github/workflows/dynamic-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: update-templates

on:
push:
branches:
- main
paths:
- README.md
workflow_dispatch:

jobs:
update-templates:
permissions:
contents: write
pull-requests: write
pages: write
uses: thoughtbot/templates/.github/workflows/dynamic-readme.yaml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/dynamic-security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: update-security

on:
push:
paths:
- SECURITY.md
branches:
- main
workflow_dispatch:

jobs:
update-security:
permissions:
contents: write
pull-requests: write
pages: write
uses: thoughtbot/templates/.github/workflows/dynamic-security.yaml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions .rubocop.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

28 changes: 24 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
rails_versions = %w(
5.0
5.1
5.2
6.0
6.1
7.0
7.1
7.2
8.0
)

rails_versions.each do |version|
appraise "rails_#{version}" do
gem "rails", "~> #{version}.0"

# Gem dependencies for older Rails versions
# Remove these when we drop support for Rails 6.1
if Gem::Version.new(version) <= Gem::Version.new('6.1')
gem "base64"
end


# Remove these when we drop support for Rails 7.0
if Gem::Version.new(version) <= Gem::Version.new('7.0')
gem "bigdecimal"
gem "mutex_m"
gem "drb"
gem 'concurrent-ruby', '1.3.4'
end
end
end

appraise "rails_main" do
gem "rails", github: "rails/rails", branch: "main"
end
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

We love pull requests. Here's a quick guide.

Fork the repo:
Fork the repo.

git clone git@github.com:thoughtbot/flutie.git
Clone your fork:

git clone git@github.com:your-username/flutie.git

Set up your machine:

Expand Down
159 changes: 105 additions & 54 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,108 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (6.0.3.3)
actionview (= 6.0.3.3)
activesupport (= 6.0.3.3)
rack (~> 2.0, >= 2.0.8)
actionpack (8.0.2)
actionview (= 8.0.2)
activesupport (= 8.0.2)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (6.0.3.3)
activesupport (= 6.0.3.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (8.0.2)
activesupport (= 8.0.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activesupport (6.0.3.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
appraisal (2.3.0)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (8.0.2)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
builder (3.2.4)
concurrent-ruby (1.1.7)
base64 (0.3.0)
benchmark (0.4.1)
bigdecimal (3.2.2)
builder (3.3.0)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
crass (1.0.6)
diff-lcs (1.4.4)
erubi (1.9.0)
i18n (1.8.5)
date (3.4.1)
diff-lcs (1.6.2)
drb (2.2.3)
erb (5.0.1)
erubi (1.13.1)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
loofah (2.7.0)
io-console (0.8.0)
irb (1.15.2)
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
logger (1.7.0)
loofah (2.24.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
method_source (1.0.0)
mini_portile2 (2.4.0)
minitest (5.14.2)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.12.0)
mini_portile2 (2.8.9)
minitest (5.25.5)
nokogiri (1.18.8)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.8-arm64-darwin)
racc (~> 1.4)
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
psych (5.2.6)
date
stringio
racc (1.8.1)
rack (3.1.16)
rack-session (2.1.1)
base64 (>= 0.1.0)
rack (>= 3.0.0)
rack-test (2.2.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails-dom-testing (2.3.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (6.0.3.3)
actionpack (= 6.0.3.3)
activesupport (= 6.0.3.3)
method_source
rake (>= 0.8.7)
thor (>= 0.20.3, < 2.0)
rake (13.0.1)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.0.2)
actionpack (= 8.0.2)
activesupport (= 8.0.2)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rake (13.3.0)
rdoc (6.14.0)
erb
psych (>= 4.0.0)
reline (0.6.1)
io-console (~> 0.5)
rspec-core (3.9.3)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.2)
rspec-expectations (3.9.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
Expand All @@ -75,22 +121,27 @@ GEM
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
sqlite3 (1.4.2)
thor (1.0.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
zeitwerk (2.4.0)
rspec-support (3.9.4)
securerandom (0.4.1)
sqlite3 (1.7.3)
mini_portile2 (~> 2.8.0)
stringio (3.1.7)
thor (1.3.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (1.0.3)
useragent (0.16.11)
zeitwerk (2.7.3)

PLATFORMS
arm64-darwin-24
ruby

DEPENDENCIES
appraisal (~> 2.2)
appraisal
flutie!
rspec-rails (~> 3.7)
sqlite3 (~> 1.3)

BUNDLED WITH
2.1.2
2.6.9
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2010-2013 thoughtbot, inc
Copyright (c) thoughtbot, inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading