Sha256: a7f387f334cc45792778afa39c71c68a72eaf3238ff9f94a61a7e8fd8ffdfdde
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rake-version' RSpec::Core::RakeTask.new(:spec) RakeVersion::Tasks.new do |v| v.copy 'lib/dockman/identity.rb' end task :default => :spec namespace :dockman do namespace :bump do desc "Bumps the patch version and commits" task :patch do Rake::Task['version:bump:patch'].invoke system 'git add VERSION lib/dockman/identity.rb' system "git commit -m 'Bumped version to #{File.read('VERSION')}'" end end desc 'build and push' task :build_push do Rake::Task['dockman:remote_version'].invoke Rake::Task['build'].invoke system "gem push pkg/dockman-#{File.read('VERSION')}.gem" end desc 'Check latest published version' task :remote_version do version_string = `gem search -r dockman` remote = version_string.match(/\d+\.\d+\.\d+/).to_s local = File.read('VERSION') if remote == local puts 'This version is already published.' exit 1 end end end require 'rubygems/tasks' Gem::Tasks.new(push: false)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dockman-0.1.12 | Rakefile |
dockman-0.1.11 | Rakefile |
dockman-0.1.9 | Rakefile |