Skip to content

Loading…

Pull request - Updated ruby_deploy #128

Merged
merged 1 commit into from

2 participants

@aspitz

I've updated ruby_deploy to use Gem::Specification instead of Gem.source_index

@Watson1978 Watson1978 merged commit 9a58220 into MacRuby:master
@Watson1978
MacRuby member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 11, 2012
  1. @aspitz
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/ruby_deploy
View
6 bin/ruby_deploy
@@ -169,11 +169,11 @@ class Deployer
def gem_deps_libdirs(gem_name)
# Locate gem spec.
require 'rubygems'
- gemspecs = Gem.source_index.find_name(gem_name)
- if gemspecs.size == 0
+ begin
+ gemspec = Gem::Specification::find_by_name(gem_name)
+ rescue Gem::LoadError
die "Cannot locate gem `#{gem_name}' in #{Gem.path}"
end
- gemspec = gemspecs.last
# Load dependencies libdirs first.
gem_libdirs = []
Something went wrong with that request. Please try again.