lib/templates/core/lib/library.rb.seed in seedling-0.0.1 vs lib/templates/core/lib/library.rb.seed in seedling-0.0.5

- old
+ new

@@ -1,5 +1,16 @@ require "pathname" -$LOAD_PATH.unshift(Pathname.new(__FILE__).dirname.expand_path.to_s) +$LOAD_PATH.unshift(File.expand_path("../", __FILE__)) + +# Allows for pathnames to be easily added to +class Pathname + def /(other) + join(other.to_s) + end +end + +# <%= @options[:summary] %> module <%= @options[:lib_name] %> + autoload :VERSION, "<%= @options[:lib_name_u] %>/version" + ROOT = Pathname($LOAD_PATH.first) unless <%= @options[:lib_name] %>.const_defined?("ROOT") + LIBDIR = ROOT/:lib unless <%= @options[:lib_name] %>.const_defined?("LIBDIR") end -require "<%= @options[:lib_name_u] %>/version"