easyoperate 0.5.1 → 0.5.2
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.
- data/Manifest +0 -2
- data/README.rdoc +12 -8
- data/easyoperate.gemspec +3 -3
- data/lib/eo.rb +10 -10
- data/lib/eo/gem.rb +1 -1
- data/lib/eo/repository.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -4
- data/example/config +0 -2
- data/example/repos +0 -20
data/Manifest
CHANGED
data/README.rdoc
CHANGED
@@ -5,12 +5,14 @@
|
|
5
5
|
|
6
6
|
== Why && How To Use:
|
7
7
|
|
8
|
-
### ~/.
|
8
|
+
### ~/.eo/config
|
9
|
+
open: vim
|
10
|
+
shell: bash
|
11
|
+
|
12
|
+
### ~/.eo/repos
|
9
13
|
vim-rails:
|
10
14
|
path: ~/vim/vim-rails/ # Local path
|
11
15
|
|
12
|
-
skip: true # skip
|
13
|
-
|
14
16
|
pushable: true # pushable
|
15
17
|
|
16
18
|
repo: git://github.com/tpope/vim-rails.git # Remote path
|
@@ -31,11 +33,12 @@
|
|
31
33
|
# will print "Hi,This is example method"
|
32
34
|
|
33
35
|
arch-linux:
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
skip: true # skip
|
37
|
+
cmd:
|
38
|
+
init: system('sudo pacman -S $(cat ~/pkglist)')
|
39
|
+
# Install all software list in ~/pkglist
|
37
40
|
|
38
|
-
|
41
|
+
update: system('sudo pacman -Suy')
|
39
42
|
# Synchronizing package databases,Then upgrade System
|
40
43
|
|
41
44
|
|
@@ -46,6 +49,7 @@
|
|
46
49
|
$ eo -u vim-rails => Update vim-rails
|
47
50
|
run 'git pull' in vim-rails's path
|
48
51
|
$ eo -u => Update all repository in ~/.eorc <Regexp>
|
52
|
+
$ eo -p => Push all pushable repository
|
49
53
|
|
50
54
|
== More Help ?!
|
51
55
|
|
@@ -55,7 +59,7 @@
|
|
55
59
|
$ h for help
|
56
60
|
|
57
61
|
|
58
|
-
Copyright (c) 2008 GPL3
|
62
|
+
Copyright (c) 2008-2009 GPL3
|
59
63
|
|
60
64
|
Author : Jinzhu Zhang
|
61
65
|
Web : http://www.zhangjinzhu.com
|
data/easyoperate.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{easyoperate}
|
5
|
-
s.version = "0.5.
|
5
|
+
s.version = "0.5.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jinzhu Zhang"]
|
9
|
-
s.date = %q{2009-02-
|
9
|
+
s.date = %q{2009-02-16}
|
10
10
|
s.default_executable = %q{eo}
|
11
11
|
s.description = %q{Eo_oE}
|
12
12
|
s.email = %q{wosmvp@gmail.com}
|
13
13
|
s.executables = ["eo"]
|
14
14
|
s.extra_rdoc_files = ["bin/eo", "lib/version.rb", "lib/eo.rb", "lib/eo/scm/git.rb", "lib/eo/scm/svn.rb", "lib/eo/eo.rb", "lib/eo/repository.rb", "lib/eo/gem.rb", "README.rdoc"]
|
15
|
-
s.files = ["Manifest", "test/test_helper.rb", "test/test_eo_cli.rb", "test/test_easyoperate.rb", "bin/eo", "
|
15
|
+
s.files = ["Manifest", "test/test_helper.rb", "test/test_eo_cli.rb", "test/test_easyoperate.rb", "bin/eo", "Rakefile", "History.txt", "lib/version.rb", "lib/eo.rb", "lib/eo/scm/git.rb", "lib/eo/scm/svn.rb", "lib/eo/eo.rb", "lib/eo/repository.rb", "lib/eo/gem.rb", "README.rdoc", "easyoperate.gemspec"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://www.zhangjinzhu.com}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Easyoperate", "--main", "README.rdoc"]
|
data/lib/eo.rb
CHANGED
@@ -7,7 +7,7 @@ class Eo
|
|
7
7
|
config_file = File.join("#{ENV['HOME']}",".eo/config")
|
8
8
|
repos_file = File.join("#{ENV['HOME']}",".eo/repos")
|
9
9
|
|
10
|
-
Config = {'open' => 'vim'}.merge(
|
10
|
+
Config = {'open' => 'vim','shell' => 'sh'}.merge(
|
11
11
|
File.exist?(config_file) ? YAML.load_file(config_file) : {}
|
12
12
|
)
|
13
13
|
|
@@ -69,16 +69,16 @@ class Eo
|
|
69
69
|
puts <<-DOC.gsub(/^(\s*)/,'').gsub(/^\|(\s*)/,'\1' + (shell ? '-':''))
|
70
70
|
Usage:
|
71
71
|
|
72
|
-
| I /args/ : Initialize matched Repository
|
73
|
-
| U /args/ : Update matched Repository
|
72
|
+
| I /args/ : Initialize matched Repository <Regexp>
|
73
|
+
| U /args/ : Update matched Repository <Regexp>
|
74
74
|
| T : Show All Support Scm
|
75
|
-
| P
|
76
|
-
| S /args/ : Show matched repositories
|
77
|
-
| O /args/ : Open The repository's path
|
78
|
-
| C /args/ : Choose One Repository
|
79
|
-
| GS /args/ : Show matched Gems
|
80
|
-
| GC /args/ : Choose One Gem
|
81
|
-
| GO /args/ : Open The Gem's Path
|
75
|
+
| P /args/ : Push All pushable repositories <Regexp>
|
76
|
+
| S /args/ : Show matched repositories <Regexp>
|
77
|
+
| O /args/ : Open The repository's path <Regexp>
|
78
|
+
| C /args/ : Choose One Repository <Regexp>
|
79
|
+
| GS /args/ : Show matched Gems <Regexp>
|
80
|
+
| GC /args/ : Choose One Gem <Regexp>
|
81
|
+
| GO /args/ : Open The Gem's Path <Regexp>
|
82
82
|
| Q : Quit
|
83
83
|
| H : Show this help message.
|
84
84
|
| V : Show version information.
|
data/lib/eo/gem.rb
CHANGED
data/lib/eo/repository.rb
CHANGED
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easyoperate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jinzhu Zhang
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-16 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -35,8 +35,6 @@ files:
|
|
35
35
|
- test/test_eo_cli.rb
|
36
36
|
- test/test_easyoperate.rb
|
37
37
|
- bin/eo
|
38
|
-
- example/config
|
39
|
-
- example/repos
|
40
38
|
- Rakefile
|
41
39
|
- History.txt
|
42
40
|
- lib/version.rb
|
data/example/config
DELETED
data/example/repos
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# vi filetype=yml
|
2
|
-
#
|
3
|
-
# hack hack hack, rename to ~/.eo/repos
|
4
|
-
|
5
|
-
vim-rails:
|
6
|
-
path: ~/vim/vim-rails/ # Local path
|
7
|
-
repo: git://github.com/tpope/vim-rails.git # Remote path
|
8
|
-
autorun: 'puts "Thanks to Tim Pope";cp_autoload;cp_plugin' # Splited by ;
|
9
|
-
scm: # default is git,you can define you scm-type in ~/.eo/scm
|
10
|
-
cmd: # define your methods
|
11
|
-
cp_autoload: system('cp autoload/rails.vim ~/.vim/autoload/')
|
12
|
-
cp_plugin: system('cp plugin/rails.vim ~/.vim/plugin/')
|
13
|
-
example: 'puts "Hi,This is example method"'
|
14
|
-
|
15
|
-
arch-linux:
|
16
|
-
cmd:
|
17
|
-
init: system('sudo pacman -S $(cat ~/pkglist)')
|
18
|
-
# Install all software listed in ~/pkglist
|
19
|
-
update: system('sudo pacman -Suy')
|
20
|
-
# Synchronizing package databases,Then upgrade System
|