Skip to content

Commit

Permalink
Skip gems that are not found
Browse files Browse the repository at this point in the history
  • Loading branch information
larsch committed Jan 13, 2015
1 parent b00efed commit 74e1c44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/ocra
Expand Up @@ -468,8 +468,8 @@ EOF
mod.constants.each do |const|
# Module::Config causes warning on Ruby 1.9.3 - prevent autoloading
next if Module === mod && const == :Config

if mod.autoload?(const)
Ocra.msg "Attempting to trigger autoload of #{mod}::#{const}"
begin
mod.const_get(const)
rescue NameError
Expand Down Expand Up @@ -654,6 +654,11 @@ EOF
gem_root_files = nil
files = []

unless gem_root.directory?
Ocra.warn "Gem #{spec.full_name} root folder was not found, skipping"
next
end

# Find the selected files
include.each do |set|
case set
Expand Down

0 comments on commit 74e1c44

Please sign in to comment.