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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e21a59affb0abaa1b9cb919228f2cdd9a593f3e3
4
- data.tar.gz: aac75e005205fa73a3b603882a182763dfe53985
3
+ metadata.gz: b395a22a9b9cf120207f92c8f9938f9f2848e6d0
4
+ data.tar.gz: 53cb7ba8a9fc0df36c90df3cd853351195eb5841
5
5
  SHA512:
6
- metadata.gz: b85cba7745f6814d73e703fc0de8dfc134fdb7f2c3d8bcb661871cc60ec4ffc77d30154386ed12d9f524c9e4b30fc3f4db91faaaada1275efd2fe7fea791e7d5
7
- data.tar.gz: ba6ce203070e6293ced12380295ace2a27919b91b3236eb46f59b3360297f80fa4749b34d7d7652c52283c227be2e073ca66a2b936f7368df95ead798c52d0a9
6
+ metadata.gz: 8ee0409920fe4a5914af2767d87011769ae0c731f139ec95f326b89e3452c7646f00077c2942a347d6da61464543d1b001776705c1e68e79892918348d2ab417
7
+ data.tar.gz: 66ce69a1cdd1828b5444c16cc1508dfd21b017e082b49efbcb3dfe57a80471ccdfa9b77ee5c268c3cbeecacf1c0dc8f7a0922558cd9f66f624313bc0fdb7fd23
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.1
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 = 'btn '
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 += 'btn-info'
51
+ css_class += 'info'
52
52
  elsif current_user.can_upgrade_to? plan
53
53
  icon_class = 'arrow-up'
54
- css_class += 'btn-success'
54
+ css_class += 'success'
55
55
  elsif current_user.can_downgrade_to? plan
56
56
  icon_class = 'arrow-down'
57
- css_class += 'btn-danger'
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 += 'btn-disabled'
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 += 'btn-info'
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 += 'btn-success'
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.1 ruby lib
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.1"
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-16"
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2016-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails