TriviaMD 0.2.1 → 0.2.3

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
  SHA256:
3
- metadata.gz: 9c9d294431e5bbcee588459e604abd0a7c92d2215ef5299c6b67fcee87975ef8
4
- data.tar.gz: 4ea3c51bc2d91522aa2654606a08821e0289a732ffb67edac6c046d32367687e
3
+ metadata.gz: 0e11f369f370f2a2d704f14f444bef3e97e75b1ca4d81566bbf315267439266d
4
+ data.tar.gz: d4744ce4e6f5597c906ec9924ba4f788d24c62f1b04e5bb27339baf7434c868a
5
5
  SHA512:
6
- metadata.gz: cd57a640a346fba946b62fc02fd5d9a50c8c92189b93e5e28ab5c7b354dc141f9afa396ead8ceaca01e011d2deaa35228a5831e7dd5c318bac4a8e4b856a9bed
7
- data.tar.gz: b72de6ecb4fd805f2d035fbc263ec41a46cf6de0e89c03d3a034b39735a03cea801ff48279f1b6dcbd67936475b3685402413e21a2c869dbd68d527231632916
6
+ metadata.gz: b0580793cff07b0f6e3b521bfaf182af89ed10c3cf0dd96df931975f0235bb2ab65c1af899653911636604421bf0bc0256bd3cd8ff8750441563c2fd438c0fc1
7
+ data.tar.gz: 4a86d66ed13b1b8b0cb541317a63348989b7d0fef75b9cc0086d1fd35f4b85a3fbf9d3103eb1715f7c0226dfcc6f0fd7cb5f1615c3513376fa775bc942e3f272
data/lib/trivia_md.rb CHANGED
@@ -24,7 +24,7 @@ module App
24
24
  desc "parse", "parses trivias"
25
25
  option :file_path
26
26
  def parse(file_path)
27
- puts TriviaParser.new().parse.to_json
27
+ puts TriviaParser.new(file_path).parse.to_json
28
28
  end
29
29
  end
30
30
 
data/lib/trivia_parser.rb CHANGED
@@ -19,13 +19,13 @@ class TriviaParser
19
19
  end
20
20
 
21
21
 
22
- def markdown_gitlies_url
23
- "#{ENV.fetch('GITLIES_PROJECT_URL', 'https://gitlies.com/')}#{@file_path}"
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(/{GITLIES_MD}/,markdown_gitlies_url)
28
+ c.value.strip.gsub(/{GITILES_MD}/,markdown_gitiles_url)
29
29
  else
30
30
  escape_html(c.value.strip)
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TriviaMD
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bence Pjatacsuk