Skip to content
Browse files

No longer need Gems.config.testing option, making gemspec so it can b…

…e built independently
  • Loading branch information...
1 parent 43db36d commit a94936fb24e5ef7c09c56ea982b2aa4e1a9e7229 @winton committed Dec 29, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −0 gem_template.gemspec
  2. +0 −1 lib/gem_template/gems.rb
  3. +0 −1 spec/gem_template/gems_spec.rb
View
6 gem_template.gemspec
@@ -1,4 +1,10 @@
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'gem_template/gems'
+GemTemplate::Gems.gemset ||= :default
+
Gem::Specification.new do |s|
GemTemplate::Gems.gemspec.hash.each do |key, value|
unless %w(dependencies development_dependencies).include?(key)
View
1 lib/gem_template/gems.rb
@@ -23,7 +23,6 @@ def initialize(hash)
Gems.config = SimpleStruct.new(
:gemsets => [ "#{File.expand_path('../../../', __FILE__)}/config/gemsets.yml" ],
:gemspec => "#{File.expand_path('../../../', __FILE__)}/config/gemspec.yml",
- :testing => false,
:warn => true
)
View
1 spec/gem_template/gems_spec.rb
@@ -9,7 +9,6 @@
GemTemplate::Gems.config.gemsets = [
"#{$root}/spec/fixtures/gemsets.yml"
]
- GemTemplate::Gems.config.testing = true
GemTemplate::Gems.config.warn = true
GemTemplate::Gems.gemspec true

0 comments on commit a94936f

Please sign in to comment.
Something went wrong with that request. Please try again.