YUKI Hiroshi
null+****@clear*****
Tue Apr 14 20:50:04 JST 2015
YUKI Hiroshi 2015-04-14 20:50:04 +0900 (Tue, 14 Apr 2015) New Revision: 27721ed3c133bab45092dbcecae8ce93ef102c7f https://github.com/droonga/drntest/commit/27721ed3c133bab45092dbcecae8ce93ef102c7f Message: Fix indent Modified files: lib/drntest/directive.rb Modified: lib/drntest/directive.rb (+9 -9) =================================================================== --- lib/drntest/directive.rb 2015-04-14 20:49:28 +0900 (0a731bb) +++ lib/drntest/directive.rb 2015-04-14 20:50:04 +0900 (cb34233) @@ -81,15 +81,15 @@ module Drntest @timeout_seconds = nil parameters.each do |parameter| - if parameter =~ /\A(\d+)(?:messages|msg)?\z/ - @max_messages = $1.to_i - elsif parameter =~ /\A(\d+\.?|\.\d+|\d+\.\d+)s(?:ec(?:onds?)?)?\z/ - @timeout_seconds = $1.to_f - elsif parameter =~ /\A(\d+\.?|\.\d+|\d+\.\d+)m(?:inutes?)?\z/ - @timeout_seconds = $1.to_f * ONE_MINUTE_IN_SECONDS - elsif parameter =~ /\A(\d+\.?|\.\d+|\d+\.\d+)h(?:ours?)?\z/ - @timeout_seconds = $1.to_f * ONE_HOUR_IN_SECONDS - end + if parameter =~ /\A(\d+)(?:messages|msg)?\z/ + @max_messages = $1.to_i + elsif parameter =~ /\A(\d+\.?|\.\d+|\d+\.\d+)s(?:ec(?:onds?)?)?\z/ + @timeout_seconds = $1.to_f + elsif parameter =~ /\A(\d+\.?|\.\d+|\d+\.\d+)m(?:inutes?)?\z/ + @timeout_seconds = $1.to_f * ONE_MINUTE_IN_SECONDS + elsif parameter =~ /\A(\d+\.?|\.\d+|\d+\.\d+)h(?:ours?)?\z/ + @timeout_seconds = $1.to_f * ONE_HOUR_IN_SECONDS + end end if @max_messages.nil? and @timeout_seconds.nil? -------------- next part -------------- HTML����������������������������...Download