padma-assets 0.1.26 → 0.1.27
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c5bd9a8665dacbe704c9d5acf8f8cdc7058715
|
4
|
+
data.tar.gz: c16fcbd9a06bdf08e2ac8d216257303e9759b3b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6733f1bad7d154823432bd91e6d8c4f1d1b2417c1e7964713b26a0e20f9260a30a1638fea7f4ec092f6ac4d0521d2e98cb11f0f7d306d8cffa7c3570f1d597c
|
7
|
+
data.tar.gz: e62535220c1142cf8df6545859dcbb8777e613a7e875345d17a12c70c2510f8f429c0b5079946776e21593bcdfc80268dcece04bb302a03e2bcb9120d9726205
|
@@ -4,13 +4,20 @@ class GeneralAbility
|
|
4
4
|
def initialize(user)
|
5
5
|
if alpha?(user)
|
6
6
|
can :manage, :mailchimp
|
7
|
+
end
|
8
|
+
if beta?(user)
|
7
9
|
can :manage, :persistent_contact_searches
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
11
13
|
private
|
12
|
-
|
14
|
+
|
13
15
|
def alpha?(user)
|
14
16
|
user.account_tester_level == 'alpha'
|
15
17
|
end
|
18
|
+
|
19
|
+
def beta?(user)
|
20
|
+
tl = user.account_tester_level
|
21
|
+
tl == 'alpha' || tl == 'beta'
|
22
|
+
end
|
16
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padma-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.4.
|
123
|
+
rubygems_version: 2.4.6
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Assets to be re-used in PADMA applications
|