lib/gemsmith/templates/lib/gem.rb.tmp in gemsmith-1.3.0 vs lib/gemsmith/templates/lib/gem.rb.tmp in gemsmith-1.4.0

- old
+ new

@@ -1,17 +1,16 @@ -# Dependencies require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "version.rb" -<%- if config[:rails] -%> -require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "active_record", "class_methods.rb" -require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "active_record", "instance_methods.rb" -require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_view", "instance_methods.rb" -require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_controller", "class_methods.rb" -require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_controller", "instance_methods.rb" -<%- end -%> <%- if config[:rails] -%> # Rails Enhancements if defined? Rails + # Dependencies + require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "active_record", "class_methods.rb" + require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "active_record", "instance_methods.rb" + require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_view", "instance_methods.rb" + require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_controller", "class_methods.rb" + require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_controller", "instance_methods.rb" + # Model if defined? ActiveRecord ActiveRecord::Base.send :include, <%= config[:gem_class] %>::ActiveRecord end