sc2epub 0.0.6 → 0.0.7

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/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ = 0.0.7
2
+ Fix Again Bug in index.html
3
+ Change Makefile.
4
+
1
5
  = 0.0.6
2
6
  Add html escape.
3
7
 
data/lib/sc2epub.rb CHANGED
@@ -2,5 +2,5 @@ module Sc2epub
2
2
  require 'sc2epub/converter'
3
3
  require 'sc2epub/template'
4
4
  require 'sc2epub/main'
5
- VERSION = "0.0.6"
5
+ VERSION = "0.0.7"
6
6
  end
@@ -115,8 +115,7 @@ class Sc2epub::Converter
115
115
  path = File::join(dir, i)
116
116
  next if cache[path]
117
117
  if FileTest::directory? path
118
- subdir = path
119
- break
118
+ subdir = path unless subdir
120
119
  elsif FileTest::file? path
121
120
  dofile(path)
122
121
  cache[path] = true
@@ -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" -o -name "*.jpg" | xargs zip -Xr9D $(EPUB)
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
- - 6
9
- version: 0.0.6
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-22 00:00:00 +09:00
17
+ date: 2010-11-23 00:00:00 +09:00
18
18
  default_executable: sc2epub
19
19
  dependencies: []
20
20