dirt-textify.gemspec in ghostwriter-0.3.0 vs dirt-textify.gemspec in ghostwriter-0.4.0
- old
+ new
@@ -1,27 +1,37 @@
-# 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 'ghostwriter/version'
-Gem::Specification.new do |gemspec|
- gemspec.name = 'ghostwriter'
- gemspec.version = Ghostwriter::VERSION
- gemspec.authors = ['Robin Miller']
- gemspec.email = ['robin@tenjin.ca']
+Gem::Specification.new do |spec|
+ spec.name = 'ghostwriter'
+ spec.version = Ghostwriter::VERSION
+ spec.authors = ['Robin Miller']
+ spec.email = ['robin@tenjin.ca']
- gemspec.summary = %q{Intelligently extracts plaintext from an HTML document.}
- gemspec.description = %q{Transforms HTML into plaintext while preserving legibility and functionality. }
- gemspec.homepage = 'https://github.com/TenjinInc/ghostwriter'
- gemspec.license = 'MIT'
+ spec.summary = 'Intelligently extracts plaintext from an HTML document.'
+ spec.description = <<~DESC
+ Transforms HTML into plaintext while preserving legibility and functionality.
+ DESC
+ spec.homepage = 'https://github.com/TenjinInc/ghostwriter'
+ spec.license = 'MIT'
- gemspec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
- gemspec.bindir = 'exe'
- gemspec.executables = gemspec.files.grep(%r{^exe/}) { |f| File.basename(f) }
- gemspec.require_paths = ['lib']
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
+ f.match(%r{^(test|spec|features)/})
+ end
- gemspec.add_dependency 'nokogiri', '~> 1.6'
+ spec.bindir = 'exe'
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.require_paths = ['lib']
- gemspec.add_development_dependency 'bundler', '~> 1.10'
- gemspec.add_development_dependency 'rake', '~> 10.0'
- gemspec.add_development_dependency 'rspec', '~> 3.3'
+ spec.required_ruby_version = '~> 2.4'
+
+ spec.add_dependency 'nokogiri', '= 1.8.4'
+
+ spec.add_development_dependency 'bundler', '~> 2.2'
+ spec.add_development_dependency 'rake', '~> 13.0'
+ spec.add_development_dependency 'rspec', '~> 3.3'
+ spec.add_development_dependency 'rubocop', '~> 1.11'
+ spec.add_development_dependency 'rubocop-performance', '~> 1.10'
end