lib/git_hub.rb in git_hub-0.2.0 vs lib/git_hub.rb in git_hub-0.2.7

- old
+ new

@@ -1,20 +1,13 @@ module GitHub # :stopdoc: - VERSION = '0.0.1' LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR # :startdoc: - # Returns the version string for the library. - # - def self.version - VERSION - end - # Returns the library path for the module. If any arguments are given, # they will be joined to the end of the libray path using # <tt>File.join</tt>. # def self.libpath( *args ) @@ -34,15 +27,13 @@ # in. Optionally, a specific _directory_ name can be passed in such that # the _filename_ does not have to be equivalent to the directory. # def self.require_all_libs_relative_to( fname, dir = nil ) dir ||= ::File.basename(fname, '.*') - search_me = ::File.expand_path( - ::File.join(::File.dirname(fname), dir, '**', '*.rb')) + search_me = ::File.expand_path(::File.join(::File.dirname(fname), dir, '**', '*.rb')) Dir.glob(search_me).sort.each {|rb| require rb} end end # module GitHub GitHub.require_all_libs_relative_to(__FILE__) -