Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (27 sloc) 1.142 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
58db62b @winton First puggernaut commit
authored
6 require 'puggernaut/gems'
7 Puggernaut::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|
58db62b @winton First puggernaut commit
authored
10 Puggernaut::Gems.gemspec.hash.each do |key, value|
11 if key == 'name' && Puggernaut::Gems.gemset != :default
12 s.name = "#{value}-#{Puggernaut::Gems.gemset}"
13 elsif key == 'summary' && Puggernaut::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
58db62b @winton First puggernaut commit
authored
20 Puggernaut::Gems.dependencies.each do |g|
21 s.add_dependency g.to_s, Puggernaut::Gems.versions[g]
efebcbe @winton Getting rid of bundler
authored
22 end
23
58db62b @winton First puggernaut commit
authored
24 Puggernaut::Gems.development_dependencies.each do |g|
25 s.add_development_dependency g.to_s, Puggernaut::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.