sc2epub 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/lib/sc2epub.rb +1 -1
- data/lib/sc2epub/converter.rb +1 -2
- data/lib/sc2epub/template/makefile.tmpl +2 -2
- data/test/sc2epubspec.rb +8 -0
- metadata +3 -3
data/CHANGES
CHANGED
data/lib/sc2epub.rb
CHANGED
data/lib/sc2epub/converter.rb
CHANGED
@@ -15,8 +15,8 @@ clean:
|
|
15
15
|
find ./ -name "*.mobi" -exec rm {} \;
|
16
16
|
|
17
17
|
$(EPUB):
|
18
|
-
zip -Xr9D $(EPUB) mimetype META-INF toc.ncx $(PROJECT).opf
|
19
|
-
find ./ -name "*.html" -
|
18
|
+
zip -Xr9D $(EPUB) mimetype META-INF toc.ncx $(PROJECT).opf cover.jpg
|
19
|
+
find ./ -name "*.html" -print0 | xargs -0 zip -Xr9D $(EPUB)
|
20
20
|
|
21
21
|
$(MOBI): $(EPUB)
|
22
22
|
$(KINDLEGEN) $(EPUB)
|
data/test/sc2epubspec.rb
CHANGED
@@ -98,6 +98,14 @@ describe Sc2epub::Converter, 'when on sc2epub/lib'do
|
|
98
98
|
p1 = s.index('sc2epub/converter.rb')
|
99
99
|
p0.should < p1
|
100
100
|
end
|
101
|
+
it 'should place sc2epub/main.rb and sc2epub/template.rb before sc2epub/template' do
|
102
|
+
s = open(File::join(@out, 'index.html')){|io|io.read}
|
103
|
+
p0 = s.index('sc2epub/main.rb</a>')
|
104
|
+
p1 = s.index('sc2epub/template.rb</a>')
|
105
|
+
p2 = s.index('sc2epub/template</a>')
|
106
|
+
p0.should < p2
|
107
|
+
p1.should < p2
|
108
|
+
end
|
101
109
|
after(:all) do
|
102
110
|
if FileTest::exists? @out
|
103
111
|
`rm -r #{@out}`
|
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
|
+
- 7
|
9
|
+
version: 0.0.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- takada-at
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-23 00:00:00 +09:00
|
18
18
|
default_executable: sc2epub
|
19
19
|
dependencies: []
|
20
20
|
|