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 a4ceb6f
Show file tree
Hide file tree
Showing 23 changed files with 397 additions and 534 deletions.
44 changes: 15 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,28 @@ 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: "7.1"
- ruby: "3.2"
activerecord: "7.1"
activerecord: "8.0"
- ruby: "3.1"
activerecord: "7.1"
- ruby: "3.0"
activerecord: "7.1"
activerecord: "7.2"
- 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"
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: "6.1"
- ruby: "truffleruby-24.1.1"
activerecord: "8.0"

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.activerecord }}.gemfile
CC_TEST_REPORTER_ID: 2b0dd65d1c078b0d9f6edc768751ab9f210decdace1eae9651603a6bccff96ca

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 +45,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]
141 changes: 67 additions & 74 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,175 +1,168 @@
PATH
remote: .
specs:
serega (0.20.1)
serega (0.21.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (7.1.3.2)
activesupport (= 7.1.3.2)
activerecord (7.1.3.2)
activemodel (= 7.1.3.2)
activesupport (= 7.1.3.2)
activemodel (8.0.0)
activesupport (= 8.0.0)
activerecord (8.0.0)
activemodel (= 8.0.0)
activesupport (= 8.0.0)
timeout (>= 0.4.0)
activesupport (7.1.3.2)
activesupport (8.0.0)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
allocation_stats (0.1.5)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.6)
chef-utils (18.4.2)
benchmark (0.4.0)
bigdecimal (3.1.8)
chef-utils (18.5.0)
concurrent-ruby
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
debug (1.9.1)
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.5.1)
docile (1.4.0)
drb (2.2.0)
ruby2_keywords
i18n (1.14.1)
docile (1.4.1)
drb (2.2.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.11.2)
rdoc
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.1)
kramdown (2.4.0)
rexml
json (2.8.2)
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
logger (1.6.1)
mdl (0.13.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
mixlib-cli (~> 2.1, >= 2.1.1)
mixlib-config (>= 2.2.1, < 4)
mixlib-shellout
minitest (5.22.2)
minitest (5.25.1)
mixlib-cli (2.1.8)
mixlib-config (3.0.27)
tomlrb
mixlib-shellout (3.2.7)
mixlib-shellout (3.3.4)
chef-utils
mutex_m (0.2.0)
parallel (1.24.0)
parser (3.3.0.5)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
psych (5.1.2)
psych (5.2.0)
stringio
racc (1.7.3)
racc (1.8.1)
rainbow (3.1.1)
rake (13.1.0)
rdoc (6.6.2)
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
redcarpet (3.6.0)
regexp_parser (2.9.0)
reline (0.4.3)
regexp_parser (2.9.2)
reline (0.5.11)
io-console (~> 0.5)
rexml (3.2.6)
rexml (3.3.9)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-sqlimit (0.0.6)
activerecord (>= 4.2.0, < 8)
rspec (~> 3.0)
rspec-support (3.13.1)
rubocop (1.60.2)
rubocop (1.68.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-performance (1.20.2)
rubocop-ast (1.36.1)
parser (>= 3.3.1.0)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.26.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
rubocop-rspec (3.2.0)
rubocop (~> 1.61)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
securerandom (0.3.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sqlite3 (1.7.2-x86_64-linux)
standard (1.34.0)
sqlite3 (2.2.0-x86_64-linux-gnu)
standard (1.42.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.60)
rubocop (~> 1.68.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-performance (~> 1.5)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
standard-performance (1.5.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
stringio (3.1.0)
timeout (0.4.1)
rubocop-performance (~> 1.22.0)
stringio (3.1.2)
timeout (0.4.2)
tomlrb (2.0.3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
yard (0.9.34)
unicode-display_width (2.6.0)
uri (1.0.2)
yard (0.9.37)

PLATFORMS
x86_64-linux

DEPENDENCIES
activerecord (~> 7.1)
activerecord (~> 8.0)
activerecord-jdbcsqlite3-adapter
allocation_stats
debug (>= 1.0.0)
mdl (~> 0.13.0)
rake (~> 13.0)
redcarpet (~> 3.5)
rspec (~> 3.0)
rspec-sqlimit (~> 0.0.5)
rubocop-performance (~> 1.20)
rubocop-performance (~> 1.22)
rubocop-rake (~> 0.6.0)
rubocop-rspec (~> 2.11, >= 2.11.1)
rubocop-rspec (~> 3.2.0)
serega!
simplecov (~> 0.21)
sqlite3
standard (~> 1.3)
standard (~> 1.42)
yard

BUNDLED WITH
Expand Down
Loading

0 comments on commit a4ceb6f

Please sign in to comment.