Sha256: 12fd3cd18ef464620286b46608ab3a655f8afddbc4c4780b2ff09d0b362629d7

Contents?: true

Size: 1.84 KB

Versions: 78

Compression:

Stored size: 1.84 KB

Contents

$:.unshift File.expand_path("../lib", __FILE__)
require "dpl/version"

def gemspec_for(provider_name=nil, runtime_dependencies=[])
  Gem::Specification.new do |s|

    s.name                  = ["dpl", provider_name].compact.join("-")
    s.author                = "Konstantin Haase"
    s.email                 = "konstantin.mailinglists@googlemail.com"
    s.homepage              = "https://github.com/travis-ci/dpl"
    s.summary               = %q{deploy tool}
    s.description           = %q{deploy tool abstraction for clients}
    s.license               = 'MIT'

    s.require_path          = 'lib'
    s.required_ruby_version = '>= 2.2'

    # set up version
    s.version = ENV['DPL_VERSION'] || DPL::VERSION

    # dependencies
    if provider_name
      s.add_runtime_dependency 'dpl', s.version
    end

    runtime_dependencies.each do |part|
      s.add_runtime_dependency *part
    end

    s.add_development_dependency 'rspec'
    s.add_development_dependency 'rspec-its'
    s.add_development_dependency 'rake'
    s.add_development_dependency 'json_pure'
    s.add_development_dependency 'tins'
    s.add_development_dependency 'coveralls'
    s.add_development_dependency 'highline'
    s.add_development_dependency 'term-ansicolor'
    s.add_development_dependency 'faraday'

    # set up files
    if provider_name
      s.files       = `git ls-files`.split("\n").grep(Regexp.new provider_name.to_s)
      s.test_files  = `git ls-files -- {test,spec,features}/*`.split("\n").grep(Regexp.new provider_name.to_s)
    else
      s.files      = `git ls-files`.split("\n").reject {|f| f =~ Regexp.new("provider/")}
      s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject {|f| f =~ Regexp.new("provider/")}
    end
    s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }.grep(Regexp.new provider_name.to_s)

   end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
dpl-1.10.4.travis.3030.6 gemspec_helper.rb
dpl-1.10.3 gemspec_helper.rb
dpl-1.10.3.travis.3021.6 gemspec_helper.rb
dpl-1.10.4.travis.3022.6 gemspec_helper.rb
dpl-1.10.3.travis.3020.6 gemspec_helper.rb
dpl-1.10.3.travis.3017.6 gemspec_helper.rb
dpl-1.10.3.travis.3014.6 gemspec_helper.rb
dpl-1.10.2 gemspec_helper.rb
dpl-1.10.3.travis.3002.6 gemspec_helper.rb
dpl-1.10.2.travis.2993.6 gemspec_helper.rb
dpl-1.10.2.travis.2992.6 gemspec_helper.rb
dpl-1.10.2.travis.2987.6 gemspec_helper.rb
dpl-1.10.2.travis.2979.6 gemspec_helper.rb
dpl-1.10.2.travis.2976.6 gemspec_helper.rb
dpl-1.10.1 gemspec_helper.rb
dpl-1.10.2.travis.2966.6 gemspec_helper.rb
dpl-1.10.1.travis.2957.6 gemspec_helper.rb
dpl-1.10.1.travis.2956.6 gemspec_helper.rb
dpl-1.10.1.travis.2947.6 gemspec_helper.rb
dpl-1.10.0 gemspec_helper.rb