diff options
-rw-r--r-- | super_good-solidus_taxjar.gemspec | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/super_good-solidus_taxjar.gemspec b/super_good-solidus_taxjar.gemspec index f02feb4..b22c2ff 100644 --- a/super_good-solidus_taxjar.gemspec +++ b/super_good-solidus_taxjar.gemspec @@ -3,23 +3,26 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "super_good/solidus_taxjar/version" Gem::Specification.new do |spec| - spec.name = "super_good-solidus_taxjar" - spec.version = SuperGood::SolidusTaxJar::VERSION - spec.authors = ["Jared Norman"] - spec.email = ["jared@super.gd"] + spec.name = "super_good-solidus_taxjar" + spec.version = SuperGood::SolidusTaxJar::VERSION + spec.authors = ["Jared Norman"] + spec.email = ["jared@super.gd"] - spec.summary = "Support for using TaxJar to handle tax calculations in Solidus" - spec.description = spec.summary - spec.homepage = "https://github.com/SuperGoodSoft/solidus_taxjar" - spec.license = "MIT" + spec.summary = "Support for using TaxJar to handle tax calculations in Solidus" + spec.description = spec.summary + spec.homepage = "https://github.com/SuperGoodSoft/solidus_taxjar" + spec.license = 'BSD-3-Clause' + + spec.required_ruby_version = Gem::Requirement.new('~> 2.5') # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0") } + + spec.files = files.grep_v(%r{^(test|spec|features)/}) + spec.test_files = files.grep(%r{^(test|spec|features)/}) + spec.bindir = "exe" + spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.add_dependency "solidus_core", ">= 2.4.0" |