Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…e built independently
  • Loading branch information...
commit a94936fb24e5ef7c09c56ea982b2aa4e1a9e7229 1 parent 43db36d
@winton authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.