effective_orders 4.0.0beta9 → 4.0.0beta10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec9a4a2c292d467b812005f7f1d9c0574e9ac2d2
|
4
|
+
data.tar.gz: 9f1803e3217276a89b2089e30ee71aed6667784c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb91eb87e7faa70156723d2021ef78a499cd4543d869705d13f94d6540acdec71f3ba798cf49c76d33c11368b95474ca970cca54a8720eb2269e56dd8c6c5913
|
7
|
+
data.tar.gz: 00174cfdcd998155d3b20fc19aeedad1f206588c24971270ccddfa2f0a298cb68cb9122d79a1afd2672f82df5a8d654c6c39d236ad3e9de7943fcc5d3ab0a95e
|
@@ -7,7 +7,7 @@ module Effective
|
|
7
7
|
@event = (Stripe::Webhook.construct_event(request.body.read, request.env['HTTP_STRIPE_SIGNATURE'], EffectiveOrders.subscription[:webhook_secret]) rescue nil)
|
8
8
|
(head(:bad_request) and return) unless @event
|
9
9
|
|
10
|
-
unless EffectiveOrders.
|
10
|
+
unless EffectiveOrders.subscriptions[:ignore_livemode]
|
11
11
|
(head(:bad_request) and return) if (params[:livemode] == false && Rails.env.production?)
|
12
12
|
end
|
13
13
|
|
@@ -28,9 +28,11 @@ namespace :effective_orders do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
|
32
|
+
# rake effective_orders:send_trial_expiring_emails
|
31
33
|
desc 'Sends trial expiring and expired emails to each subscribable. Schedule me to run once per day.'
|
32
34
|
task send_trial_expiring_emails: :environment do
|
33
|
-
trial_remind_at = Array(EffectiveOrders.
|
35
|
+
trial_remind_at = Array(EffectiveOrders.trial[:remind_at]).compact
|
34
36
|
exit unless trial_remind_at.present? && trial_remind_at.all? { |x| x.present? }
|
35
37
|
|
36
38
|
Rails.application.eager_load!
|