with_last.gemspec in with_last-0.1.1 vs with_last.gemspec in with_last-0.2.0

- old
+ new

@@ -1,22 +1,24 @@ +# frozen_string_literal: true + require_relative 'lib/with_last/version' Gem::Specification.new do |spec| - spec.name = "with_last" + spec.name = 'with_last' spec.version = WithLast::VERSION - spec.authors = ["oieioi"] - spec.email = ["atsuinatsu.samuifuyu@gmail.com"] + spec.authors = ['oieioi'] + spec.email = ['atsuinatsu.samuifuyu@gmail.com'] - spec.summary = %q{Add `each_with_last` to Array} - spec.description = %q{Add `each_with_last` to Array} - spec.homepage = "https://github.com/oieioi/with_last.rb" - spec.license = "MIT" - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.summary = 'Add `with_last` to Enumerator and `each_with_last` to Enumerable' + spec.description = 'Add `with_last` to Enumerator and `each_with_last` to Enumerable' + spec.homepage = 'https://github.com/oieioi/with_last.rb' + spec.license = 'MIT' + spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = "https://github.com/oieioi/with_last.rb" - spec.metadata["changelog_uri"] = "https://github.com/oieioi/with_last.rb/releases" - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do + spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['source_code_uri'] = 'https://github.com/oieioi/with_last.rb' + spec.metadata['changelog_uri'] = 'https://github.com/oieioi/with_last.rb/releases' + spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end - spec.require_paths = ["lib"] + spec.require_paths = ['lib'] end