summaryrefslogtreecommitdiff
path: root/rake_tasks
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-07-09 17:23:55 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2011-07-09 17:23:55 +0200
commit8eed7f3854be44f83aaa6a50e40cda62da942a39 (patch)
treeef981b04cf8ecdf3f87745b445ceb8baff261f23 /rake_tasks
parentaf5fef051d041384910377fcc004b33470175e5c (diff)
downloadcoderay-8eed7f3854be44f83aaa6a50e40cda62da942a39.tar.gz
new version scheme; use bundler + git for releasesv1.0.0.800pre
Diffstat (limited to 'rake_tasks')
-rw-r--r--rake_tasks/bundler.rake2
-rw-r--r--rake_tasks/gem.rake39
2 files changed, 2 insertions, 39 deletions
diff --git a/rake_tasks/bundler.rake b/rake_tasks/bundler.rake
new file mode 100644
index 0000000..38b103b
--- /dev/null
+++ b/rake_tasks/bundler.rake
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
diff --git a/rake_tasks/gem.rake b/rake_tasks/gem.rake
deleted file mode 100644
index 2b09a68..0000000
--- a/rake_tasks/gem.rake
+++ /dev/null
@@ -1,39 +0,0 @@
-require 'rubygems/package_task'
-
-load File.expand_path('../../coderay.gemspec', __FILE__)
-
-def gem_path
- "pkg/coderay-#{coderay_version}.gem"
-end
-
-namespace :gem do
- Gem::PackageTask.new $gemspec do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
- end
-
- desc 'Create the Gem again'
- task :make => [:clean, :gem] do
- puts "Created #{coderay_version}"
- end
-
- desc 'Delete previously created Gems'
- task :clean do
- rm_r Dir['pkg/*']
- end
-
- desc 'Install the gem'
- task :install => [:make] do
- sh "gem install #{gem_path}"
- end
-
- desc 'Release the gem on rubygems.org'
- task :release => [:make] do
- print "Releasing CodeRay #{coderay_version}. Are you sure? "
- if $stdin.gets.chomp == 'yes'
- sh "gem push #{gem_path}"
- end
- end
-end
-
-task :gem => 'gem:make' \ No newline at end of file