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
15 changes: 4 additions & 11 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.4
- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-rubocop-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install
run: bundle install
- name: Install appraisal
run: bundle exec appraisal install
- name: Run RSpec
run: bundle exec rspec
run: bundle exec appraisal rspec
11 changes: 1 addition & 10 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.4
- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-rubocop-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install
run: bundle install
- name: Run RuboCop
run: bundle exec rubocop --parallel
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.gem
/.bundle/
/doc/
/gemfiles/
/log/*.log
/pkg/
/tmp/
Expand Down
14 changes: 12 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
require:
plugins:
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails

AllCops:
EnabledByDefault: true
Exclude:
- bin/**/*
- gemfiles/**/*
- spec/dummy/bin/**/*
- vendor/bundle/**/*
- Rakefile
TargetRubyVersion: 2.6
TargetRubyVersion: 2.7

Bundler/GemComment:
Enabled: false

Gemspec/DevelopmentDependencies:
Enabled: false

Layout/RedundantLineBreak:
Enabled: false

Expand Down Expand Up @@ -49,6 +54,8 @@ Style/DisableCopsWithinSourceCodeDirective:
- Metrics/BlockLength
- Metrics/ParameterLists
- Naming/AccessorMethodName
- RSpec/BeforeAfterAll
- RSpec/MultipleExpectations
- Style/SymbolProc

Style/Documentation:
Expand All @@ -72,6 +79,9 @@ Style/PercentLiteralDelimiters:
'%i': '()'
'%w': '()'

Style/RedundantConstantBase:
Enabled: false

Style/WordArray:
Enabled: true
EnforcedStyle: percent
15 changes: 15 additions & 0 deletions Appraisals
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appraise 'rails-7.0' do
gem 'rails', '~> 7.0.0'
end

appraise 'rails-7.1' do
gem 'rails', '~> 7.1.0'
end

appraise 'rails-7.2' do
gem 'rails', '~> 7.2.0'
end

appraise 'rails-8.0' do
gem 'rails', '~> 8.0.0'
end
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.6.0]
### Changes
- Support Rails 8.0.
- Refactor tests to better simulate behavior around deployment.

## [0.5.0]

### Changes
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Specify your gem's dependencies in view_component-fragment_caching.gemspec.
gemspec

gem 'concurrent-ruby', '1.3.4'
Loading