Relax rake dependency, satisfy both rake v10~ and v12~
With the gnupg fix landing in Debian 9.2 the upcoming weekend, I'll be finally able to backport schleuder for Debian stretch, making it a lot simpler to use it.
The rake versions currently look like the following:
Debian unstable 12.0.0-1
Debian stretch 10.5.0-2
Recently, we've upgraded rake because of the newer version in Debian unstable, see !88 (merged). There is a requirement in Debian to keep the delta between the version in Debian testing and in backports as small as possible, so I've need to find a way to satisfy the rake dependency will both versions.
Would the following patch work for this, i.e. work both with rake v10 and v12?
diff --git a/Gemfile.lock b/Gemfile.lock
index 2feeed1..83160cf 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -4,7 +4,7 @@ PATH
schleuder (3.1.2)
activerecord (~> 4.1)
mail-gpg (~> 0.3.0)
- rake (~> 12)
+ rake (>= 10.5.0)
sinatra (~> 1)
sinatra-contrib (~> 1)
sqlite3 (~> 1)
@@ -59,7 +59,7 @@ GEM
rack
rack-test (0.6.3)
rack (>= 1.0)
- rake (12.0.0)
+ rake (10.5.0)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
diff --git a/schleuder.gemspec b/schleuder.gemspec
index 41dbb8b..a0c489f 100644
--- a/schleuder.gemspec
+++ b/schleuder.gemspec
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.license = 'GPL-3.0'
s.add_runtime_dependency 'mail-gpg', '~> 0.3.0'
s.add_runtime_dependency 'activerecord', '~> 4.1'
- s.add_runtime_dependency 'rake', '~> 12'
+ s.add_runtime_dependency 'rake', '>= 10.5.0'
s.add_runtime_dependency 'sqlite3', '~> 1'
s.add_runtime_dependency 'sinatra', '~> 1'
s.add_runtime_dependency 'sinatra-contrib', '~> 1'
If so, I would like to ship this in schleuder 3.2.