From db6d0dad115a126d0547c802010145015b01d5f0 Mon Sep 17 00:00:00 2001 From: Joe Yates Date: Thu, 27 Mar 2014 11:49:51 +0100 Subject: [PATCH] rake >= 10.2.x is not compatible with ruby 1.8 --- imap-backup.gemspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imap-backup.gemspec b/imap-backup.gemspec index c8a6f0f1..2c0b4d10 100644 --- a/imap-backup.gemspec +++ b/imap-backup.gemspec @@ -16,7 +16,11 @@ Gem::Specification.new do |gem| gem.require_paths = ['lib'] gem.version = Imap::Backup::VERSION - gem.add_runtime_dependency 'rake' + if RUBY_VERSION < '1.9' + gem.add_runtime_dependency 'rake', '< 10.2.0' + else + gem.add_runtime_dependency 'rake' + end gem.add_runtime_dependency 'highline' gem.add_runtime_dependency 'mail' if RUBY_VERSION < '1.9'