stripe_model_callbacks 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 2a2074ea120eeaea0b8f7abbbc91136afb646a7fe48a1854c604499977208835
4
- data.tar.gz: b02d2706c5d4946a6fb2ab0ca1c26f8258d09cd2a344ade286b317333f1a77b4
3
+ metadata.gz: 42089c7d894f5caccf7893fe4cb02f580e8a4cfbb6a72ba465894c5ebfb090f4
4
+ data.tar.gz: 9be3e19bc9f6028312f9449704a79f232b86053961f61770ae36a679e93b183e
5
5
  SHA512:
6
- metadata.gz: 5d4af6fb585fb6015a7ef483974edfe76175b166f82cd506e576bdfc8e956f1795dc6746130041a2c64a78de22c992d331d5df3ce70ed417ddc05d93f021f52f
7
- data.tar.gz: 5a9cbca86509ed5bf45111a4aef2124005f6ca986c8a134312bf9fed0a4e49a038b7e824732f372e2fdc9069ecaea3f6aa62403e372ee6ceee7cfdcb429c7044
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?("ExceptionNotifier")
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 ChangeActivitiesTrackableIdToString < ActiveRecord::Migration[5.1]
2
2
  def change
3
- change_column :activities, :trackable_id, :string
3
+ change_column :activities, :trackable_id, :string # rubocop:disable Rails/ReversibleMigration
4
4
  end
5
5
  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
 
@@ -1,3 +1,3 @@
1
1
  module StripeModelCallbacks
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
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
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: 2021-12-31 00:00:00.000000000 Z
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: 5.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: 5.0.0
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.5'
412
+ version: '2.7'
391
413
  required_rubygems_version: !ruby/object:Gem::Requirement
392
414
  requirements:
393
415
  - - ">="
@@ -1,2 +0,0 @@
1
- //= link_directory ../javascripts/stripe_model_callbacks .js
2
- //= link_directory ../stylesheets/stripe_model_callbacks .css
@@ -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,3 +0,0 @@
1
- class StripeModelCallbacks::ApplicationController < ActionController::Base
2
- protect_from_forgery with: :exception
3
- end
@@ -1,2 +0,0 @@
1
- class StripeModelCallbacks::ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class StripeModelCallbacks::ApplicationMailer < ActionMailer::Base
2
- default from: "from@example.com"
3
- layout "mailer"
4
- end
@@ -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>