epub-maker 0.1.2 → 0.1.3

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: 4119c4878b2777ccee127c12fbd897dc771308b306172ca887ff962e07d9bfd1
4
- data.tar.gz: 8393a6d8d9aa4fa369f4ebf8f3247e1e9a5dbdbf96022f90a9b137f88173d4c1
3
+ metadata.gz: 13a8872f5fc2aa702e7a3b345e14bc10ddfe14c4f05715964ed887c7a5e43f1a
4
+ data.tar.gz: 9bc0d73cf5aa30d7c78d4aa4afbcee93feb0d32626f2f44a016dd85733c988e8
5
5
  SHA512:
6
- metadata.gz: 5c728e1af722eb6e102b56e2df6b91b0003c7513a5036ff8a68ab26a7adbd6a9a4391205f58a0328718531fb714ae3dac6c570626afceea66d9951874b8b3234
7
- data.tar.gz: 5589187d2a35be80c16a4127ff1f442deb2defd756f7f2feae85aa44da26144fe2c5a03d7ee13f7205eda4b7df5ea6177ab98419a0f56c0239263fd96f640c7a
6
+ metadata.gz: d5757a93cc5a4a3fbdf8a47661fba858d8c9fd15db9a80527125745d3b0b62b4f02d7b57dcb85097fb106d3b1ee95a44df23e6356517cccb8b93fe394fda1552
7
+ data.tar.gz: 883f0dd647d80283867e7e2baedb040bd0831d7d5501c6decafa0ff1ea7961c2359a078b3db800499bc2a6078322044131687e8571f639c137fac3064423ddcf
@@ -1,3 +1,8 @@
1
+ 0.1.3
2
+ -----
3
+
4
+ * Add workaround Window file renaming problem
5
+
1
6
  0.1.2
2
7
  ------
3
8
 
@@ -178,6 +178,10 @@ Todo
178
178
  Recent Changes
179
179
  --------------
180
180
 
181
+ ### 0.1.3
182
+
183
+ * Add workaround Window file renaming problem
184
+
181
185
  ### 0.1.2
182
186
 
183
187
  * Close temp file when archiving EPUB file
@@ -30,8 +30,15 @@ module EPUB
30
30
  end
31
31
  end
32
32
  end
33
- ::File.chmod 0666 & ~::File.umask, tmp_archive_path
34
- ::File.rename tmp_archive_path, @container_path
33
+ begin
34
+ ::File.chmod 0666 & ~::File.umask, tmp_archive_path
35
+ ::File.rename tmp_archive_path, @container_path
36
+ rescue Errno::EACCES
37
+ # In some cases on Windows, we fail to rename the file
38
+ # but succeed to copy although I don't know why.
39
+ # Race condition? I don't know. But no time to dig deeper.
40
+ ::FileUtils.copy tmp_archive_path, @container_path
41
+ end
35
42
  end
36
43
  end
37
44
  end
@@ -1,5 +1,5 @@
1
1
  module EPUB
2
2
  module Maker
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - KITAITI Makoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-31 00:00:00.000000000 Z
11
+ date: 2020-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: epub-parser