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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de7a4c2dc05bae568e9f8c5d98644495563447a55cc9ff6af4b53199ffe64311
4
- data.tar.gz: d1a469f3379acc8213ae64050457473186411359af8ce707b7f8ac267d6749d2
3
+ metadata.gz: 8a9f77aeaa803fe169c27b96242f16fcfe1ebaaf0db7c61aae75a2be0f9ba1c7
4
+ data.tar.gz: 3a3728f49177fb88631f9e2c08df8ca9ca7148e7405b0df37986a861a80d950e
5
5
  SHA512:
6
- metadata.gz: da07a6915adf85b592a7d0b6b0280573da0b9f802b4c148684eef38896f72570b5c5ac2855ab938691dc0ab49aa8d49cfee34abcd590249d9e0fd08bef3fb209
7
- data.tar.gz: 70b13268f20d7b2cfca3c18288f9f853a5bf2a506132aa8558ce7ab4b931a0d98af8a487b2d8b261514dd812fd30d98170d2c82a101d9e2fcb7e1b8253fe07ec
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: #{config[:paths].inspect})") do |path|
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)
@@ -1,5 +1,5 @@
1
1
  module Gm
2
2
  module Notepad
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gm-notepad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen