Permalink
Browse files

release

  • Loading branch information...
1 parent 3eb2ab6 commit 9a14148c5303df33ec7117379e00ab4ff84b13c2 @baccigalupi committed Aug 31, 2012
Showing with 16 additions and 15 deletions.
  1. +14 −13 Jakefile.js
  2. +1 −1 VERSION
  3. +1 −1 package.json
View
@@ -141,48 +141,49 @@ namespace('bump', function() {
});
});
-task('gemspec', function() {
- console.log('creating the gemspec');
- exec('rake gemspec');
-});
-
-task('push', function() {
- console.log('Donig the git dance to github');
+task('push', function(message) {
Step(
function() {
+ exec('rake gemspec', this);
+ },
+
+ function(err, text) {
+ console.log(text);
+ if (err) throw err;
exec('git add .', this);
},
+
function(err, text) {
console.log(text);
if (err) throw err;
exec('git commit -m "release"', this)
},
+
function(err, text) {
console.log(text);
if (err) throw err;
exec('git push', this);
},
+
function(err, text) {
console.log(text);
if (err) throw err;
}
);
});
-namespace('release', function() {
+namespace('release', function(message) {
desc('build distributions; bump the patch version; create the gemspec; commit; and push to github');
task('patch', function() {
jake.Task['build'].invoke();
jake.Task['bump:patch'].invoke();
- jake.Task['gemspec'].invoke();
- jake.Task['push'].invoke();
+ jake.Task['push'].invoke(message);
});
desc('build distributions; bump the minor version; create the gemspec; commit; and push to github');
- task('minor', function() {
+ task('minor', function(message) {
jake.Task['build'].invoke();
jake.Task['bump:minor'].invoke();
- jake.Task['gemspec'].invoke();
- jake.Task['push'].invoke();
+ jake.Task['push'].invoke(message);
});
});
View
@@ -1 +1 @@
-0.3.7
+0.3.6
View
@@ -7,7 +7,7 @@
},
"description": "An MV* Front-end JavaScript Framework for Mobile and Beyond",
"homepage": "http://github.com/baccigalupi/wheel.js",
- "version": "0.3.7",
+ "version": "0.3.6",
"devDependencies": {
"jake": "0.3.x",
"uglify-js": "1.3.x",

0 comments on commit 9a14148

Please sign in to comment.