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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 933e4206db1472e015702500eaa43c85530bf5bd
4
- data.tar.gz: 8641c61590362890805947b401334777e71834eb
3
+ metadata.gz: 202a9aa32070a2122902c65d44318a8b2b1b5ad5
4
+ data.tar.gz: 4e51aa92aab32253a4e4c81545aa224619a7696c
5
5
  SHA512:
6
- metadata.gz: b16dd241d6d685a578a46ed40710c1ffe97f997e19a2b3c402ae419dcd09a21068f9704403f866a95bb7b43c0b85bc2b75f5b01930f8559c07bfe80b349afc28
7
- data.tar.gz: 93674d3b915f897197b1fd007830bc81d8a7c82b06c73cf783bc1df1d9cbf93f7a101757a8f6aebe694a9e96f3ca0e35496dc67211071626d060ebd2796a3eaa
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
- @features.fetch('show-opposition-roles', false)
44
- end
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
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.6.16'.freeze
2
+ VERSION = '1.6.17'.freeze
3
3
  end
@@ -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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.16
4
+ version: 1.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner