lib/ludy.rb in ludy-0.1.10 vs lib/ludy.rb in ludy-0.1.11

- old
+ new

@@ -1,17 +1,18 @@ # $Id$ # Equivalent to a header guard in C/C++ # Used to prevent the class/module from being loaded more than once unless defined? LudyHeaderGuard + module LudyHeaderGuard # :nodoc: end module Ludy # :stopdoc: - VERSION = '0.1.10' + VERSION = '0.1.11' LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR $LOAD_PATH << LIBPATH # :startdoc: @@ -51,10 +52,10 @@ end # require all files in the dir, only work for ludy. # i.e., Ludy.require_all_in 'proc' => require 'ludy/proc/*.rb' def self.require_all_in dir - require 'rubygems' if RUBY_VERSION < '1.9.0' + require 'rubygems' require 'rake' Dir.glob("#{LIBPATH}ludy/#{dir}/*.rb").each{ |i| require(if dir == '.' i.pathmap('ludy/%n') else