TriviaMD 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trivia_parser.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e11f369f370f2a2d704f14f444bef3e97e75b1ca4d81566bbf315267439266d
|
4
|
+
data.tar.gz: d4744ce4e6f5597c906ec9924ba4f788d24c62f1b04e5bb27339baf7434c868a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0580793cff07b0f6e3b521bfaf182af89ed10c3cf0dd96df931975f0235bb2ab65c1af899653911636604421bf0bc0256bd3cd8ff8750441563c2fd438c0fc1
|
7
|
+
data.tar.gz: 4a86d66ed13b1b8b0cb541317a63348989b7d0fef75b9cc0086d1fd35f4b85a3fbf9d3103eb1715f7c0226dfcc6f0fd7cb5f1615c3513376fa775bc942e3f272
|
data/lib/trivia_parser.rb
CHANGED
@@ -19,13 +19,13 @@ class TriviaParser
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
def
|
23
|
-
"#{ENV.fetch('
|
22
|
+
def markdown_gitiles_url
|
23
|
+
"#{ENV.fetch('GITILES_PROJECT_URL', 'https://gitiles.com/')}#{@file_path}"
|
24
24
|
end
|
25
25
|
|
26
26
|
def parse_reason(c)
|
27
27
|
if c.options[:lang] == "html"
|
28
|
-
c.value.strip.gsub(/{
|
28
|
+
c.value.strip.gsub(/{GITILES_MD}/,markdown_gitiles_url)
|
29
29
|
else
|
30
30
|
escape_html(c.value.strip)
|
31
31
|
end
|