Skip to content

Commit

Permalink
Drop support for older activerecord and ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Aug 10, 2024
1 parent da8bd12 commit a829388
Show file tree
Hide file tree
Showing 17 changed files with 146 additions and 158 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.0
ruby-version: 3.3
bundler-cache: true
- run: bundle exec rubocop

Expand All @@ -20,11 +20,9 @@ jobs:
strategy:
matrix:
include:
- ruby-version: 2.3.8
gemfile: gemfiles/rails_42.gemfile
- ruby-version: 3.1.0
gemfile: Gemfile
- ruby-version: 3.2.0
- ruby-version: 3.0
gemfile: gemfiles/rails_70.gemfile
- ruby-version: 3.3
gemfile: Gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
Expand Down
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ Style/NumericPredicate:
Style/Lambda:
EnforcedStyle: literal

# only for ruby 2.6+
Style/MapToHash:
Enabled: false

Style/FetchEnvVar:
Enabled: false

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## master (unreleased)

- Drop support for older activerecord and ruby versions

## 0.2.0 (2023-11-09)

- Add `ensure_equal` check method
Expand Down
17 changes: 8 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ source "https://rubygems.org"
# Specify your gem's dependencies in data_checks.gemspec
gemspec

rails_version = "~> 7.1.0"
gem "actionmailer", rails_version
gem "activerecord", rails_version
gem "railties", rails_version # to test generator
gem "actionmailer"
gem "activerecord"
gem "railties" # to test generator

gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "rubocop", "< 2"
gem "rubocop-minitest", "< 1"
gem "rake"
gem "minitest"
gem "rubocop"
gem "rubocop-minitest"
gem "sqlite3"
gem "webmock", "~> 3.18"
gem "webmock"
186 changes: 95 additions & 91 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,83 @@ PATH
remote: .
specs:
data_checks (0.2.0)
activerecord (>= 4.2)
activerecord (>= 7.0)

GEM
remote: https://rubygems.org/
specs:
actionmailer (7.1.1)
actionpack (= 7.1.1)
actionview (= 7.1.1)
activejob (= 7.1.1)
activesupport (= 7.1.1)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
actionmailer (7.2.0)
actionpack (= 7.2.0)
actionview (= 7.2.0)
activejob (= 7.2.0)
activesupport (= 7.2.0)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (7.1.1)
actionview (= 7.1.1)
activesupport (= 7.1.1)
actionpack (7.2.0)
actionview (= 7.2.0)
activesupport (= 7.2.0)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
racc
rack (>= 2.2.4, < 3.2)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.1)
activesupport (= 7.1.1)
useragent (~> 0.16)
actionview (7.2.0)
activesupport (= 7.2.0)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.1.1)
activesupport (= 7.1.1)
activejob (7.2.0)
activesupport (= 7.2.0)
globalid (>= 0.3.6)
activemodel (7.1.1)
activesupport (= 7.1.1)
activerecord (7.1.1)
activemodel (= 7.1.1)
activesupport (= 7.1.1)
activemodel (7.2.0)
activesupport (= 7.2.0)
activerecord (7.2.0)
activemodel (= 7.2.0)
activesupport (= 7.2.0)
timeout (>= 0.4.0)
activesupport (7.1.1)
activesupport (7.2.0)
base64
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)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.4)
builder (3.2.4)
concurrent-ruby (1.2.2)
bigdecimal (3.1.8)
builder (3.3.0)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
crack (0.4.5)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
date (3.3.4)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
drb (2.2.1)
erubi (1.13.0)
globalid (1.2.1)
activesupport (>= 6.1)
hashdiff (1.0.1)
i18n (1.14.1)
hashdiff (1.1.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.8.3)
rdoc
reline (>= 0.3.8)
json (2.6.3)
io-console (0.7.2)
irb (1.14.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
loofah (2.21.4)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
Expand All @@ -86,34 +87,33 @@ GEM
net-pop
net-smtp
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.20.0)
mutex_m (0.2.0)
net-imap (0.4.4)
mini_portile2 (2.8.7)
minitest (5.24.1)
net-imap (0.4.14)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.4.0)
net-smtp (0.5.0)
net-protocol
nokogiri (1.15.4)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-darwin)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
parallel (1.23.0)
parser (3.2.2.4)
parallel (1.26.1)
parser (3.3.4.2)
ast (~> 2.4.1)
racc
psych (5.1.1.1)
psych (5.1.2)
stringio
public_suffix (5.0.3)
racc (1.7.3)
rack (3.0.8)
public_suffix (6.0.1)
racc (1.8.1)
rack (3.1.7)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
Expand All @@ -128,72 +128,76 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.1)
actionpack (= 7.1.1)
activesupport (= 7.1.1)
irb
railties (7.2.0)
actionpack (= 7.2.0)
activesupport (= 7.2.0)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.1.0)
rdoc (6.6.0)
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.8.2)
reline (0.4.0)
regexp_parser (2.9.2)
reline (0.5.9)
io-console (~> 0.5)
rexml (3.2.6)
rubocop (1.57.2)
rexml (3.3.4)
strscan
rubocop (1.65.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.31.1, < 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-minitest (0.33.0)
rubocop (>= 1.39, < 2.0)
rubocop-ast (1.32.0)
parser (>= 3.3.1.0)
rubocop-minitest (0.35.1)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sqlite3 (1.6.8)
securerandom (0.3.1)
sqlite3 (2.0.3)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.8-x86_64-darwin)
sqlite3 (1.6.8-x86_64-linux)
stringio (3.0.9)
thor (1.3.0)
sqlite3 (2.0.3-x86_64-darwin)
sqlite3 (2.0.3-x86_64-linux-gnu)
stringio (3.1.1)
strscan (3.1.0)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webmock (3.19.1)
useragent (0.16.10)
webmock (3.23.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.8.1)
zeitwerk (2.6.12)
zeitwerk (2.6.17)

PLATFORMS
ruby
x86_64-darwin-20
x86_64-linux

DEPENDENCIES
actionmailer (~> 7.1.0)
activerecord (~> 7.1.0)
actionmailer
activerecord
data_checks!
minitest (~> 5.0)
railties (~> 7.1.0)
rake (~> 13.0)
rubocop (< 2)
rubocop-minitest (< 1)
minitest
railties
rake
rubocop
rubocop-minitest
sqlite3
webmock (~> 3.18)
webmock

BUNDLED WITH
2.4.21
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This gem provides a small DSL to check your data for inconsistencies and anomali

[![Build Status](https://github.com/fatkodima/data_checks/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/fatkodima/data_checks/actions/workflows/test.yml)

## Requirements

- ruby 3.0+
- activerecord 7.0+

## Installation

Add this line to your application's Gemfile:
Expand Down
4 changes: 2 additions & 2 deletions data_checks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
spec.summary = "Regression testing for data"
spec.homepage = "https://github.com/fatkodima/data_checks"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.3.0"
spec.required_ruby_version = ">= 3.0.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand All @@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
spec.files = Dir["*.{md,txt}", "{lib}/**/*"]
spec.require_paths = ["lib"]

spec.add_dependency "activerecord", ">= 4.2"
spec.add_dependency "activerecord", ">= 7.0"
end
Loading

0 comments on commit a829388

Please sign in to comment.