cmd_tools 5.0.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,8 +10,8 @@ class ::CmdTools::Application < Thor
10
10
  end
11
11
 
12
12
  desc "min_max < FILE [-m MIN_MAX_SEPARATOR -f FIELD_SEPARATOR]", "Return the minmum and maximum value of each column."
13
- method_option :min_max_separator, default: "\t", aliases: "-m"
14
- method_option :field_separator, default: "\t", aliases: "-f"
13
+ method_option :min_max_separator, default: " ", aliases: "-m"
14
+ method_option :field_separator, default: " ", aliases: "-f"
15
15
  def min_max()
16
16
  puts ::CmdTools::Command::MinMax.run($stdin.read, options[:min_max_separator])\
17
17
  .join(options[:field_separator])
@@ -19,12 +19,12 @@ class ::CmdTools::Application < Thor
19
19
 
20
20
  desc "backup FILE1 FILE2 ...", "Backup files and directories."
21
21
  def backup(*files)
22
- puts ::CmdTools::Command::Backup.run(*files).join("\t")
22
+ puts ::CmdTools::Command::Backup.run(*files).join(" ")
23
23
  end
24
24
 
25
25
  desc "trash FILE1 FILE2 ...", "Move files and directories to ~/.myTrash"
26
26
  def trash(*files)
27
- puts ::CmdTools::Command::Trash.run(*files).join("\t")
27
+ puts ::CmdTools::Command::Trash.run(*files).join(" ")
28
28
  end
29
29
 
30
30
  desc "emacs_launch FILE1 FILE2 ...", "Launch emacs in MODE mode."
@@ -2,7 +2,7 @@ module ::CmdTools::Command::MinMax
2
2
  require 'ruby_patch'
3
3
  extend ::RubyPatch::AutoLoad
4
4
 
5
- def self.run(str, min_max_separator = "\t")
5
+ def self.run(str, min_max_separator = " ")
6
6
  str.split("\n")\
7
7
  .map{|l| l.split.map{|field| field.to_f}}\
8
8
  .transpose\
@@ -1,3 +1,3 @@
1
1
  module CmdTools
2
- VERSION = '5.0.1'
2
+ VERSION = '6.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmd_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 6.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-08 00:00:00.000000000 Z
12
+ date: 2012-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_patch
16
- requirement: &2154210160 !ruby/object:Gem::Requirement
16
+ requirement: &2154157360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154210160
24
+ version_requirements: *2154157360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &2154209440 !ruby/object:Gem::Requirement
27
+ requirement: &2154173220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0.16'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2154209440
35
+ version_requirements: *2154173220
36
36
  description: ! 'Command line tools. Please type
37
37
 
38
38
 
@@ -77,7 +77,7 @@ post_install_message: ! '
77
77
 
78
78
  # CmdTools
79
79
 
80
- export PATH=${HOME}/.gem/ruby/1.9.1/gems/cmd_tools-5.0.1/bin/command:${PATH}
80
+ export PATH=${HOME}/.gem/ruby/1.9.1/gems/cmd_tools-6.0.0/bin/command:${PATH}
81
81
 
82
82
 
83
83
  '