diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 665401b..d6ae47d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: - stripe8 - stripe9 - stripe10 + - stripe11 include: - { ruby: "2.3", gemfile: "rails3.2", bundler: "1" } - { ruby: "2.5", gemfile: "rails5.1", bundler: "default" } diff --git a/Appraisals b/Appraisals index 997cf23..398921b 100644 --- a/Appraisals +++ b/Appraisals @@ -63,6 +63,10 @@ appraise "stripe10" do gem "stripe", "~> 10.0" end +appraise "stripe11" do + gem "stripe", "~> 11.0" +end + appraise "rails_master" do gem "rails", github: "rails" end diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d6ad4b..6ba7c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ### [Unreleased] - TBD +- Add Stripe 11 support (#165) + ### 2.8.0 (Mar 18, 2024) - Add Stripe 9 support (#162) @@ -64,107 +66,122 @@ ### 1.9.1 (December 5, 2017) This release is in preparation for some backward incompatible changes due to -arrive in v2.0.0. It is highly recommended that everyone secure their webhook +arrive in v2.0.0. It is highly recommended that everyone secure their webhook endpoints by using `StripeEvent.signing_secret`. See the README and [Stripe's documentation](https://stripe.com/docs/webhooks#signatures) for more information. - * Deprecate `StripeEvent.authentication_secret` (#96) - * Deprecate unverified use of Stripe's webhooks (#96) +- Deprecate `StripeEvent.authentication_secret` (#96) +- Deprecate unverified use of Stripe's webhooks (#96) ### 1.9.0 (November 30, 2017) - * Support for Rails 5.1 (#94, Thanks @krasnoukhov and @simplepractice!) +- Support for Rails 5.1 (#94, Thanks @krasnoukhov and @simplepractice!) ### 1.8.0 (August 29, 2017) - * Support for [Stripe's Webhook Signature Verification](https://stripe.com/docs/webhooks#signatures) (#83, #90, Thanks @mikeycgto!) - * Secure compare during basic authentication check (#91, Thanks @mikeycgto!) +- Support for [Stripe's Webhook Signature Verification](https://stripe.com/docs/webhooks#signatures) (#83, #90, Thanks @mikeycgto!) +- Secure compare during basic authentication check (#91, Thanks @mikeycgto!) ### 1.7.0 (July 5, 2017) - * Support stripe v3 gem as a dependency (#87) +- Support stripe v3 gem as a dependency (#87) ### 1.6.0 (February 27, 2017) - * Support stripe v2 gem as a dependency (#82, b3cee03) +- Support stripe v2 gem as a dependency (#82, b3cee03) ### 1.5.1 (September 20, 2016) - * Better Rails 5 support. Prefer `before_action` over `before_filter`. (#69, Thanks @mcolyer) +- Better Rails 5 support. Prefer `before_action` over `before_filter`. (#69, Thanks @mcolyer) ### 1.5.0 (February 25, 2015) - * Added [replay attack protection](https://github.com/integrallis/stripe_event#securing-your-webhook-endpoint) on webhooks. See `StripeEvent.authentication_secret`. Thanks @brentdax for both the initial discussion and the implementation! #53, #55 - * Dropped official support for Rails 3.1 and Rails 4.0 + +- Added [replay attack protection](https://github.com/integrallis/stripe_event#securing-your-webhook-endpoint) on webhooks. See `StripeEvent.authentication_secret`. Thanks @brentdax for both the initial discussion and the implementation! #53, #55 +- Dropped official support for Rails 3.1 and Rails 4.0 ### 1.4.0 (November 1, 2014) - * Add `StripeEvent.listening?` method to easily determine if an event type has any registered handlers. Thank you to [Vladimir Andrijevik](https://github.com/vandrijevik) for the [idea and implementation](https://github.com/integrallis/stripe_event/pull/42). + +- Add `StripeEvent.listening?` method to easily determine if an event type has any registered handlers. Thank you to [Vladimir Andrijevik](https://github.com/vandrijevik) for the [idea and implementation](https://github.com/integrallis/stripe_event/pull/42). ### 1.3.0 (July 22, 2014) - * Allow for ignoring particular events. Thank you to [anark](https://github.com/anark) for suggesting the change, and [Ryan McGeary](https://github.com/rmm5t) and [Pete Keen](https://github.com/peterkeen) for working on the implementation. + +- Allow for ignoring particular events. Thank you to [anark](https://github.com/anark) for suggesting the change, and [Ryan McGeary](https://github.com/rmm5t) and [Pete Keen](https://github.com/peterkeen) for working on the implementation. ### 1.2.0 (June 17, 2014) - * Gracefully authenticate `account.application.deauthorized` events. Thank you to [Ryan McGeary](https://github.com/rmm5t) for the pull request and for taking the time to test the change in a live environment. + +- Gracefully authenticate `account.application.deauthorized` events. Thank you to [Ryan McGeary](https://github.com/rmm5t) for the pull request and for taking the time to test the change in a live environment. ### 1.1.0 (January 8, 2014) - * Deprecate `StripeEvent.setup` in favor of `StripeEvent.configure`. Remove `setup` at next major release. - * `StripeEvent.configure` yields the module to the block for configuration. - * `StripeEvent.configure` will raise `ArgumentError` unless a block is given. - * Track test coverage + +- Deprecate `StripeEvent.setup` in favor of `StripeEvent.configure`. Remove `setup` at next major release. +- `StripeEvent.configure` yields the module to the block for configuration. +- `StripeEvent.configure` will raise `ArgumentError` unless a block is given. +- Track test coverage ### 1.0.0 (December 19, 2013) - * Internally namespace dispatched events to avoid maintaining a list of all possible event types. - * Subscribe to all event types with `StripeEvent.all` instead of `StripeEvent.subscribe`. - * Remove ability to subscribe to many event types with once call to `StripeEvent.subscribe`. - * Subscribers can be an object that responds to #call. - * Allow subscriber-generated `Stripe::StripeError`'s to bubble up. Thank you to [adamonduty](https://github.com/adamonduty) for the [patch](https://github.com/integrallis/stripe_event/pull/26). - * Only depend on `stripe` and `activesupport` gems. - * Add `rails` as a development dependency. - * Only `require 'stripe_event/engine'` if `Rails` constant exists to allow StripeEvent to be used outside of a Rails application. + +- Internally namespace dispatched events to avoid maintaining a list of all possible event types. +- Subscribe to all event types with `StripeEvent.all` instead of `StripeEvent.subscribe`. +- Remove ability to subscribe to many event types with once call to `StripeEvent.subscribe`. +- Subscribers can be an object that responds to #call. +- Allow subscriber-generated `Stripe::StripeError`'s to bubble up. Thank you to [adamonduty](https://github.com/adamonduty) for the [patch](https://github.com/integrallis/stripe_event/pull/26). +- Only depend on `stripe` and `activesupport` gems. +- Add `rails` as a development dependency. +- Only `require 'stripe_event/engine'` if `Rails` constant exists to allow StripeEvent to be used outside of a Rails application. ### 0.6.1 (August 19, 2013) - * Update event type list - * Update test gemfiles + +- Update event type list +- Update test gemfiles ### 0.6.0 (March 18, 2013) - * Rails 4 compatibility. Thank you to Ben Ubois for reporting the [issue](https://github.com/integrallis/stripe_event/issues/13) and to Matt Goldman for the [pull request](https://github.com/integrallis/stripe_event/pull/14). - * Run specs against different Rails versions - * Refactor internal usage of AS::Notifications - * Remove jruby-openssl as platform conditional dependency + +- Rails 4 compatibility. Thank you to Ben Ubois for reporting the [issue](https://github.com/integrallis/stripe_event/issues/13) and to Matt Goldman for the [pull request](https://github.com/integrallis/stripe_event/pull/14). +- Run specs against different Rails versions +- Refactor internal usage of AS::Notifications +- Remove jruby-openssl as platform conditional dependency ### 0.5.0 (December 16, 2012) - * Remove `Gemfile.lock` from version control - * Internal event type list is now a set - * Update event type list - * Various internal refactorings - * More readable tests + +- Remove `Gemfile.lock` from version control +- Internal event type list is now a set +- Update event type list +- Various internal refactorings +- More readable tests ### 0.4.0 (September 24, 2012) - * Add configuration for custom event retrieval. Thanks to Dan Hodos for the [pull request](https://github.com/integrallis/stripe_event/pull/6). - * Move module methods only used in tests into a test helper. - * Various internal refactorings and additional tests. - * Error classes will inherit from a base error class now. + +- Add configuration for custom event retrieval. Thanks to Dan Hodos for the [pull request](https://github.com/integrallis/stripe_event/pull/6). +- Move module methods only used in tests into a test helper. +- Various internal refactorings and additional tests. +- Error classes will inherit from a base error class now. ### 0.3.1 (August 14, 2012) - * Fix controller inheritance issue. Thanks to Christopher Baran for [reporting the bug](https://github.com/integrallis/stripe_event/issues/1), and to Robert Bousquet for [fixing it](https://github.com/integrallis/stripe_event/pull/3). - * Deprecate registration method. Use 'setup' instead. + +- Fix controller inheritance issue. Thanks to Christopher Baran for [reporting the bug](https://github.com/integrallis/stripe_event/issues/1), and to Robert Bousquet for [fixing it](https://github.com/integrallis/stripe_event/pull/3). +- Deprecate registration method. Use 'setup' instead. ### 0.3.0 (July 16, 2012) - * Add registration method for conveniently adding many subscribers - * Depend on jruby-openssl when running on jruby - * Remove unneeded rake dependency - * Remove configure method + +- Add registration method for conveniently adding many subscribers +- Depend on jruby-openssl when running on jruby +- Remove unneeded rake dependency +- Remove configure method ### 0.2.0 (July 12, 2012) - * Register a subscriber to one/many/all events - * Remove sqlite3 development dependency - * Setup travis-ci for repo - * Hard code a placeholder api key in dummy app. Fixes failing tests when env var not defined. + +- Register a subscriber to one/many/all events +- Remove sqlite3 development dependency +- Setup travis-ci for repo +- Hard code a placeholder api key in dummy app. Fixes failing tests when env var not defined. ### 0.1.1 (July 4, 2012) - * Improve README - * Specify development dependency versions - * Fix controller test which was passing incorrectly + +- Improve README +- Specify development dependency versions +- Fix controller test which was passing incorrectly ### 0.1.0 (June 24, 2012) - * Initial release + +- Initial release diff --git a/gemfiles/stripe11.gemfile b/gemfiles/stripe11.gemfile new file mode 100644 index 0000000..951009b --- /dev/null +++ b/gemfiles/stripe11.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "stripe", "~> 11.0" + +gemspec path: "../" diff --git a/stripe_event.gemspec b/stripe_event.gemspec index f801728..b4ff9d6 100644 --- a/stripe_event.gemspec +++ b/stripe_event.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.test_files = `git ls-files -- Appraisals {spec,gemfiles}/*`.split("\n") s.add_dependency "activesupport", ">= 3.1" - s.add_dependency "stripe", [">= 2.8", "< 11"] + s.add_dependency "stripe", [">= 2.8", "< 12"] s.add_development_dependency "appraisal" s.add_development_dependency "rails", [">= 3.1"]