pugin 1.6.3 → 1.6.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d49298eb3ec4f373d906ebf148775215c3670b9
|
|
4
|
+
data.tar.gz: f73ae26a06e60d544a999ae8b3edbefa42e364b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b76e0a9f7b46220644282702116d1dd422602f8d3b065c51cdb2b54cfaa0bc4add37ca33008394fc132790784b0e9ddcb3b9f01c719d2acb2d12cf20bb4c62a8
|
|
7
|
+
data.tar.gz: aa5911def6a10a865c13cdec45b64cf7455f610ced47c8942dc13156b8d6fd19e3c0a5ced3f1c15fc9ef7d2559d180145683bc93ee60ce4bc165a6bd4e1ecd30
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/ See below for data views
|
|
17
17
|
/ ========================
|
|
18
18
|
- Pugin.alternates.each do |alternate|
|
|
19
|
-
%link{rel: 'alternate', type: alternate[:type], href: alternate[:href]}
|
|
19
|
+
%link{rel: 'alternate', type: alternate[:type], href: alternate[:href].html_safe}
|
|
20
20
|
%body
|
|
21
21
|
= render partial: 'pugin/javascript/has_js'
|
|
22
22
|
- if ENV['GTM_KEY']
|
data/lib/pugin/version.rb
CHANGED
|
@@ -39,6 +39,7 @@ describe 'pugin/layouts/_layout.html.haml', type: :view do
|
|
|
39
39
|
[
|
|
40
40
|
{ type: 'text/foo', href: 'https://api.example.com/' },
|
|
41
41
|
{ type: 'application/bar', href: 'https://api.example.com/' },
|
|
42
|
+
{ type: 'application/bar', href: 'https://api.example.com/test&format=application/bar' },
|
|
42
43
|
]
|
|
43
44
|
end
|
|
44
45
|
|
|
@@ -51,6 +52,10 @@ describe 'pugin/layouts/_layout.html.haml', type: :view do
|
|
|
51
52
|
expect(rendered).to include('<link href=\'https://api.example.com/\' rel=\'alternate\' type=\'text/foo\'>')
|
|
52
53
|
expect(rendered).to include('<link href=\'https://api.example.com/\' rel=\'alternate\' type=\'application/bar\'>')
|
|
53
54
|
end
|
|
55
|
+
|
|
56
|
+
it 'treats HTML as safe' do
|
|
57
|
+
expect(rendered).to include("<link href='https://api.example.com/test&format=application/bar' rel='alternate' type='application/bar'>")
|
|
58
|
+
end
|
|
54
59
|
end
|
|
55
60
|
|
|
56
61
|
context 'without Pugin.alternates set' do
|
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.6.
|
|
4
|
+
version: 1.6.4
|
|
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
|
|
11
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|