stripe_model_callbacks 0.1.4 → 0.1.5
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 +4 -4
- data/app/services/stripe_model_callbacks/base_service.rb +2 -1
- data/config/routes.rb +1 -1
- data/db/migrate/20180206151132_change_activities_trackable_id_to_string.rb +1 -1
- data/db/migrate/20180208091647_change_stripe_subscription_items_quantity_to_integer.rb +1 -1
- data/db/migrate/20200520152604_change_stripe_subscription_schedule_phase_id_to_bigint.rb +3 -3
- data/lib/stripe_model_callbacks/version.rb +1 -1
- metadata +35 -13
- data/app/assets/config/stripe_model_callbacks_manifest.js +0 -2
- data/app/assets/javascripts/stripe_model_callbacks/application.js +0 -13
- data/app/assets/stylesheets/stripe_model_callbacks/application.css +0 -15
- data/app/controllers/stripe_model_callbacks/application_controller.rb +0 -3
- data/app/jobs/stripe_model_callbacks/application_job.rb +0 -2
- data/app/mailers/stripe_model_callbacks/application_mailer.rb +0 -4
- data/app/views/layouts/stripe_model_callbacks/application.html.erb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42089c7d894f5caccf7893fe4cb02f580e8a4cfbb6a72ba465894c5ebfb090f4
|
4
|
+
data.tar.gz: 9be3e19bc9f6028312f9449704a79f232b86053961f61770ae36a679e93b183e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80831241dc6bebde63eb620b78c4c10cf2701e66867da8339f77ffcad40d8306126c7e84084980679929f7f765e3ba00bc3ddc78a9ba26fda82ba4a9528ff7d0
|
7
|
+
data.tar.gz: dc731f5bed637ed10b1beac0205b1199c5cf3a787d5139f30d38b0ff3d70aa86e0fe8557fe9bffeec55eef147e58b96ccffed3b27a8ab9f23043a7b9076768fe
|
@@ -20,7 +20,8 @@ class StripeModelCallbacks::BaseService < ServicePattern::Service
|
|
20
20
|
Rails.logger.error e.backtrace.join("\n")
|
21
21
|
end
|
22
22
|
|
23
|
-
ExceptionNotifier.notify_exception(e) if Object.const_defined?(
|
23
|
+
ExceptionNotifier.notify_exception(e) if Object.const_defined?(:ExceptionNotifier)
|
24
|
+
PeakFlowUtils::Notifier.notify(error: e) if Object.const_defined?(:PeakFlowUtils)
|
24
25
|
raise e
|
25
26
|
end
|
26
27
|
|
data/config/routes.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
StripeModelCallbacks::Engine.routes.draw do
|
1
|
+
StripeModelCallbacks::Engine.routes.draw do # rubocop:disable Lint/EmptyBlock
|
2
2
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class ChangeStripeSubscriptionItemsQuantityToInteger < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
change_column :stripe_subscription_items, :quantity, :integer
|
3
|
+
change_column :stripe_subscription_items, :quantity, :integer # rubocop:disable Rails/ReversibleMigration
|
4
4
|
end
|
5
5
|
end
|
@@ -1,19 +1,19 @@
|
|
1
1
|
class ChangeStripeSubscriptionSchedulePhaseIdToBigint < ActiveRecord::Migration[6.0]
|
2
2
|
def change
|
3
3
|
if postgres?
|
4
|
-
change_column(
|
4
|
+
change_column( # rubocop:disable Rails/ReversibleMigration
|
5
5
|
:stripe_subscription_schedule_phase_plans,
|
6
6
|
:stripe_subscription_schedule_phase_id,
|
7
7
|
"bigint USING stripe_subscription_schedule_phase_id::bigint"
|
8
8
|
)
|
9
9
|
elsif mysql?
|
10
|
-
change_column(
|
10
|
+
change_column( # rubocop:disable Rails/ReversibleMigration
|
11
11
|
:stripe_subscription_schedule_phase_plans,
|
12
12
|
:stripe_subscription_schedule_phase_id,
|
13
13
|
"bigint USING CAST(stripe_subscription_schedule_phase_id AS bigint"
|
14
14
|
)
|
15
15
|
else
|
16
|
-
change_column :stripe_subscription_schedule_phase_plans, :stripe_subscription_schedule_phase_id, :bigint
|
16
|
+
change_column :stripe_subscription_schedule_phase_plans, :stripe_subscription_schedule_phase_id, :bigint # rubocop:disable Rails/ReversibleMigration
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe_model_callbacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
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:
|
26
|
+
version: 6.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: auto_autoloader
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +122,34 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 4.6.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: appraisal
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
125
153
|
description: Framework for getting Stripe webhook callbacks directly to your models
|
126
154
|
email:
|
127
155
|
- kaspernj@gmail.com
|
@@ -132,12 +160,6 @@ files:
|
|
132
160
|
- MIT-LICENSE
|
133
161
|
- README.md
|
134
162
|
- Rakefile
|
135
|
-
- app/assets/config/stripe_model_callbacks_manifest.js
|
136
|
-
- app/assets/javascripts/stripe_model_callbacks/application.js
|
137
|
-
- app/assets/stylesheets/stripe_model_callbacks/application.css
|
138
|
-
- app/controllers/stripe_model_callbacks/application_controller.rb
|
139
|
-
- app/jobs/stripe_model_callbacks/application_job.rb
|
140
|
-
- app/mailers/stripe_model_callbacks/application_mailer.rb
|
141
163
|
- app/models/stripe_model_callbacks/application_record.rb
|
142
164
|
- app/services/stripe_model_callbacks/account/external_account/updated_service.rb
|
143
165
|
- app/services/stripe_model_callbacks/attributes_assigner_service.rb
|
@@ -175,7 +197,6 @@ files:
|
|
175
197
|
- app/services/stripe_model_callbacks/sync_from_stripe.rb
|
176
198
|
- app/services/stripe_model_callbacks/tax_rate/updated_service.rb
|
177
199
|
- app/services/stripe_model_callbacks/transfer/updated_service.rb
|
178
|
-
- app/views/layouts/stripe_model_callbacks/application.html.erb
|
179
200
|
- config/rails_best_practices.yml
|
180
201
|
- config/routes.rb
|
181
202
|
- db/migrate/20180206115801_create_stripe_charges.rb
|
@@ -378,7 +399,8 @@ files:
|
|
378
399
|
homepage: https://github.com/kaspernj/stripe_model_callbacks
|
379
400
|
licenses:
|
380
401
|
- MIT
|
381
|
-
metadata:
|
402
|
+
metadata:
|
403
|
+
rubygems_mfa_required: 'true'
|
382
404
|
post_install_message:
|
383
405
|
rdoc_options: []
|
384
406
|
require_paths:
|
@@ -387,7 +409,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
387
409
|
requirements:
|
388
410
|
- - ">="
|
389
411
|
- !ruby/object:Gem::Version
|
390
|
-
version: '2.
|
412
|
+
version: '2.7'
|
391
413
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
392
414
|
requirements:
|
393
415
|
- - ">="
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Stripe model callbacks</title>
|
5
|
-
<%= stylesheet_link_tag "stripe_model_callbacks/application", media: "all" %>
|
6
|
-
<%= javascript_include_tag "stripe_model_callbacks/application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|