Sha256: dc24fd6de7343da7d16f9b90c72125bfe258d6dd54e4fb4fdf03cf1068d1df58

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

# -*- encoding: utf-8 -*-
root = File.expand_path('../', __FILE__)
lib = "#{root}/lib"
$:.unshift lib unless $:.include?(lib)
 
require 'active_wrapper/gems'
ActiveWrapper::Gems.gemset ||= ENV['GEMSET'] || :default

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

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

  s.executables = `cd #{root} && git ls-files -- {bin}/*`.split("\n").collect { |f| File.basename(f) }
  s.files = `cd #{root} && git ls-files`.split("\n")
  s.require_paths = %w(lib)
  s.test_files = `cd #{root} && git ls-files -- {features,test,spec}/*`.split("\n")
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
active_wrapper-solo-0.4.4 active_wrapper.gemspec
active_wrapper-ar2-0.4.4 active_wrapper.gemspec
active_wrapper-0.4.4 active_wrapper.gemspec
active_wrapper-solo-0.4.3 active_wrapper.gemspec
active_wrapper-ar2-0.4.3 active_wrapper.gemspec
active_wrapper-0.4.3 active_wrapper.gemspec