pugin 1.6.16 → 1.6.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pugin/feature/bandiera.rb +15 -11
- data/lib/pugin/version.rb +1 -1
- data/spec/lib/pugin/feature/bandiera_spec.rb +2 -1
- 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: 202a9aa32070a2122902c65d44318a8b2b1b5ad5
|
4
|
+
data.tar.gz: 4e51aa92aab32253a4e4c81545aa224619a7696c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8968b0740a75afa7530d7b4d33b21197c60d6df2af1d4de2868b37a8b84767484be9c024f95c95c364eedc0515eb15944adcec33636add26b61406f4e3444a7d
|
7
|
+
data.tar.gz: bb0e67883a1d3e6fce647c54a1ce83db115592eeed06f1eaf4d1614bd8ba75082208ab76906d502f067b5106b982e9b34a405ccc42c15d06fdf63c8c4a6517b5
|
@@ -4,44 +4,48 @@ module Pugin
|
|
4
4
|
class << self
|
5
5
|
def dissolution?
|
6
6
|
get_features
|
7
|
-
|
8
7
|
@features.fetch('show-dissolution', false)
|
9
8
|
end
|
9
|
+
|
10
10
|
def register_to_vote?
|
11
11
|
get_features
|
12
|
-
|
13
12
|
@features.fetch('show-register', false)
|
14
13
|
end
|
14
|
+
|
15
15
|
def election?
|
16
16
|
get_features
|
17
|
-
|
18
17
|
@features.fetch('show-election', false)
|
19
18
|
end
|
19
|
+
|
20
20
|
def post_election?
|
21
21
|
get_features
|
22
|
-
|
23
22
|
@features.fetch('show-post-election', false)
|
24
23
|
end
|
24
|
+
|
25
25
|
def show_list_images?
|
26
26
|
get_features
|
27
|
-
|
28
27
|
@features.fetch('show-list-images', false)
|
29
28
|
end
|
29
|
+
|
30
30
|
def show_committees?
|
31
31
|
get_features
|
32
|
-
|
33
32
|
@features.fetch('show-committees', false)
|
34
33
|
end
|
34
|
+
|
35
35
|
def show_government_roles?
|
36
36
|
get_features
|
37
|
-
|
38
37
|
@features.fetch('show-government-roles', false)
|
39
38
|
end
|
40
|
-
def show_opposition_roles?
|
41
|
-
get_features
|
42
39
|
|
43
|
-
|
44
|
-
|
40
|
+
def show_opposition_roles?
|
41
|
+
get_features
|
42
|
+
@features.fetch('show-opposition-roles', false)
|
43
|
+
end
|
44
|
+
|
45
|
+
def show_activity_links?
|
46
|
+
get_features
|
47
|
+
@features.fetch('show-activity-links', false)
|
48
|
+
end
|
45
49
|
|
46
50
|
# Reset cached features
|
47
51
|
def reset
|
data/lib/pugin/version.rb
CHANGED
@@ -11,7 +11,8 @@ describe 'The bandiera client feature set' do
|
|
11
11
|
'show-list-images': :show_list_images?,
|
12
12
|
'show-committees': :show_committees?,
|
13
13
|
'show-government-roles': :show_government_roles?,
|
14
|
-
'show-opposition-roles': :show_opposition_roles
|
14
|
+
'show-opposition-roles': :show_opposition_roles?,
|
15
|
+
'show-activity-links': :show_activity_links?
|
15
16
|
}
|
16
17
|
|
17
18
|
method_hash.each do |flag_name, method_name|
|