pugin 1.6.3 → 1.6.4

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: db65a3038af4b286b56e3a3c703bd546aedb00b5
4
- data.tar.gz: 8ea7bfb273301fb92b98fb4d8a21c3db85efa09e
3
+ metadata.gz: 6d49298eb3ec4f373d906ebf148775215c3670b9
4
+ data.tar.gz: f73ae26a06e60d544a999ae8b3edbefa42e364b5
5
5
  SHA512:
6
- metadata.gz: 6c7b14a7c08bd6634705f888521490c9676aa55d60edf21f988abb1a824ea2d0702587d6a39bf0d8406b84f9b74d2fcb5bdf73bb63275a6412c8082e82b6085f
7
- data.tar.gz: 0b124f735acbfcd8f9d0d4c8c5fdde974b94c573ba386e5b0451bad1a2911d08865e333f21ac83f1961347248541dc159648f1d596ec4d98a389c58fb7df9ee2
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
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.6.3'.freeze
2
+ VERSION = '1.6.4'.freeze
3
3
  end
@@ -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.3
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-30 00:00:00.000000000 Z
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails