solidus_braintree.gemspec in solidus_braintree-1.4.0 vs solidus_braintree.gemspec in solidus_braintree-2.0.0

- old
+ new

@@ -1,43 +1,44 @@ -# coding: utf-8 -lib = File.expand_path('../lib', __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'solidus_braintree/version' +# frozen_string_literal: true +require_relative 'lib/solidus_braintree/version' + Gem::Specification.new do |spec| - spec.name = "solidus_braintree" - spec.version = SolidusBraintree::VERSION - spec.authors = ["Solidus Team"] - spec.email = ["contact@solidus.io"] + spec.name = 'solidus_braintree' + spec.version = SolidusBraintree::VERSION + spec.authors = ['Stembolt'] + spec.email = 'braintree+gemfile@stembolt.com' - spec.summary = %q{Adds Solidus support for Braintree v.zero Gateway.} - spec.description = %q{Adds Solidus support for Braintree v.zero Gateway.} - spec.homepage = "https://solidus.io" - spec.license = "MIT" + spec.summary = 'Officially supported Braintree extension' + spec.description = 'Uses the javascript API for seamless braintree payments' + spec.homepage = 'https://github.com/solidusio/solidus_braintree' + spec.license = 'BSD-3-Clause' - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['source_code_uri'] = 'https://github.com/solidusio/solidus_braintree' + spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_braintree/blob/master/CHANGELOG.md' + + spec.required_ruby_version = Gem::Requirement.new('>= 2.5', '< 4') + + # 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") } + + 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_api", [">= 1.0.0", "< 4"] - spec.add_dependency "solidus_core", [">= 1.0.0", "< 4"] - spec.add_dependency "solidus_support" - spec.add_dependency "braintree", "~> 2.46" + spec.add_dependency 'activemerchant', '~> 1.48' + spec.add_dependency 'braintree', '~> 3.4' + spec.add_dependency 'solidus_api', ['>= 2.4.0', '< 4'] + spec.add_dependency 'solidus_core', ['>= 2.4.0', '< 4'] + spec.add_dependency 'solidus_support', ['>= 0.8.1', '< 1'] - spec.add_development_dependency "bundler", "~> 1.10" - spec.add_development_dependency "rake", "~> 10.0" - spec.add_development_dependency 'factory_bot', '~> 4.4' - spec.add_development_dependency 'rspec-rails' - spec.add_development_dependency 'capybara', '~> 2.18' - spec.add_development_dependency 'capybara-screenshot' - spec.add_development_dependency 'webdrivers' - spec.add_development_dependency 'ffaker' - spec.add_development_dependency "rspec" - spec.add_development_dependency "pry" - spec.add_development_dependency "byebug" - spec.add_development_dependency 'sqlite3' - spec.add_development_dependency 'database_cleaner', '~> 1.2' - spec.add_development_dependency "vcr", '~> 3.0' - spec.add_development_dependency "webmock" - spec.add_development_dependency 'simplecov' + spec.add_development_dependency 'rails-controller-testing' + spec.add_development_dependency 'solidus_dev_support', '~> 2.5' + spec.add_development_dependency 'vcr' + spec.add_development_dependency 'webmock' + + spec.post_install_message = "If you're upgrading to v2.0.0, please see the README for upgrade instructions." end