epub_book 0.1.25 → 0.1.26

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: 638d65f8185c019abc488c48ce088ef93680cf34725b95ad9be3a28ffae48847
4
- data.tar.gz: 919c6c35bf22b80c085bb33655f44aa2ca594ea416d57dd7b9157c622acde718
3
+ metadata.gz: 946872639cc8cd6cf97fb2933097d26721df9b29648539f9b5ced5c59ea9ac8a
4
+ data.tar.gz: 6c6b7be1de5fabc49cf8f3b207ece01c7896c5daf1e4f1a237b58de65bb57207
5
5
  SHA512:
6
- metadata.gz: e58ff84b46ac2830fa900b867ccdf4c68087e770bd9cab61a4604987ad4d7007ba282522eba0a93c0bd40c1d4d5cd9ee8ff3dc90193ae9576924ba480e527384
7
- data.tar.gz: e6c23da564154fa17f77d7cc21fe63fd7bddfb3059423b14837a0455acafccc6efc9183dc839a6cccf636366bf3abb832b85f6c73f6d5d87046a490db4ac3914
6
+ metadata.gz: 6e302741e48eb13886eea0fb109c3c436f89b9a51ef4ea91ff1b16ffc9f9ad3b9994cc769df5d82a55174c6e5c00552ea3f52d543688b58eb9960c36281a53e9
7
+ data.tar.gz: f19b461e0240dd8faf897924f4de5bf1bab19d7e72a2b4dece4f0fc2f9ff68f93187fc7d95114e5dddd060521235f7bb8ba30f069e654858e3ec759ba2bad5c6
@@ -226,7 +226,7 @@ module EpubBook
226
226
  EpubBook.logger.info str.encoding
227
227
  #/<meta.*?charset\s*=[\s\"\']?utf-8/i =~ str ? str : str.force_encoding('gbk').encode!('utf-8',invalid: :replace, undef: :replace)
228
228
 
229
- str.scrub('')! unless str.valid_encoding?
229
+ str.scrub!('') unless str.valid_encoding?
230
230
  str.encode!('utf-8') if str.encoding.name != 'UTF-8'
231
231
 
232
232
  EpubBook.logger.info "-------encode 后 #{str.encoding}"
@@ -1,3 +1,3 @@
1
1
  module EpubBook
2
- VERSION = "0.1.25"
2
+ VERSION = "0.1.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub_book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - qmliu