Skip to content
Newer
Older
100644 32 lines (27 sloc) 1.13 KB
4009d8d @winton No longer ignoring gemspec
authored
1 # -*- encoding: utf-8 -*-
b1e78b3 @winton Gems not getting any files (oops)
authored
2 root = File.expand_path('../', __FILE__)
1b3ee7b @winton Gems not getting any files (oops)
authored
3 lib = "#{root}/lib"
a94936f @winton No longer need Gems.config.testing option, making gemspec so it can b…
authored
4 $:.unshift lib unless $:.include?(lib)
5
c710d44 @winton First commit
authored
6 require 'timed_config/gems'
7 TimedConfig::Gems.gemset ||= ENV['GEMSET'] || :default
a94936f @winton No longer need Gems.config.testing option, making gemspec so it can b…
authored
8
4009d8d @winton No longer ignoring gemspec
authored
9 Gem::Specification.new do |s|
c710d44 @winton First commit
authored
10 TimedConfig::Gems.gemspec.hash.each do |key, value|
11 if key == 'name' && TimedConfig::Gems.gemset != :default
12 s.name = "#{value}-#{TimedConfig::Gems.gemset}"
13 elsif key == 'summary' && TimedConfig::Gems.gemset == :solo
347be43 @winton Fixing rake gem
authored
14 s.summary = value + " (no dependencies)"
b3f7765 @winton Adding ability to build a gem for every gemset (dependencies change b…
authored
15 elsif !%w(dependencies development_dependencies).include?(key)
eca33a4 @winton New system for specifying gem versions, gemspec info, activating gems
authored
16 s.send "#{key}=", value
17 end
18 end
4009d8d @winton No longer ignoring gemspec
authored
19
c710d44 @winton First commit
authored
20 TimedConfig::Gems.dependencies.each do |g|
21 s.add_dependency g.to_s, TimedConfig::Gems.versions[g]
efebcbe @winton Getting rid of bundler
authored
22 end
23
c710d44 @winton First commit
authored
24 TimedConfig::Gems.development_dependencies.each do |g|
25 s.add_development_dependency g.to_s, TimedConfig::Gems.versions[g]
4009d8d @winton No longer ignoring gemspec
authored
26 end
27
1b3ee7b @winton Gems not getting any files (oops)
authored
28 s.executables = `cd #{root} && git ls-files -- {bin}/*`.split("\n").collect { |f| File.basename(f) }
b1e78b3 @winton Gems not getting any files (oops)
authored
29 s.files = `cd #{root} && git ls-files`.split("\n")
eca33a4 @winton New system for specifying gem versions, gemspec info, activating gems
authored
30 s.require_paths = %w(lib)
b1e78b3 @winton Gems not getting any files (oops)
authored
31 s.test_files = `cd #{root} && git ls-files -- {features,test,spec}/*`.split("\n")
4009d8d @winton No longer ignoring gemspec
authored
32 end
Something went wrong with that request. Please try again.