diff --git a/.gitignore b/.gitignore index 18b852b..a5186a6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ Hoshruba.* Hoshruba_* html/ cover.pdf +vendor/ \ No newline at end of file diff --git a/COPYING b/COPYING index 56fce5e..263f6ba 100644 --- a/COPYING +++ b/COPYING @@ -1,7 +1,7 @@ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 - Copyright (C) 2015 Abhay Rana + Copyright (C) 2021 Abhay Rana Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..1473fe0 --- /dev/null +++ b/Gemfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } + +# gem "rails" + +gem "nokogiri", "~> 1.11" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..20f9f41 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,17 @@ +GEM + remote: https://rubygems.org/ + specs: + mini_portile2 (2.5.1) + nokogiri (1.11.3) + mini_portile2 (~> 2.5.0) + racc (~> 1.4) + racc (1.5.2) + +PLATFORMS + ruby + +DEPENDENCIES + nokogiri (~> 1.11) + +BUNDLED WITH + 2.2.17 diff --git a/README.md b/README.md index 093e00b..f3d9906 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # hoshruba - ![](cover.jpg) - Tor.com recently published the entire first book in the Hoshruba series as a [series of blog posts](http://www.tor.com/features/series/hoshruba-series/). This script downloads all of these posts and converts them into a publishable format, including @@ -31,7 +29,8 @@ You can also skip calibre if you only want the EPUB file. After downloading the repo and installing the requirements, just run - ruby setup.rb + bundle install + bundle exec ruby setup.rb All the generated files will be saved with the filename `Hoshruba.{epub|pdf|mobi|html}`