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 +4 -4
- data/app/views/pugin/layouts/_layout.html.haml +3 -1
- data/app/views/pugin/meta/_application_insights.html.haml +1 -0
- data/app/views/pugin/people/list/lord/_lord.html.haml +1 -1
- data/app/views/pugin/people/list/member/_member.html.haml +1 -1
- data/lib/pugin/version.rb +1 -1
- data/lib/pugin.rb +1 -1
- data/spec/views/pugin/layouts/_layout.html.haml_spec.rb +23 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a131a610b391cf0318d30878f84519ee02c6c7ee
|
|
4
|
+
data.tar.gz: cc47f2e8f9304a5b117652e8040f28f142b37ad3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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'
|
|
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 }
|
data/lib/pugin/version.rb
CHANGED
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.
|
|
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.
|
|
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-
|
|
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
|