expand paths

This commit is contained in:
0x1eef 2022-04-26 15:32:12 -03:00
parent 9263c5366a
commit b8bebb30c6
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ require "paint"
# Configuration variables. # Configuration variables.
base_uri = "www.sacred-texts.com" base_uri = "www.sacred-texts.com"
path = "/isl/uq/%{htm_file}" path = "/isl/uq/%{htm_file}"
dest_path = File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json") dest_path = File.expand_path File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json")
chapter_count = 114 chapter_count = 114
cool_off = 5 cool_off = 5

View file

@ -9,8 +9,8 @@ require "paint"
# Configuration variables. # Configuration variables.
base_uri = "quran.com" base_uri = "quran.com"
path = "/%{chapter_num}/%{verse_num}" path = "/%{chapter_num}/%{verse_num}"
dest_path = File.join(__dir__, "..", "src", "english", "%{chapter_num}.json") dest_path = File.expand_path File.join(__dir__, "..", "src", "english", "%{chapter_num}.json")
arab_path = File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json") arab_path = File.expand_path File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json")
chapter_count = 114 chapter_count = 114
cool_off = 5 cool_off = 5