diff --git a/.rubocop.yml b/.rubocop.yml index 27921bb..9651cd0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -44,6 +44,9 @@ Style/MapToHash: Style/FetchEnvVar: Enabled: false +Style/HashSyntax: + Enabled: false + Lint/MissingSuper: Enabled: false @@ -65,6 +68,9 @@ Layout/MultilineMethodCallIndentation: Layout/HashAlignment: Enabled: false +Naming/BlockForwarding: + Enabled: false + Gemspec/RequiredRubyVersion: Enabled: false diff --git a/Gemfile b/Gemfile index 94e3ff9..8673079 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ source "https://rubygems.org" # Specify your gem's dependencies in data_checks.gemspec gemspec -rails_version = "~> 7.0.4" +rails_version = "~> 7.1.0" gem "actionmailer", rails_version gem "activerecord", rails_version gem "railties", rails_version # to test generator diff --git a/Gemfile.lock b/Gemfile.lock index 4abdd28..58a591f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,59 +7,77 @@ PATH GEM remote: https://rubygems.org/ specs: - actionmailer (7.0.4.3) - actionpack (= 7.0.4.3) - actionview (= 7.0.4.3) - activejob (= 7.0.4.3) - activesupport (= 7.0.4.3) + 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 - rails-dom-testing (~> 2.0) - actionpack (7.0.4.3) - actionview (= 7.0.4.3) - activesupport (= 7.0.4.3) - rack (~> 2.0, >= 2.2.0) + rails-dom-testing (~> 2.2) + actionpack (7.1.1) + actionview (= 7.1.1) + activesupport (= 7.1.1) + 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 (7.0.4.3) - activesupport (= 7.0.4.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actionview (7.1.1) + activesupport (= 7.1.1) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (7.0.4.3) - activesupport (= 7.0.4.3) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.1) + activesupport (= 7.1.1) globalid (>= 0.3.6) - activemodel (7.0.4.3) - activesupport (= 7.0.4.3) - activerecord (7.0.4.3) - activemodel (= 7.0.4.3) - activesupport (= 7.0.4.3) - activesupport (7.0.4.3) + activemodel (7.1.1) + activesupport (= 7.1.1) + activerecord (7.1.1) + activemodel (= 7.1.1) + activesupport (= 7.1.1) + timeout (>= 0.4.0) + activesupport (7.1.1) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) - addressable (2.8.4) + addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.4) builder (3.2.4) concurrent-ruby (1.2.2) + connection_pool (2.4.1) crack (0.4.5) rexml crass (1.0.6) - date (3.3.3) + date (3.3.4) + drb (2.2.0) + ruby2_keywords erubi (1.12.0) - globalid (1.1.0) - activesupport (>= 5.0) + globalid (1.2.1) + activesupport (>= 6.1) hashdiff (1.0.1) - i18n (1.13.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) + io-console (0.6.0) + irb (1.8.3) + rdoc + reline (>= 0.3.8) json (2.6.3) - loofah (2.21.3) + language_server-protocol (3.17.0.3) + loofah (2.21.4) crass (~> 1.0.2) nokogiri (>= 1.12.0) mail (2.8.1) @@ -67,79 +85,98 @@ GEM net-imap net-pop net-smtp - method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.8.2) - minitest (5.18.0) - net-imap (0.3.4) + mini_mime (1.1.5) + mini_portile2 (2.8.5) + minitest (5.20.0) + mutex_m (0.2.0) + net-imap (0.4.4) date net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.2.1) + net-protocol (0.2.2) timeout - net-smtp (0.3.3) + net-smtp (0.4.0) net-protocol - nokogiri (1.15.0) + nokogiri (1.15.4) mini_portile2 (~> 2.8.2) racc (~> 1.4) - nokogiri (1.15.0-x86_64-darwin) + nokogiri (1.15.4-x86_64-darwin) racc (~> 1.4) - nokogiri (1.15.0-x86_64-linux) + nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) parallel (1.23.0) - parser (3.2.2.1) + parser (3.2.2.4) ast (~> 2.4.1) - public_suffix (5.0.1) - racc (1.6.2) - rack (2.2.7) + racc + psych (5.1.1.1) + stringio + public_suffix (5.0.3) + racc (1.7.3) + rack (3.0.8) + rack-session (2.0.0) + rack (>= 3.0.0) rack-test (2.1.0) rack (>= 1.3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.5.0) - loofah (~> 2.19, >= 2.19.1) - railties (7.0.4.3) - actionpack (= 7.0.4.3) - activesupport (= 7.0.4.3) - method_source + 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 + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) - zeitwerk (~> 2.5) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.8.0) - rexml (3.2.5) - rubocop (1.51.0) + rake (13.1.0) + rdoc (6.6.0) + psych (>= 4.0.0) + regexp_parser (2.8.2) + reline (0.4.0) + io-console (~> 0.5) + rexml (3.2.6) + rubocop (1.57.2) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.28.1) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-minitest (0.31.0) + rubocop-minitest (0.33.0) rubocop (>= 1.39, < 2.0) ruby-progressbar (1.13.0) - sqlite3 (1.6.3) + ruby2_keywords (0.0.5) + sqlite3 (1.6.8) mini_portile2 (~> 2.8.0) - sqlite3 (1.6.3-x86_64-darwin) - sqlite3 (1.6.3-x86_64-linux) - thor (1.2.2) - timeout (0.3.2) + sqlite3 (1.6.8-x86_64-darwin) + sqlite3 (1.6.8-x86_64-linux) + stringio (3.0.9) + thor (1.3.0) + timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) - webmock (3.18.1) + unicode-display_width (2.5.0) + webmock (3.19.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) - zeitwerk (2.6.8) + webrick (1.8.1) + zeitwerk (2.6.12) PLATFORMS ruby @@ -147,11 +184,11 @@ PLATFORMS x86_64-linux DEPENDENCIES - actionmailer (~> 7.0.4) - activerecord (~> 7.0.4) + actionmailer (~> 7.1.0) + activerecord (~> 7.1.0) data_checks! minitest (~> 5.0) - railties (~> 7.0.4) + railties (~> 7.1.0) rake (~> 13.0) rubocop (< 2) rubocop-minitest (< 1) @@ -159,4 +196,4 @@ DEPENDENCIES webmock (~> 3.18) BUNDLED WITH - 2.3.11 + 2.4.21 diff --git a/test/config_test.rb b/test/config_test.rb index fd64b95..cb4f5eb 100644 --- a/test/config_test.rb +++ b/test/config_test.rb @@ -2,7 +2,7 @@ require_relative "test_helper" -class ConfigTest < MiniTest::Test +class ConfigTest < Minitest::Test def test_adding_duplicate_check config.ensure_no :check_name diff --git a/test/ensure_equal_test.rb b/test/ensure_equal_test.rb index 0e234b4..4621966 100644 --- a/test/ensure_equal_test.rb +++ b/test/ensure_equal_test.rb @@ -2,7 +2,7 @@ require_relative "test_helper" -class EnsureEqualTest < MiniTest::Test +class EnsureEqualTest < Minitest::Test def teardown super User.delete_all diff --git a/test/ensure_less_test.rb b/test/ensure_less_test.rb index 6841e8f..2f77b89 100644 --- a/test/ensure_less_test.rb +++ b/test/ensure_less_test.rb @@ -2,7 +2,7 @@ require_relative "test_helper" -class EnsureLessTest < MiniTest::Test +class EnsureLessTest < Minitest::Test def teardown super User.delete_all diff --git a/test/ensure_more_test.rb b/test/ensure_more_test.rb index e86a97e..bea35c1 100644 --- a/test/ensure_more_test.rb +++ b/test/ensure_more_test.rb @@ -2,7 +2,7 @@ require_relative "test_helper" -class EnsureMoreTest < MiniTest::Test +class EnsureMoreTest < Minitest::Test def teardown super User.delete_all diff --git a/test/ensure_no_test.rb b/test/ensure_no_test.rb index bee792c..5eb8239 100644 --- a/test/ensure_no_test.rb +++ b/test/ensure_no_test.rb @@ -2,7 +2,7 @@ require_relative "test_helper" -class EnsureNoTest < MiniTest::Test +class EnsureNoTest < Minitest::Test def teardown super User.delete_all diff --git a/test/notifiers/email_notifier_test.rb b/test/notifiers/email_notifier_test.rb index 3773949..1eda54a 100644 --- a/test/notifiers/email_notifier_test.rb +++ b/test/notifiers/email_notifier_test.rb @@ -2,7 +2,7 @@ require "test_helper" -class EmailNotifierTest < MiniTest::Test +class EmailNotifierTest < Minitest::Test def setup config.notifier :email, from: "no-reply@example.com", to: "user@example.com" end diff --git a/test/notifiers/logger_notifier_test.rb b/test/notifiers/logger_notifier_test.rb index d751063..bb5556c 100644 --- a/test/notifiers/logger_notifier_test.rb +++ b/test/notifiers/logger_notifier_test.rb @@ -2,7 +2,7 @@ require "test_helper" -class LoggerNotifierTest < MiniTest::Test +class LoggerNotifierTest < Minitest::Test def setup config.notifier :logger end diff --git a/test/notifiers/slack_notifier_test.rb b/test/notifiers/slack_notifier_test.rb index 57c7780..4cbb646 100644 --- a/test/notifiers/slack_notifier_test.rb +++ b/test/notifiers/slack_notifier_test.rb @@ -2,7 +2,7 @@ require "test_helper" -class SlackNotifierTest < MiniTest::Test +class SlackNotifierTest < Minitest::Test def setup config.notifier :slack, webhook_url: "https://hooks.slack.com/services/abc" end diff --git a/test/runner_test.rb b/test/runner_test.rb index 18a5298..e0d4bf8 100644 --- a/test/runner_test.rb +++ b/test/runner_test.rb @@ -2,7 +2,7 @@ require "test_helper" -class RunnerTest < MiniTest::Test +class RunnerTest < Minitest::Test def test_run_checks io = StringIO.new config.notifier :logger, logdev: io diff --git a/test/status_printer_test.rb b/test/status_printer_test.rb index 194b3ff..f936ec2 100644 --- a/test/status_printer_test.rb +++ b/test/status_printer_test.rb @@ -2,7 +2,7 @@ require "test_helper" -class StatusPrinterTest < MiniTest::Test +class StatusPrinterTest < Minitest::Test def setup DataChecks.configure do ensure_no :failing_check do diff --git a/test/test_helper.rb b/test/test_helper.rb index b0a8131..35a4d68 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -42,7 +42,7 @@ class User < ActiveRecord::Base end -class MiniTest::Test # rubocop:disable Style/ClassAndModuleChildren +class Minitest::Test # rubocop:disable Style/ClassAndModuleChildren def teardown DataChecks.config.checks.clear DataChecks.config.notifier_options.clear