bullet_train-integrations-stripe 1.0.1 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6725113b0b72922229fe124a7832ee8eaa869eaed3952215915dabf0c1fd0e5
4
- data.tar.gz: 5e576403715a63ad350964004995caba8fb74fdefe4dac40f10cd0fea9baed4c
3
+ metadata.gz: 8810aee1c9e78284f28b9c7cbc07fda53ba3ab05684f218a8cc70c3323525de6
4
+ data.tar.gz: 523f353bc600b05826071093f61d9d4e229ec2f5ea0a18915a09588c2bf267dc
5
5
  SHA512:
6
- metadata.gz: 3d215c921514dba70f674ce3afda981e6ecc084b817d08f8d0d400f63d8d34fe93e134d44d6ae533fde2dcd53f2cb6f33c5ebd8fa2b74362f9d645acc94f815b
7
- data.tar.gz: 9508e0f4ffd9a2d0d9635b41d96d9ed263640aaec071e1337743fad4178d485490a87d5729551e32f86a04fe71e56ce3026fdcfd8a2046e13dc23611576c7e30
6
+ metadata.gz: a69783960896885c84bac12de24f44e19f42b4ac9608a9449aa461198f732c6eb1975a700f78662fb36a5f39ba0a622ad48c5c9afc633ec0db7cbedc58562d81
7
+ data.tar.gz: 97fd245e3bc5a46c0583035dc0edaed12fc3097acbef728b2e00bbe03a36f4df42343f30f1dadc8f0baa5fd445ed40f63450a583453b06d4cec00101b5e7e81c
@@ -0,0 +1,5 @@
1
+ module Integrations
2
+ def self.table_name_prefix
3
+ "integrations_"
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Oauth
2
+ def self.table_name_prefix
3
+ "oauth_"
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Webhooks::Incoming::Oauth
2
+ def self.table_name_prefix
3
+ "webhooks_incoming_oauth_"
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Webhooks::Incoming
2
+ def self.table_name_prefix
3
+ "webhooks_incoming_"
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Webhooks
2
+ def self.table_name_prefix
3
+ "webhooks_"
4
+ end
5
+ end
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Integrations
3
3
  module Stripe
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,14 @@
1
1
  require "bullet_train/integrations/stripe/version"
2
2
  require "bullet_train/integrations/stripe/engine"
3
3
 
4
+ require "stripe"
5
+ require "omniauth"
6
+ require "omniauth-stripe-connect"
7
+
8
+ # TODO Remove when we're able to properly upgrade Omniauth.
9
+ # https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284
10
+ require "omniauth/rails_csrf_protection"
11
+
4
12
  module BulletTrain
5
13
  module Integrations
6
14
  module Stripe
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-integrations-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-23 00:00:00.000000000 Z
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.0
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 7.0.0
26
+ version: 6.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: stripe
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: omniauth
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: omniauth-stripe-connect
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: omniauth-rails_csrf_protection
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
27
83
  description: Example Stripe platform integration for Bullet Train applications.
28
84
  email:
29
85
  - andrew.culver@gmail.com
@@ -41,8 +97,13 @@ files:
41
97
  - app/models/concerns/integrations/stripe_installations/base.rb
42
98
  - app/models/concerns/oauth/stripe_accounts/base.rb
43
99
  - app/models/concerns/webhooks/incoming/oauth/stripe_account_webhooks/base.rb
100
+ - app/models/integrations.rb
44
101
  - app/models/integrations/stripe_installation.rb
102
+ - app/models/oauth.rb
45
103
  - app/models/oauth/stripe_account.rb
104
+ - app/models/webhooks.rb
105
+ - app/models/webhooks/incoming.rb
106
+ - app/models/webhooks/incoming/oauth.rb
46
107
  - app/models/webhooks/incoming/oauth/stripe_account_webhook.rb
47
108
  - app/views/account/integrations/stripe_installations/_breadcrumbs.html.erb
48
109
  - app/views/account/integrations/stripe_installations/_form.html.erb