about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-12-22 00:53:50 +0000
committerEric Wong <e@80x24.org>2013-12-22 00:57:01 +0000
commitfd686d65f23d8ab58cc40ab2035050bd8a1c35f6 (patch)
tree584f95581b79e8c1c24db7bd21a4f8025ae68f83
parent15fe9940c1218231bbae50ffc0310c6a23c385fc (diff)
downloadyahns-fd686d65f23d8ab58cc40ab2035050bd8a1c35f6.tar.gz
Having two ~> dependencies doesn't OR the dependency as intended.
In either case, assume 6.x is not compatible out-of-the box and
do not enable it.  While we're at it, document our dependency
policy for the test library.
-rw-r--r--yahns.gemspec9
1 files changed, 7 insertions, 2 deletions
diff --git a/yahns.gemspec b/yahns.gemspec
index e9de2f6..da88685 100644
--- a/yahns.gemspec
+++ b/yahns.gemspec
@@ -15,8 +15,13 @@ Gem::Specification.new do |s|
   s.add_dependency(%q<sendfile>, '~> 1.2.1')
   s.add_dependency(%q<unicorn>, '~> 4.6.3')
 
-  # minitest is standard in Ruby 2.0
-  s.add_development_dependency(%q<minitest>, '~> 4.3', '~> 5.0')
+  # minitest is standard in Ruby 2.0, 4.3 is packaged with Ruby 2.0.0,
+  # 4.7.5 with 2.1.  We work with minitest 5, too.  6.x does not exist
+  # at the time of this writing.  We should always be compatible with
+  # minitest (or test-unit) library packaged with the latest official
+  # Matz Ruby release.
+  s.add_development_dependency(%q<minitest>, '>= 4.3', '< 6.0')
+
   s.homepage = "http://yahns.yhbt.net/README"
   s.licenses = "GPLv3+"
 end