wbase 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wbase/plan.rb +8 -0
- data/app/services/wbase/start_subscription.rb +5 -1
- data/lib/wbase/version.rb +1 -1
- 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: c3f6a645ab1e6cdec65adf7da7de4ddc86f88e5f
|
4
|
+
data.tar.gz: 823fca99636f4fc882eb435f20aa230857502b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28230f3caac64c6805b2bdd9c75ecd8178f5f0351dbae68acd581b85622060414fa76c50b1c5e796fe63ea8f9115a8fedb42ff959e1230de36a0eabbc0fc25f
|
7
|
+
data.tar.gz: 6636d2ac437b1f627460012931f41e2194febb4c0705c01b27e32b3fd0355c4bca3cd7eba280ecf27cd40c1749e48c9be14dfe78ef193c22086b13342a4c593a
|
data/app/models/wbase/plan.rb
CHANGED
@@ -29,7 +29,11 @@ module Wbase
|
|
29
29
|
Wbase::Subscription.new(@params) do |s|
|
30
30
|
s.user = user
|
31
31
|
s.current_price = s.plan.price
|
32
|
-
s.
|
32
|
+
if s.plan.monthly?
|
33
|
+
s.paid_thru = 30.days.from_now
|
34
|
+
else
|
35
|
+
s.paid_thru = 12.months.from_now
|
36
|
+
end
|
33
37
|
end
|
34
38
|
end
|
35
39
|
|
data/lib/wbase/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Avilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|