From 7bcf279148279f9342e8bee60fc54e89132d64c4 Mon Sep 17 00:00:00 2001 From: Watson Date: Mon, 19 Aug 2013 17:16:36 +0900 Subject: [PATCH] add Gemfile into gem template --- lib/motion/project/template/gem/files/Gemfile | 4 ++++ lib/motion/project/template/gem/files/Rakefile.erb | 1 + 2 files changed, 5 insertions(+) create mode 100644 lib/motion/project/template/gem/files/Gemfile diff --git a/lib/motion/project/template/gem/files/Gemfile b/lib/motion/project/template/gem/files/Gemfile new file mode 100644 index 00000000..764be634 --- /dev/null +++ b/lib/motion/project/template/gem/files/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +gem 'rake' +# Add your dependencies here: diff --git a/lib/motion/project/template/gem/files/Rakefile.erb b/lib/motion/project/template/gem/files/Rakefile.erb index a80d34de..5f259a17 100644 --- a/lib/motion/project/template/gem/files/Rakefile.erb +++ b/lib/motion/project/template/gem/files/Rakefile.erb @@ -6,6 +6,7 @@ require './lib/<%= name %>' begin require 'bundler' require 'motion/project/template/gem/gem_tasks' + Bundler.require rescue LoadError end