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