Gem::Specification.new do |s|
  s.name        = 'rack-www'
  s.version     = '2.2.0'
  s.date        = '2015-12-02'
  s.homepage    = 'https://github.com/stjhimy/rack-www'
  s.email       = 'stjhimy@gmail.com'
  s.summary     = 'Force redirects to a any given subdomain.'
  s.description = 'Rack middleware to force subdomain redirects.'
  s.licenses    = ['MIT']
  s.authors     = ['Jhimy Fernandes Villar']

  s.files         = `git ls-files`.split("\n")
  s.test_files    = `git ls-files -- test/*`.split("\n")
  s.require_paths = ['lib']
  s.required_ruby_version = '>= 1.9.3'

  s.add_runtime_dependency 'rack', '~> 1.0'
  s.add_development_dependency 'rake', '~> 10.4'
  s.add_development_dependency 'rack-test', '~> 0.6'
  s.add_development_dependency 'minitest', '~> 5.8'
  s.add_development_dependency 'guard', '~> 2.13'
  s.add_development_dependency 'guard-minitest', '~> 2.4'
  s.add_development_dependency 'guard-rubocop', '~> 1.2'
end

Gem::Specification.new do |s|
  s.name        = 'rack-www'
  s.version     = '2.2.0'
  s.date        = '2015-12-02'
  s.homepage    = 'https://github.com/stjhimy/rack-www'
  s.email       = 'stjhimy@gmail.com'
  s.summary     = 'Force redirects to a any given subdomain.'
  s.description = 'Rack middleware to force subdomain redirects.'
  s.licenses    = ['MIT']
  s.authors     = ['Jhimy Fernandes Villar']

  s.files         = `git ls-files`.split("\n")
  s.test_files    = `git ls-files -- test/*`.split("\n")
  s.require_paths = ['lib']
  s.required_ruby_version = '>= 1.9.3'

  s.add_runtime_dependency 'rack', '< 3.0'
  s.add_development_dependency 'rake', '~> 10.4'
  s.add_development_dependency 'rack-test', '~> 0.6'
  s.add_development_dependency 'minitest', '~> 5.8'
  s.add_development_dependency 'guard', '~> 2.13'
  s.add_development_dependency 'guard-minitest', '~> 2.4'
  s.add_development_dependency 'guard-rubocop', '~> 1.2'
end

Make compatibility with rack v2.x explicit
Make compatibility with rack v2.x explicit

So that rack-www can be used in projects that use rack v2.x, e.g.
those based on rails v5.x as well as with those that depend on rack
v1.x