Skip to content
This repository
tree: f29a2e95b9
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (26 sloc) 1.114 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)

require 'acts_as_archive/gems'
ActsAsArchive::Gems.gemset ||= ENV['GEMSET'] || :default

Gem::Specification.new do |s|
  ActsAsArchive::Gems.gemspec.hash.each do |key, value|
    if key == 'name' && ActsAsArchive::Gems.gemset != :default
      s.name = "#{value}-#{ActsAsArchive::Gems.gemset}"
    elsif key == 'summary' && ActsAsArchive::Gems.gemset == :solo
      s.summary = value + " (no dependencies)"
    elsif !%w(dependencies development_dependencies).include?(key)
      s.send "#{key}=", value
    end
  end

  ActsAsArchive::Gems.dependencies.each do |g|
    s.add_dependency g.to_s, ActsAsArchive::Gems.versions[g]
  end
  
  ActsAsArchive::Gems.development_dependencies.each do |g|
    s.add_development_dependency g.to_s, ActsAsArchive::Gems.versions[g]
  end

  s.executables = `git ls-files -- {bin}/*`.split("\n").collect { |f| File.basename(f) }
  s.files = `git ls-files`.split("\n")
  s.require_paths = %w(lib)
  s.test_files = `git ls-files -- {features,test,spec}/*`.split("\n")
end
Something went wrong with that request. Please try again.