diff options
Diffstat (limited to 'lib/bundler/templates/newgem/newgem.gemspec.tt')
-rw-r--r-- | lib/bundler/templates/newgem/newgem.gemspec.tt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt index 116bb5fa62..d29fb6a020 100644 --- a/lib/bundler/templates/newgem/newgem.gemspec.tt +++ b/lib/bundler/templates/newgem/newgem.gemspec.tt @@ -1,16 +1,10 @@ <%- if RUBY_VERSION < "2.0.0" -%> # coding: utf-8 -lib = File.expand_path("../lib", __FILE__) -<%- else -%> -lib = File.expand_path("lib", __dir__) <%- end -%> -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require "<%= config[:namespaced_path] %>/version" - Gem::Specification.new do |spec| spec.name = <%= config[:name].inspect %> - spec.version = <%= config[:constant_name] %>::VERSION + spec.version = File.read(File.expand_path("../VERSION", __FILE__)).strip spec.authors = [<%= config[:author].inspect %>] spec.email = [<%= config[:email].inspect %>] |