easyoperate 0.5.4 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -0
- data/easyoperate.gemspec +2 -2
- data/lib/eo/eo.rb +1 -1
- data/lib/eo.rb +6 -4
- data/lib/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 0.5.5 2009-4-11
|
2
|
+
* add multi repos files to ~/.eo/repos_files
|
3
|
+
* gem: doesn't case sensitive
|
4
|
+
* option ( d ) to delete repository
|
5
|
+
* configure which shell to use
|
6
|
+
* you can push your repository (add pushable: true)
|
7
|
+
* you can skip some repository when update/init (add skip: true)
|
8
|
+
* add readline ,yeap enjoy arrow
|
9
|
+
|
1
10
|
== 0.4.1 2009-2-1
|
2
11
|
* Ruby 1.9 compatible
|
3
12
|
|
data/easyoperate.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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.6"
|
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-
|
9
|
+
s.date = %q{2009-04-14}
|
10
10
|
s.default_executable = %q{eo}
|
11
11
|
s.description = %q{Eo_oE}
|
12
12
|
s.email = %q{wosmvp@gmail.com}
|
data/lib/eo/eo.rb
CHANGED
@@ -59,7 +59,7 @@ class Eo
|
|
59
59
|
repos = pick(:key => args,:plural => true,:pushable => true)
|
60
60
|
repos.each do |x|
|
61
61
|
puts "\e[32m %-18s: Pushing\e[0m" % [x]
|
62
|
-
|
62
|
+
next if !exist_path(x)
|
63
63
|
Repos[x].push if Repos[x].respond_to?(:push)
|
64
64
|
end
|
65
65
|
end
|
data/lib/eo.rb
CHANGED
@@ -5,15 +5,17 @@ class Eo
|
|
5
5
|
Repos = Hash.new
|
6
6
|
|
7
7
|
config_file = File.join("#{ENV['HOME']}",".eo/config")
|
8
|
-
|
8
|
+
repos_files = Dir.glob(File.join("#{ENV['HOME']}/.eo/repos_files",'*')).concat( File.join("#{ENV['HOME']}",".eo/repos").to_a )
|
9
9
|
|
10
10
|
Config = {'open' => 'vim','shell' => 'sh'}.merge(
|
11
11
|
File.exist?(config_file) ? YAML.load_file(config_file) : {}
|
12
12
|
)
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
repos_files.map do |f|
|
15
|
+
YAML.load_file( f ).each_pair do |key,value|
|
16
|
+
Repos[key] = Repository.new(value.merge!("_name_" => key))
|
17
|
+
end if File.exist?( f )
|
18
|
+
end
|
17
19
|
|
18
20
|
class << self
|
19
21
|
def execute(args)
|
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.6
|
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-
|
12
|
+
date: 2009-04-14 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|