pugin 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78d4be137c2b99ece40c087b06cbae3746902c0a
4
- data.tar.gz: db6c8d049ec4d22175a5fca5c751965a1e584c08
3
+ metadata.gz: a131a610b391cf0318d30878f84519ee02c6c7ee
4
+ data.tar.gz: cc47f2e8f9304a5b117652e8040f28f142b37ad3
5
5
  SHA512:
6
- metadata.gz: a2c46fa0ecb211eefe905ce031476ab1cd1167db2644d33e76ba324beb54156a55dc30bea6cc90f293fe8e3d1d746fa2edecdec73ede0a5898457532d73a3628
7
- data.tar.gz: 2c880c8c64bc83a1a4fa636d4400a173d32f998807e96c0659e8371842365bb176e575f06e32ff0a791615d7de884c14630e4b898e6d9c0cc93d0c5169970196
6
+ metadata.gz: 0b96572f136176a7c1fcb10224710090e2b26ab43eb343685d9baba67799e9bc4920b8cc14cb59e5330f853f400760321078748bc34c41dfd1f4eca66646023b
7
+ data.tar.gz: 9844ae13b44f52b3d2f9c10ff18e3101eb4c91bdd0e7effe995015426ea9cc5e1a9a80de878b60c0e30a4e7c85f72c52075fe48b7b91c6da8279188dded8a6dc
@@ -6,9 +6,11 @@
6
6
  %title= page_title
7
7
  %link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/main.css" }
8
8
  %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
9
- %meta{'http-equiv': 'X-UA-Compatible', content: 'IE=edge'}
9
+ %meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'}
10
10
  %link{rel: 'shortcut icon', type: 'image/x-icon', href: "#{Pugin::STATIC_ASSET_LOCATION_URL}/favicon.ico"}
11
11
  %link{rel: 'search', type: 'application/opensearchdescription+xml', href: opensearch_description_url, title: I18n.t('pugin.layouts.pugin.website_brand')}
12
+ - if @app_insights_request_id
13
+ = render partial: 'pugin/meta/application_insights', locals: { app_insights_request_id: @app_insights_request_id }
12
14
  - if ENV['GTM_KEY']
13
15
  = render partial: 'pugin/javascript/google_tag_manager'
14
16
  - unless Pugin.alternates.empty?
@@ -0,0 +1 @@
1
+ %meta{ name: 'applicationinsights-request-id', content: app_insights_request_id }
@@ -1,6 +1,6 @@
1
1
  .card
2
2
  - if Pugin::Feature::Bandiera.show_list_images?
3
- %figure
3
+ %figure.avatar--round
4
4
  %a{ href: "/people/#{lord.graph_id}", aria: { hidden: "true" }, tabindex: "-1" }
5
5
  %picture
6
6
  - if lord.image_id != "placeholder"
@@ -1,6 +1,6 @@
1
1
  .card
2
2
  - if Pugin::Feature::Bandiera.show_list_images?
3
- %figure
3
+ %figure.avatar--round
4
4
  %a{ href: "/people/#{member.graph_id}", aria: { hidden: "true" }, tabindex: "-1" }
5
5
  %picture
6
6
  - if member.image_id != "placeholder"
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.8.0'.freeze
3
3
  end
data/lib/pugin.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'pugin/version'
2
2
 
3
3
  module Pugin
4
- ASSET_VERSION = '1.9.0'.freeze
4
+ ASSET_VERSION = '1.9.1'.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
  STATIC_ASSET_PUBLIC_LOCATION_URL = ENV.fetch('STATIC_ASSET_PUBLIC_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1live.static-assets-public')
@@ -128,4 +128,27 @@ describe 'pugin/layouts/_layout.html.haml', type: :view do
128
128
  end
129
129
  end
130
130
  end
131
+
132
+ describe 'ApplictaionInsights' do
133
+ context 'with request ID set' do
134
+ before :each do
135
+ assign(:app_insights_request_id, '|12345678abcdefgh.')
136
+ render
137
+ end
138
+
139
+ it 'render the expected meta tag' do
140
+ expect(rendered).to include("<meta content='|12345678abcdefgh.' name='applicationinsights-request-id'>")
141
+ end
142
+ end
143
+
144
+ context 'without request ID set' do
145
+ before :each do
146
+ render
147
+ end
148
+
149
+ it 'does not render the meta tag' do
150
+ expect(rendered).not_to include('name="applicationinsights-request-id"')
151
+ end
152
+ end
153
+ end
131
154
  end
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.7.0
4
+ version: 1.8.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: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -217,6 +217,7 @@ files:
217
217
  - app/views/pugin/javascript/_pingdom.haml
218
218
  - app/views/pugin/layouts/_layout.html.haml
219
219
  - app/views/pugin/layouts/pugin.html.erb
220
+ - app/views/pugin/meta/_application_insights.html.haml
220
221
  - app/views/pugin/meta/_opengraph.html.haml
221
222
  - app/views/pugin/parties/list/_list.html.haml
222
223
  - app/views/pugin/parties/list/current/current_party.html.haml