paid_up 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coverage/.resultset.json +4 -2
- data/lib/paid_up/mixins/paid_for.rb +4 -2
- data/paid_up.gemspec +2 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abd557c70b1d7b9f8fee5a7cc7d7cbdf94bd0fae
|
4
|
+
data.tar.gz: e6866e40fc101aab977c48b02e3223d8d27a0094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a66dd679a1eae721bb55cf217385c500f1d5369d4d83ae10d0816b5c6993a7533c49fafe99f966bc68375b4b8b821eeb69c6f380d72b74867f7320643dd56f9a
|
7
|
+
data.tar.gz: cf876b3ffa897bcd7fc20e3d5848460fd77cbd6652442a12905fa518094949fad967038a2dc7fdb7b9b48f4a7326f58d77e959e3917e06b1ce780481408e6be0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.2
|
data/coverage/.resultset.json
CHANGED
@@ -561,6 +561,8 @@
|
|
561
561
|
1,
|
562
562
|
1,
|
563
563
|
1,
|
564
|
+
null,
|
565
|
+
1,
|
564
566
|
1,
|
565
567
|
51,
|
566
568
|
null,
|
@@ -1683,7 +1685,7 @@
|
|
1683
1685
|
1090,
|
1684
1686
|
null,
|
1685
1687
|
null,
|
1686
|
-
|
1688
|
+
625,
|
1687
1689
|
null,
|
1688
1690
|
null,
|
1689
1691
|
null,
|
@@ -2565,6 +2567,6 @@
|
|
2565
2567
|
null
|
2566
2568
|
]
|
2567
2569
|
},
|
2568
|
-
"timestamp":
|
2570
|
+
"timestamp": 1487606390
|
2569
2571
|
}
|
2570
2572
|
}
|
@@ -3,17 +3,19 @@ module PaidUp
|
|
3
3
|
# PaidFor Mixin
|
4
4
|
module PaidFor
|
5
5
|
extend ActiveSupport::Concern
|
6
|
+
@@scope = {}
|
7
|
+
|
6
8
|
class_methods do
|
7
9
|
def feature
|
8
10
|
PaidUp::Feature.find_by_slug(table_name)
|
9
11
|
end
|
10
12
|
|
11
13
|
def paid_for_scope
|
12
|
-
send(
|
14
|
+
send(@@scope[table_name.to_sym])
|
13
15
|
end
|
14
16
|
|
15
17
|
def paid_for(options = {})
|
16
|
-
|
18
|
+
@@scope[table_name.to_sym] = options[:scope] || :all
|
17
19
|
feature.nil? && raise(
|
18
20
|
:feature_not_found_feature.l(feature: table_name)
|
19
21
|
)
|
data/paid_up.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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.11.
|
5
|
+
# stub: paid_up 0.11.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up"
|
9
|
-
s.version = "0.11.
|
9
|
+
s.version = "0.11.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"]
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|