# frozen_string_literal: true

require File.expand_path('../lib/twingly/version', __FILE__)

Gem::Specification.new do |s|
  s.name        = "twingly-url"
  s.version     = Twingly::URL::VERSION
  s.platform    = Gem::Platform::RUBY
  s.authors     = ["Twingly AB"]
  s.email       = ["support@twingly.com"]
  s.homepage    = "http://github.com/twingly/twingly-url"
  s.summary     = "Ruby library for URL handling"
  s.description = "Twingly URL tools"
  s.license     = "MIT"
  s.required_ruby_version = ">= 2.5"

  s.add_dependency "addressable", "~> 2.6"
  s.add_dependency "public_suffix", ">= 3.0.1", "< 5.0"

  s.add_development_dependency "rake", "~> 12"
  s.add_development_dependency "rspec", "~> 3"
  s.add_development_dependency "pry", "~> 0"

  s.files        = Dir.glob("{lib}/**/*") + %w(README.md)
  s.require_path = 'lib'
end

# frozen_string_literal: true

require File.expand_path('../lib/twingly/version', __FILE__)

Gem::Specification.new do |s|
  s.name        = "twingly-url"
  s.version     = Twingly::URL::VERSION
  s.platform    = Gem::Platform::RUBY
  s.authors     = ["Twingly AB"]
  s.email       = ["support@twingly.com"]
  s.homepage    = "http://github.com/twingly/twingly-url"
  s.summary     = "Ruby library for URL handling"
  s.description = "Twingly URL tools"
  s.license     = "MIT"
  s.required_ruby_version = ">= 2.5"

  s.add_dependency "addressable", "~> 2.6"
  s.add_dependency "public_suffix", ">= 3.0.1", "< 6.0"

  s.add_development_dependency "rake", "~> 12"
  s.add_development_dependency "rspec", "~> 3"
  s.add_development_dependency "pry", "~> 0"

  s.files        = Dir.glob("{lib}/**/*") + %w(README.md)
  s.require_path = 'lib'
end

Allow use of `public_suffix` 5
Allow use of `public_suffix` 5

Changes in public_suffix looks fine to me, no breaking API changes what I can see:

* https://github.com/weppos/publicsuffix-ruby/blob/v5.0.0/CHANGELOG.md#500
* https://github.com/weppos/publicsuffix-ruby/compare/v4.0.7...v5.0.0

Addressable 2.8.1 was just released to allow use of public_suffix 5.x:
https://github.com/sporkmonger/addressable/blob/addressable-2.8.1/CHANGELOG.md#addressable-281
