Skip to content

Commit

Permalink
gemspec: relax Ruby version requirement for old RubyGems
Browse files Browse the repository at this point in the history
Older RubyGems (1.8.23.2 at least) does not seem to support
multiple version requirements for the Ruby version; so drop
the lower 1.9.3 requirement for now.
  • Loading branch information
Eric Wong committed Nov 1, 2015
1 parent b302eb1 commit 347fcfa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions unicorn.gemspec
Expand Up @@ -25,7 +25,11 @@ Gem::Specification.new do |s|
s.files = manifest
s.homepage = Olddoc.config['rdoc_url']
s.test_files = test_files
s.required_ruby_version = [ '>= 1.9.3', '< 3.0' ]

# technically we need ">= 1.9.3", too, but avoid the array here since
# old rubygems versions (1.8.23.2 at least) do not support multiple
# version requirements here.
s.required_ruby_version = '< 3.0'

# for people that are absolutely stuck on Rails 2.3.2 and can't
# up/downgrade to any other version, the Rack dependency may be
Expand All @@ -38,5 +42,9 @@ Gem::Specification.new do |s|
s.add_development_dependency('test-unit', '~> 3.0')
s.add_development_dependency('olddoc', '~> 1.0')

s.licenses = ["GPLv2+", "Ruby 1.8"]
# Note: To avoid ambiguity, we intentionally avoid the SPDX-compatible
# 'Ruby' here since Ruby 1.9.3 switched to BSD-2-Clause, but we
# inherited our license from Mongrel when Ruby was at 1.8.
# We cannot automatically switch licenses when Ruby changes.
s.licenses = ['GPL-2.0+', 'Ruby-1.8']
end

0 comments on commit 347fcfa

Please sign in to comment.