From 3767d0eff4e5d73f2e2894e268a3c566dd3ad464 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Sat, 17 Aug 2013 14:09:24 +0200 Subject: [PATCH] integrate Bundler --- lib/motion/project/template/ios/files/Gemfile | 3 +++ lib/motion/project/template/ios/files/Rakefile.erb | 6 ++++++ lib/motion/project/template/osx/files/Gemfile | 3 +++ lib/motion/project/template/osx/files/Rakefile.erb | 6 ++++++ 4 files changed, 18 insertions(+) create mode 100644 lib/motion/project/template/ios/files/Gemfile create mode 100644 lib/motion/project/template/osx/files/Gemfile diff --git a/lib/motion/project/template/ios/files/Gemfile b/lib/motion/project/template/ios/files/Gemfile new file mode 100644 index 00000000..efe44394 --- /dev/null +++ b/lib/motion/project/template/ios/files/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +# Add your dependencies here: diff --git a/lib/motion/project/template/ios/files/Rakefile.erb b/lib/motion/project/template/ios/files/Rakefile.erb index 5b2a8aaa..da3f4e51 100644 --- a/lib/motion/project/template/ios/files/Rakefile.erb +++ b/lib/motion/project/template/ios/files/Rakefile.erb @@ -2,6 +2,12 @@ $:.unshift("/Library/RubyMotion/lib") require 'motion/project/template/ios' +begin + require 'bundler' + Bundler.require +rescue LoadError +end + Motion::Project::App.setup do |app| # Use `rake config' to see complete project settings. app.name = '<%= name %>' diff --git a/lib/motion/project/template/osx/files/Gemfile b/lib/motion/project/template/osx/files/Gemfile new file mode 100644 index 00000000..efe44394 --- /dev/null +++ b/lib/motion/project/template/osx/files/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +# Add your dependencies here: diff --git a/lib/motion/project/template/osx/files/Rakefile.erb b/lib/motion/project/template/osx/files/Rakefile.erb index 84b39a5c..64476645 100644 --- a/lib/motion/project/template/osx/files/Rakefile.erb +++ b/lib/motion/project/template/osx/files/Rakefile.erb @@ -2,6 +2,12 @@ $:.unshift("/Library/RubyMotion/lib") require 'motion/project/template/osx' +begin + require 'bundler' + Bundler.require +rescue LoadError +end + Motion::Project::App.setup do |app| # Use `rake config' to see complete project settings. app.name = '<%= name %>'