epub-maker 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +3 -1
- data/CHANGELOG.markdown +5 -0
- data/README.markdown +8 -0
- data/lib/epub/maker.rb +2 -6
- data/lib/epub/maker/version.rb +1 -1
- data/test/helper.rb +1 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f250e5cc73d83a35515e972227758e4e88c59618
|
4
|
+
data.tar.gz: fc4216bf1cf1545bd71bea448bb3f169249748c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba5876149cefd97d006862eeaab9d2da9bc5d5092758337e902cac4f30ac0ce533ea986c66ae2caf901aa4b41d9c2849747f6c7090cbfd95118a36b1a58a6374
|
7
|
+
data.tar.gz: 325024a2a6ffb822dfad650a4bea36fb74b309593a63d184173607f9b980f13a5d113f9737ad6e4a3032b0ef638e1df4e291eaeaf3bd985551518921e0b1221a
|
data/.gitlab-ci.yml
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
before_script:
|
2
2
|
- ruby -v
|
3
3
|
- which ruby
|
4
|
+
- apt -qq update -y
|
5
|
+
- apt -qq install -y default-jre
|
4
6
|
- gem install bundler --no-document
|
5
|
-
- bundle install --jobs=$(nproc) --path=deps
|
7
|
+
- bundle install --jobs=$(nproc) --path=deps --quiet
|
6
8
|
|
7
9
|
cache:
|
8
10
|
paths:
|
data/CHANGELOG.markdown
CHANGED
data/README.markdown
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
EPUB Maker
|
2
2
|
==========
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/epub-maker.svg)](http://badge.fury.io/rb/epub-maker)
|
4
|
+
[![Dependency Status](https://gemnasium.com/KitaitiMakoto/epub-maker.png)](https://gemnasium.com/KitaitiMakoto/epub-maker)
|
5
|
+
[![pipeline status](https://gitlab.com/KitaitiMakoto/epub-maker/badges/master/pipeline.svg)](https://gitlab.com/KitaitiMakoto/epub-maker/commits/master)
|
6
|
+
[![coverage report](https://gitlab.com/KitaitiMakoto/epub-maker/badges/master/coverage.svg)](https://gitlab.com/KitaitiMakoto/epub-maker/commits/master)
|
3
7
|
|
4
8
|
This library supports making and editing EPUB books
|
5
9
|
|
@@ -170,9 +174,13 @@ Todo
|
|
170
174
|
* Refine Rake task
|
171
175
|
* Autodetection of media types
|
172
176
|
* Makable from directory/package document file
|
177
|
+
* `EPUB::Maker.archive`: don't copy files to temporary directory
|
173
178
|
|
174
179
|
Recent Changes
|
175
180
|
--------------
|
181
|
+
### 0.0.8
|
182
|
+
* Use default temporary directory for `EPUB::Maker.archive`
|
183
|
+
|
176
184
|
### 0.0.7
|
177
185
|
|
178
186
|
* Change temporary directory used by `EPUB::Maker.archive`
|
data/lib/epub/maker.rb
CHANGED
@@ -77,8 +77,8 @@ module EPUB
|
|
77
77
|
|
78
78
|
epub_file ||= source_dir.sub_ext(".epub")
|
79
79
|
epub_file = Pathname(epub_file)
|
80
|
-
Pathname.
|
81
|
-
|
80
|
+
temp_dest = Pathname(Tempfile.create(epub_file.basename.to_path, epub_file.dirname.to_path))
|
81
|
+
Pathname.mktmpdir "epub-maker" do |dir|
|
82
82
|
temp_container = dir/source_dir.basename
|
83
83
|
|
84
84
|
temp_container.mkdir
|
@@ -155,8 +155,4 @@ class Pathname
|
|
155
155
|
def remove_entry_secure
|
156
156
|
FileUtils.remove_entry_secure to_path
|
157
157
|
end
|
158
|
-
|
159
|
-
unless method_defined? :/
|
160
|
-
alias / +
|
161
|
-
end
|
162
158
|
end
|
data/lib/epub/maker/version.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -11,14 +11,7 @@ require 'pry'
|
|
11
11
|
require 'epubcheck/ruby/cli'
|
12
12
|
class Test::Unit::TestCase
|
13
13
|
def assert_valid_epub(file)
|
14
|
-
|
15
|
-
warn "Validating EPUB file loosly by EPUB::Parser.parse instead of EpubCheck"
|
16
|
-
assert_nothing_raised do
|
17
|
-
EPUB::Parser.parse file
|
18
|
-
end
|
19
|
-
else
|
20
|
-
assert_true Epubcheck::Ruby::CLI.new.execute(file)
|
21
|
-
end
|
14
|
+
assert_true Epubcheck::Ruby::CLI.new.execute(file)
|
22
15
|
end
|
23
16
|
end
|
24
17
|
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|