epub_book 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/epub_book.gemspec +1 -1
- data/lib/epub_book/book.rb +2 -2
- data/lib/epub_book/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b412b721dc1e443c1a9bb1a685f2e6968ff0c8506bf9be113f94e4827f4da0
|
4
|
+
data.tar.gz: 8e5344dd88fd9e3f550e6962912dae4fe67057f214f08852188642c9d92bfc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee0921eee24cc47105b595e850612c7cf34f9a8ebd2de1d447867f59eaaf1624847f3526a6313ecb61ef447477df26e6a2d11d2fb1a5827b5b72697bfdf0c9b
|
7
|
+
data.tar.gz: 6ef82d375814323d227f8c210ae14f2d498aff710ae9268b38c78af32b0723fd8a367cebb40a4f00c7346ebd6ca7789f17be2d6100883b0e99564a2baaa5dbee
|
data/epub_book.gemspec
CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
|
36
36
|
|
37
37
|
spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.27'
|
38
|
-
spec.add_development_dependency "rake", '~>
|
38
|
+
spec.add_development_dependency "rake", '~> 13.0','>= 13.0.6'
|
39
39
|
spec.add_development_dependency "rspec", "~> 3.0"
|
40
40
|
spec.add_development_dependency "pry", '~> 0.14', '>= 0.14.1'
|
41
41
|
spec.add_development_dependency "pry-byebug", '~> 3.8', '>= 3.8.0'
|
data/lib/epub_book/book.rb
CHANGED
@@ -17,7 +17,7 @@ require 'yaml'
|
|
17
17
|
#referer 访问原地址
|
18
18
|
#creator 责任人
|
19
19
|
#ext_name 扩展名 epub,txt
|
20
|
-
|
20
|
+
#ignore_txt 忽略字符,带有ignore_txt的行将被删除
|
21
21
|
module EpubBook
|
22
22
|
class Book
|
23
23
|
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36"
|
@@ -212,7 +212,7 @@ module EpubBook
|
|
212
212
|
EpubBook.logger.info "=============去除包含指定忽略字符的行======="
|
213
213
|
EpubBook.logger.info ignore_txt
|
214
214
|
if ignore_txt
|
215
|
-
system("sed -i '
|
215
|
+
system("sed -i -r '/#{ignore_txt}/d' #{book[:file_abs_name]}")
|
216
216
|
end
|
217
217
|
|
218
218
|
end
|
data/lib/epub_book/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epub_book
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- qmliu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -112,20 +112,20 @@ dependencies:
|
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: '
|
115
|
+
version: '13.0'
|
116
116
|
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
118
|
+
version: 13.0.6
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
125
|
+
version: '13.0'
|
126
126
|
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
128
|
+
version: 13.0.6
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: rspec
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|