easyoperate 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,17 @@
1
- History.txt
2
- Manifest.txt
3
- README.rdoc
4
- Rakefile
1
+ Manifest
2
+ test/test_helper.rb
3
+ test/test_eo_cli.rb
4
+ test/test_easyoperate.rb
5
5
  bin/eo
6
- example/eorc
7
- lib/easyoperate.rb
6
+ example/config
7
+ example/repos
8
+ Rakefile
9
+ History.txt
10
+ lib/version.rb
8
11
  lib/eo.rb
9
- lib/eo/eo.rb
10
- lib/eo/repository.rb
11
12
  lib/eo/scm/git.rb
12
13
  lib/eo/scm/svn.rb
13
- test/test_easyoperate.rb
14
- test/test_eo_cli.rb
15
- test/test_helper.rb
14
+ lib/eo/eo.rb
15
+ lib/eo/repository.rb
16
+ lib/eo/gem.rb
17
+ README.rdoc
data/Rakefile CHANGED
@@ -1,25 +1,39 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
- require File.dirname(__FILE__) + '/lib/easyoperate'
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+ require File.dirname(__FILE__) + '/lib/version'
3
5
 
4
- $hoe = Hoe.new('easyoperate', Easyoperate::VERSION) do |p|
5
- p.developer('Jinzhu Zhang', 'wosmvp@gmail.com')
6
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
7
- p.rubyforge_name = "easyoperate"
8
- p.url = "http://www.zhangjinzhu.com"
9
- p.description = "Eo_oE"
6
+ Echoe.new('easyoperate', Easyoperate::VERSION) do |p|
7
+ p.description = "Eo_oE"
8
+ p.url = "http://www.zhangjinzhu.com"
9
+ p.author = "Jinzhu Zhang"
10
+ p.email = "wosmvp@gmail.com"
11
+ p.ignore_pattern = ["TODO"]
12
+ p.rubyforge_name = "easyoperate"
10
13
 
11
- p.extra_dev_deps = [
12
- ['newgem', ">= #{::Newgem::VERSION}"]
13
- ]
14
+ #FIXME##############################
15
+ p.install_message = "\e[31m
14
16
 
15
- p.clean_globs |= %w[tmp *.log]
16
- path = "\#{p.rubyforge_name}/\#{p.name}"
17
- p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
18
- p.rsync_args = '-av --delete --ignore-errors'
19
- end
17
+ Attention Please ( <= v0.3.0 ):
18
+ ~/.eorc renamed to ~/.eo/repos
19
+ Add new config file ~/.eo/config
20
+
21
+ #{require 'fileutils'
22
+ FileUtils.mkdir_p(File.join("#{ENV['HOME']}",".eo"))
20
23
 
21
- require 'newgem/tasks' # load /tasks/*.rake
22
- Dir['tasks/**/*.rake'].each { |t| load t }
24
+ origin = File.join("#{ENV['HOME']}",".eorc")
25
+ repos = File.join("#{ENV['HOME']}",".eo/repos")
26
+ config = File.join("#{ENV['HOME']}",".eo/config")
23
27
 
24
- # TODO - want other tests/tasks run by default? Add them to the list
25
- # task :default => [:spec, :features]
28
+ if File.exist?(origin) && !File.exist?(repos)
29
+ FileUtils.cp(origin,repos)
30
+ end
31
+
32
+ if !File.exist?(config)
33
+ example = File.join(File.dirname(__FILE__),'example/config')
34
+ FileUtils.cp(example,config)
35
+ end
36
+ }
37
+ \e[0m"
38
+ ########################################
39
+ end
data/bin/eo CHANGED
@@ -12,7 +12,7 @@ else
12
12
  def debugger;end
13
13
  end
14
14
 
15
- require "easyoperate"
15
+ require "version"
16
16
  require "eo"
17
17
 
18
18
  Eo.execute(ARGV)
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{easyoperate}
5
+ s.version = "0.4.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Jinzhu Zhang"]
9
+ s.date = %q{2009-01-02}
10
+ s.default_executable = %q{eo}
11
+ s.description = %q{Eo_oE}
12
+ s.email = %q{wosmvp@gmail.com}
13
+ s.executables = ["eo"]
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", "example/config", "example/repos", "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
+ s.has_rdoc = true
17
+ s.homepage = %q{http://www.zhangjinzhu.com}
18
+ s.post_install_message = %q{
19
+
20
+ Attention Please ( <= v0.3.0 ):
21
+ ~/.eorc renamed to ~/.eo/repos
22
+ Add new config file ~/.eo/config
23
+
24
+
25
+ }
26
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Easyoperate", "--main", "README.rdoc"]
27
+ s.require_paths = ["lib"]
28
+ s.rubyforge_project = %q{easyoperate}
29
+ s.rubygems_version = %q{1.3.1}
30
+ s.summary = %q{Eo_oE}
31
+ s.test_files = ["test/test_helper.rb", "test/test_eo_cli.rb", "test/test_easyoperate.rb"]
32
+
33
+ if s.respond_to? :specification_version then
34
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
35
+ s.specification_version = 2
36
+
37
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
38
+ s.add_development_dependency(%q<echoe>, [">= 0"])
39
+ else
40
+ s.add_dependency(%q<echoe>, [">= 0"])
41
+ end
42
+ else
43
+ s.add_dependency(%q<echoe>, [">= 0"])
44
+ end
45
+ end
data/example/config ADDED
@@ -0,0 +1,2 @@
1
+ # vi filetype=yml
2
+ open: vim # command used by ( $ eo -go / $ eo -o / GO / O )
data/example/repos ADDED
@@ -0,0 +1,20 @@
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
data/lib/eo/eo.rb CHANGED
@@ -1,97 +1,30 @@
1
- require File.join(File.dirname(__FILE__),'repository')
2
-
3
1
  class Eo
4
- Repos = Hash.new
5
-
6
- Config_file = File.join("#{ENV['HOME']}",".eorc")
7
-
8
- unless File.exist?(Config_file)
9
- puts " \e[31m;( No config file\e[0m \n\nExample Config file:\n\n"
10
- puts File.read(File.join(File.dirname(__FILE__),'../../example/eorc'))
11
- exit
12
- end
13
-
14
- YAML.load_file(Config_file).each_pair do |key,value|
15
- Repos[key] = Repository.new(value.merge!("_name_" => key))
16
- end
2
+ extend Gem
17
3
 
18
4
  class << self
19
- def run
20
- loop do
21
- printf("\e[33mInput Commands (q:quit h:help): \e[0m")
22
- input = STDIN.gets.split(' ',2)
23
- input[1].strip!
24
-
25
- case input[0].to_s
26
- when /GS/i then gemshow(input[1])
27
- when /GC/i then gemchoose(input[1])
28
- when /S/i then show(input[1])
29
- when /C/i then choose(input[1])
30
- when /U/i then update(input[1])
31
- when /I/i then init(input[1])
32
- when /T/i then type
33
- when /Q/i then exit
34
- else help
35
- end
36
- end
37
- end
38
-
39
- def help
40
- puts <<-DOC.gsub(/^(\s*\|)/,'')
41
- |Usage:
42
- | I /args/ : Initialize matched Repository <Regexp>
43
- | U /args/ : Update matched Repository <Regexp>
44
- | T : Show All Support Scm
45
- | S /args/ : Show matched repositories <Regexp>
46
- | C /args/ : Choose One Repository <Regexp>
47
- | GS /args/ : Show matched Gems <Regexp>
48
- | GC /args/ : Choose One Gem <Regexp>
49
- | Q : Quit
50
- | H : Show this help message.
51
- |e.g:\n \e[32m s v.*m\e[0m
52
- DOC
53
- end
54
-
55
5
  def type
56
- ["#{ENV['HOME']}/.eo/scm/",File.join(File.dirname(__FILE__),'scm')].each do |x|
6
+ puts "\e[33mAll Scm-type :\e[0m"
7
+
8
+ ["#{ENV['HOME']}/.eo/scm/",File.dirname(__FILE__) + '/scm' ].each do |x|
57
9
  next if !File.exist?(x)
58
10
  (@scm ||= []).concat(Dir.new(x).entries.reject {|i| i =~/^\.+$/})
59
11
  end
60
12
 
61
- puts "\e[33mAll Scm-type :\e[0m"
62
13
  @scm.uniq.map do |x|
63
14
  (@formated_scm ||= []) << File.basename(x,".rb")
64
15
  end
65
16
  format_display(@formated_scm)
66
17
  end
67
18
 
68
- def gemshow(args)
69
- puts "\e[33mAll Gems match < #{args} > :\e[0m"
70
- format_display(scangem(args))
71
- end
72
-
73
- def gemchoose(args)
74
- gem = choose_one(scangem(args))
75
- if gem
76
- filepath = `gem content #{gem} | sed -n 1p`
77
- Dir.chdir(filepath.match(/(.*?\w-\d.*?\/)/).to_s)
78
- system('sh')
79
- end
80
- end
81
-
82
- def scangem(args)
83
- result = []
84
- gemlist = `gem list | grep '#{args}'`
85
- gemlist.scan(/^(\w.*?)\s/) do
86
- result << $1
87
- end
88
- return result
89
- end
90
-
91
19
  def show(*args)
92
- repos = pick(args,false)
93
20
  puts "\e[33mAll Repo match < #{args} > :\e[0m"
94
- format_display(repos)
21
+ repos = pick(args,false) # single:false => allow choose many
22
+ format_display(repos) if repos
23
+ end
24
+
25
+ def open(args)
26
+ repos = pick(args)
27
+ system([Config['open'],Repos[repos.to_s].path].join(' ')) if repos
95
28
  end
96
29
 
97
30
  def choose(*args)
@@ -101,7 +34,8 @@ class Eo
101
34
  return false unless exist_path(repos)
102
35
  loop do
103
36
  printf("\e[01;34m#{repos} (h:help)>> \e[0m")
104
- input = STDIN.gets.strip
37
+ input = (STDIN.gets || exit).rstrip
38
+
105
39
  break if input =~ /\A\s*q\s*\Z/
106
40
  exit if input =~ /\A\s*Q\s*\Z/
107
41
  Repos[repos].send(input) unless input.empty?
@@ -115,10 +49,10 @@ class Eo
115
49
  repos.each do |x|
116
50
  if Repos[x].path && File.exist?(Repos[x].path)
117
51
  puts "\e[32m %-18s: already Initialized\e[0m" % [x]
118
- next
52
+ else
53
+ puts "\e[32m %-18s: Initializing\e[0m" % [x]
54
+ Repos[x].init
119
55
  end
120
- puts "\e[32m %-18s: Initializing\e[0m" % [x]
121
- Repos[x].init
122
56
  end
123
57
  end
124
58
 
@@ -136,54 +70,55 @@ class Eo
136
70
  #Pick one or more repositories to operate,if single is true only pick one
137
71
  def pick(args,single=true)
138
72
  repos = Repos.keys.grep(/#{args}/)
139
- if single
140
- if repos.size == 1
141
- return repos
142
- elsif repos.empty?
143
- printf("\e[31mNo Result About < #{args} >.\n\e[0m")
144
- return false
145
- else
146
- return choose_one(repos)
147
- end
148
- else
149
- return repos
150
- end
73
+
74
+ if repos.empty?
75
+ puts("\e[31mNo Result About < #{args} >\e[0m")
76
+ return false
77
+ end
78
+
79
+ return single ? choose_one(repos) : repos
151
80
  end
152
81
 
153
82
  def choose_one(args)
154
- puts "\e[33mPlease Choose One of them : \e[0m"
83
+ return false unless args
155
84
 
85
+ puts "\e[33mPlease Choose One of them : \e[0m"
156
86
  format_display(args)
157
87
 
158
- num = choose_range(args.size)
88
+ args.size > 1 ? (num = choose_range(args.size)) : (return args)
159
89
  return num ? [args[num-1]] : false
160
90
  end
161
91
 
162
92
  def choose_range(size)
163
93
  printf "\e[33mPlease Input A Valid Number (1-#{size}) (q:quit): \e[0m"
164
- num = STDIN.gets
94
+ num = STDIN.gets || exit
165
95
  return false if num =~ /q/i
166
- choosed_num = num.strip.empty? ? 1 : num.to_i
167
- (1..size).member?(choosed_num) ? (return choosed_num) : choose_range(size)
96
+ num = num.strip.empty? ? 1 : num.to_i
97
+ return (1..size).member?(num) ? num : choose_range(size)
168
98
  end
169
99
 
100
+ # If have path method
101
+ # and the directory exist,switch current path to the repository's path
102
+ # if doesn't exist then return false
103
+ # if doesn't have path method return true
170
104
  def exist_path(repos)
171
105
  if Repos[repos].path
172
106
  if File.exist?(Repos[repos].path)
173
- # Switch current path to the repository's path
174
107
  Dir.chdir(Repos[repos].path)
175
108
  else
176
109
  puts "\n l.l,Have You init \e[33m#{repos}\e[0m Repository?\n\n"
177
110
  return false
178
111
  end
179
- else
180
- return true
181
112
  end
113
+ return true
182
114
  end
183
115
 
184
116
  def format_display(args)
185
117
  args.each_index do |x|
186
- printf "\e[32m%-2d\e[0m %-22s" % [x+1,args[x].rstrip]
118
+ # truncate
119
+ str = args[x].rstrip
120
+ str = str.size > 23 ? str[0,21] + '..' : str
121
+ printf "\e[32m%-3d\e[0m%-23s" % [x+1,str]
187
122
  printf "\n" if (x+1)%3 == 0
188
123
  end
189
124
  puts "\n" if args.size%3 != 0
data/lib/eo/gem.rb ADDED
@@ -0,0 +1,34 @@
1
+ module Gem
2
+ def gemshow(args)
3
+ gems = scangem(args)
4
+ format_display(gems) if gems
5
+ end
6
+
7
+ def gemopen(args)
8
+ path = gempick(args)
9
+ system([Eo::Config['open'],path].join(' ')) if path
10
+ end
11
+
12
+ def gemshell(args)
13
+ path = gempick(args)
14
+ system("cd #{path} && sh") if path
15
+ end
16
+
17
+ protected
18
+ def gempick(args)
19
+ gem = choose_one( scangem(args) )
20
+ # Got The Gem's Path
21
+ gem ? `gem content #{gem}|sed -n 1p`.match(/(.*?\w-\d.*?\/)/):false
22
+ end
23
+
24
+ def scangem(args)
25
+ puts "\e[33mAll Gems match < #{args} > :\e[0m"
26
+
27
+ result = []
28
+ `gem list | grep '#{args}'`.scan(/^(\w.*?)\s/) do
29
+ result << $1
30
+ end
31
+
32
+ return !result.empty? ? result : (puts("\e[31mNo Result About < #{args} >\e[0m");false)
33
+ end
34
+ end
data/lib/eo.rb CHANGED
@@ -1,33 +1,90 @@
1
- %w(yaml eo/eo).each {|f| require f}
1
+ %w(yaml eo/repository eo/gem eo/eo).each {|f| require f}
2
2
 
3
3
  class Eo
4
+ Repos = Hash.new
4
5
 
5
- def self.execute(args)
6
-
7
- case args.first
8
- when "-gs" then self.gemshow(args[1,args.size])
9
- when "-gc" then self.gemchoose(args[1,args.size])
10
- when "-s" then self.show(args[1,args.size])
11
- when "-c" then self.choose(args[1,args.size])
12
- when "-i" then self.init(args[1,args.size])
13
- when "-u" then self.update(args[1,args.size])
14
- when "-t" then self.type
15
- when "-v" then puts "\e[33mEo_oE : v" + Easyoperate::VERSION + "\e[0m"
16
- when "-h" then
17
- puts <<-DOC.gsub(/^(\s*\|)/,'')
6
+ config_file = File.join("#{ENV['HOME']}",".eo/config")
7
+ repos_file = File.join("#{ENV['HOME']}",".eo/repos")
8
+
9
+ Config = {'open' => 'vim'}.merge(
10
+ File.exist?(config_file) ? YAML.load_file(config_file) : {}
11
+ )
12
+
13
+ YAML.load_file( repos_file ).each_pair do |key,value|
14
+ Repos[key] = Repository.new(value.merge!("_name_" => key))
15
+ end if File.exist?( repos_file )
16
+
17
+ class << self
18
+ def execute(args)
19
+ case args.first
20
+ when "-gs" then self.gemshow(args[1,args.size])
21
+ when "-gc" then self.gemshell(args[1,args.size])
22
+ when "-go" then self.gemopen(args[1,args.size])
23
+ when "-s" then self.show(args[1,args.size])
24
+ when "-o" then self.open(args[1,args.size])
25
+ when "-c" then self.choose(args[1,args.size])
26
+ when "-i" then self.init(args[1,args.size])
27
+ when "-u" then self.update(args[1,args.size])
28
+ when "-t" then self.type
29
+ when "-v" then puts "\e[33mEo_oE : v" + Easyoperate::VERSION + "\e[0m"
30
+ when "-h" then
31
+ puts <<-DOC.gsub(/^(\s*\|)/,'')
18
32
  |Usage: #{File.basename($0)} [options] [ARGS]
19
33
 
20
34
  |Options are:
21
- | -i Initialize Repository. <Regexp>
35
+ | -i Initialize Repository. <Regexp>
22
36
  | -t Show All Support Scm
23
- | -u Update Repository. <Regexp>
24
- | -s Show All Repositories. <Regexp>
25
- | -c Choose Repository. <Regexp>
26
- | -gs Show All Gems. <Regexp>
27
- | -gc Choose Gem. <Regexp>
37
+ | -u Update Repository. <Regexp>
38
+ | -s Show All Repositories. <Regexp>
39
+ | -o Open The repository's path <Regexp>
40
+ | -c Choose Repository. <Regexp>
41
+ | -gs Show All Gems. <Regexp>
42
+ | -gc Choose Gem. <Regexp>
43
+ | -go Open The Gem's Path <Regexp>
28
44
  | -v Show version information.
45
+ DOC
46
+ else self.run
47
+ end
48
+ end
49
+
50
+
51
+ def run
52
+ loop do
53
+ printf("\e[33mInput Commands (q:quit h:help): \e[0m")
54
+ input = (STDIN.gets || exit).rstrip.split(' ',2)
55
+
56
+ case input[0].to_s
57
+ when /GS/i then gemshow(input[1])
58
+ when /GC/i then gemshell(input[1])
59
+ when /GO/i then gemopen(input[1])
60
+ when /S/i then show(input[1])
61
+ when /O/i then open(input[1])
62
+ when /C/i then choose(input[1])
63
+ when /U/i then update(input[1])
64
+ when /I/i then init(input[1])
65
+ when /T/i then type
66
+ when /Q/i then exit
67
+ else help
68
+ end
69
+ end
70
+ end
71
+
72
+ def help
73
+ puts <<-DOC.gsub(/^(\s*\|)/,'')
74
+ |Usage:
75
+ | I /args/ : Initialize matched Repository <Regexp>
76
+ | U /args/ : Update matched Repository <Regexp>
77
+ | T : Show All Support Scm
78
+ | S /args/ : Show matched repositories <Regexp>
79
+ | O /args/ : Open The repository's path <Regexp>
80
+ | C /args/ : Choose One Repository <Regexp>
81
+ | GS /args/ : Show matched Gems <Regexp>
82
+ | GC /args/ : Choose One Gem <Regexp>
83
+ | GO /args/ : Open The Gem's Path <Regexp>
84
+ | Q : Quit
85
+ | H : Show this help message.
86
+ |e.g:\n \e[32m s v.*m\e[0m
29
87
  DOC
30
- else self.run
31
88
  end
32
89
  end
33
90
  end
@@ -1,3 +1,3 @@
1
1
  module Easyoperate
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jinzhu Zhang
@@ -9,60 +9,62 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-26 00:00:00 +08:00
12
+ date: 2009-01-02 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: newgem
16
+ name: echoe
17
17
  type: :development
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.2.1
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.8.0
23
+ version: "0"
34
24
  version:
35
25
  description: Eo_oE
36
- email:
37
- - wosmvp@gmail.com
26
+ email: wosmvp@gmail.com
38
27
  executables:
39
28
  - eo
40
29
  extensions: []
41
30
 
42
31
  extra_rdoc_files:
43
- - History.txt
44
- - Manifest.txt
45
- - README.rdoc
46
- files:
47
- - History.txt
48
- - Manifest.txt
49
- - README.rdoc
50
- - Rakefile
51
32
  - bin/eo
52
- - example/eorc
53
- - lib/easyoperate.rb
33
+ - lib/version.rb
54
34
  - lib/eo.rb
35
+ - lib/eo/scm/git.rb
36
+ - lib/eo/scm/svn.rb
55
37
  - lib/eo/eo.rb
56
38
  - lib/eo/repository.rb
39
+ - lib/eo/gem.rb
40
+ - README.rdoc
41
+ files:
42
+ - Manifest
43
+ - test/test_helper.rb
44
+ - test/test_eo_cli.rb
45
+ - test/test_easyoperate.rb
46
+ - bin/eo
47
+ - example/config
48
+ - example/repos
49
+ - Rakefile
50
+ - History.txt
51
+ - lib/version.rb
52
+ - lib/eo.rb
57
53
  - lib/eo/scm/git.rb
58
54
  - lib/eo/scm/svn.rb
59
- - test/test_easyoperate.rb
60
- - test/test_eo_cli.rb
61
- - test/test_helper.rb
55
+ - lib/eo/eo.rb
56
+ - lib/eo/repository.rb
57
+ - lib/eo/gem.rb
58
+ - README.rdoc
59
+ - easyoperate.gemspec
62
60
  has_rdoc: true
63
61
  homepage: http://www.zhangjinzhu.com
64
- post_install_message:
62
+ post_install_message: "\e[31m\n\n Attention Please ( <= v0.3.0 ):\n ~/.eorc renamed to ~/.eo/repos\n Add new config file ~/.eo/config\n\n \n \e[0m"
65
63
  rdoc_options:
64
+ - --line-numbers
65
+ - --inline-source
66
+ - --title
67
+ - Easyoperate
66
68
  - --main
67
69
  - README.rdoc
68
70
  require_paths:
@@ -77,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
79
  requirements:
78
80
  - - ">="
79
81
  - !ruby/object:Gem::Version
80
- version: "0"
82
+ version: "1.2"
81
83
  version:
82
84
  requirements: []
83
85
 
@@ -85,7 +87,7 @@ rubyforge_project: easyoperate
85
87
  rubygems_version: 1.3.1
86
88
  signing_key:
87
89
  specification_version: 2
88
- summary: ""
90
+ summary: Eo_oE
89
91
  test_files:
90
92
  - test/test_helper.rb
91
93
  - test/test_eo_cli.rb
data/example/eorc DELETED
@@ -1,18 +0,0 @@
1
- # hack hack hack, rename to ~/.eorc
2
- vim-rails:
3
- path: ~/vim/vim-rails/ # Local path
4
- repo: git://github.com/tpope/vim-rails.git # Remote path
5
- autorun: 'puts "Thanks to Tim Pope";cp_autoload;cp_plugin' # Splited by ;
6
- scm: # default is git,you can define you scm-type in ~/.eo/scm
7
- # you can get all scm-type with eo -t
8
- cmd: # define your methods
9
- cp_autoload: `cp autoload/rails.vim ~/.vim/autoload/`
10
- cp_plugin: `cp plugin/rails.vim '~/.vim/plugin/`
11
- example: 'puts "Hi,This is example method"'
12
-
13
- arch-linux:
14
- cmd:
15
- init: system('sudo pacman -S $(cat ~/pkglist)')
16
- # Install all software list in ~/pkglist
17
- update: system('sudo pacman -Suy')
18
- # Synchronizing package databases,Then upgrade System