Permalink
Browse files

Attempt to auto-load 'ore/specification'.

  • Loading branch information...
postmodern committed Feb 9, 2011
1 parent d93b2f9 commit 3f752d08ad66b30f81fff4552f92309e886f7955
Showing with 7 additions and 2 deletions.
  1. +7 −2 dm-is-counter_cacheable.gemspec
@@ -5,6 +5,11 @@ begin
# custom logic here
end
rescue NameError
- STDERR.puts "The 'contextify.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-is-counter_cacheable.gemspec' file requires Ore."
+ STDERR.puts "Run `gem install ore-core` to install Ore."
+ end
end

0 comments on commit 3f752d0

Please sign in to comment.