paid_up 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/models/paid_up/plan.rb +1 -1
- data/app/views/paid_up/subscriptions/new.html.haml +5 -1
- data/config/locales/en.yml +1 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +2 -4
- data/paid_up.gemspec +3 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- 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: d2adf066309b30ac306cdf822693eaf2dc6e3584
|
|
4
|
+
data.tar.gz: cc70e9755ea608963b06ebde8b6b9fa6faa1b494
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5186bfa8079e7fa90c7bb51070925ec6cb88613ba2f15ecedfd93df29b0fb8d6d64ef53fe9b798a270e076eef070e6a7f96b3b906ad95b4a610245a3f9294516
|
|
7
|
+
data.tar.gz: 6516dcd2d65b3183d4b8b1b9d3ae5bd93a0595a996134605bce776a44aa148b26ad288324abc4bcd8a085262e584bdedd389298106bdbc1f8e5045fb5ad90496
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.4
|
data/app/models/paid_up/plan.rb
CHANGED
|
@@ -100,7 +100,7 @@ module PaidUp
|
|
|
100
100
|
def load_stripe_data
|
|
101
101
|
if stripe_id.present?
|
|
102
102
|
self.stripe_data = Rails.cache.fetch(
|
|
103
|
-
"#{stripe_id}/stripe_data", expires_in:
|
|
103
|
+
"#{stripe_id}/stripe_data", expires_in: 1.second
|
|
104
104
|
) do
|
|
105
105
|
Stripe::Plan.retrieve stripe_id
|
|
106
106
|
end
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
= features_table only: @plan, should_add_buttons: false
|
|
5
5
|
|
|
6
6
|
%h2= :select_payment_info.l
|
|
7
|
-
%p
|
|
7
|
+
%p.lead
|
|
8
|
+
- if @plan.stripe_data.trial_period_days.present?
|
|
9
|
+
= :after_trial_period_you_will_be_charged.l trial_period: @plan.stripe_data.trial_period_days, charge_amount: plan_charge_human(@plan, current_user.stripe_data.discount)
|
|
10
|
+
- else
|
|
11
|
+
= :you_will_be_charged.l charge_amount: plan_charge_human(@plan, current_user.stripe_data.discount)
|
|
8
12
|
.row
|
|
9
13
|
.col-md-6
|
|
10
14
|
= form_tag paid_up.plan_subscriptions_path(@plan), class: 'form-horizontal', id: 'payment-form' do
|
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
|
+
after_trial_period_you_will_be_charged: "After a trial period of %{trial_period} days, you will be charged %{charge_amount}."
|
|
25
26
|
allowed: 'Allowed'
|
|
26
27
|
already_subscribed: 'Already Subscribed'
|
|
27
28
|
are_you_sure: 'Are you sure?'
|
data/coverage/.last_run.json
CHANGED
data/coverage/.resultset.json
CHANGED
|
@@ -1500,7 +1500,6 @@
|
|
|
1500
1500
|
20,
|
|
1501
1501
|
20,
|
|
1502
1502
|
20,
|
|
1503
|
-
20,
|
|
1504
1503
|
null,
|
|
1505
1504
|
0,
|
|
1506
1505
|
0,
|
|
@@ -1512,7 +1511,6 @@
|
|
|
1512
1511
|
null,
|
|
1513
1512
|
160,
|
|
1514
1513
|
160,
|
|
1515
|
-
160,
|
|
1516
1514
|
null,
|
|
1517
1515
|
null,
|
|
1518
1516
|
null
|
|
@@ -2227,7 +2225,7 @@
|
|
|
2227
2225
|
2239,
|
|
2228
2226
|
null,
|
|
2229
2227
|
null,
|
|
2230
|
-
|
|
2228
|
+
1005,
|
|
2231
2229
|
null,
|
|
2232
2230
|
null,
|
|
2233
2231
|
null,
|
|
@@ -3187,6 +3185,6 @@
|
|
|
3187
3185
|
null
|
|
3188
3186
|
]
|
|
3189
3187
|
},
|
|
3190
|
-
"timestamp":
|
|
3188
|
+
"timestamp": 1459882500
|
|
3191
3189
|
}
|
|
3192
3190
|
}
|
data/paid_up.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
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.10.
|
|
5
|
+
# stub: paid_up 0.10.4 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "paid_up"
|
|
9
|
-
s.version = "0.10.
|
|
9
|
+
s.version = "0.10.4"
|
|
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"]
|
|
13
13
|
s.authors = ["Karen Lundgren"]
|
|
14
|
-
s.date = "2016-
|
|
14
|
+
s.date = "2016-04-06"
|
|
15
15
|
s.description = "Allows a model of your choosing (such as users) to subscribe to a plan, which enables features."
|
|
16
16
|
s.email = "karen.e.lundgren@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paid_up
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karen Lundgren
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|