cmd_tools 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
# cmd_tools_emacs_opener_for_alternate_editor_of_emacsclient can be used as:
|
4
|
+
# alias e='emacsclient -a cmd_tools_emacs_opener_for_alternate_editor_of_emacsclient -t'
|
5
|
+
# alias em='emacsclient -a cmd_tools_emacs_opener_for_alternate_editor_of_emacsclient -n'
|
6
|
+
|
7
|
+
spawn("emacs #{ARGV.join(' ')}")
|
data/cmd_tools.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'ruby_patch'
|
1
|
+
require 'ruby_patch/object'
|
2
2
|
|
3
3
|
gem_name = File.basename(__DIR__)
|
4
4
|
require "./lib/#{gem_name}/version"
|
@@ -9,10 +9,11 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.summary = "Command line tools."
|
10
10
|
s.version = CmdTools::VERSION
|
11
11
|
|
12
|
-
s.add_development_dependency 'ruby_patch', '~> 0.
|
12
|
+
s.add_development_dependency 'ruby_patch', '~> 0.3'
|
13
13
|
s.author = 'kshramt'
|
14
14
|
s.description = "Command line tools. tsh: mv to ~/.myTrash. bak: bakup."
|
15
15
|
s.executables << 'bak'
|
16
16
|
s.executables << 'tsh'
|
17
|
-
s.
|
17
|
+
s.executables << 'cmd_tools_emacs_launcher_for_alternate_editor_of_emacsclient'
|
18
|
+
s.required_ruby_version = '~> 1.9'
|
18
19
|
end
|
data/lib/cmd_tools/version.rb
CHANGED
data/readme.rdoc
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
= Executables
|
2
|
+
== +tsh+
|
3
|
+
*rm* alternative. Move files and directories into ~/.myTrash with +TIME_NOW+. prefix.
|
4
|
+
=== Usage
|
5
|
+
> tsh file1 file2 *~ dir1 dir2 1206??_photo
|
6
|
+
== +bak+
|
7
|
+
Back up files and directories of current directory into ./bak_since_SOME_NUMBERES directory with bak.+TIME_NOW+. prefix.
|
8
|
+
=== Usage
|
9
|
+
> bak file1 file2 *~ dir1 dir2 1206??_photo
|
10
|
+
== +cmd_tools_emacs_launcher_for_aliternate_editer_of_emacsclient+
|
11
|
+
Launch +emacs+ by using +spawn+. This should be usefull when using +emacsclient+.
|
12
|
+
=== Usage
|
13
|
+
alias e='emacsclient -a cmd_tools_emacs_launcher_for_aliternate_editer_of_emacsclient -t'
|
14
|
+
alias em='emacsclient -a cmd_tools_emacs_launcher_for_aliternate_editer_of_emacsclient -n'
|
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: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,32 +9,35 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_patch
|
16
|
-
requirement: &
|
16
|
+
requirement: &2155338760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2155338760
|
25
25
|
description: ! 'Command line tools. tsh: mv to ~/.myTrash. bak: bakup.'
|
26
26
|
email:
|
27
27
|
executables:
|
28
28
|
- bak
|
29
29
|
- tsh
|
30
|
+
- cmd_tools_emacs_launcher_for_alternate_editor_of_emacsclient
|
30
31
|
extensions: []
|
31
32
|
extra_rdoc_files: []
|
32
33
|
files:
|
33
34
|
- bin/bak
|
35
|
+
- bin/cmd_tools_emacs_launcher_for_alternate_editor_of_emacsclient
|
34
36
|
- bin/tsh
|
35
37
|
- cmd_tools.gemspec
|
36
38
|
- lib/cmd_tools.rb
|
37
39
|
- lib/cmd_tools/version.rb
|
40
|
+
- readme.rdoc
|
38
41
|
homepage:
|
39
42
|
licenses: []
|
40
43
|
post_install_message:
|
@@ -46,7 +49,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
49
|
requirements:
|
47
50
|
- - ~>
|
48
51
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.9
|
52
|
+
version: '1.9'
|
50
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
54
|
none: false
|
52
55
|
requirements:
|