Sha256: c7a5743756e0b333a92651e45005bb69aa35c62dc6e1aba79840857d03b9d6e2

Contents?: true

Size: 1.05 KB

Versions: 69

Compression:

Stored size: 1.05 KB

Contents

require "gem_publisher/publisher"
require "gem_publisher/version"

module GemPublisher

  # Publish a gem based on the supplied gemspec via supplied method, iff this
  # version has not already been released and tagged in the origin Git
  # repository.
  #
  # Version is derived from the gemspec.
  #
  # If a remote tag matching the version already exists, nothing is done.
  # Otherwise, the gem is built, pushed, and tagged.
  #
  # Tags are of the form "v1.2.3" by default, and generated tags follow
  # this pattern; you can override this by passing in the :tag_prefix option.
  #
  # Method should be one of :rubygems or :gemfury, and the requisite
  # credentials for the corresponding push command line tools must exist.
  #
  # Returns the gem file name if a gem was published; nil otherwise. A
  # CliFacade::Error will be raised if a command fails.
  #
  def self.publish_if_updated(gemspec, method=:rubygems, options={})
    publisher = Publisher.new(gemspec, :tag_prefix => options.delete(:tag_prefix))
    publisher.publish_if_updated(method, options)
  end
end

Version data entries

69 entries across 65 versions & 18 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/gem_publisher-1.5.0/lib/gem_publisher.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/gem_publisher-1.5.0/lib/gem_publisher.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/gem_publisher-1.5.0/lib/gem_publisher.rb
logstash-codec-json-2.0.3 vendor/gems/gem_publisher-1.5.0/lib/gem_publisher.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/gem_publisher-1.5.0/lib/gem_publisher.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/gem_publisher-1.5.0/lib/gem_publisher.rb
gem_publisher-1.5.0 lib/gem_publisher.rb
gem_publisher-1.4.2 lib/gem_publisher.rb
gem_publisher-1.4.1 lib/gem_publisher.rb