pugin 1.5.0 → 1.5.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: 1afec83622eaef2339c3bd20a7c773570333adba
4
- data.tar.gz: be0b7498afa95e175bc50f011a6ca6e5ef3ae21d
3
+ metadata.gz: 1fd93d852e019501812a0c9ba9e2cd28428f0c08
4
+ data.tar.gz: e8f27061981f0816cfeeb04250f5e8d343d68374
5
5
  SHA512:
6
- metadata.gz: 8130e5df3737f62a5a7e545bf9559a6855f8014f13818a654e8b9727358d1c99a01b4ac8a9407792078fece3c5c6209f59b953ead0b82d3519e48525cee80f07
7
- data.tar.gz: debc730d9d5d1ce40ccb7f04fcf914a1929ba816a27275e8c7cc2e3e8abf8ffa1a1cfe4eee61581685b340254156f1e57ecfe67bcb89520119b1ff8cdc425481
6
+ metadata.gz: b199a602830752635372e892fb9bc2b3fd1e5299c18f6196380dd8943e484e53512865dd3999f43c23b4f57f3d4d229a74a7e21da6bfd2b66055e42f312687df
7
+ data.tar.gz: 80cc5e28cbe557f9562a319d7740dd1edc8926f8efac615dbc376460b39bdd13e3915743b4a86e5576d938cfbad66380a95b595636c35ea3f75a951f76730618
@@ -5,7 +5,7 @@
5
5
  - if @letters.empty? || !local_assigns[:all_path]
6
6
  %span= I18n.t('pugin.components.navigation-letter.all').capitalize
7
7
  - else
8
- = link_to "#{I18n.t('pugin.components.navigation-letter.all').capitalize}", send(all_path, local_assigns.fetch(:route_args, nil))
8
+ = link_to "#{I18n.t('pugin.components.navigation-letter.all').capitalize}", send(all_path, *local_assigns.fetch(:route_args, nil))
9
9
  - ('a'..'z').each do |letter|
10
10
  %li{ data: { letter: letter }, class: ('active' if (params[:letter] == letter)) }
11
11
  - if @letters.include?(letter.upcase)
@@ -10,9 +10,9 @@
10
10
  - if ENV['GTM_KEY']
11
11
  = render partial: 'pugin/javascript/google_tag_manager'
12
12
  - unless Pugin.alternates.empty?
13
- / /==========================\
14
- / [ See below for data views ]
15
- / \==========================/
13
+ / ========================
14
+ / See below for data views
15
+ / ========================
16
16
  - Pugin.alternates.each do |alternate|
17
17
  %link{rel: 'alternate', type: alternate[:type], href: alternate[:href]}
18
18
  %body
data/lib/pugin.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'pugin/version'
2
2
 
3
3
  module Pugin
4
- ASSET_VERSION = '1.6.3'.freeze
4
+ ASSET_VERSION = '1.6.4'.freeze
5
5
  ASSET_LOCATION_URL = ENV.fetch('ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1live.pugin-website')
6
6
  STATIC_ASSET_LOCATION_URL = ENV.fetch('STATIC_ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1live.static-assets')
7
7
  class << self
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '1.5.1'.freeze
3
3
  end
@@ -19,7 +19,7 @@ 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 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'>
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.4/icons/caution-circle-white.svg'>
23
23
  <span class='sr-only'>caution</span>
24
24
  This is a test website, so may be inaccurate.
25
25
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
@@ -46,7 +46,7 @@ DATA
46
46
  <div class='status--banner'>
47
47
  <div class='container'>
48
48
  <p>
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'>
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.4/icons/caution-circle-white.svg'>
50
50
  <span class='sr-only'>caution</span>
51
51
  This is a test website, so may be inaccurate.
52
52
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
@@ -76,7 +76,7 @@ DATA
76
76
  <div class='status--banner'>
77
77
  <div class='container'>
78
78
  <p>
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'>
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.4/icons/caution-circle-white.svg'>
80
80
  <span class='sr-only'>caution</span>
81
81
  This is a test website, so may be inaccurate.
82
82
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
@@ -108,7 +108,7 @@ DATA
108
108
  <div class='status--banner'>
109
109
  <div class='container'>
110
110
  <p>
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'>
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.4/icons/caution-circle-white.svg'>
112
112
  <span class='sr-only'>caution</span>
113
113
  This is a test website, so may be inaccurate.
114
114
  <a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
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.5.0
4
+ version: 1.5.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-11-06 00:00:00.000000000 Z
11
+ date: 2017-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -208,7 +208,6 @@ files:
208
208
  - app/views/pugin/javascript/_has_js.haml
209
209
  - app/views/pugin/javascript/_pingdom.haml
210
210
  - app/views/pugin/layouts/_layout.html.haml
211
- - app/views/pugin/layouts/pugin-sinatra.haml
212
211
  - app/views/pugin/layouts/pugin.html.erb
213
212
  - app/views/pugin/parties/list/_list.html.haml
214
213
  - app/views/pugin/parties/list/current/current_party.html.haml
@@ -1,21 +0,0 @@
1
- !!! 5
2
- %html{lang:'en'}
3
- %head
4
- - title = yield_content :title
5
- %title= ( title.nil? || title.empty? ) ? I18n.t('pugin.layouts.pugin.website_brand') : title + ' - ' + I18n.t('pugin.layouts.pugin.website_brand')
6
- %link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/main.css" }
7
- %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
8
- %meta{'http-equiv': 'X-UA-Compatible', content: 'IE=edge'}
9
- %link{rel: 'shortcut icon', type: 'image/x-icon', href: "#{Pugin::STATIC_ASSET_LOCATION_URL}/favicon.ico"}
10
- - if ENV['GTM_KEY']
11
- = partial '/pugin/javascript/_google_tag_manager'
12
- %body.no-js
13
- - if ENV['GTM_KEY']
14
- = partial '/pugin/javascript/_google_tag_manager_noscript'
15
- = partial '/pugin/elements/_skip-content'
16
- = partial '/pugin/components/_status'
17
- = partial '/pugin/components/_header'
18
- %main
19
- = yield
20
- = partial '/pugin/components/_footer'
21
- %script{src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/javascripts/main.js"}