]> jaekl.net Git - quanlib.git/commitdiff
Housekeeping.
authorChris Jaekl <chris@localhost>
Sat, 14 Mar 2020 00:04:25 +0000 (20:04 -0400)
committerChris Jaekl <chris@localhost>
Sat, 14 Mar 2020 00:04:25 +0000 (20:04 -0400)
Update Gemfile to use https instead of http.
Switch require to require_relative.

Gemfile
Gemfile.lock
book.rb
main.rb
navigator.rb
page.rb
store.rb
walkdir.rb

diff --git a/Gemfile b/Gemfile
index 4978fced747dfae03ce8aa32c12199d5e6696eb0..e3b145ed25153117b71a8b5aecb38f6520c970e1 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,7 @@
-source 'https://rubygems.org'
+source 'http://rubygems.org'
 
 gem 'inifile'
+gem 'nokogiri'
 gem 'pg'
 gem 'rspec'
-gem 'tconn'
+gem 'rubyzip'
index 68294387b528d35fbde1d7a02dc01125c110f4d4..3cc58d3a9dd19c0a8eb62f2b9b4fa57df470069d 100644 (file)
@@ -1,8 +1,11 @@
 GEM
-  remote: https://rubygems.org/
+  remote: http://rubygems.org/
   specs:
     diff-lcs (1.3)
     inifile (3.0.0)
+    mini_portile2 (2.4.0)
+    nokogiri (1.10.3)
+      mini_portile2 (~> 2.4.0)
     pg (1.1.4)
     rspec (3.8.0)
       rspec-core (~> 3.8.0)
@@ -17,14 +20,17 @@ GEM
       diff-lcs (>= 1.2.0, < 2.0)
       rspec-support (~> 3.8.0)
     rspec-support (3.8.2)
+    rubyzip (1.2.3)
 
 PLATFORMS
   ruby
 
 DEPENDENCIES
   inifile
+  nokogiri
   pg
   rspec
+  rubyzip
 
 BUNDLED WITH
    2.0.2
diff --git a/book.rb b/book.rb
index cd14ab690b6164c14c7f842b4755e85bb87d231e..2f7b7a6afff83e3c5c61225c15ba886f916d975b 100644 (file)
--- a/book.rb
+++ b/book.rb
@@ -3,10 +3,10 @@ require 'nokogiri'
 require 'rubygems'
 require 'zip'
 
-require 'author'
-require 'classification'
-require 'cover'
-require 'store'
+require_relative 'author'
+require_relative 'classification'
+require_relative 'cover'
+require_relative 'store'
 
 class Book
   @@DC_NS_URL = 'http://purl.org/dc/elements/1.1/'
diff --git a/main.rb b/main.rb
index 7c08cf2b66e90839b14bab5d5f392be2ccbe93f8..564ba8b8159d523775146ca9324b3e96a1f0f83d 100644 (file)
--- a/main.rb
+++ b/main.rb
@@ -1,7 +1,7 @@
-require 'navigator'
-require 'page'
-require 'store'
-require 'walkdir'
+require_relative 'navigator'
+require_relative 'page'
+require_relative 'store'
+require_relative 'walkdir'
 
 @outputDir = 'output'
 
index 70c13e3be04510efe22695192643538677293831..881b1fa8237231d524197eb8f0cf188d58330268 100644 (file)
@@ -1,5 +1,5 @@
-require 'page'
-require 'store'
+require_relative 'page'
+require_relative 'store'
 
 class Navigator
   def initialize(store)
diff --git a/page.rb b/page.rb
index a94c90f08109d99f95feed709c8a14d0494a6b40..638f9ad1b7c064698c0078e9a34524c8a0ed3d58 100644 (file)
--- a/page.rb
+++ b/page.rb
@@ -1,6 +1,6 @@
 require 'fileutils'
 
-require 'store'
+require_relative 'store'
 
 class Page
   def initialize(store)
index 92d1ce57d1917ea7309d86527fa96f5aa826581e..1ce5fd45f417ebb3cad5757b27da1e510d16c099 100644 (file)
--- a/store.rb
+++ b/store.rb
@@ -3,9 +3,9 @@ require 'csv'
 require 'fileutils'
 require 'inifile'
 require 'pg'
-require_relative 'tconn'
 
 require_relative 'series'
+require_relative 'tconn'
 
 class Store
   def unclassified_csv
index b00645545fa984b5fbef17b09b45513957ab6f69..bbb56a263fbb70381875182d88bcf21fcb05c1b3 100644 (file)
@@ -18,8 +18,8 @@
 # and Mrs. Pollifax volume 6, On the China Station, is
 # .../DorothyGilman/P06_On_the_China_Station.epub.
 
-require 'book'
-require 'store'
+require_relative 'book'
+require_relative 'store'
 
 class WalkDir
   def initialize(store, root)