paid_up 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/helpers/paid_up/plans_helper.rb +1 -1
- data/app/views/paid_up/features/_abilities_table.html.haml +2 -0
- data/config/locales/en.yml +2 -3
- data/paid_up.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 182748524bc095a5a00f8701f5fd57b9ff369f76
|
4
|
+
data.tar.gz: 2b69ee3970ee4f7c07b4012dc5462aaef490b066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cb1172968b1c4587cd4b0eddf3dc1923971618119e3dc48231af22a0fae28b7dacf55de629b3905949def1b85a741d259c8f2a88ce19eaac77adc43cd349ad5
|
7
|
+
data.tar.gz: 8f0b3f30d6c37cd451f73a29d0ba392fa068208fa7dfe00c8047eeec7209633aec3bb4edfbee49228c7087cc74652c29676317c4e557359f8fb71e2028c9c269
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.5
|
@@ -3,7 +3,7 @@ module PaidUp
|
|
3
3
|
include ::ActionView::Helpers::NumberHelper
|
4
4
|
|
5
5
|
def plan_charge_human(plan, discount)
|
6
|
-
if !discount.nil? and !discount.coupon.nil?
|
6
|
+
if !discount.nil? and !discount.coupon.nil? && plan.amount != 0
|
7
7
|
orig_amount = plan.amount
|
8
8
|
amount = orig_amount
|
9
9
|
amount -= (discount.coupon.percent_off || 0) * 0.01 * amount
|
data/config/locales/en.yml
CHANGED
@@ -22,6 +22,7 @@
|
|
22
22
|
en:
|
23
23
|
abilities: "Abilities"
|
24
24
|
account_is_delinquent: 'The paid features associated with your account have been disabled pending payment.'
|
25
|
+
allowed: 'Allowed'
|
25
26
|
already_subscribed: "Already Subscribed"
|
26
27
|
are_you_sure: "Are you sure?"
|
27
28
|
cancel_my_account: 'Cancel My Account'
|
@@ -62,7 +63,6 @@ en:
|
|
62
63
|
not_allowed: 'Not Allowed'
|
63
64
|
or_sign_in: "Or, Sign In"
|
64
65
|
or_sign_up: "Or, Sign Up"
|
65
|
-
payment_failed_statement: "Hi there,\n\nUnfortunately your most recent invoice payment for %{amount} was declined.\n\nThis could be due to a change in your card number or your card expiring, cancelation of your credit card, or the bank not recognizing the payment and taking action to prevent it.\n\nPlease update your payment information as soon as possible by logging in here:\n\n%{url}"
|
66
66
|
paid_thru: "Paid Thru"
|
67
67
|
plan_name: "Plan Name"
|
68
68
|
plans: "Plans"
|
@@ -95,5 +95,4 @@ en:
|
|
95
95
|
x_of_y_remaining: '%{x} of %{y} remaining'
|
96
96
|
x_used_y_allowed: '%{x} used, %{y} allowed'
|
97
97
|
you_are_now_subscribed_to_the_plan: "You are now subscribed to the %{plan_name} Plan"
|
98
|
-
you_will_be_charged: "You will be charged %{charge_amount}."
|
99
|
-
your_site_subscription_payment failed: "Your %{site} Subscription Payment Failed."
|
98
|
+
you_will_be_charged: "You will be charged %{charge_amount}."
|
data/paid_up.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: paid_up 0.9.
|
5
|
+
# stub: paid_up 0.9.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up"
|
9
|
-
s.version = "0.9.
|
9
|
+
s.version = "0.9.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|