Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

テストを通した

  • Loading branch information...
commit fb4f331750290ed408c205526e4aae6ebbabc77a 1 parent 1e809ef
pasberth authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/endlessruby/extensions.rb
  2. +1 −1  src/endlessruby/extensions.er
2  lib/endlessruby/extensions.rb
View
@@ -45,7 +45,7 @@ def require path
is_that_dir = false
($LOAD_PATH | $:).each do |load_path|
real_path = File.join load_path, path
- unless File.exist? real_path
+ if !File.exist?(real_path) || File.directory?(real_path)
if File.exist? "#{real_path}.er"
real_path = "#{real_path}.er"
else
2  src/endlessruby/extensions.er
View
@@ -40,7 +40,7 @@ module Kernel
is_that_dir = false
($LOAD_PATH | $:).each do |load_path|
real_path = File.join load_path, path
- unless File.exist? real_path
+ if !File.exist?(real_path) || File.directory?(real_path)
if File.exist? "#{real_path}.er"
real_path = "#{real_path}.er"
else
Please sign in to comment.
Something went wrong with that request. Please try again.