From c7b561a80eca6605d13dcb9ccb2e6f8cce818e5a Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Wed, 27 Jun 2012 16:32:45 +0200 Subject: [PATCH] add a rake task to update ember to current master --- .gitignore | 11 ----------- Rakefile | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index eb3489a9..df36db22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,4 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile ~/.gitignore_global - -# Ignore bundler config /.bundle - -# Ignore the default SQLite database. /db/*.sqlite3 - -# Ignore all logfiles and tempfiles. /log/*.log /tmp diff --git a/Rakefile b/Rakefile index 6ef5d993..f09004bd 100644 --- a/Rakefile +++ b/Rakefile @@ -1 +1,15 @@ -#!/usr/bin/env rake +$: << 'lib' + +namespace :ember do + desc 'update ember' + task :update do + if File.exists?('tmp/ember.js') + system 'cd tmp/ember.js; git fetch origin; git reset --hard origin/master' + else + system 'git clone https://github.com/emberjs/ember.js.git tmp/ember.js' + end + + system 'cd tmp/ember.js; rake dist' + system 'cp tmp/ember.js/dist/ember.js assets/javascripts/vendor/ember.js' + end +end