Last active
March 14, 2025 22:39
-
-
Save pragdave/390443e39bfdd002486ec85864825e96 to your computer and use it in GitHub Desktop.
Revisions
-
pragdave revised this gist
Mar 14, 2025 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1 @@ abc -
pragdave revised this gist
Mar 14, 2025 . 1 changed file with 1 addition and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,2 @@ csv_name = "#{Time.now.strftime("%Y%m%d")}-pragprog-meta.csv"
-
pragdave created this gist
Mar 14, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ csv_name = "#{Time.now.strftime("%Y%m%d")}-pragprog-meta.csv" op = CSV.open(csv_name, "w") op << BUKU_COLUMNS imported.each do |title| row = [ title['isbn13'], dlps[title['isbn13']], title['title'], title['subtitle'], title['edition'] || 1, title['author'], format_description(title), format_bisacs(title), "EPUB", title['pubdate'].strftime("%Y-%m-%d"), "English", title['page_count'] || 0 ] op