diff --git a/lib/aruba/platform.rb b/lib/aruba/platform.rb index fe4bc7e2e..ba83fae70 100644 --- a/lib/aruba/platform.rb +++ b/lib/aruba/platform.rb @@ -35,7 +35,7 @@ def ensure_newline(str) end def require_matching_files(pattern, base) - if RUBY_VERSION < '1.9.' + if RUBY_VERSION < '1.9.3' ::Dir.glob(::File.expand_path(pattern, base)).each { |f| require File.join(File.dirname(f), File.basename(f, '.rb')) } else ::Dir.glob(::File.expand_path(pattern, base)).each { |f| require_relative f } @@ -141,7 +141,7 @@ def relative_command?(path) # Write to file def write_file(path, content) - if RUBY_VERSION < '1.9' + if RUBY_VERSION < '1.9.3' File.open(path, 'wb') do |f| f.print content end