Sha256: 8457afc0f4473f0ca79aa172a92640bdc400aca4fc5a3350e6803ae6f4772b58

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)
Bundler::GemHelper.install_tasks

task :default => :spec

task :start_new_release do
  bump = ENV['BUMP'] || 'patch'

  sh 'gem install gem-release'
  sh "gem bump --version #{bump}"
  
  sh 'bundle'
  Rake::Task[:build].invoke
  
  sh 'git add .'
  sh "git commit -m \"build(version): :bookmark: bump #{bump}\"" 
  sh 'git push'

  version = NubankSdk::VERSION
  version_tag = "v#{version}"
  sh "git tag -a #{version_tag} -m \"Version #{version}\""
  sh 'git push --tags'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nubank_sdk-0.6.0 Rakefile
nubank_sdk-0.5.2 Rakefile