jekyll-epub 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/jekyll-epub.gemspec +2 -2
- data/lib/jekyll/epub.rb +2 -6
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/jekyll-epub.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{jekyll-epub}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gregoire Lejeune"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-09}
|
13
13
|
s.default_executable = %q{jekyll_epub}
|
14
14
|
s.description = %q{Create an eBook (epub) of your Jekyll blog}
|
15
15
|
s.email = %q{gregoire.lejeune@free.fr}
|
data/lib/jekyll/epub.rb
CHANGED
@@ -177,17 +177,13 @@ module Jekyll
|
|
177
177
|
# This is a Jekyll[http://jekyllrb.com] extension
|
178
178
|
#
|
179
179
|
# Create the epub file...
|
180
|
-
#
|
181
|
-
# WARNING: does not work !!! So please generate the epub file by hand :
|
182
|
-
#
|
183
|
-
# cd _epub/src
|
184
|
-
# zip -Xr9D MyBook.epub mimetype *
|
185
180
|
def zip #:nodoc:
|
186
181
|
Dir.chdir( self.dest ) do
|
187
182
|
filename = self.config['epub']['name']
|
188
183
|
filename += ".epub" unless File.extname(filename) == ".epub"
|
189
184
|
$stderr.puts "** Create epub file #{filename} in #{Dir.pwd}..."
|
190
|
-
%x(zip -
|
185
|
+
%x(zip -X9 \"#{filename}\" mimetype)
|
186
|
+
%x(zip -Xr9D \"#{filename}\" * -xi mimetype)
|
191
187
|
end
|
192
188
|
end
|
193
189
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Gregoire Lejeune
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-09 00:00:00 +02:00
|
18
18
|
default_executable: jekyll_epub
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|