Module: Taglob

Defined in:
lib/taglob.rb,
lib/taglob/rake/test_tags_task.rb,
lib/taglob/rake/check_tags_task.rb

Defined Under Namespace

Modules: Rake

Constant Summary collapse

VERSION =
'1.1.1'

Class Method Summary collapse

Class Method Details

.invalid_tags(pattern, valid_tags) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/taglob.rb', line 23

def self.invalid_tags(pattern,valid_tags)
  invalids = {}
  Dir.tags(pattern).each do |file, tags|
    invalid_tags = tags - valid_tags
    invalids.merge!({file => invalid_tags}) if !invalid_tags.empty?
  end
  invalids
end