Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
add notices of deprecation to gemspec
Browse files Browse the repository at this point in the history
- post-install message
- updating summary and description

related to #83
  • Loading branch information
flavorjones committed Mar 24, 2019
1 parent 426808b commit 22ab763
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions chromedriver-helper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,45 @@ $:.push File.expand_path("../lib", __FILE__)
require "chromedriver/helper/version"

def windows?
RbConfig::CONFIG['target_os'] =~ /mingw32|mswin/
RbConfig::CONFIG["target_os"] =~ /mingw32|mswin/
end

Gem::Specification.new do |s|
s.name = "chromedriver-helper"
s.version = Chromedriver::Helper::VERSION
s.authors = ["Mike Dalessio"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/flavorjones/chromedriver-helper"
s.summary = "Easy installation and use of chromedriver."
s.description = "Easy installation and use of chromedriver, the Chromium project's selenium webdriver adapter."
s.licenses = ["MIT"]
s.name = "chromedriver-helper"
s.version = Chromedriver::Helper::VERSION
s.authors = ["Mike Dalessio"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/flavorjones/chromedriver-helper"
s.summary = "Deprecated in favor of the 'webdrivers' gem."
s.description = "Deprecated in favor of the 'webdrivers' gem as of 2019-03-31. See https://github.com/flavorjones/chromedriver-helper/issues/83"
s.licenses = ["MIT"]

s.post_install_message = <<EOM
+--------------------------------------------------------------------+
| |
| NOTICE: chromedriver-helper is deprecated after 2019-03-31. |
| |
| Please update to use the 'webdrivers' gem instead. |
| See https://github.com/flavorjones/chromedriver-helper/issues/83 |
| |
+--------------------------------------------------------------------+
EOM

begin
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
rescue Exception => e
warn "WARNING: could not set spec.files: #{e.class}: #{e}"
end
s.require_paths = ["lib"]

s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "rake", "~> 10.0"
s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "rake", "~> 10.0"
s.add_development_dependency "concourse", "~> 0.23"

s.add_runtime_dependency "nokogiri", "~> 1.8"
s.add_runtime_dependency "archive-zip", "~> 0.10"
s.add_runtime_dependency "nokogiri", "~> 1.8"
s.add_runtime_dependency "archive-zip", "~> 0.10"
end

0 comments on commit 22ab763

Please sign in to comment.