diff --git a/.rubocop.yml b/.rubocop.yml index c4d0282..60c966c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -135,8 +135,7 @@ Layout/LineContinuationLeadingSpace: Rails/RedundantPresenceValidationOnBelongsTo: Enabled: false -# see https://github.com/rubocop/rubocop-rails/issues/825 -# should be removed and corrected in code, if this bug is fixed +# does not work with redirect_to or ensure Rails/ActionControllerFlashBeforeRender: Enabled: false diff --git a/additional_tags.gemspec b/additional_tags.gemspec index 0b8c60f..e4c486d 100644 --- a/additional_tags.gemspec +++ b/additional_tags.gemspec @@ -22,6 +22,6 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.required_ruby_version = '>= 3.0' - spec.add_dependency 'acts-as-taggable-on', '~> 10.0' + spec.add_dependency 'acts-as-taggable-on' spec.add_dependency 'redmine_plugin_kit' end diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index c77a500..55bd69c 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -19,7 +19,7 @@ def test_valid_languages end def test_locales_validness - lang_files_count = Dir[Rails.root.join('plugins/additional_tags/config/locales/*.yml')].size + lang_files_count = Rails.root.glob('plugins/additional_tags/config/locales/*.yml').size assert_equal 13, lang_files_count valid_languages.each do |lang|