effective_orders 4.0.0beta13 → 4.0.0beta14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_orders/version.rb +1 -1
- data/lib/tasks/effective_orders_tasks.rake +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4208678ec4ca20f32750275db42bf93dd4d5606e
|
4
|
+
data.tar.gz: 1b7c3d7930f5a75517d53b0f5b1610f12971314a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12370d62272535c8a329a4cfb57281cda436a8eb123853ca8e18ba2374fd1a75e2df8f1d28ece4c219229db57830540e0bc67473c88d4aa85f4c2f6c6069d494
|
7
|
+
data.tar.gz: 6fad409855c1437392583c3c694977e9e898be5c2667633261bd0941cec5caf092505ee62cb6415690f70b1fed1a1a7155d30b24765c7a7e7fe4dd3ec8567482
|
@@ -42,7 +42,6 @@ namespace :effective_orders do
|
|
42
42
|
begin
|
43
43
|
ActsAsSubscribable.descendants.each do |klass|
|
44
44
|
klass.trialing.find_each do |subscribable|
|
45
|
-
|
46
45
|
if subscribable.trialing_until == today
|
47
46
|
puts "sending trial expired to #{subscribable}"
|
48
47
|
Effective::OrdersMailer.subscription_trial_expired(subscribable).deliver_now
|
@@ -50,10 +49,10 @@ namespace :effective_orders do
|
|
50
49
|
|
51
50
|
next if subscribable.trial_past_due? # We already notified them
|
52
51
|
|
53
|
-
date = (subscribable.trialing_until - EffectiveOrders.trial.fetch(:length)) # Should be same as created_at.beginning_of_day
|
52
|
+
date = (subscribable.trialing_until - EffectiveOrders.trial.fetch(:length)).beginning_of_day # Should be same as created_at.beginning_of_day
|
54
53
|
|
55
54
|
reminders.each do |remind_at|
|
56
|
-
next unless
|
55
|
+
next unless today == (date + remind_at)
|
57
56
|
Effective::OrdersMailer.subscription_trialing(subscribable).deliver_now
|
58
57
|
end
|
59
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.0beta14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|