Sha256: 80751248ba9dfa9bc4143bf5398e675a332e125e7192084bb0970433f0967e98

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 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] 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.1.0 Rakefile