Sha256: 6db2a6bd8f8e8a251f4441e685f6aa2da031e716d23e64fd73b3a3d6ae9d4f9b

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

require 'rake/testtask'

gemspec_file = 'signaturit-sdk.gemspec'

spec = Gem::Specification::load(gemspec_file)

gem_file = "#{spec.name}-#{spec.version}.gem"

desc "Release signaturit-sdk-#{spec.version}"
task :release => :build do
    unless `git branch` =~ /^\* master$/
        puts 'You must be on the master branch to release!'
        exit!
    end
    
    sh "gem push pkg/signaturit-sdk-#{spec.version}.gem"
end

desc "Build signaturit-sdk-#{spec.version} into pkg/"
task :build do
    mkdir_p 'pkg'
    sh "gem build #{gemspec_file}"
    sh "mv #{gem_file} pkg"
end

Rake::TestTask.new do |t|
    t.libs << 'test'
    t.test_files = FileList['test/test*.rb']
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
signaturit-sdk-1.1.0 Rakefile