Skip to content

Commit

Permalink
rubocop 1.68.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Nov 10, 2024
1 parent 8a7086b commit cc6b820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/dump/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def for_command(command, strings = false)
end

def stringify!(hash)
hash.keys.each do |key| # rubocop:disable Style/HashEachMethods
hash.keys.each do |key|
hash[DICTIONARY[key] ? DICTIONARY[key].first : key.to_s] = hash.delete(key)
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/dump/snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def self.list(options = {})
dumps = dumps.select{ |dump| dump.name[options[:like]] } if options[:like]
if options[:tags]
tags = get_filter_tags(options[:tags])
dumps = dumps.select{ |dump| (dump.tags & tags[:simple]).present? } if tags[:simple].present?
dumps = dumps.select{ |dump| (dump.tags & tags[:mandatory]) == tags[:mandatory] } if tags[:mandatory].present?
dumps = dumps.reject{ |dump| (dump.tags & tags[:forbidden]).present? } if tags[:forbidden].present?
dumps = dumps.select{ |dump| dump.tags.intersect?(tags[:simple]) } if tags[:simple].present?
dumps = dumps.select{ |dump| dump.tags.superset?(tags[:mandatory]) } if tags[:mandatory].present?
dumps = dumps.reject{ |dump| dump.tags.intersect?(tags[:forbidden]) } if tags[:forbidden].present?
end
dumps
end
Expand Down

0 comments on commit cc6b820

Please sign in to comment.