lib/review/book/base.rb in review-2.2.0 vs lib/review/book/base.rb in review-2.3.0
- old
+ new
@@ -1,8 +1,8 @@
#
# Copyright (c) 2002-2008 Minero Aoki
-# 2009-2016 Minero Aoki, Kenshi Muto
+# 2009-2017 Minero Aoki, Kenshi Muto
#
# This program is free software.
# You can distribute or modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
@@ -388,10 +388,10 @@
end
def read_FILE(filename)
if !@warn_old_files[filename]
@warn_old_files[filename] = true
- if !caller().any?{|item| item =~ %r|/review/test/test_|}
+ if caller().none? {|item| item =~ %r|/review/test/test_|}
warn "!!! #{filename} is obsoleted. please use catalog.yml."
end
end
res = ""
File.open("#{@basedir}/#{filename}", 'r:BOM|utf-8') do |f|