pugin 1.6.18 → 1.6.19
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 +5 -0
- data/lib/pugin/version.rb +1 -1
- data/spec/lib/pugin/feature/bandiera_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34ef0d9f72b61f77c26af41d344f9141d6465942
|
4
|
+
data.tar.gz: bca96446c049c408f536e7eccda3f4d178fd3346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a324341dff94c1027e4f201bc99c0ef8b945eab1388757d49573f56aad692d21045c9393c5e75beffb2512e71048956541fe4dfdd1a54e058f7f0476ef0eb3
|
7
|
+
data.tar.gz: b38eee7981d077790431ca6e8fdb074e2f0b28f55983b9ab9278c2c27cc6339a83a1a8eef39ca74fc0bd7ff615a91919c1d79a2dc5af6c32ebe8ee4f913c6345
|
@@ -47,6 +47,11 @@ module Pugin
|
|
47
47
|
@features.fetch('show-activity-links', false)
|
48
48
|
end
|
49
49
|
|
50
|
+
def show_lords_ineligibility_banner?
|
51
|
+
get_features
|
52
|
+
@features.fetch('show-lords-ineligibility-banner', false)
|
53
|
+
end
|
54
|
+
|
50
55
|
# Reset cached features
|
51
56
|
def reset
|
52
57
|
@features = nil
|
data/lib/pugin/version.rb
CHANGED
@@ -12,7 +12,8 @@ describe 'The bandiera client feature set' do
|
|
12
12
|
'show-committees': :show_committees?,
|
13
13
|
'show-government-roles': :show_government_roles?,
|
14
14
|
'show-opposition-roles': :show_opposition_roles?,
|
15
|
-
'show-activity-links': :show_activity_links
|
15
|
+
'show-activity-links': :show_activity_links?,
|
16
|
+
'show-lords-ineligibility-banner': :show_lords_ineligibility_banner?
|
16
17
|
}
|
17
18
|
|
18
19
|
method_hash.each do |flag_name, method_name|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|