Sha256: 50e2dad1244c32035ccdcc4ae896156b9f34c7c4c12f3d77804f9282274958f1
Contents?: true
Size: 1.07 KB
Versions: 11
Compression:
Stored size: 1.07 KB
Contents
# -*- encoding: utf-8 -*- root = File.expand_path('../', __FILE__) lib = "#{root}/lib" $:.unshift lib unless $:.include?(lib) require 'stasis/gems' Stasis::Gems.gemset ||= ENV['GEMSET'] || :default Gem::Specification.new do |s| Stasis::Gems.gemspec.hash.each do |key, value| if key == 'name' && Stasis::Gems.gemset != :default s.name = "#{value}-#{Stasis::Gems.gemset}" elsif key == 'summary' && Stasis::Gems.gemset == :solo s.summary = value + " (no dependencies)" elsif !%w(dependencies development_dependencies).include?(key) s.send "#{key}=", value end end Stasis::Gems.dependencies.each do |g| s.add_dependency g.to_s, Stasis::Gems.versions[g] end Stasis::Gems.development_dependencies.each do |g| s.add_development_dependency g.to_s, Stasis::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
11 entries across 11 versions & 1 rubygems