require 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/require.rb +5 -1
  2. data/require.rb +1 -1
  3. metadata +2 -2
data/lib/require.rb CHANGED
@@ -89,7 +89,11 @@ class Require
89
89
  def self.require_gem!(name, overwrite_version=nil, overwrite_dsl=nil)
90
90
  gem = get(:gem, name)
91
91
  if gem
92
- Kernel.send :gem, name.to_s, overwrite_version || gem.version
92
+ if overwrite_version || gem.version
93
+ Kernel.send :gem, name.to_s, overwrite_version || gem.version
94
+ else
95
+ Kernel.send :gem, name.to_s
96
+ end
93
97
  (overwrite_dsl || gem.dsl).all(:require).each do |dsl|
94
98
  require! dsl.path
95
99
  end
data/require.rb CHANGED
@@ -11,7 +11,7 @@ Require File.dirname(__FILE__) do
11
11
  name 'require'
12
12
  homepage "http://github.com/winton/#{name}"
13
13
  summary "Manage your project's dependencies with a pretty DSL"
14
- version '0.1.6'
14
+ version '0.1.7'
15
15
  end
16
16
 
17
17
  rakefile do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: require
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winton Welsh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-28 00:00:00 -08:00
12
+ date: 2010-02-01 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15