diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-07-03 01:04:10 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-07-03 01:04:10 +0900 |
commit | 37ddcfcd7a36ebc6aef93a3a15cc8b7bdf80c083 (patch) | |
tree | 266618af746c112844659e1967bc6b95f27c311c | |
parent | 5e8243ba4845bd87238eb9dfb8ca765683f9229f (diff) | |
download | bundler-37ddcfcd7a36ebc6aef93a3a15cc8b7bdf80c083.tar.gz |
Tweak gemspec template when using Ruby 2.x
-rw-r--r-- | lib/bundler/templates/newgem/newgem.gemspec.tt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt index a7b7e5a9ee..4b746c74a9 100644 --- a/lib/bundler/templates/newgem/newgem.gemspec.tt +++ b/lib/bundler/templates/newgem/newgem.gemspec.tt @@ -1,4 +1,6 @@ +<%- if RUBY_VERSION < "2.0.0" -%> # coding: utf-8 +<%- end -%> lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "<%= config[:namespaced_path] %>/version" |