mangdown 0.17.3 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mangdown/support/cbz.rb +4 -4
- data/lib/mangdown/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2de9ee49588056cdfa5f156a9f78f73f85204c87
|
4
|
+
data.tar.gz: 63781843abfe1be71a9af98261e78c8018d6b3b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f96dbb9e48c327eee7420a3e00d343953bbe6b10b99185d0d0aa4e556945145bff618e59050a3ef58345a1b8aa2ea8a22d2b54d0cf46dc9dce35ffe81e5f232
|
7
|
+
data.tar.gz: 4cfdacee63c16692ac7e1ca2976cb51f6e833216ba4bc62b3d0ec350fee73425e111bbf2c310e7134da666144cf39b4e7fb94cb1f981faf5799ec9e5c30099ae
|
data/lib/mangdown/support/cbz.rb
CHANGED
@@ -13,9 +13,9 @@ module Mangdown
|
|
13
13
|
cbz_sub_dirs(main_dir)
|
14
14
|
end
|
15
15
|
|
16
|
-
def one(dir)
|
16
|
+
def one(dir, validate_main_dir = true)
|
17
17
|
dir = String(dir)
|
18
|
-
dir = validate_file_or_dir_names(dir)
|
18
|
+
dir = validate_file_or_dir_names(dir, validate_main_dir)
|
19
19
|
cbz_dir(dir)
|
20
20
|
end
|
21
21
|
|
@@ -51,11 +51,11 @@ module Mangdown
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
def validate_file_or_dir_names(dir)
|
54
|
+
def validate_file_or_dir_names(dir, validate_main_dir = true)
|
55
55
|
each_dir_or_page(dir) do |filename|
|
56
56
|
rename_with_valid_name(filename)
|
57
57
|
end
|
58
|
-
rename_with_valid_name(dir)
|
58
|
+
rename_with_valid_name(dir) if validate_main_dir
|
59
59
|
end
|
60
60
|
|
61
61
|
def rename_with_valid_name(filename)
|
data/lib/mangdown/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jphager2
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|