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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7d1d78b65cc4d43d368240ff11748983f2a065a
4
- data.tar.gz: 8b4f53ce1fe6a4ee0de91f570b162afce3555b67
3
+ metadata.gz: ea2542d87ffc8569442a524fdc11e1f4ea3033a7
4
+ data.tar.gz: d47322cf94259e4ddba47146db39da701ea3556c
5
5
  SHA512:
6
- metadata.gz: 1b8c9a5d8559a1aaf66325cae5fe14a2f04b28617b348455c0d5e75b456b5077188b57c5c99718ac248060e13e5924881276d24c366e16f81cdb473e57e4ab5a
7
- data.tar.gz: 089a3146dad51b8a4012f0eadc4d5ce92ce23cf8657e545abe62b6bf35efaf3b2e82869c358575bf8b8a25d488b6f8fe28d98c397105da76fe044c7850ba1a98
6
+ metadata.gz: 2cca600f69ab2019b2d4cfa2324f6f761f7fb65b045acdd6a12b7b81c49731641c9feb426963214430e9319a099bea3d9a96d9611159545599eb41080f3b66d8
7
+ data.tar.gz: 68610794a8015b4cc851835e60133726f20cf0874d48d83f8a1a11688bce2548b33bdf34c254b9663d9dd8b7de21633085273f0ab1e2b37f10516d57cc58a07d
data/Rakefile CHANGED
@@ -24,10 +24,5 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
24
24
  spec.pattern = FileList['spec/**/*_spec.rb']
25
25
  end
26
26
 
27
- RSpec::Core::RakeTask.new(:rcov) do |spec|
28
- spec.pattern = 'spec/**/*_spec.rb'
29
- spec.rcov = true
30
- end
31
-
32
27
  task :default => :spec
33
28
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
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 :read, feature.feature_model, enabled: true
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
- unless user.table_rows_remaining(feature.slug) > 0
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 :read, feature.feature_model, enabled: true
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
- unless user.rolify_rows_remaining(feature.slug) > 0
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.1 ruby lib
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.1"
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-03"
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2015-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails