Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Kill support for Ruby 1.8.7 and 1.9.2

  • Loading branch information...
commit 78990cf76e00e2a0540692d3ba318997f1c37076 1 parent b00f892
@weppos authored
Showing with 12 additions and 17 deletions.
  1. +0 −4 .travis.yml
  2. +9 −10 Rakefile
  3. +3 −3 public_suffix.gemspec
View
4 .travis.yml
@@ -1,12 +1,8 @@
language: ruby
rvm:
- - 1.8.7
- - 1.9.2
- 1.9.3
- 2.0.0
- - jruby-18mode
- jruby-19mode
- - rbx-18mode
- rbx-19mode
- ree
notifications:
View
19 Rakefile
@@ -1,5 +1,4 @@
require 'rubygems'
-require 'rubygems/package_task'
require 'bundler'
$:.unshift(File.dirname(__FILE__) + "/lib")
@@ -7,21 +6,21 @@ require 'public_suffix'
# Common package properties
-PKG_NAME = ENV['PKG_NAME'] || PublicSuffix::GEM
-PKG_VERSION = ENV['PKG_VERSION'] || PublicSuffix::VERSION
+PKG_NAME = PublicSuffix::GEM
+PKG_VERSION = PublicSuffix::VERSION
# Run test by default.
-task :default => :test
+task default: :test
spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
- s.summary = "Domain name parser based in the Public Suffix List."
+ s.summary = "Domain name parser based on the Public Suffix List."
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
- s.required_ruby_version = ">= 1.8.7"
+ s.required_ruby_version = ">= 1.9.3"
s.author = "Simone Carletti"
s.email = "weppos@weppos.net"
@@ -51,15 +50,15 @@ task :gemspec do
end
desc "Remove any temporary products, including gemspec"
-task :clean => [:clobber] do
+task clean: [:clobber] do
rm "#{spec.name}.gemspec" if File.file?("#{spec.name}.gemspec")
end
desc "Remove any generated file"
-task :clobber => [:clobber_package]
+task clobber: [:clobber_package]
desc "Package the library and generates the gemspec"
-task :package => [:gemspec]
+task package: [:gemspec]
require 'rake/testtask'
@@ -85,7 +84,7 @@ namespace :yardoc do
end
end
-task :clobber => "yardoc:clobber"
+task clobber: "yardoc:clobber"
desc "Open an irb session preloaded with this library"
View
6 public_suffix.gemspec
@@ -10,13 +10,13 @@ Gem::Specification.new do |s|
s.date = "2013-12-01"
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
s.email = "weppos@weppos.net"
- s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/public_suffix.rb", "lib/public_suffix/definitions.txt", "lib/public_suffix/domain.rb", "lib/public_suffix/errors.rb", "lib/public_suffix/list.rb", "lib/public_suffix/rule.rb", "lib/public_suffix/version.rb", "public_suffix.gemspec", "test/acceptance_test.rb", "test/test_helper.rb", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
+ s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/definitions.txt", "lib/public_suffix.rb", "lib/public_suffix/domain.rb", "lib/public_suffix/errors.rb", "lib/public_suffix/list.rb", "lib/public_suffix/rule.rb", "lib/public_suffix/version.rb", "public_suffix.gemspec", "test/acceptance_test.rb", "test/test_helper.rb", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
s.homepage = "http://www.simonecarletti.com/code/publicsuffix"
s.licenses = ["MIT"]
s.require_paths = ["lib"]
- s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
s.rubygems_version = "2.1.10"
- s.summary = "Domain name parser based in the Public Suffix List."
+ s.summary = "Domain name parser based on the Public Suffix List."
s.test_files = ["test/acceptance_test.rb", "test/test_helper.rb", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
if s.respond_to? :specification_version then
Please sign in to comment.
Something went wrong with that request. Please try again.