bookshop 0.0.2 → 0.0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc
CHANGED
|
@@ -21,15 +21,18 @@ bookShop hopes to simplify the process by:
|
|
|
21
21
|
|
|
22
22
|
<tt>$ sudo gem install bookshop</tt>
|
|
23
23
|
|
|
24
|
-
=== Create bookShop project
|
|
24
|
+
=== Create a bookShop project
|
|
25
25
|
|
|
26
26
|
<tt>$ bookshop new ~/Path/to/NewProject</tt>
|
|
27
27
|
|
|
28
28
|
This will create a new bookshop project in ~/Path/to/NewProject
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
== Getting Help
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
* Checkout the wiki page which is in development currently for installation help and links to other
|
|
33
|
+
articles and help content. https://github.com/blueheadpublishing/bookshop/wiki
|
|
34
|
+
|
|
35
|
+
* bookShop comes with a built in help feature. Simply run 'bookshop --help' from the command line to get
|
|
33
36
|
list of possible commands to issue including possible options. You can also run 'bookshop COMMAND --help'
|
|
34
37
|
(where COMMAND is the command you want) to get a list of possible options for that particular command
|
|
35
38
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'bookshop/version'
|
|
2
|
+
if %w(--version -v).include? ARGV.first
|
|
3
|
+
puts "Bookshop #{Bookshop::VERSION::STRING}"
|
|
4
|
+
exit(0)
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
if ARGV.first != "new"
|
|
8
|
+
ARGV[0] = "--help"
|
|
9
|
+
else
|
|
10
|
+
ARGV.shift
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# require 'bookshop/generators'
|
|
14
|
+
require 'bookshop/generators/bookshop/project/project_generator'
|
|
15
|
+
|
|
16
|
+
Bookshop::Generators::ProjectGenerator.start
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
# This command will automatically be run when you run "bookshop" with Bookshop gem installed from the root of your application.
|
|
2
2
|
|
|
3
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
|
4
|
-
require File.expand_path('../../config/boot', __FILE__)
|
|
5
3
|
require 'bookshop/commands'
|
|
6
4
|
|
|
@@ -9,7 +9,7 @@ module Bookshop
|
|
|
9
9
|
def self.exec_script_bookshop!
|
|
10
10
|
cwd = Dir.pwd
|
|
11
11
|
return unless in_bookshop_application? || in_bookshop_application_subdirectory?
|
|
12
|
-
|
|
12
|
+
require SCRIPT_BOOKSHOP if in_bookshop_application?
|
|
13
13
|
Dir.chdir("..") do
|
|
14
14
|
# Recurse in a chdir block: if the search fails we want to be sure
|
|
15
15
|
# the application is generated in the original working directory.
|
data/lib/bookshop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bookshop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 69
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
9
|
- 2
|
|
10
|
-
|
|
10
|
+
- 1
|
|
11
|
+
version: 0.0.2.1
|
|
11
12
|
platform: ruby
|
|
12
13
|
authors:
|
|
13
14
|
- D.a. Thompson
|
|
@@ -88,6 +89,7 @@ files:
|
|
|
88
89
|
- bookshop.gemspec
|
|
89
90
|
- lib/bookshop.rb
|
|
90
91
|
- lib/bookshop/commands.rb
|
|
92
|
+
- lib/bookshop/commands/application.rb
|
|
91
93
|
- lib/bookshop/commands/build.rb
|
|
92
94
|
- lib/bookshop/generators/bookshop/generator/USAGE
|
|
93
95
|
- lib/bookshop/generators/bookshop/generator/generator_generator.rb
|
|
@@ -106,7 +108,7 @@ files:
|
|
|
106
108
|
- lib/bookshop/generators/bookshop/project/templates/builds/html/.empty_directory
|
|
107
109
|
- lib/bookshop/generators/bookshop/project/templates/builds/mobi/.empty_directory
|
|
108
110
|
- lib/bookshop/generators/bookshop/project/templates/builds/pdf/.empty_directory
|
|
109
|
-
- lib/bookshop/generators/bookshop/project/templates/script/
|
|
111
|
+
- lib/bookshop/generators/bookshop/project/templates/script/bookshop.rb
|
|
110
112
|
- lib/bookshop/generators/bookshop/project/templates/stylesheets/GOTCHAS
|
|
111
113
|
- lib/bookshop/generators/bookshop/project/templates/stylesheets/book.xsl.tt
|
|
112
114
|
- lib/bookshop/generators/bookshop/project/templates/stylesheets/chunk-stylesheet.xsl.tt
|