Skip to content

Commit

Permalink
Merge pull request #148 from tansengming/feature/rails6
Browse files Browse the repository at this point in the history
Rails 6
  • Loading branch information
tansengming authored Sep 18, 2020
2 parents 418084b + d40421f commit a5b859b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 92 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:

strategy:
matrix:
ruby: [2.4.x, 2.5.x, 2.6.x, 2.7.x]
gemfile: [Gemfile, gemfiles/rails51.gemfile, gemfiles/rails52.gemfile, gemfiles/rails4.gemfile]
exclude:
- ruby: 2.7.x
gemfile: gemfiles/rails4.gemfile
ruby: [2.5.x, 2.6.x, 2.7.x]
gemfile: [Gemfile, gemfiles/rails51.gemfile, gemfiles/rails52.gemfile]
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
Expand All @@ -36,8 +33,6 @@ jobs:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
RUBY_VERSION: ${{ matrix.ruby }}
run: |
gem uninstall bundler
gem install bundler -v 1.17.3
bundle install --jobs 4 --retry 3
bundle exec rake
if [ `basename $BUNDLE_GEMFILE` == "Gemfile" ] && [ $RUBY_VERSION == "2.7.x" ] && [ ! -z ${CC_TEST_REPORTER_ID} ] ;
Expand Down
12 changes: 12 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
## Unreleased

## 2.0.0 (2020-09-18)

- Everything from on the 2.0.0.pre release
- includes changes from the 1.10.2 release

## 1.10.2 (2020-09-18)

- adds missing callback `invoice.paid`. Thanks @SyborgStudios.

## 2.0.0.pre (2020-05-29)

* [Breaking] Updated to work only with Rails >= 5.1
* [Breaking] It'll only be tested on Ruby 2.7, 2.6 and 2.5.
* [Breaking] Supports the Stripe gem => 3.15.0 (from 2 years ago)
* [Breaking] Removes Stripe::PingsController controller.

## 1.10.1 (2020-05-29)

- adds missing callbacks for `payment_intent`. Thanks @klapperkopp .
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ group :test do
gem 'simplecov', '< 0.18', require: false
gem 'stripe-ruby-mock'
gem 'webmock'
# Required for system tests
# System tests
gem 'capybara'
gem 'webdrivers'
gem 'puma'
gem 'selenium-webdriver'
end
gem 'webdrivers'
end
10 changes: 0 additions & 10 deletions app/controllers/stripe/pings_controller.rb

This file was deleted.

9 changes: 0 additions & 9 deletions app/models/stripe/ping.rb

This file was deleted.

20 changes: 0 additions & 20 deletions gemfiles/rails4.gemfile

This file was deleted.

4 changes: 0 additions & 4 deletions lib/stripe/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ module Callbacks
callback 'ping'
callback 'stripe.event'

# Deprecated
callback 'transfer.failed' # https://stripe.com/docs/upgrades#2017-04-06
callback 'transfer.paid' # https://stripe.com/docs/upgrades#2017-04-06

class << self
def run_callbacks(evt, target)
_run_callbacks evt.type, evt, target
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Stripe
module Rails
VERSION = '1.10.2'.freeze
VERSION = '2.0.0'.freeze
end
end
4 changes: 2 additions & 2 deletions stripe-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
gem.name = "stripe-rails"
gem.require_paths = ["lib"]
gem.version = Stripe::Rails::VERSION
gem.add_dependency 'rails', '>= 3'
gem.add_dependency 'stripe', '>= 1.36.2'
gem.add_dependency 'rails', '>= 5.1'
gem.add_dependency 'stripe', '>= 3.15.0'
gem.add_dependency 'responders'
end
18 changes: 0 additions & 18 deletions test/pings_controller_spec.rb

This file was deleted.

9 changes: 2 additions & 7 deletions test/support/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
require File.expand_path("null_system_test_case", __dir__)

# For Rails 4 compat
SystemTestCaseKlass = defined?(ActionDispatch::SystemTestCase) ? ActionDispatch::SystemTestCase : NullSystemTestCase

class ApplicationSystemTestCase < SystemTestCaseKlass
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium_chrome_headless
end
end
11 changes: 0 additions & 11 deletions test/support/null_system_test_case.rb

This file was deleted.

0 comments on commit a5b859b

Please sign in to comment.