url_canonicalize.gemspec in url_canonicalize-0.2.0 vs url_canonicalize.gemspec in url_canonicalize-0.2.1

- old
+ new

@@ -1,7 +1,8 @@ -# coding: utf-8 -lib = File.expand_path('../lib', __FILE__) +# frozen_string_literal: true + +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'url_canonicalize/version' Gem::Specification.new do |s| s.name = 'url_canonicalize' @@ -13,16 +14,17 @@ 'providing #canonicalize methods for the String, URI::HTTP'\ ', URI::HTTPS and Addressable::URI classes' s.homepage = 'https://github.com/dominicsayers/url_canonicalize' s.license = 'MIT' - s.files = `git ls-files`.split($RS).reject do |file| - file =~ /^spec\// - end + s.required_ruby_version = '>= 2.6.0' + s.files = `git ls-files`.split($RS).grep_v(%r{^spec/}) + s.test_files = [] s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } s.require_paths = ['lib'] - s.add_dependency 'addressable', '~> 2' # To normalize URLs - s.add_dependency 'nokogiri', '>= 1.8.2' # To look for <link rel="canonical" ...> in HTML + s.add_runtime_dependency 'addressable', '~> 2' # To normalize URLs + s.add_runtime_dependency 'nokogiri', '>= 1.13' # To look for <link rel="canonical" ...> in HTML + s.metadata['rubygems_mfa_required'] = 'true' end