ramsey_cop.gemspec in ramsey_cop-0.13.2 vs ramsey_cop.gemspec in ramsey_cop-0.14.0
- old
+ new
@@ -1,6 +1,6 @@
-lib = File.expand_path("../lib", __FILE__)
+lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "ramsey_cop/version"
Gem::Specification.new do |spec|
spec.name = "ramsey_cop"
@@ -11,16 +11,17 @@
spec.summary = "Ramsey style guides and shared style configs."
spec.homepage = "https://github.com/ramseyinhouse/ramsey-cop"
spec.license = "GPLv3"
spec.files = `git ls-files -z`.split("\x0").reject do |f|
- f.match(/^(test|spec|features)\//)
+ f.match(%r{^(test|spec|features)/})
end
spec.bindir = "exe"
- spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "rubocop", "~> 0.62"
+ spec.add_dependency "rubocop-performance"
spec.add_development_dependency "bundler", "~> 1.14"
spec.add_development_dependency "rake", "~> 12.3"
spec.add_development_dependency "rspec", "~> 3.0"
end