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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d5957fc86da306e905af22d09a8774213ba42aa
4
- data.tar.gz: 7df82c876de987d341a191c2904cc393401c956e
3
+ metadata.gz: 2de9ee49588056cdfa5f156a9f78f73f85204c87
4
+ data.tar.gz: 63781843abfe1be71a9af98261e78c8018d6b3b8
5
5
  SHA512:
6
- metadata.gz: 453cf626f2a8a6e136e87cebaa4e95fc5ac50c4063b65cdfa61679fbce4d9957500ef87860aacb9f9e726c6dc5ef3649dcc6f64475bd05ca5e9a4f8fd6e9d8b2
7
- data.tar.gz: 81c57265a42abbcf39566db1dade65217fa035b6dd3e8893e21c5df6558752496446438391f7bd50490c6b90fb1ca49f9ac4b4ae2ff9811f5bda5e59a5833337
6
+ metadata.gz: 6f96dbb9e48c327eee7420a3e00d343953bbe6b10b99185d0d0aa4e556945145bff618e59050a3ef58345a1b8aa2ea8a22d2b54d0cf46dc9dce35ffe81e5f232
7
+ data.tar.gz: 4cfdacee63c16692ac7e1ca2976cb51f6e833216ba4bc62b3d0ec350fee73425e111bbf2c310e7134da666144cf39b4e7fb94cb1f981faf5799ec9e5c30099ae
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mangdown
4
- VERSION = '0.17.3'
4
+ VERSION = '0.17.4'
5
5
  end
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.3
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-09 00:00:00.000000000 Z
11
+ date: 2018-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable