airports.gemspec in airports-1.0.0 vs airports.gemspec in airports-1.2.0

- old
+ new

@@ -1,41 +1,32 @@ -# coding: utf-8 -lib = File.expand_path('../lib', __FILE__) + +lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'airports/version' +require "airports/version" Gem::Specification.new do |spec| - spec.name = "airports" - spec.version = Airports::VERSION - spec.authors = ["Tim Rogers"] - spec.email = ["me@timrogers.co.uk"] + spec.name = "airports" + spec.version = Airports::VERSION + spec.authors = ["Tim Rogers"] + spec.email = ["me@timrogers.co.uk"] - spec.summary = %q{Access data on airports from around the world} - spec.description = %q{Access data on airports from around the world} - spec.homepage = "https://github.com/timrogers/airports" - spec.license = "MIT" + spec.summary = "Access data on airports from around the world" + spec.description = "Access data on airports from around the world" + spec.homepage = "https://github.com/timrogers/airports" + spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - - gem_dir = File.expand_path(File.dirname(__FILE__)) + "/" - `git submodule --quiet foreach pwd`.split($\).each do |submodule_path| - Dir.chdir(submodule_path) do - submodule_relative_path = submodule_path.sub gem_dir, "" - # issue git ls-files in submodule's directory and - # prepend the submodule path to create absolute file paths - `git ls-files`.split($\).each do |filename| - spec.files << "#{submodule_relative_path}/#{filename}" - end - end + spec.files = `git ls-files -z`.split("\x0").reject do |f| + f.match(%r{^(test|spec|features)/}) end spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.required_ruby_version = '>= 2.1' + spec.required_ruby_version = ">= 2.2" - spec.add_development_dependency "bundler", "~> 1.10" - spec.add_development_dependency "rake", "~> 10.0", ">= 10.0" - spec.add_development_dependency "rspec", "~> 3.3.0", ">= 3.3.0" - spec.add_development_dependency "rspec-its", "~> 1.2.0", ">= 1.2.0" - spec.add_development_dependency "pry", "~> 0.10.3", ">= 0.10.3" + spec.add_development_dependency "gc_ruboconfig", "~> 2.3.4" + spec.add_development_dependency "pry", "~> 0.10.3" + spec.add_development_dependency "rake", "~> 10.0" + spec.add_development_dependency "rspec", "~> 3.3.0" + spec.add_development_dependency "rspec-its", "~> 1.2.0" + spec.add_development_dependency "rspec_junit_formatter", "~> 0.3.0" end