Sha256: a1adeb27f642d18db61f0e246711d425f77b72cd14fc7611f7dde7313dab2f8f

Contents?: true

Size: 593 Bytes

Versions: 7

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

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 bump --version #{bump}"

  sh 'bundle'
  Rake::Task[:build].invoke

  sh 'git add .'
  sh "git commit -m \"build(version): :bookmark: bump #{bump}\""
  sh 'git push'
end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nubank_sdk-0.7.7 Rakefile
nubank_sdk-0.7.6 Rakefile
nubank_sdk-0.7.5 Rakefile
nubank_sdk-0.7.4 Rakefile
nubank_sdk-0.7.3 Rakefile
nubank_sdk-0.7.2 Rakefile
nubank_sdk-0.7.1 Rakefile