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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdea3f4d9f23be9fc167ecab4c4fb9e713f5dace
4
- data.tar.gz: 28345325ce45052bd240e048b52eefea6fcd06e4
3
+ metadata.gz: 4208678ec4ca20f32750275db42bf93dd4d5606e
4
+ data.tar.gz: 1b7c3d7930f5a75517d53b0f5b1610f12971314a
5
5
  SHA512:
6
- metadata.gz: 1b03283f67b8f5f9d3d046b7f4f94e58f4631a6aa0f142ca560fbb829657220c139e949b7737d25f5217817996d55adb286f2ed7578939b579183006c0e581d6
7
- data.tar.gz: f32aa391e9dcf39a615c392198ddc997d0f823535931b3a59b253877681d75c3d03a9a8d9000efec46d1561a66cff93905cafe86ae823b427f464deddda57178
6
+ metadata.gz: 12370d62272535c8a329a4cfb57281cda436a8eb123853ca8e18ba2374fd1a75e2df8f1d28ece4c219229db57830540e0bc67473c88d4aa85f4c2f6c6069d494
7
+ data.tar.gz: 6fad409855c1437392583c3c694977e9e898be5c2667633261bd0941cec5caf092505ee62cb6415690f70b1fed1a1a7155d30b24765c7a7e7fe4dd3ec8567482
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.0.0beta13'.freeze
2
+ VERSION = '4.0.0beta14'.freeze
3
3
  end
@@ -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 date == (today + remind_at)
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.0beta13
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-20 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails