lib/templates/colon_namespaces/%project_name%.gemspec.tt in cli-template-3.3.0 vs lib/templates/colon_namespaces/%project_name%.gemspec.tt in cli-template-3.4.0
- old
+ new
@@ -1,8 +1,6 @@
-# coding: utf-8
-lib = File.expand_path("../lib", __FILE__)
-$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require "<%= underscored_name %>/version"
+# -*- encoding: utf-8 -*-
+require_relative "lib/<%= underscored_name %>/version"
Gem::Specification.new do |spec|
spec.name = "<%= project_name %>"
spec.version = <%= project_class_name %>::VERSION
spec.authors = ["Tung Nguyen"]