gm-notepad 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/gm-notepad +1 -1
- data/lib/gm/notepad/configuration.rb +9 -1
- data/lib/gm/notepad/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9f77aeaa803fe169c27b96242f16fcfe1ebaaf0db7c61aae75a2be0f9ba1c7
|
4
|
+
data.tar.gz: 3a3728f49177fb88631f9e2c08df8ca9ca7148e7405b0df37986a861a80d950e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a89494760fa29c73d63381a6737e2b0e540fc88a82cb8abaf2c71c902af2ec2cc8c5d297b20824b50bd96d6cc42ca5c9fcf0432b35a16476a581ed775a2332bc
|
7
|
+
data.tar.gz: a380d0f07547ff3c3e4f552033e97569e1539c6d82d441f913f4a906625c69e26e63a36479a78f7d6185745ccc68ae33af75c4d99b38f2d7b5777c2f0e94dcb2
|
data/exe/gm-notepad
CHANGED
@@ -24,7 +24,7 @@ OptionParser.new do |options|
|
|
24
24
|
config[:report_config] = report_config
|
25
25
|
end
|
26
26
|
|
27
|
-
options.on("-pPATH", "--path=PATH", String, "Path(s) for {table_name}.<config.table_extension> files (Default:
|
27
|
+
options.on("-pPATH", "--path=PATH", String, "Path(s) for {table_name}.<config.table_extension> files (Default: [\".\"])") do |path|
|
28
28
|
config[:paths] << path
|
29
29
|
end
|
30
30
|
|
@@ -13,7 +13,7 @@ module Gm
|
|
13
13
|
output_color: false,
|
14
14
|
list_tables: false,
|
15
15
|
output_buffer: $stdout,
|
16
|
-
paths: [
|
16
|
+
paths: [],
|
17
17
|
column_delimiter: Gm::Notepad::DEFAULT_COLUMN_DELIMITER,
|
18
18
|
skip_readlines: false,
|
19
19
|
table_extension: '.txt',
|
@@ -91,6 +91,14 @@ module Gm
|
|
91
91
|
attr_writer(*CLI_CONFIG_DEFAULTS.keys)
|
92
92
|
attr_writer(*INTERNAL_CONFIG_DEFAULTS_METHOD_NAMES)
|
93
93
|
|
94
|
+
def paths=(input)
|
95
|
+
if input.empty?
|
96
|
+
@paths = ["."]
|
97
|
+
else
|
98
|
+
@paths = Array(input)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
94
102
|
def default_input_processor
|
95
103
|
require "gm/notepad/input_processor"
|
96
104
|
InputProcessor.new(config: self)
|
data/lib/gm/notepad/version.rb
CHANGED