pugin 1.4.0 → 1.4.1

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: 8a5b6e369134c7091a88ca167a361d95facaddbc
4
- data.tar.gz: 5c74be1364544a07ce711166f134d6c0cfd30c34
3
+ metadata.gz: 5f49d4a8905a2f8b4431653dbc6f07bcd3030750
4
+ data.tar.gz: 24a473361019177a0fd541f12f75daa8f9203f47
5
5
  SHA512:
6
- metadata.gz: 4a6eb720e7916fde7a28becdcb9f59d3dfb6c5b1b51ad7891b3ecc03c6f244f5f7275c9c85565f89f0cf6941f43b01845dcb5d1ab087858d516da2bda399d233
7
- data.tar.gz: a52bdbb2717ad7871e49f0622348654c6bed6a83a8f12035429f1a8078990345c038d8050c32d89fed9c3f35104bb0949ceb8fccf0376221ad7315431f01ecd4
6
+ metadata.gz: b0065b5cea6bd712842b7250eb0570ccd26361bce220a4b257f2e64f58c3e7a6208088ca84d1b80c4a91188a95a78da779c1f331de7b9b1113c678e27915355f
7
+ data.tar.gz: c384809e2fef9b646e55c4d2b9e73badf5ff7155beea220e6da30df82b6f56c16e16a9cc9de1de60cb8b747a6635c4b3105a497103c93b2a4d5ff90205f086bf
@@ -2,5 +2,5 @@
2
2
  .container
3
3
  %h2.logo= I18n.t('pugin.components.footer.uk_parliament')
4
4
  %ul.list
5
- %li= link_to( I18n.t('pugin.components.footer.current_website'), root_path() )
6
- %li= link_to( I18n.t('pugin.components.footer.cookie_policy'), meta_cookie_policy_path() )
5
+ %li= link_to( I18n.t('pugin.components.footer.current_website'), 'http://www.parliament.uk' )
6
+ %li= link_to( I18n.t('pugin.components.footer.cookie_policy'), meta_cookie_policy_path() )
@@ -1,7 +1,8 @@
1
1
  .status--banner
2
2
  .container
3
3
  %p
4
- %img{ class: "icon--inline", src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/icons/caution-circle-white.svg" }
4
+ %img{ alt: "", class: "icon--inline", src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/icons/caution-circle-white.svg", aria:{ hidden: "true", label: "caution" } }
5
+ %span.sr-only= 'caution'
5
6
 
6
7
  = I18n.t('pugin.components.status.status_text_1')
7
8
  %a{ href: 'http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/' }= I18n.t('pugin.components.status.give_feedback')
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.4.1'.freeze
3
3
  end
@@ -4,7 +4,7 @@ require 'haml'
4
4
  describe 'pugin/components/_footer.html.haml', type: :view do
5
5
 
6
6
  before do
7
- allow(view).to receive(:root_path).and_return("/")
7
+ allow(view).to receive(:root_path).and_return('http://www.parliament.uk')
8
8
  allow(view).to receive(:meta_cookie_policy_path).and_return("/meta/cookie-policy")
9
9
 
10
10
  render
@@ -16,7 +16,7 @@ describe 'pugin/components/_footer.html.haml', type: :view do
16
16
  <div class='container'>
17
17
  <h2 class='logo'>UK Parliament</h2>
18
18
  <ul class='list'>
19
- <li><a href="/">Current Parliament.uk website</a></li>
19
+ <li><a href="http://www.parliament.uk">Current Parliament.uk website</a></li>
20
20
  <li><a href="/meta/cookie-policy">Cookie Policy</a></li>
21
21
  </ul>
22
22
  </div>
@@ -19,7 +19,8 @@ describe 'pugin/components/_status.html.haml', type: :view do
19
19
  <div class='status--banner'>
20
20
  <div class='container'>
21
21
  <p>
22
- <img class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
22
+ <img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
23
+ <span class='sr-only'>caution</span>
23
24
  This is a test website, so may be inaccurate.
24
25
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
25
26
  to help improve it.
@@ -45,7 +46,8 @@ DATA
45
46
  <div class='status--banner'>
46
47
  <div class='container'>
47
48
  <p>
48
- <img class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
49
+ <img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
50
+ <span class='sr-only'>caution</span>
49
51
  This is a test website, so may be inaccurate.
50
52
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
51
53
  to help improve it.
@@ -74,7 +76,8 @@ DATA
74
76
  <div class='status--banner'>
75
77
  <div class='container'>
76
78
  <p>
77
- <img class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
79
+ <img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
80
+ <span class='sr-only'>caution</span>
78
81
  This is a test website, so may be inaccurate.
79
82
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
80
83
  to help improve it.
@@ -105,7 +108,8 @@ DATA
105
108
  <div class='status--banner'>
106
109
  <div class='container'>
107
110
  <p>
108
- <img class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
111
+ <img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.3/icons/caution-circle-white.svg'>
112
+ <span class='sr-only'>caution</span>
109
113
  This is a test website, so may be inaccurate.
110
114
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
111
115
  to help improve it.
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.4.0
4
+ version: 1.4.1
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-10-13 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails