epub-maker 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 4aeffa7298ad5bb22c54beaa0eaafc0f46cbcd724a950202d917ef9186345a5c
4
- data.tar.gz: ea10fe12472421d4585636290c814df4eab87d9d4fc466a480d94d229174d3c4
3
+ metadata.gz: cb15b719ce1526ed7cc33d12ca8da5fbd58664a3baedfd72b8f8363795584825
4
+ data.tar.gz: 3c493a4f38d30554736e8d752bdbd43414d261081bfe99717004664b50b94d1e
5
5
  SHA512:
6
- metadata.gz: 3ef569b71794f317b6a05136bd94ff9dcee19caa0993d58ab7f1f4d5b03bba2edc9836300892e5b1780ce0afe1b1498b84bfcbd884c9d6fe4ad9e82b1ef191a4
7
- data.tar.gz: 39e9011f7bcac33805936f1842959a697bbf8b72d415b7b6cdd82b0dc782548316f369951e7aac68c299f1f50f40058239316868bd55de4841dc92da81775c23
6
+ metadata.gz: d9386a7a043b34f1dcd91e1bffeef3463b7c0bbb106b133619b18a51fbf053c65285817fb5deb3c0f07e25c5074fbff401fbcb51458b9531c8a6f0b6e65b43cd
7
+ data.tar.gz: bc385ddb0e1a3115c1a5e3039d6638fee5924345a0a3d13e34ae8935ba62c39d4f5b77528816f9c9be7690e47fd2582194019f6f4b9f1e8f43b434375b834a11
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ -
2
+ CHANGELOG.markdown
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ 0.1.6
2
+ -----
3
+
4
+ * [BUG FIX]Add `mtime` keyword argument to `OCF::PhysicalContainer::Zipruby#write`
5
+
1
6
  0.1.5
2
7
  -----
3
8
 
data/README.markdown CHANGED
@@ -178,6 +178,10 @@ Todo
178
178
  Recent Changes
179
179
  --------------
180
180
 
181
+ ### 0.1.6
182
+
183
+ * [BUG FIX]Add `mtime` keyword argument to `OCF::PhysicalContainer::Zipruby#write`
184
+
181
185
  ### 0.1.5
182
186
 
183
187
  * [BUG FIX]Compare path name in the same encoding when finding file in ZIP archive
@@ -188,10 +192,6 @@ Recent Changes
188
192
  * Add `Publication::Package::Metadata#modified=` method
189
193
  * Rescue Errno::EXDEV on renaming temporary EPUB file
190
194
 
191
- ### 0.1.3
192
-
193
- * Add workaround Window file renaming problem
194
-
195
195
  Contributing
196
196
  ------------
197
197
 
@@ -4,7 +4,7 @@ module EPUB
4
4
  class OCF
5
5
  class PhysicalContainer
6
6
  class Zipruby < self
7
- def write(path_name, content)
7
+ def write(path_name, content, mtime: nil)
8
8
  if @archive
9
9
  @archive.add_or_replace_buffer path_name, content
10
10
  else
@@ -26,6 +26,7 @@ module EPUB
26
26
  # EPUB::OCF::PhysicalCotainer.adapter = :ArchiveZip
27
27
  # EPUB::OCF::PhysicalCotainer.mtime = Time.new(2020, 1, 1)
28
28
  #
29
+ # @param time [Time] mtime to set
29
30
  # @return [Time]
30
31
  def mtime=(time)
31
32
  @@mtime = time
@@ -1,5 +1,5 @@
1
1
  module EPUB
2
2
  module Maker
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub-maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - KITAITI Makoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-31 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: epub-parser
@@ -250,6 +250,7 @@ extra_rdoc_files: []
250
250
  files:
251
251
  - ".gitignore"
252
252
  - ".gitlab-ci.yml"
253
+ - ".yardopts"
253
254
  - CHANGELOG.markdown
254
255
  - Gemfile
255
256
  - LICENSE.txt
@@ -302,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
303
  - !ruby/object:Gem::Version
303
304
  version: '0'
304
305
  requirements: []
305
- rubygems_version: 3.1.4
306
+ rubygems_version: 3.2.22
306
307
  signing_key:
307
308
  specification_version: 4
308
309
  summary: EPUB Maker