Gem::Specification.new do |gem|
  gem.name         = "tus-server"
  gem.version      = "2.0.0"

  gem.required_ruby_version = ">= 2.2"

  gem.summary      = "Ruby server implementation of tus.io, the open protocol for resumable file uploads."

  gem.homepage     = "https://github.com/janko-m/tus-ruby-server"
  gem.authors      = ["Janko Marohnić"]
  gem.email        = ["janko.marohnic@gmail.com"]
  gem.license      = "MIT"

  gem.files        = Dir["README.md", "LICENSE.txt", "CHANGELOG.md", "lib/**/*.rb", "*.gemspec"]
  gem.require_path = "lib"

  gem.add_dependency "roda", "~> 3.0"

  gem.add_development_dependency "rake", "~> 11.1"
  gem.add_development_dependency "minitest", "~> 5.8"
  gem.add_development_dependency "rack-test_app"
  gem.add_development_dependency "cucumber"
  gem.add_development_dependency "mongo"
  gem.add_development_dependency "aws-sdk-s3", "~> 1.2"
end

Gem::Specification.new do |gem|
  gem.name         = "tus-server"
  gem.version      = "2.0.0"

  gem.required_ruby_version = ">= 2.2"

  gem.summary      = "Ruby server implementation of tus.io, the open protocol for resumable file uploads."

  gem.homepage     = "https://github.com/janko-m/tus-ruby-server"
  gem.authors      = ["Janko Marohnić"]
  gem.email        = ["janko.marohnic@gmail.com"]
  gem.license      = "MIT"

  gem.files        = Dir["README.md", "LICENSE.txt", "CHANGELOG.md", "lib/**/*.rb", "*.gemspec"]
  gem.require_path = "lib"

  gem.add_dependency "roda", ">= 2.27", "< 4"

  gem.add_development_dependency "rake", "~> 11.1"
  gem.add_development_dependency "minitest", "~> 5.8"
  gem.add_development_dependency "rack-test_app"
  gem.add_development_dependency "cucumber"
  gem.add_development_dependency "mongo"
  gem.add_development_dependency "aws-sdk-s3", "~> 1.2"
end

Add back support for Roda 2.x
Add back support for Roda 2.x

Someone might be using tus-ruby-server with Roda 2.x, and they may not
wish to upgrade to Roda 3 just to get the latest changes.

There is no need to stop supporting Roda 2.x, we can just lock the
version which adds the feature of String/Integer class matchers as the
lowest version.

The reason we switched to this matchers in the first place is because on
Roda 3.x using "colon" identifiers in strings doesn't work anymore, at
least not by default.
