pugin 1.2.5 → 1.3.0

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: ce26436e7b1249e873906de786cfb758eb8deaef
4
- data.tar.gz: 50d20cb6c1814b328bfe7dec90a8429067d043d7
3
+ metadata.gz: ee5060392d300c70657dc2111d57a21e75d53308
4
+ data.tar.gz: 1d5df330f288a5790f2afc848e4809bbf3b86c9d
5
5
  SHA512:
6
- metadata.gz: 1a8c9b03181c6e0105a612636bf4a8074f95f707180ced6c08913d47910b8760642f11ddd7f78a408dd52ca5bf61d0d4cd63dab6a52a534acf4bcd401ebfd986
7
- data.tar.gz: 50d0ba30996338c92ac7a019b994b426c5dccab2813d92567e0cbdb1a1ef8aae5fdc35b8bf0136c8a021f55f1a124e7cff8b97c4bf49db478389b7e9caf10705
6
+ metadata.gz: 7794100c0263228cf90dc83f12f1546b622f8b0f9d60030ae704e395d46d44cba1c82ae8c3fe20e371620f9aded2c89716a9adfec240de21b43619ded2e95847
7
+ data.tar.gz: 53a8a08abc44e1cce323c94070968564b54e79679e1dd4991b24245b2f7d98122752aacae7498c34fdeb2dca74c0a7a68e5fea011e4db99cf4f740496f9ec8e7
@@ -0,0 +1,7 @@
1
+ %li
2
+ .list--details
3
+ - if committees.respond_to?(:name)
4
+ %h2= link_to(committees.name, committees_show_path(committees.graph_id))
5
+ - else
6
+ %h2= link_to(committees.formal_body.name, committees_show_path(committees.formal_body.graph_id))
7
+ %p= "" ? committees.date_range : committees.formal_body.date_range
@@ -27,6 +27,11 @@ module Pugin
27
27
 
28
28
  @features.fetch('show-list-images', false)
29
29
  end
30
+ def show_committees?
31
+ get_features
32
+
33
+ @features.fetch('show-committees', false)
34
+ end
30
35
 
31
36
 
32
37
  # Reset cached features
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.2.5'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
@@ -8,7 +8,8 @@ describe 'The bandiera client feature set' do
8
8
  'show-register': :register_to_vote?,
9
9
  'show-election': :election?,
10
10
  'show-post-election': :post_election?,
11
- 'show-list-images': :show_list_images?
11
+ 'show-list-images': :show_list_images?,
12
+ 'show-committees': :show_committees?
12
13
  }
13
14
 
14
15
  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.2.5
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -193,6 +193,7 @@ files:
193
193
  - app/assets/stylesheets/pugin/overrides/asset_overrides.css.erb
194
194
  - app/assets/stylesheets/pugin/pugin.css
195
195
  - app/views/pugin/cards/_person-list.haml
196
+ - app/views/pugin/committees/list/_list.html.haml
196
197
  - app/views/pugin/components/_footer.haml
197
198
  - app/views/pugin/components/_header.haml
198
199
  - app/views/pugin/components/_navigation-letter.haml