solidus_stripe.gemspec in solidus_stripe-4.0.0 vs solidus_stripe.gemspec in solidus_stripe-4.1.0

- old
+ new

@@ -1,40 +1,37 @@ # frozen_string_literal: true -$:.push File.expand_path('lib', __dir__) -require 'solidus_stripe/version' +require_relative 'lib/solidus_stripe/version' -Gem::Specification.new do |s| - s.name = 'solidus_stripe' - s.version = SolidusStripe::VERSION - s.summary = "Stripe Payment Method for Solidus" - s.description = s.summary - s.required_ruby_version = ">= 2.2" +Gem::Specification.new do |spec| + spec.name = 'solidus_stripe' + spec.version = SolidusStripe::VERSION + spec.authors = ['Solidus Team'] + spec.email = 'contact@solidus.io' - s.author = "Solidus Team" - s.email = "contact@solidus.io" - s.homepage = "https://solidus.io" - s.license = 'BSD-3' + spec.summary = 'Stripe Payment Method for Solidus' + spec.description = 'Stripe Payment Method for Solidus' + spec.homepage = 'https://github.com/solidusio/solidus_stripe#readme' + spec.license = 'BSD-3' - if s.respond_to?(:metadata) - s.metadata["homepage_uri"] = s.homepage if s.homepage - s.metadata["source_code_uri"] = s.homepage if s.homepage - end + spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['source_code_uri'] = 'https://github.com/solidusio/solidus_stripe' + spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_stripe/blob/master/CHANGELOG.md' - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- spec/*`.split("\n") - s.require_path = "lib" - s.requirements << "none" + spec.required_ruby_version = Gem::Requirement.new('~> 2.4') - s.bindir = "exe" - s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } + # 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. + files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0") } - s.add_dependency 'solidus_core', ['>= 2.3', '< 3'] - s.add_dependency 'solidus_support', '~> 0.5' - # ActiveMerchant v1.58 through v1.59 introduced a breaking change - # to the stripe gateway. - # - # This was resolved in v1.60, but we still need to skip 1.58 & 1.59. - s.add_dependency "activemerchant", ">= 1.100" # includes "Stripe Payment Intents: Fix fallback for Store" + 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"] - s.add_development_dependency 'solidus_dev_support' + spec.add_dependency 'solidus_core', ['>= 2.3', '< 3'] + spec.add_dependency 'solidus_support', '~> 0.5' + spec.add_dependency 'activemerchant', '>= 1.100' + + spec.add_development_dependency 'solidus_dev_support' end