paid_up 0.10.1 → 0.10.2
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/helpers/paid_up/plans_helper.rb +7 -7
- data/paid_up.gemspec +3 -3
- 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: b395a22a9b9cf120207f92c8f9938f9f2848e6d0
|
|
4
|
+
data.tar.gz: 53cb7ba8a9fc0df36c90df3cd853351195eb5841
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ee0409920fe4a5914af2767d87011769ae0c731f139ec95f326b89e3452c7646f00077c2942a347d6da61464543d1b001776705c1e68e79892918348d2ab417
|
|
7
|
+
data.tar.gz: 66ce69a1cdd1828b5444c16cc1508dfd21b017e082b49efbcb3dfe57a80471ccdfa9b77ee5c268c3cbeecacf1c0dc8f7a0922558cd9f66f624313bc0fdb7fd23
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.2
|
|
@@ -41,35 +41,35 @@ module PaidUp
|
|
|
41
41
|
|
|
42
42
|
def plan_button(plan, text = nil, html_options = {})
|
|
43
43
|
data = {}
|
|
44
|
-
css_class = '
|
|
44
|
+
css_class = ''
|
|
45
45
|
disabled_state = false
|
|
46
46
|
link = paid_up.new_plan_subscription_path(plan)
|
|
47
47
|
if user_signed_in?
|
|
48
48
|
text ||= :subscribe.l
|
|
49
49
|
if current_user.stripe_data.delinquent
|
|
50
50
|
icon_class = 'arrow-right'
|
|
51
|
-
css_class += '
|
|
51
|
+
css_class += 'info'
|
|
52
52
|
elsif current_user.can_upgrade_to? plan
|
|
53
53
|
icon_class = 'arrow-up'
|
|
54
|
-
css_class += '
|
|
54
|
+
css_class += 'success'
|
|
55
55
|
elsif current_user.can_downgrade_to? plan
|
|
56
56
|
icon_class = 'arrow-down'
|
|
57
|
-
css_class += '
|
|
57
|
+
css_class += 'danger'
|
|
58
58
|
data[:confirm] = :are_you_sure.l
|
|
59
59
|
elsif current_user.is_subscribed_to? plan
|
|
60
60
|
icon_class = 'ok'
|
|
61
|
-
css_class += '
|
|
61
|
+
css_class += 'disabled disabled'
|
|
62
62
|
disabled_state = true
|
|
63
63
|
link = '#'
|
|
64
64
|
text = :already_subscribed.l
|
|
65
65
|
else # Plans are equal in sort_order
|
|
66
66
|
icon_class = 'arrow-right'
|
|
67
|
-
css_class += '
|
|
67
|
+
css_class += 'info'
|
|
68
68
|
end
|
|
69
69
|
else
|
|
70
70
|
text ||= :sign_up.l
|
|
71
71
|
icon_class = 'arrow-right'
|
|
72
|
-
css_class += '
|
|
72
|
+
css_class += 'success'
|
|
73
73
|
end
|
|
74
74
|
html_options[:method] ||= :get
|
|
75
75
|
html_options[:disabled] ||= disabled_state
|
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.2 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.2"
|
|
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-03-
|
|
14
|
+
s.date = "2016-03-20"
|
|
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 = [
|
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.2
|
|
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-03-
|
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|