paid_up 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -5
- data/VERSION +1 -1
- data/app/models/paid_up/ability.rb +8 -4
- 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: ea2542d87ffc8569442a524fdc11e1f4ea3033a7
|
4
|
+
data.tar.gz: d47322cf94259e4ddba47146db39da701ea3556c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cca600f69ab2019b2d4cfa2324f6f761f7fb65b045acdd6a12b7b81c49731641c9feb426963214430e9319a099bea3d9a96d9611159545599eb41080f3b66d8
|
7
|
+
data.tar.gz: 68610794a8015b4cc851835e60133726f20cf0874d48d83f8a1a11688bce2548b33bdf34c254b9663d9dd8b7de21633085273f0ab1e2b37f10516d57cc58a07d
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
@@ -8,11 +8,13 @@ module PaidUp
|
|
8
8
|
case feature.setting_type
|
9
9
|
when 'table_rows'
|
10
10
|
can :index, feature.feature_model
|
11
|
-
can :
|
11
|
+
can :show, feature.feature_model, enabled: true
|
12
12
|
if user.table_rows_allowed(feature.slug) > 0 || user.table_rows_unlimited?(feature.slug)
|
13
13
|
can :manage, feature.feature_model, :user => user
|
14
14
|
can :own, feature.feature_model
|
15
|
-
|
15
|
+
if user.table_rows_remaining(feature.slug) > 0
|
16
|
+
can :new, feature.feature_model
|
17
|
+
else
|
16
18
|
cannot :create, feature.feature_model
|
17
19
|
end
|
18
20
|
else
|
@@ -23,11 +25,13 @@ module PaidUp
|
|
23
25
|
end
|
24
26
|
when 'rolify_rows'
|
25
27
|
can :index, feature.feature_model
|
26
|
-
can :
|
28
|
+
can :show, feature.feature_model, enabled: true
|
27
29
|
if user.rolify_rows_allowed(feature.slug) > 0 || user.rolify_rows_unlimited?(feature.slug)
|
28
30
|
can :manage, feature.feature_model, id: Group.with_role(:owner, user).pluck(:id)
|
29
31
|
can :own, feature.feature_model
|
30
|
-
|
32
|
+
if user.rolify_rows_remaining(feature.slug) > 0
|
33
|
+
can :new, feature.feature_model
|
34
|
+
else
|
31
35
|
cannot :create, feature.feature_model
|
32
36
|
end
|
33
37
|
else
|
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.7.
|
5
|
+
# stub: paid_up 0.7.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up"
|
9
|
-
s.version = "0.7.
|
9
|
+
s.version = "0.7.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 = "2015-06-
|
14
|
+
s.date = "2015-06-13"
|
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.7.
|
4
|
+
version: 0.7.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: 2015-06-
|
11
|
+
date: 2015-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|