Sha256: a62c338c30684fe99cec4f1a1cf508974159872254714a3d9b64d4e767f39398

Contents?: true

Size: 573 Bytes

Versions: 235

Compression:

Stored size: 573 Bytes

Contents

require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

namespace :version do
  desc "Bump version for specified type (pre, major, minor patch)"
  task :bump, [:type] do |_, args|
    bump_version_for(args.type)
  end
end

desc "Release gem"
task :release do
  sh "gem release --tag --push"
end

def bump_version_for(version_type)
  sh "gem bump --version #{version_type} " +
      "&& bundle install " +
      "&& export LAST_MESSAGE=\"$(git log -1 --pretty=%B)\" " +
      "&& git commit -a --amend -m \"${LAST_MESSAGE} [ci skip]\""
end

Version data entries

235 entries across 235 versions & 13 rubygems

Version Path
rake_github-0.3.0 Rakefile
rake_github-0.2.0.pre.8 Rakefile
rake_github-0.2.0.pre.7 Rakefile
rake_github-0.2.0.pre.6 Rakefile
rake_github-0.2.0.pre.5 Rakefile
rake_github-0.2.0.pre.4 Rakefile
rake_github-0.2.0.pre.3 Rakefile
rake_github-0.2.0.pre.2 Rakefile
rake_github-0.2.0.pre.1 Rakefile
rake_circle_ci-0.3.0 Rakefile
rake_circle_ci-0.2.0.pre.11 Rakefile
rake_circle_ci-0.2.0.pre.10 Rakefile
rake_circle_ci-0.2.0.pre.9 Rakefile
rake_circle_ci-0.2.0.pre.8 Rakefile
rake_circle_ci-0.2.0.pre.7 Rakefile
rake_circle_ci-0.2.0.pre.6 Rakefile
rake_circle_ci-0.2.0.pre.5 Rakefile
rake_circle_ci-0.2.0.pre.4 Rakefile
rake_circle_ci-0.2.0.pre.3 Rakefile
rake_circle_ci-0.2.0.pre.2 Rakefile