summaryrefslogtreecommitdiff
path: root/bundler.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'bundler.gemspec')
-rw-r--r--bundler.gemspec22
1 files changed, 7 insertions, 15 deletions
diff --git a/bundler.gemspec b/bundler.gemspec
index bf0d532c01..6ce881e51a 100644
--- a/bundler.gemspec
+++ b/bundler.gemspec
@@ -1,11 +1,10 @@
-# coding: utf-8
# frozen_string_literal: true
begin
- require File.expand_path("../lib/bundler/version", __FILE__)
+ require_relative "lib/bundler/version"
rescue LoadError
# for Ruby core repository
- require File.expand_path("../version", __FILE__)
+ require_relative "version"
end
Gem::Specification.new do |s|
@@ -32,24 +31,17 @@ Gem::Specification.new do |s|
}
end
- if s.version >= Gem::Version.new("2.a".dup)
- s.required_ruby_version = ">= 2.3.0"
- s.required_rubygems_version = ">= 2.5.0"
- else
- s.required_ruby_version = ">= 1.8.7"
- s.required_rubygems_version = ">= 1.3.6"
- end
+ s.required_ruby_version = ">= 2.3.0"
+ s.required_rubygems_version = ">= 2.5.0"
s.add_development_dependency "automatiek", "~> 0.1.0"
- s.add_development_dependency "mustache", "0.99.6"
s.add_development_dependency "rake", "~> 12.0"
- s.add_development_dependency "rdiscount", "~> 2.2"
s.add_development_dependency "ronn", "~> 0.7.3"
s.add_development_dependency "rspec", "~> 3.6"
- s.add_development_dependency "rubocop", "= 0.50.0"
+ s.add_development_dependency "rubocop", "= 0.68.1"
+ s.add_development_dependency "rubocop-performance", "~> 1.1"
- base_dir = File.dirname(__FILE__).gsub(%r{([^A-Za-z0-9_\-.,:\/@\n])}, "\\\\\\1")
- s.files = IO.popen("git -C #{base_dir} ls-files -z", &:read).split("\x0").select {|f| f.match(%r{^(lib|exe)/}) }
+ s.files = Dir.glob("{lib,exe}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
# we don't check in man pages, but we need to ship them because
# we use them to generate the long-form help for each command.