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: 0f9582922bd3c509dd18a48a2c9a0d3e7bd53103
4
- data.tar.gz: 52ca7bfe3842f3862d79a847ba62112a888401ef
3
+ metadata.gz: ec9a4a2c292d467b812005f7f1d9c0574e9ac2d2
4
+ data.tar.gz: 9f1803e3217276a89b2089e30ee71aed6667784c
5
5
  SHA512:
6
- metadata.gz: 8e0c0dc8e9eb1ad425c77bd72f018bed2a985b468228e09c40a4dca22e2035ca22c0ed572954e08b975e489924795f02f3a67cfb9bd0384fc802978493965842
7
- data.tar.gz: 99d87d0dbffa152d7614621617f642dfe36a877d3bdd95ca75581f56bef932c9f413f19019f242ef50a181e919f0a7772c8aa3cea18dbe72af7921f3927c9d73
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.subscription[:ignore_livemode]
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.0.0beta9'.freeze
2
+ VERSION = '4.0.0beta10'.freeze
3
3
  end
@@ -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.subscription[:trial_remind_at]).compact
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!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0beta9
4
+ version: 4.0.0beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect