SUZUKI Miho
null+****@clear*****
Mon Oct 29 11:15:53 JST 2012
SUZUKI Miho 2012-10-12 11:13:05 +0900 (Fri, 12 Oct 2012) New Revision: a261dc7b608e68bb33b4a4a6137949fece570712 https://github.com/logaling/logaling-command/commit/a261dc7b608e68bb33b4a4a6137949fece570712 Merged fb2d86e: Merge pull request #85 from logaling/add-no-annotation-option Log: Change logic Modified files: lib/logaling/repository.rb Modified: lib/logaling/repository.rb (+2 -3) =================================================================== --- lib/logaling/repository.rb 2012-10-11 19:20:54 +0900 (9e4c789) +++ lib/logaling/repository.rb 2012-10-12 11:13:05 +0900 (1d0efbd) @@ -97,10 +97,9 @@ module Logaling end def except_annotation(terms) - Logaling::Glossary::SUPPORTED_ANNOTATION.map do |annotation| - terms.delete_if {|term| term[:note].index(annotation) } + terms.delete_if do |term| + Logaling::Glossary::SUPPORTED_ANNOTATION.any? {|ann| term[:note].index(ann) } end - terms end def projects -------------- next part -------------- An HTML attachment was scrubbed...Download