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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8284f37476b729d56b4c9f57568741a32688ae05
4
- data.tar.gz: af1bfe62426f12598dc402eb52121f73222333c0
3
+ metadata.gz: f250e5cc73d83a35515e972227758e4e88c59618
4
+ data.tar.gz: fc4216bf1cf1545bd71bea448bb3f169249748c6
5
5
  SHA512:
6
- metadata.gz: cbb15761fdcc3268c0f25ef01e2583e01431156d28d097f440273e59419f1b6a96981bcedda7d2a5919e0dd72ed25b8ca0edc4d216ebbbee28006d5cb7aebd89
7
- data.tar.gz: f221a87aa32563df6b1223c4529111bef06bcd4c10d5f1020cf6a24c620ed2eab0296101f897e5b1b875889ae6f924aaa1bd3b8409a5e3402fb8fad7f540b4c4
6
+ metadata.gz: ba5876149cefd97d006862eeaab9d2da9bc5d5092758337e902cac4f30ac0ce533ea986c66ae2caf901aa4b41d9c2849747f6c7090cbfd95118a36b1a58a6374
7
+ data.tar.gz: 325024a2a6ffb822dfad650a4bea36fb74b309593a63d184173607f9b980f13a5d113f9737ad6e4a3032b0ef638e1df4e291eaeaf3bd985551518921e0b1221a
@@ -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:
@@ -1,3 +1,8 @@
1
+ 0.0.8
2
+ -----
3
+
4
+ * Use default temporary directory for `EPUB::Maker.archive` to avoid working on world writable place
5
+
1
6
  0.0.7
2
7
  -----
3
8
 
@@ -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`
@@ -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.mktmpdir "epub-maker", epub_file.dirname do |dir|
81
- temp_dest = Pathname(Tempfile.create(epub_file.basename.to_path, dir))
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
@@ -1,5 +1,5 @@
1
1
  module EPUB
2
2
  module Maker
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -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
- if ENV["GITLAB_CI"]
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__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub-maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - KITAITI Makoto