summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-08 11:05:17 -0700
committerjessib <jessib@riseup.net>2012-10-08 11:05:17 -0700
commit8f100d3c03a6f554e703c5d0b2fe221958424c26 (patch)
tree77e90f53d05fecefa91adf89a3c35f19e277996b /lib
parentf77301824c42bdd4559a0b0e58b8f3c26f239643 (diff)
parentf5aea5347601c3500bb3670971d44995c35c3c7b (diff)
Merge branch 'release-0.1.0' into help_develop
Conflicts: .gitignore
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_web/version.rb2
-rw-r--r--lib/tasks/gems.rake40
-rw-r--r--lib/tasks/task_helper.rb19
3 files changed, 60 insertions, 1 deletions
diff --git a/lib/leap_web/version.rb b/lib/leap_web/version.rb
index ef81e43..bac8655 100644
--- a/lib/leap_web/version.rb
+++ b/lib/leap_web/version.rb
@@ -1,3 +1,3 @@
module LeapWeb
- VERSION = "0.0.1"
+ VERSION = "0.1.0"
end
diff --git a/lib/tasks/gems.rake b/lib/tasks/gems.rake
new file mode 100644
index 0000000..27eb04c
--- /dev/null
+++ b/lib/tasks/gems.rake
@@ -0,0 +1,40 @@
+require File.expand_path('../task_helper', __FILE__)
+include TaskHelper
+
+
+namespace :gem do
+
+ desc "run rake gem for all gems"
+ task :build => :clear do
+ each_gem do |gem_name|
+ putsys "cd #{gem_name} && bundle exec rake gem"
+ end
+ putsys "bundle exec rake gem"
+ end
+
+ desc "run rake gem for all gems"
+ task :clear do
+ each_gem do |gem_name|
+ putsys "rm -rf #{gem_name}/pkg"
+ end
+ putsys "rm -rf pkg"
+ end
+
+ desc "run gem install for all gems"
+ task :install => :build do
+
+ each_gem do |gem_name|
+ putsys "cd #{gem_name}/pkg && gem install leap_web_#{gem_name}-#{LeapWeb::VERSION}.gem"
+ end
+ putsys "gem install pkg/leap_web-#{LeapWeb::VERSION}.gem"
+ end
+
+ desc "Release all gems to gemcutter. Package leap web components, then push"
+ task :release do
+
+ each_gem do |gem_name|
+ putsys "cd #{gem_name}/pkg && gem push leap_web_#{gem_name}-#{LeapWeb::VERSION}.gem"
+ end
+ putsys "gem push pkg/leap_web-#{LeapWeb::VERSION}.gem"
+ end
+end
diff --git a/lib/tasks/task_helper.rb b/lib/tasks/task_helper.rb
new file mode 100644
index 0000000..aa37698
--- /dev/null
+++ b/lib/tasks/task_helper.rb
@@ -0,0 +1,19 @@
+require File.expand_path('../../../lib/leap_web/version', __FILE__)
+
+module TaskHelper
+
+ ENGINES = %w(core users certs help)
+
+ def putsys(cmd)
+ puts cmd
+ system cmd
+ end
+
+ def each_gem
+ ENGINES.each do |gem_name|
+ puts "########################### #{gem_name} #########################"
+ yield gem_name
+ end
+ end
+end
+