lib/gems.rb in mack-0.8.2 vs lib/gems.rb in mack-0.8.3
- old
+ new
@@ -1,5 +1,6 @@
+require 'mack-facets'
require File.join(File.dirname(__FILE__), 'mack', 'core_extensions', 'gem_kernel')
path = File.expand_path(File.join(File.dirname(__FILE__), 'gems'))
Gem.set_paths(path)
@@ -7,9 +8,13 @@
full_gem_name = File.basename(p)
version = full_gem_name.match(/([\d\.?]+)/).to_s
gem_name = full_gem_name.gsub("-#{version}", '')
$:.unshift(File.join(p, 'lib'))
begin
- gem gem_name, "~> #{version}"
+ if v1_9?
+ gem gem_name
+ else
+ gem gem_name, "~> #{version}"
+ end
rescue Gem::LoadError
end
end
\ No newline at end of file