lib/bowline/initializer.rb in maccman-bowline-0.3.6 vs lib/bowline/initializer.rb in maccman-bowline-0.3.7
- old
+ new
@@ -183,12 +183,12 @@
options = {
:lib => dep.name
}.merge(dep.options)
begin
- gem dep.name, *dep.versions
- require options[:lib]
+ activated = gem(dep.name, *dep.versions)
+ require(options[:lib]) if activated && options[:lib]
rescue LoadError => e
puts "was unable to require #{dep.name} as '#{options[:lib]}'
Reason: #{e.class.name} error raised with message: #{e.message}"
end
end
@@ -566,10 +566,12 @@
false
end
def default_gems
gems = []
- gems << Dependencies::Dependency.new("bowline", Bowline::Version::STRING)
+ gems << Dependencies::Dependency.new(
+ "bowline", Bowline::Version::STRING, :lib => false
+ )
gems << Dependencies::Dependency.new("activesupport")
gems
end
def default_gem_path
\ No newline at end of file