Skip to content

Commit

Permalink
Release v0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aglushkov committed Nov 18, 2024
1 parent 6c01660 commit 0226fe4
Show file tree
Hide file tree
Showing 21 changed files with 396 additions and 510 deletions.
48 changes: 22 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,29 @@ jobs:
matrix:
include:
# https://github.com/ruby/setup-ruby
- ruby: "head"
activerecord: "7.1"
# - ruby: "head" # cannot test on head as sqlite-ruby requires `ruby < '3.4.dev'`
# activerecord: "8.0"
- ruby: "3.3"
activerecord: "8.0"
- ruby: "3.3"
activerecord: "7.2"
- ruby: "3.3"
activerecord: "7.1"
- ruby: "3.2"
activerecord: "7.1"
- ruby: "3.1"
activerecord: "7.1"
- ruby: "3.0"
activerecord: "7.1"
- ruby: "2.7"
activerecord: "7.1"
- ruby: "2.7"
activerecord: "6.1"
- ruby: "2.7"
activerecord: "5.2"
- ruby: "2.6"
activerecord: "6.1"
- ruby: "2.6"
activerecord: "5.2"
- ruby: "jruby-9.4.5"
- ruby: "jruby-9.4.9"
activerecord: "6.1"
- ruby: "jruby-9.4.5"
activerecord: "7.0" # latest activerecord-jdbcsqlite3-adapter (70.1) does not support latest rails 7.1 yet
- ruby: "truffleruby-23.1.1"
activerecord: "7.1"
- ruby: "truffleruby-23.1.1"
- ruby: "jruby-9.4.9"
activerecord: "7.2"
- ruby: "truffleruby-24.1.1"
activerecord: "8.0"
- ruby: "truffleruby-24.1.1"
activerecord: "7.2"
- ruby: "truffleruby-24.1.1"
activerecord: "6.1"

env:
Expand All @@ -49,7 +45,7 @@ jobs:

steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# https://github.com/ruby/setup-ruby
- name: Set up Ruby ${{ matrix.ruby }} (AR ${{ matrix.activerecord }})
Expand All @@ -59,27 +55,27 @@ jobs:
bundler-cache: true

- name: Install codespell
if: startsWith(matrix.ruby, '3.2') && matrix.activerecord == '7.1'
if: startsWith(matrix.ruby, '3.3') && matrix.activerecord == '8.0'
run: |
python -m pip install --upgrade pip
pip install codespell==2.2.6
pip install codespell==2.3.0
- name: Check spelling with codespell
if: startsWith(matrix.ruby, '3.2') && matrix.activerecord == '7.1'
if: startsWith(matrix.ruby, '3.3') && matrix.activerecord == '8.0'
run: codespell --skip="./sig,./doc,./coverage,./vendor" || exit 1

# Check code standards only for latest MRI. It takes a lot of time for jruby or truffleruby
- name: Check Code Standards
if: startsWith(matrix.ruby, '3.2') && matrix.activerecord == '7.1'
if: startsWith(matrix.ruby, '3.3') && matrix.activerecord == '8.0'
run: bundle exec rubocop

- name: Run Tests
run: bundle exec rspec

- name: Markdown linter
if: startsWith(matrix.ruby, '3.2') && matrix.activerecord == '7.1'
if: startsWith(matrix.ruby, '3.3') && matrix.activerecord == '8.0'
run: bundle exec mdl README.md CHANGELOG.md RELEASE.md

# https://github.com/paambaati/codeclimate-action
- name: Publish code coverage to code-climate
uses: paambaati/codeclimate-action@v3.2
if: (github.event_name == 'push') && startsWith(matrix.ruby, '3.2')
uses: paambaati/codeclimate-action@v9.0.0
if: (github.event_name == 'push') && startsWith(matrix.ruby, '3.3')
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ Style/FrozenStringLiteralComment:
RSpec/ExampleLength:
Enabled: false

RSpec/FilePath:
Enabled: false

RSpec/IndexedLet:
Enabled: false

Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# CHANGELOG

## [Unreleased]
## [0.21.0] - 2024-11-19

- Allow to provide modifiers and serialization options as strings. Only symbols
were allowed previously.

- Test compatibility with ActiveRecord 8.0.

## [0.20.1] - 2024-02-25

- Fix issue with :if plugin used together with :batch plugin.
We kept `key => nil` attribute when key should have been skipped
because of :if_value or :unelss_value option
because of :if_value or :unless_value option

## [0.20.0] - 2023-12-29

Expand Down
20 changes: 4 additions & 16 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ gemspec

gem "rake", "~> 13.0"
gem "rspec", "~> 3.0", require: false
gem "standard", "~> 1.3", require: false
gem "standard", "~> 1.42", require: false
gem "simplecov", "~> 0.21", require: false
gem "rubocop-rake", "~> 0.6.0", require: false
gem "rubocop-rspec", "~> 2.11", ">= 2.11.1", require: false
gem "rubocop-performance", "~> 1.20", require: false
gem "rubocop-rspec", "~> 3.2.0", require: false
gem "rubocop-performance", "~> 1.22", require: false
gem "redcarpet", "~> 3.5", require: false
gem "rspec-sqlimit", "~> 0.0.5", require: false
# Can be used in test like:
# require 'allocation_stats'
#
Expand All @@ -33,17 +32,6 @@ else
gem "pry-byebug", "~> 3.9"
end

# ORM plugins
ruby_version = Gem::Version.new(RUBY_VERSION)
ar_version =
if ruby_version >= Gem::Version.new("3.0")
"~> 7.1"
elsif ruby_version >= Gem::Version.new("2.5")
"~> 6.1"
else
"~> 5.2"
end

gem "activerecord", ar_version
gem "activerecord", "~> 8.0"
gem "sqlite3", platforms: [:ruby]
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
Loading

0 comments on commit 0226fe4

Please sign in to comment.