Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Attempt to auto-load 'ore/specification'.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 9, 2011
1 parent 648bf74 commit 840c545
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dm-types-legacy.gemspec
Expand Up @@ -5,6 +5,11 @@ begin
# custom logic here
end
rescue NameError
STDERR.puts "The 'dm-types-legacy.gemspec' file requires Ore."
STDERR.puts "Run `gem install ore-core` to install Ore."
begin
require 'ore/specification'
retry
rescue LoadError
STDERR.puts "The 'dm-types-legacy.gemspec' file requires Ore."
STDERR.puts "Run `gem install ore-core` to install Ore."
end
end

0 comments on commit 840c545

Please sign in to comment.