Skip to content

Commit

Permalink
Fix for rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Aug 25, 2024
1 parent 83aff46 commit 0586ce9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion additional_tags.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/unit/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 0586ce9

Please sign in to comment.