From 2e75ab472ab796a6850bfdedfa09ef987fbfce71 Mon Sep 17 00:00:00 2001 From: Daniel Pepper Date: Mon, 26 Jun 2023 16:55:25 -0700 Subject: [PATCH] gemspec fixup --- rspec-uuid.gemspec | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/rspec-uuid.gemspec b/rspec-uuid.gemspec index 3476954..99d80e9 100644 --- a/rspec-uuid.gemspec +++ b/rspec-uuid.gemspec @@ -1,20 +1,16 @@ -package_name = File.basename(__FILE__).split(".")[0] -load Dir.glob("lib/**/version.rb")[0] - +require_relative "lib/rspec/uuid/version" package = RSpec::UUID - +package_name = "rspec-uuid" Gem::Specification.new do |s| - s.name = package_name - s.version = package.const_get "VERSION" s.authors = ["Daniel Pepper"] - s.summary = package.to_s s.description = "RSpec UUID matcher" + s.files = `git ls-files * ':!:spec'`.split("\n") s.homepage = "https://github.com/dpep/#{package_name}" s.license = "MIT" - - s.files = Dir.glob("lib/**/*") - s.test_files = Dir.glob("spec/**/*_spec.rb") + s.name = package_name + s.summary = package.to_s + s.version = package.const_get "VERSION" s.add_dependency "rspec-expectations", ">= 3"