bookshop 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ 0.0.14:
2
+ Moved repository to blueheadpublishing and modified gem source
3
+ to update all links
4
+
5
+ Features
6
+ Added CHANGELOG into project template to provide users with a
7
+ best-practices in documenting version changes.
8
+
1
9
  0.0.13:
2
10
  Bug fixes
3
11
  Fixed build pdf command so it doesn't try to build epub
@@ -1,4 +1,4 @@
1
- Copyright (C) 2010, 2011 by World Uniting (http://worlduniting.org)
1
+ Copyright (C) 2010, 2011 by BlueHead Publishing (http://blueheadpublishing.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -22,17 +22,17 @@ bookshop hopes to simplify the process by:
22
22
 
23
23
  === Install bookshop
24
24
 
25
- $ sudo gem install bookshop
25
+ $ gem install bookshop
26
26
 
27
27
  === Install wkhtmltopdf
28
28
 
29
29
  1. Install by hand (recommended):
30
30
 
31
- https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF
31
+ https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
32
32
 
33
33
  2. Try using the wkhtmltopdf-binary gem (mac + linux i386)
34
34
 
35
- gem install wkhtmltopdf-binary
35
+ $ gem install wkhtmltopdf-binary
36
36
 
37
37
  3. The wkhtmltopdf site has more info
38
38
 
@@ -55,7 +55,7 @@ bookshop hopes to simplify the process by:
55
55
 
56
56
  To build a pdf format of your book from the html source:
57
57
 
58
- bookshop build pdf
58
+ $ bookshop build pdf
59
59
 
60
60
  == Getting Help
61
61
 
@@ -95,7 +95,7 @@ The default directory structure of a generated bookshop project:
95
95
  mobi
96
96
  pdf
97
97
 
98
- |-- stylesheets
98
+ |-- config
99
99
  |-- tools
100
100
 
101
101
  book
@@ -112,13 +112,25 @@ build/mobi
112
112
 
113
113
  build/pdf
114
114
  When building the pdf book, the generated output will reside here as "book.pdf"
115
+
116
+ config
117
+ application-wide variables and configurations will go here
115
118
 
116
119
  tools
117
- Holds the epubcheck and kindlegen tools
120
+ Holds all third-party tools: epubcheck, kindlegen
121
+
122
+ == Get Involved
123
+ 1. Fork the repository.
124
+ 2. Pick an issue (or feature you want to add).
125
+ 3. Make changes to your forked code.
126
+ 4. Add tests so that we don't accidentally break your addition with our future commits.
127
+ 5. Commit to your git (forked) repository.
128
+ 6. Let us know about your code and we'll review/merge it into the master.
129
+ 7. And pat yourself on the back for contributing to an open source project!!
118
130
 
119
131
  == Copyright (MIT-LICENSE)
120
132
 
121
- Copyright (C) 2010, 2011 by BlueHead, Inc (http://blueheadinc.com)
133
+ Copyright (C) 2010, 2011 by BlueHead Publishing, Inc (http://blueheadpublishing.com)
122
134
 
123
135
  Permission is hereby granted, free of charge, to any person obtaining a copy
124
136
  of this software and associated documentation files (the "Software"), to deal
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Bookshop::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ['D.a. Thompson']
10
- s.email = ['git@worlduniting.org']
10
+ s.email = ['da@blueheadpublishing.com']
11
11
  s.homepage = "http://rubygems.org/gems/bookshop"
12
12
  s.summary = "A publishing framework for html-to-(e)book toolchain happiness and sustainable productivity."
13
13
  s.description = "bookShop is a publishing framework for html-to-(e)book toolchain happiness and sustainable productivity.
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
 
24
24
  s.add_dependency "thor", ">= 0.14.6"
25
+ s.add_dependency "nokogiri"
25
26
  s.add_development_dependency "bundler", ">= 1.0.0"
26
27
  s.add_development_dependency "rspec"
27
28
 
@@ -0,0 +1,15 @@
1
+ This is where you record the version specific changes.
2
+
3
+ For example:
4
+
5
+ 0.0.2:
6
+ Errata fixes
7
+ Fixed a few mis-spellings
8
+
9
+ 0.0.1:
10
+ Errata fixes
11
+
12
+ Images
13
+ Added new picture of the author
14
+
15
+ (BTW - you should delete this example text and make your own.)
@@ -1,78 +1,63 @@
1
1
  == Welcome to bookshop
2
2
 
3
- bookShop is an OSS ruby-based framework for docbook toolchain happiness and sustainable productivity. The framework is optimized to help developers quickly ramp-up, allowing them to more rapidly jump in and develop their DocBook-to-Output flows, by favoring convention over configuration, setting them up with best practices from the get-go.
3
+ bookShop is a publishing framework for html-to-(e)book toolchain happiness and sustainable productivity. The framework is optimized to help developers quickly ramp-up, allowing them to more rapidly jump in and develop their html-to-(e)book (print-pdf, epub, mobi, etc.) flows, by favoring convention over configuration, setting them up with best practices, standards and tools from the start.
4
4
 
5
5
  bookshop hopes to simplify the process by:
6
- * providing a Ruby Gem to make working with DocBook as easy as 'sudo gem install bookshop'
7
- * pulling all the DocBook tools together into one place (DocBook DTD, XSL Stylesheets, XSLT Processor, XSL-FO Processor)
6
+ * providing a Ruby Gem to make building a book from HTML as easy as 'sudo gem install bookshop'
7
+ * pulling all the html-to-(e)book tools together into one place (wkhtmltopdf, kindlegen, epubcheck)
8
+ * sticking with open-source tools
8
9
  * giving the developer a set of scripts to automate the redundant stuff
9
10
  * providing an architecture/structure that follows best-practices and simplification (DRY... Don't Repeat Yourself)
10
11
  * providing an extendable framework for other developers to add their own custom templates (and hopefully provide them for the community)
11
12
 
12
13
  == Getting Started
13
14
 
14
- Some Useful Links For Docs, Info, Resources to help use use bookshop, or contribute as a developer to this gem.
15
-
16
- http://www.delicious.com/blueheadpublishing/bookshop
17
-
18
15
  === System Requirements
19
16
 
20
17
  * Ruby v1.8.7 or v1.9.2 http://www.ruby-lang.org/en/downloads/
21
18
  * Rubygems v1.3.6 http://docs.rubygems.org/read/chapter/3
22
19
  * Java v1.6 http://www.java.com/
23
20
 
21
+ == Installation
22
+
24
23
  === Install bookshop
25
24
 
26
- $ sudo gem install bookshop
25
+ $ gem install bookshop
27
26
 
28
- === Create a bookshop application
27
+ === Install wkhtmltopdf
29
28
 
30
- $ bookshop new name_of_application
29
+ 1. Install by hand (recommended):
31
30
 
32
- This will create a new bookshop app in /path/to/name_of_application
33
-
34
- * If you can't issue bookshop from your command line, make sure you have included your gems folder in your system $PATH. In unix you can add the following to your .bashrc file in your home folder (this example is for Ubuntu 10.10):
31
+ https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
35
32
 
36
- PATH="$PATH:/var/lib/gems/1.8/bin"
37
- export PATH
33
+ 2. Try using the wkhtmltopdf-binary gem (mac + linux i386)
38
34
 
39
-
40
- === Install the java tools. All of the java tools (.jars, etc) can be found in /tools/java/ in the new application.
41
-
42
- * For Mac you should copy the contents of /tools/java/ into your system /Library/Java/Extensions or your user ~/Library/Java/Extensions folder. This is the default location for the Java Classpath
35
+ $ gem install wkhtmltopdf-binary
43
36
 
44
- * For *nix systems, you can define your classpath by creating a CLASSPATH variable in your .bashrc (or whatever shell/profile you are using). This example is for Ubuntu 10.10. Make sure to substitute:
37
+ 3. The wkhtmltopdf site has more info
45
38
 
46
- CLASSPATH="/path/to/name_of_application/tools/java/fop.jar:\
47
- /path/to/name_of_application/tools/java/avalon-framework-4.2.0.jar:\
48
- /path/to/name_of_application/tools/java/xalan.jar:\
49
- /path/to/name_of_application/tools/java/batik-all-1.7.jar:\
50
- /path/to/name_of_application/tools/java/commons-io-1.3.1.jar:\
51
- /path/to/name_of_application/tools/java/commons-logging-1.0.4.jar:\
52
- /path/to/name_of_application/tools/java/fop-hyph.jar:\
53
- /path/to/name_of_application/tools/java/jai-codec.jar:\
54
- /path/to/name_of_application/tools/java/jai_core.jar:\
55
- /path/to/name_of_application/tools/java/serializer.jar:\
56
- /path/to/name_of_application/tools/java/xercesImpl.jar:\
57
- /path/to/name_of_application/tools/java/xml-apis.jar:\
58
- /path/to/name_of_application/tools/java/xmlgraphics-commons-1.4.jar"
59
- export CLASSPATH
39
+ http://code.google.com/p/wkhtmltopdf/
60
40
 
61
- * For Windows systems you can either use Cygwin and follow the directions for *nix systems above, or edit your Classpath via the Control Panel
41
+ == Using bookshop
62
42
 
63
- === Building Your First Book
43
+ === Create a bookshop application
64
44
 
65
- To build a pdf format of your book from the docbook source:
45
+ $ bookshop new name_of_book
66
46
 
67
- bookshop build pdf
47
+ This will create a new bookshop app in /path/to/name_of_book
68
48
 
69
- To build an epub format of your book from the docbook source:
49
+ * If you can't issue bookshop from your command line, make sure you have included your gems folder in your system $PATH. In unix you can add the following to your .bashrc file in your home folder (this example is for Ubuntu 10.10):
70
50
 
71
- bookshop build epub
51
+ PATH="$PATH:/var/lib/gems/1.8/bin"
52
+ export PATH
72
53
 
73
- == Getting Help
54
+ === Building Your First Book
55
+
56
+ To build a pdf format of your book from the html source:
74
57
 
75
- * Checkout the wiki page which is in development currently for installation help and links to other articles and help content. https://github.com/blueheadpublishing/bookshop/wiki
58
+ $ bookshop build pdf
59
+
60
+ == Getting Help
76
61
 
77
62
  * bookshop comes with a built in help feature. Simply run 'bookshop --help' from the command line to get list of possible commands to issue including possible options. You can also run 'bookshop COMMAND --help' (where COMMAND is the command you want) to get a list of possible options for that particular command
78
63
 
@@ -80,9 +65,11 @@ To build an epub format of your book from the docbook source:
80
65
 
81
66
  We would like to thank:
82
67
 
83
- * The Xerces Team
84
- * The DocBook Team
85
- * The Ruby/Rubygems Team
68
+ * The Ruby/Rubygems Team www.ruby-lang.org/
69
+ * The Thor Team - https://github.com/wycats/thor
70
+ * Hakon Wium Lie and Bert Bos for developing the book microformat http://www.alistapart.com/articles/boom
71
+ * The WKHTMLTOPDF team http://code.google.com/p/wkhtmltopdf/
72
+ * The EPUBCHECK team http://code.google.com/p/epubcheck/
86
73
 
87
74
  == Description of Gem Contents
88
75
 
@@ -92,54 +79,58 @@ The basic bookshop gem architecture:
92
79
  |-- lib
93
80
 
94
81
  bin
95
- command file copied to /usr/bin upon installation (which is then called from the command line)
96
-
82
+ command file copied to /usr/bin upon installation (which is then called from the command line)
83
+
97
84
  lib
98
- bookshop gem library files
85
+ bookshop gem library files
99
86
 
100
87
  == Description of bookshop app contents
101
88
 
102
- The default directory structure of a generated bookshop app:
89
+ The default directory structure of a generated bookshop project:
90
+
91
+ |-- book
92
+ |-- builds
93
+ epub
94
+ html
95
+ mobi
96
+ pdf
103
97
 
104
- |-- book
105
- |-- builds
106
- | |-- epub
107
- | |-- html
108
- | |-- mobi
109
- | `-- pdf
110
- |-- stylesheets
111
- |-- tools
112
- | |-- dtd
113
- | |-- xsl
114
- | `-- java
98
+ |-- config
99
+ |-- tools
115
100
 
116
101
  book
117
- Holds all the manuscript DocBook code/files. This is where your master manuscript lives from which everything is built.
102
+ Holds all the manuscript html code/files. This is where your master manuscript lives from which everything is built.
118
103
 
119
104
  builds
120
- Holds all the output files built from the DocBook using their specific Stylesheets
105
+ Holds all the output files built from the html
121
106
 
122
107
  builds/epub
123
- When building the epub, the generated output will reside here in an .epub file. You can rename the .epub extension to .zip then unzip the file to view the contents.
108
+ When building the epub, the generated output will reside here in an .epub file. You can rename the .epub extension to .zip then unzip the file to view the contents.
124
109
 
125
- builds/html
126
- When building the html asset, the generated output will reside here.
127
-
128
110
  build/mobi
129
- When building the mobi asset, the generated output will reside here as "book.mobi".
111
+ When building the mobi asset, the generated output will reside here as "book.mobi"
130
112
 
131
113
  build/pdf
132
- When building the pdf book, the generated output will reside here as "book.pdf".
114
+ When building the pdf book, the generated output will reside here as "book.pdf"
133
115
 
134
- stylesheets
135
- Holds the XSL stylesheets for customizing your book output.
116
+ config
117
+ application-wide variables and configurations will go here
136
118
 
137
119
  tools
138
- Holds the DocBook DTD, DocBook-XSL specs and Java tools which serve as the base for building formats. Customization should not happen here, but rather with the stylesheets in the "stylesheets" folder. Files here should remain largely unchanged unless you know what you are doing.
120
+ Holds all third-party tools: epubcheck, kindlegen
121
+
122
+ == Get Involved
123
+ 1. Fork the repository.
124
+ 2. Pick an issue (or feature you want to add).
125
+ 3. Make changes to your forked code.
126
+ 4. Add tests so that we don't accidentally break your addition with our future commits.
127
+ 5. Commit to your git (forked) repository.
128
+ 6. Let us know about your code and we'll review/merge it into the master.
129
+ 7. And pat yourself on the back for contributing to an open source project!!
139
130
 
140
131
  == Copyright (MIT-LICENSE)
141
132
 
142
- Copyright (C) 2010, 2011 by BlueHead Publishing LLC (http://blueheadpublishing.com)
133
+ Copyright (C) 2010, 2011 by BlueHead Publishing, Inc (http://blueheadpublishing.com)
143
134
 
144
135
  Permission is hereby granted, free of charge, to any person obtaining a copy
145
136
  of this software and associated documentation files (the "Software"), to deal
@@ -157,4 +148,10 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
157
148
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
158
149
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
159
150
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
160
- THE SOFTWARE.
151
+ THE SOFTWARE.
152
+
153
+ == The Boom Microformat License (as listed in the boom.css)
154
+
155
+ Sample style sheet for boom!, the book microformat
156
+ written by Hakon Wium Lie and Bert Bos, November 2005
157
+ You may reuse this style sheet for any purpose without any fees
@@ -1,16 +1,19 @@
1
1
  module Bookshop
2
2
  POST_INSTALL = "
3
3
  ******************************************************************
4
+
5
+ Make sure to have Java 1.5 or above installed
6
+
4
7
 
5
8
  Install wkhtmltopdf:
6
9
 
7
10
  1. Install by hand (recomended):
8
11
 
9
- https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF
12
+ https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
10
13
 
11
14
  2. Try using the wkhtmltopdf-binary gem (mac + linux i386)
12
15
 
13
- gem install wkhtmltopdf-binary
16
+ gem install wkhtmltopdf-binary
14
17
 
15
18
 
16
19
  ******************************************************************
@@ -1,3 +1,3 @@
1
1
  module Bookshop
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
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.13
5
+ version: 0.0.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - D.a. Thompson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-17 00:00:00 Z
13
+ date: 2011-11-28 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -24,34 +24,45 @@ dependencies:
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
27
- name: bundler
27
+ name: nokogiri
28
28
  prerelease: false
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
30
41
  none: false
31
42
  requirements:
32
43
  - - ">="
33
44
  - !ruby/object:Gem::Version
34
45
  version: 1.0.0
35
46
  type: :development
36
- version_requirements: *id002
47
+ version_requirements: *id003
37
48
  - !ruby/object:Gem::Dependency
38
49
  name: rspec
39
50
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
41
52
  none: false
42
53
  requirements:
43
54
  - - ">="
44
55
  - !ruby/object:Gem::Version
45
56
  version: "0"
46
57
  type: :development
47
- version_requirements: *id003
58
+ version_requirements: *id004
48
59
  description: |-
49
60
  bookShop is a publishing framework for html-to-(e)book toolchain happiness and sustainable productivity.
50
61
  The framework is optimized to help developers quickly ramp-up, allowing them to more rapidly
51
62
  jump in and develop their html-to-(e)book (print-pdf, epub, mobi, etc.) flows, by favoring convention over
52
63
  configuration, setting them up with best practices, standards and tools from the start.
53
64
  email:
54
- - git@worlduniting.org
65
+ - da@blueheadpublishing.com
55
66
  executables:
56
67
  - bookshop
57
68
  extensions: []
@@ -73,6 +84,7 @@ files:
73
84
  - lib/bookshop/commands/build.rb
74
85
  - lib/bookshop/generators/bookshop/app/USAGE
75
86
  - lib/bookshop/generators/bookshop/app/app_generator.rb
87
+ - lib/bookshop/generators/bookshop/app/templates/CHANGELOG
76
88
  - lib/bookshop/generators/bookshop/app/templates/README.rdoc
77
89
  - lib/bookshop/generators/bookshop/app/templates/book/META_INF/container.xml
78
90
  - lib/bookshop/generators/bookshop/app/templates/book/book.html
@@ -106,7 +118,7 @@ files:
106
118
  homepage: http://rubygems.org/gems/bookshop
107
119
  licenses:
108
120
  - MIT
109
- post_install_message: "\n ******************************************************************\n\n Install wkhtmltopdf:\n\n 1. Install by hand (recomended):\n\n https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF\n\n 2. Try using the wkhtmltopdf-binary gem (mac + linux i386)\n\n gem install wkhtmltopdf-binary\n\n\n ******************************************************************\n "
121
+ post_install_message: "\n ******************************************************************\n \n Make sure to have Java 1.5 or above installed\n \n\n Install wkhtmltopdf:\n\n 1. Install by hand (recomended):\n\n https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf\n\n 2. Try using the wkhtmltopdf-binary gem (mac + linux i386)\n\n gem install wkhtmltopdf-binary\n\n\n ******************************************************************\n "
110
122
  rdoc_options: []
111
123
 
112
124
  require_paths: