ragel-array.gemspec in ragel-array-0.1.0 vs ragel-array.gemspec in ragel-array-0.1.1

- old
+ new

@@ -1,32 +1,41 @@ # frozen_string_literal: true -lib = File.expand_path('lib', __dir__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'ragel/array/version' +require_relative 'lib/ragel/array/version' +version = Ragel::Array::VERSION +repository = 'https://github.com/kddnewton/ragel-array' + Gem::Specification.new do |spec| spec.name = 'ragel-array' - spec.version = Ragel::Array::VERSION - spec.authors = ['Kevin Deisz'] - spec.email = ['kevin.deisz@gmail.com'] + spec.version = version + spec.authors = ['Kevin Newton'] + spec.email = ['kddnewton@gmail.com'] spec.summary = 'Provides an efficient uint8_t array' - spec.homepage = 'https://github.com/kddeisz/ragel-array' + spec.homepage = repository spec.license = 'MIT' - spec.files = Dir.chdir(__dir__) do + spec.metadata = { + 'bug_tracker_uri' => "#{repository}/issues", + 'changelog_uri' => "#{repository}/blob/v#{version}/CHANGELOG.md", + 'source_code_uri' => repository, + 'rubygems_mfa_required' => 'true' + } + + spec.files = Dir.chdir(__dir__) do `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/}) end end + spec.bindir = 'exe' spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] spec.extensions = ['ext/ragel/array/extconf.rb'] spec.add_development_dependency 'bundler', '~> 2' spec.add_development_dependency 'minitest', '~> 5' spec.add_development_dependency 'rake', '~> 13' spec.add_development_dependency 'rake-compiler', '~> 1' - spec.add_development_dependency 'rubocop', '~> 0.90' + spec.add_development_dependency 'rubocop', '~> 1.12' end