parliament-utils 0.8.6 → 0.8.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 287ae1858e83e38907f861a6eee19da93cedb89c
|
4
|
+
data.tar.gz: 0f320941b79d1ec124babc8469b7fe893edfca9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 385e63da5667aafd8f14991343fe83f15b65fab68d1dd49fdae8dc3ca2d83cb971b4277b2fc2d381188d6db989e6944a6678fccd5e820311c02d1c7a13be1f13
|
7
|
+
data.tar.gz: 93e11d863ac58fc57407a6fb5a872474bcad673223920eebd0e9b714322344d812e7d48ae31a8cb317a9ff69ac84ee869aae46db277f9ca067c6e900776f333f
|
@@ -16,10 +16,8 @@ module Parliament
|
|
16
16
|
parliament_scrubber = Parliament::Utils::Services::ParliamentMarkdownScrubber.new
|
17
17
|
|
18
18
|
markdown = Redcarpet::Markdown.new(parliament_renderer, tables: true, autolink: true, lax_spacing: true)
|
19
|
-
|
20
|
-
|
21
|
-
ActionController::Base.helpers.sanitize(html, scrubber: parliament_scrubber).html_safe
|
22
|
-
html.html_safe
|
19
|
+
sanitized_template = ActionController::Base.helpers.sanitize(template, scrubber: parliament_scrubber)
|
20
|
+
markdown.render(sanitized_template).html_safe
|
23
21
|
end
|
24
22
|
end
|
25
23
|
end
|
@@ -36,7 +36,7 @@ module Parliament
|
|
36
36
|
# Add video ID
|
37
37
|
url << "/#{uri.path.split('/').last}?"
|
38
38
|
# Add original query if present, and not an empty string
|
39
|
-
url << "#{uri.query}&" if uri.query&.size
|
39
|
+
url << "#{CGI.unescapeHTML(uri.query)}&" if uri.query&.size
|
40
40
|
# Add player options
|
41
41
|
url << 'audioOnly=False&autoStart=False&statsEnabled=False'
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parliament-ruby
|