bookshop 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,13 @@
1
+ 0.0.13:
2
+ Bug fixes
3
+ Fixed build pdf command so it doesn't try to build epub
4
+
5
+ 0.0.12:
6
+ Doc fixes
7
+ Added new post-install message to alert users to install wkhtmltopdf
8
+
9
+ Removed old POST_INSTALL file
10
+
1
11
  0.0.11:
2
12
  Complete rewrite
3
13
  Switched from docbook toolchain to html/css/javascript toolchain
@@ -31,79 +31,6 @@ module Bookshop
31
31
  puts "Building new pdf at builds/pdf/book.pdf"
32
32
  cmd = %x[wkhtmltopdf book/book.html builds/pdf/book.pdf]
33
33
  # cmd = %x[wkhtmltopdf #{SRC_FILE} #{OUT_FILE}]
34
-
35
- # when 'epub'
36
- puts "Deleting any old builds"
37
- File.delete("builds/epub/book.epub") if File::exists?( "builds/epub/book.epub" )
38
- puts "File Deleted"
39
-
40
- puts "Building new epub at builds/epub/book.epub"
41
-
42
- # create temp epub folder
43
- # create folder META_INF with container...
44
- # create folder OEBPS, copy html over
45
- # create mimetype
46
-
47
- cmd = %x[cd book/ && zip -X0 "../builds/epub/book.epub" mimetype && zip -rDX9 "../builds/epub/book.epub" * -x "*.DS_Store" -x mimetype]
48
-
49
- puts "Validating epub"
50
- cmd = %x[java -jar tools/epubcheck-1.2.jar builds/epub/book.epub]
51
-
52
-
53
- # when 'mobi'
54
- puts "Deleting any old builds"
55
- File.delete("builds/mobi/book.*") if File::exists?( "builds/mobi/book.*" )
56
- puts "File Deleted"
57
-
58
- puts "Building new epub at builds/mobi/book.epub"
59
- cmd = %x[tools/xsl/epub/bin/dbtoepub -v book/book.xml -o builds/mobi/book.epub]
60
-
61
- puts "Validating epub"
62
- cmd = %x[java -jar tools/java/epubcheck-1.2.jar builds/mobi/book.epub]
63
-
64
- puts "Generating mobi file at builds/mobi/book.mobi"
65
- cmd = %x[rm ../book.* && epubmake && epubcheck && /Applications/Kindle/KindleGen/kindlegen ../book.epub]
66
-
67
- puts "Cleaning up..."
68
- File.delete("builds/mobi/book.epub") if File::exists?( "builds/mobi/book.epub" )
69
-
70
- # to be fixed
71
-
72
- # when 'html'
73
- # puts "Deleting your old html build"
74
- # File.delete("builds/html/book.html") if File::exists?( "builds/html/book.html" )
75
- # puts "File Deleted"
76
-
77
- # puts "Building new html at builds/html/book.html"
78
- # cmd = %x[java -jar tools/java/xalan.jar -in book/book.xml -xsl stylesheets/html-stylesheet.xsl -out builds/html/book.html]
79
-
80
- when 'all'
81
- puts "Building pdf..."
82
- puts "Deleting any old builds"
83
- File.delete("builds/pdf/book.pdf") if File::exists?( "builds/pdf/book.pdf" )
84
- puts "File Deleted"
85
- puts "Building new pdf at builds/pdf/book.pdf"
86
- cmd = %x[java -jar tools/java/fop.jar -xml book/book.xml -xsl stylesheets/fo-stylesheet.xsl builds/pdf/book.pdf]
87
-
88
- puts "Building epub..."
89
- puts "Deleting any old builds"
90
- File.delete("builds/epub/book.epub") if File::exists?( "builds/epub/book.epub" )
91
- puts "File Deleted"
92
- puts "Building new pdf at builds/epub/book.epub"
93
- cmd = %x[tools/xsl/epub/bin/dbtoepub -v book/book.xml -o builds/epub/book.epub]
94
-
95
- puts "Building mobi..."
96
- puts "Deleting any old builds"
97
- File.delete("builds/mobi/book.*") if File::exists?( "builds/mobi/book.*" )
98
- puts "File Deleted"
99
- puts "Building new epub at builds/mobi/book.epub"
100
- cmd = %x[tools/xsl/epub/bin/dbtoepub -v book/book.xml -o builds/mobi/book.epub]
101
- puts "Validating epub"
102
- cmd = %x[java -jar tools/java/epubcheck-1.2.jar builds/mobi/book.epub]
103
- puts "Generating mobi file at builds/mobi/book.mobi"
104
- cmd = %x[tools/kindle/kindlegen builds/mobi/book.epub]
105
- puts "Cleaning up..."
106
- File.delete("builds/mobi/book.epub") if File::exists?( "builds/mobi/book.epub" )
107
34
 
108
35
  else
109
36
  puts "Error: Command not recognized" unless %w(-h --help).include?(build)
@@ -1,3 +1,3 @@
1
1
  module Bookshop
2
- VERSION = "0.0.12"
3
- end
2
+ VERSION = "0.0.13"
3
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bookshop
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.12
5
+ version: 0.0.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - D.a. Thompson