Sha256: 3960ca6e4c71f6800b111812046d52f1d5bf41d6a2184cb25b8b891d277341c6
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
require "bundler/gem_tasks" require 'rubocop/rake_task' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => [:spec] RuboCop::RakeTask.new # named rubocop desc "Build and release the gem to RubyGems" task :release => [:rubocop, :spec, :build] do version = `git tag --list`.split("\n").last puts "Releasing version #{version}" system("git tag -a v#{version} -m 'Version #{version}'") system("git push origin --tags") system("gem push pkg/#{File.basename(Dir.glob("*.gemspec").first, ".gemspec")}-#{version}.gem") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pcp-server-ruby-sdk-0.0.6 | Rakefile |