cmd_tools 3.1.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/cmd_tools CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'cmd_tools'
4
- ::CmdTools::Runner.start
4
+ ::CmdTools::Application.start
@@ -1,17 +1,17 @@
1
1
  require 'thor'
2
2
 
3
- class ::CmdTools::Runner < Thor
3
+ class ::CmdTools::Application < Thor
4
4
  require 'ruby_patch'
5
5
  extend ::RubyPatch::AutoLoad
6
6
 
7
7
  desc "backup FILE1 FILE2 ...", "Backup files and directories."
8
8
  def backup(*files)
9
- puts ::CmdTools::Command::Backup.run(*files).join("\t")
9
+ puts ::CmdTools::Commands::Backup.run(*files).join("\t")
10
10
  end
11
11
 
12
12
  desc "trash FILE1 FILE2 ...", "Move files and directories to ~/.myTrash"
13
13
  def trash(*files)
14
- puts ::CmdTools::Command::Trash.run(*files).join("\t")
14
+ puts ::CmdTools::Commands::Trash.run(*files).join("\t")
15
15
  end
16
16
 
17
17
  desc "emacs_launch FILE1 FILE2 ...", "Launch emacs in MODE mode."
@@ -27,11 +27,11 @@ Launch emacs in (G|C)UI mode.
27
27
  method_option :mode, type: :string, required: true, desc: "MODE should be 'gui' or 'cui'."
28
28
  def emacs_launch(*files)
29
29
  mode = options['mode'].to_sym
30
- ::CmdTools::Command::EmacsLaunch.run(mode, *files)
30
+ ::CmdTools::Commands::EmacsLaunch.run(mode, *files)
31
31
  end
32
32
 
33
33
  desc "emacs_stop", "Stop emacs daemon."
34
34
  def emacs_stop
35
- ::CmdTools::Command::EmacsLaunch.stop
35
+ ::CmdTools::Commands::EmacsLaunch.stop
36
36
  end
37
37
  end
@@ -1,4 +1,4 @@
1
- module ::CmdTools::Command::Backup
1
+ module ::CmdTools::Commands::Backup
2
2
  require 'fileutils'
3
3
  require 'find'
4
4
  require 'ruby_patch'
@@ -1,4 +1,4 @@
1
- module ::CmdTools::Command::EmacsLaunch
1
+ module ::CmdTools::Commands::EmacsLaunch
2
2
  require 'ruby_patch'
3
3
  extend ::RubyPatch::AutoLoad
4
4
 
@@ -1,4 +1,4 @@
1
- module ::CmdTools::Command::Trash
1
+ module ::CmdTools::Commands::Trash
2
2
  require 'fileutils'
3
3
  require 'ruby_patch'
4
4
  extend ::RubyPatch::AutoLoad
@@ -1,4 +1,4 @@
1
- module ::CmdTools::Command
1
+ module ::CmdTools::Commands
2
2
  require 'ruby_patch'
3
3
  extend ::RubyPatch::AutoLoad
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module CmdTools
2
- VERSION = '3.1.0'
2
+ VERSION = '4.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: 3.1.0
4
+ version: 4.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_patch
16
- requirement: &77989990 !ruby/object:Gem::Requirement
16
+ requirement: &87071520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *77989990
24
+ version_requirements: *87071520
25
25
  description: ! 'Command line tools. Please type
26
26
 
27
27
 
@@ -41,12 +41,12 @@ files:
41
41
  - bin/cmd_tools
42
42
  - cmd_tools.gemspec
43
43
  - lib/cmd_tools.rb
44
- - lib/cmd_tools/command.rb
45
- - lib/cmd_tools/command/backup.rb
46
- - lib/cmd_tools/command/emacs_launch.rb
47
- - lib/cmd_tools/command/trash.rb
44
+ - lib/cmd_tools/application.rb
45
+ - lib/cmd_tools/commands.rb
46
+ - lib/cmd_tools/commands/backup.rb
47
+ - lib/cmd_tools/commands/emacs_launch.rb
48
+ - lib/cmd_tools/commands/trash.rb
48
49
  - lib/cmd_tools/config.rb
49
- - lib/cmd_tools/runner.rb
50
50
  - lib/cmd_tools/version.rb
51
51
  homepage:
52
52
  licenses: []