Switch to bundle

This commit is contained in:
Nemo 2021-05-10 18:11:58 +05:30
parent 6948564224
commit 5b6d0e8db1
5 changed files with 30 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ Hoshruba.*
Hoshruba_*
html/
cover.pdf
vendor/

View File

@ -1,7 +1,7 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Abhay Rana <me@captnemo.in>
Copyright (C) 2021 Abhay Rana <me@captnemo.in>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long

9
Gemfile Normal file
View File

@ -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"

17
Gemfile.lock Normal file
View File

@ -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

View File

@ -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}`