omniauth-stripe-connect 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77ae2a92d58c96b70b1fa77183133f4adfa53ea2
4
- data.tar.gz: cdc4f9980b513b9159bc7d40f5670b40fba76c1a
3
+ metadata.gz: f5812a80e945ea17ca277e5f2ce376d6efd169be
4
+ data.tar.gz: ba24054396a6817f90c7aefb449a13d4d55abb68
5
5
  SHA512:
6
- metadata.gz: 20f1fda32774f127978191aa063ec0b977ae3c7177a5481fc2a15752bffadeb25f6ab299abf8d6aad701aa6fc713dbb09c6e0775bfc4b35971957593ae2d3bdc
7
- data.tar.gz: 84da59e414f31c481dbc2b8ea938c4bf31b6dc3ec7c26f9eee774577e983ca0aff0eb6bcbb851cc8b79b154afb079662d37c4c91a5d4da0970d208bbcd617a81
6
+ metadata.gz: a54f3c66caf753300e596680ad2b0ecc4a731ecc16b8d7aac52cde8ec40a1092448937b4d8ebfb93a9fe24512f217a29fc0dc0bcdb55e11b742847d971a9fb1f
7
+ data.tar.gz: bcd8ffedafe26ce7cfa665217eaaf842f5943e89b333b12ae41d4c46bd3d44b26d6ccb896a772f1b6b7c1ae52df2c7b429da62221a66cfe0f242ef39410bb563
data/README.md CHANGED
@@ -24,6 +24,7 @@ Or install it yourself as:
24
24
  OmniAuth::Strategies::StripeConnect is simply a Rack middleware. Read the OmniAuth
25
25
  1.0 docs for detailed instructions: https://github.com/intridea/omniauth.
26
26
 
27
+ ### Non-Devise
27
28
  Here's a quick example, adding the middleware to a Rails app in
28
29
  `config/initializers/omniauth.rb`:
29
30
 
@@ -33,6 +34,16 @@ Rails.application.config.middleware.use OmniAuth::Builder do
33
34
  end
34
35
  ```
35
36
 
37
+ ### Devise
38
+
39
+ You need to declare the provider in your `config/initializers/devise.rb`:
40
+
41
+ ```ruby
42
+ config.omniauth :stripe_connect, "STRIPE_CONNECT_CLIENT_ID", "STRIPE_SECRET"
43
+ ```
44
+
45
+ ### General Usage
46
+
36
47
  Your `STRIPE_CONNECT_CLIENT_ID` is application-specific and your `STRIPE_SECRET` is account-specific and may also be known as your Stripe API key or Stripe Private key.
37
48
 
38
49
  Edit your routes.rb file to have:
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module StripeConnect
3
- VERSION = "2.7.0"
3
+ VERSION = "2.8.0"
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ require 'omniauth/strategies/oauth2'
3
3
  module OmniAuth
4
4
  module Strategies
5
5
  class StripeConnect < OmniAuth::Strategies::OAuth2
6
- option :name, 'stripe_connect'
6
+ option :name, :stripe_connect
7
7
 
8
8
  option :client_options, {
9
9
  :site => 'https://connect.stripe.com'
@@ -19,5 +19,5 @@ Read the Stripe Connect docs for more details: https://stripe.com/docs/connect
19
19
  gem.version = OmniAuth::StripeConnect::VERSION
20
20
 
21
21
  gem.add_dependency 'omniauth', '~> 1.0'
22
- gem.add_dependency 'omniauth-oauth2', '~> 1.2.0'
22
+ gem.add_dependency 'omniauth-oauth2', '~> 1.3.1'
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-stripe-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Sanders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.0
33
+ version: 1.3.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2.0
40
+ version: 1.3.1
41
41
  description: Stripe Connect OAuth2 Strategy for OmniAuth 1.0.
42
42
  email:
43
43
  - isaac@isaacbfsanders.com