Sha256: 6eb4f7898773c5181ddd76dea602d57dc7218d2e0689191c7339ec5463e86795

Contents?: true

Size: 681 Bytes

Versions: 4

Compression:

Stored size: 681 Bytes

Contents

require "bundler/gem_helper"
require "chandler/configuration"
require "chandler/refinements/version_format"
require "chandler/commands/push"
require "rake"

using Chandler::Refinements::VersionFormat

namespace :chandler do
  desc "Push release notes for the current version to GitHub"
  task "push" do
    gemspec = Bundler::GemHelper.gemspec
    push = Chandler::Commands::Push.new(
      :tags => [gemspec.version.to_s.version_tag],
      :config => Chandler::Tasks.config
    )
    push.call
  end
end

module Chandler
  module Tasks
    def self.config
      @configuration ||= Chandler::Configuration.new
    end

    def self.configure
      yield(config)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chandler-0.9.0 lib/chandler/tasks.rb
chandler-0.8.0 lib/chandler/tasks.rb
chandler-0.7.0 lib/chandler/tasks.rb
chandler-0.6.0 lib/chandler/tasks.rb