Skip to content

Commit

Permalink
Fixing FFI not loading in debian
Browse files Browse the repository at this point in the history
  • Loading branch information
navaneeth committed May 16, 2015
1 parent bd3c176 commit fed0a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions varnamc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Usage - varnamc options <args>
=end

def gem_available?(name)
Gem::Specification.find_by_name(name)
rescue Gem::LoadError
require name
rescue LoadError
false
end

Expand Down

0 comments on commit fed0a35

Please sign in to comment.