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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d77299f53f3075824275306caa8058da6eaae06
4
- data.tar.gz: 7f04b74c213bacaf6f4b19d4cc3532e14a59e68a
3
+ metadata.gz: 182748524bc095a5a00f8701f5fd57b9ff369f76
4
+ data.tar.gz: 2b69ee3970ee4f7c07b4012dc5462aaef490b066
5
5
  SHA512:
6
- metadata.gz: cdb27be5d43f484efede0bef897c0b85d4fbe3da9492823e2c22d07e6d8fe77acc86c12b25cc793d0ee004867fde1b784026f43c7b7cc678580d8069f3bf69f5
7
- data.tar.gz: 03a6a7198e18bd918cc8def1405b6da7ca34e47d87f5c27d9d8b83d7c211741d5be51050ea5daffe42fbe233c9885b1e1b8095ed4b988b5ab82a7a1987c41cfb
6
+ metadata.gz: 8cb1172968b1c4587cd4b0eddf3dc1923971618119e3dc48231af22a0fae28b7dacf55de629b3905949def1b85a741d259c8f2a88ce19eaac77adc43cd349ad5
7
+ data.tar.gz: 8f0b3f30d6c37cd451f73a29d0ba392fa068208fa7dfe00c8047eeec7209633aec3bb4edfbee49228c7087cc74652c29676317c4e557359f8fb71e2028c9c269
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
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
@@ -7,8 +7,10 @@
7
7
  - when 'boolean'
8
8
  - if can? :use, feature.slug.to_sym
9
9
  = icon 'ok'
10
+ = :allowed.l
10
11
  - else
11
12
  = icon 'remove'
13
+ = :not_allowed.l
12
14
  - when 'table_rows'
13
15
  - if can? :own, feature.feature_model
14
16
  = icon 'ok'
@@ -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.4 ruby lib
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.4"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paid_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren