require 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/require.rb +5 -1
- data/require.rb +1 -1
- 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
|
-
|
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
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.
|
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
|
12
|
+
date: 2010-02-01 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|