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 %>'