easyoperate 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Manifest +10 -10
  2. data/easyoperate.gemspec +6 -6
  3. data/lib/eo/gem.rb +9 -3
  4. data/lib/version.rb +1 -1
  5. metadata +33 -20
data/Manifest CHANGED
@@ -1,16 +1,16 @@
1
+ History.txt
1
2
  Manifest
2
- test/test_helper.rb
3
- test/test_eo_cli.rb
4
- test/test_easyoperate.rb
5
- bin/eo
3
+ README.rdoc
6
4
  Rakefile
7
- History.txt
8
- lib/version.rb
5
+ bin/eo
9
6
  lib/eo.rb
7
+ lib/eo/eo.rb
8
+ lib/eo/gem.rb
9
+ lib/eo/repository.rb
10
10
  lib/eo/scm/git-svn.rb
11
11
  lib/eo/scm/git.rb
12
12
  lib/eo/scm/svn.rb
13
- lib/eo/eo.rb
14
- lib/eo/repository.rb
15
- lib/eo/gem.rb
16
- README.rdoc
13
+ lib/version.rb
14
+ test/test_easyoperate.rb
15
+ test/test_eo_cli.rb
16
+ test/test_helper.rb
@@ -2,22 +2,22 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{easyoperate}
5
- s.version = "0.6.6"
5
+ s.version = "0.6.7"
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-11-29}
9
+ s.date = %q{2010-09-07}
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
- s.extra_rdoc_files = ["bin/eo", "lib/version.rb", "lib/eo.rb", "lib/eo/scm/git-svn.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", "Rakefile", "History.txt", "lib/version.rb", "lib/eo.rb", "lib/eo/scm/git-svn.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"]
14
+ s.extra_rdoc_files = ["README.rdoc", "bin/eo", "lib/eo.rb", "lib/eo/eo.rb", "lib/eo/gem.rb", "lib/eo/repository.rb", "lib/eo/scm/git-svn.rb", "lib/eo/scm/git.rb", "lib/eo/scm/svn.rb", "lib/version.rb"]
15
+ s.files = ["History.txt", "Manifest", "README.rdoc", "Rakefile", "bin/eo", "lib/eo.rb", "lib/eo/eo.rb", "lib/eo/gem.rb", "lib/eo/repository.rb", "lib/eo/scm/git-svn.rb", "lib/eo/scm/git.rb", "lib/eo/scm/svn.rb", "lib/version.rb", "test/test_easyoperate.rb", "test/test_eo_cli.rb", "test/test_helper.rb", "easyoperate.gemspec"]
16
16
  s.homepage = %q{http://www.zhangjinzhu.com}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Easyoperate", "--main", "README.rdoc"]
18
18
  s.require_paths = ["lib"]
19
19
  s.rubyforge_project = %q{easyoperate}
20
- s.rubygems_version = %q{1.3.5}
20
+ s.rubygems_version = %q{1.3.7}
21
21
  s.summary = %q{Eo_oE}
22
22
  s.test_files = ["test/test_helper.rb", "test/test_eo_cli.rb", "test/test_easyoperate.rb"]
23
23
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
26
26
  s.specification_version = 3
27
27
 
28
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
29
29
  else
30
30
  end
31
31
  else
@@ -16,9 +16,10 @@ module Gem
16
16
 
17
17
  protected
18
18
  def gempick(args)
19
- gem = choose_one( scangem(args) )[0]
19
+ gem = choose_one( scangem(args) )
20
+ gem = gem && gem[0]
20
21
  # Got The Gem's Path
21
- gem ? `gem content #{gem} #{RUBY_VERSION > "1.9" ? '' : '--prefix'} | sed -n 1p`.match(/(.*?\w-\d.*?\/)/) : false
22
+ gem ? `gem content #{gem} #{RUBY_VERSION > "1.9" ? '' : '--prefix'} | sed -n 1p`.match(/(.*?#{gem}-\d.*?\/)/).to_s : false
22
23
  end
23
24
 
24
25
  def scangem(args)
@@ -29,6 +30,11 @@ module Gem
29
30
  result << $1
30
31
  end
31
32
 
32
- return !result.empty? ? result : (puts("\e[31mNo Result About < #{args} >\e[0m");false)
33
+ if !result.empty?
34
+ return result
35
+ else
36
+ puts "\e[31mNo Result About < #{args} >\e[0m"
37
+ return false
38
+ end
33
39
  end
34
40
  end
@@ -1,3 +1,3 @@
1
1
  module Easyoperate
2
- VERSION = '0.6.6'
2
+ VERSION = '0.6.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easyoperate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ hash: 9
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 7
10
+ version: 0.6.7
5
11
  platform: ruby
6
12
  authors:
7
13
  - Jinzhu Zhang
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-11-29 00:00:00 +08:00
18
+ date: 2010-09-07 00:00:00 +08:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -20,33 +26,33 @@ executables:
20
26
  extensions: []
21
27
 
22
28
  extra_rdoc_files:
29
+ - README.rdoc
23
30
  - bin/eo
24
- - lib/version.rb
25
31
  - lib/eo.rb
32
+ - lib/eo/eo.rb
33
+ - lib/eo/gem.rb
34
+ - lib/eo/repository.rb
26
35
  - lib/eo/scm/git-svn.rb
27
36
  - lib/eo/scm/git.rb
28
37
  - lib/eo/scm/svn.rb
29
- - lib/eo/eo.rb
30
- - lib/eo/repository.rb
31
- - lib/eo/gem.rb
32
- - README.rdoc
38
+ - lib/version.rb
33
39
  files:
40
+ - History.txt
34
41
  - Manifest
35
- - test/test_helper.rb
36
- - test/test_eo_cli.rb
37
- - test/test_easyoperate.rb
38
- - bin/eo
42
+ - README.rdoc
39
43
  - Rakefile
40
- - History.txt
41
- - lib/version.rb
44
+ - bin/eo
42
45
  - lib/eo.rb
46
+ - lib/eo/eo.rb
47
+ - lib/eo/gem.rb
48
+ - lib/eo/repository.rb
43
49
  - lib/eo/scm/git-svn.rb
44
50
  - lib/eo/scm/git.rb
45
51
  - lib/eo/scm/svn.rb
46
- - lib/eo/eo.rb
47
- - lib/eo/repository.rb
48
- - lib/eo/gem.rb
49
- - README.rdoc
52
+ - lib/version.rb
53
+ - test/test_easyoperate.rb
54
+ - test/test_eo_cli.rb
55
+ - test/test_helper.rb
50
56
  - easyoperate.gemspec
51
57
  has_rdoc: true
52
58
  homepage: http://www.zhangjinzhu.com
@@ -63,21 +69,28 @@ rdoc_options:
63
69
  require_paths:
64
70
  - lib
65
71
  required_ruby_version: !ruby/object:Gem::Requirement
72
+ none: false
66
73
  requirements:
67
74
  - - ">="
68
75
  - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
69
79
  version: "0"
70
- version:
71
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ">="
74
84
  - !ruby/object:Gem::Version
85
+ hash: 11
86
+ segments:
87
+ - 1
88
+ - 2
75
89
  version: "1.2"
76
- version:
77
90
  requirements: []
78
91
 
79
92
  rubyforge_project: easyoperate
80
- rubygems_version: 1.3.5
93
+ rubygems_version: 1.3.7
81
94
  signing_key:
82
95
  specification_version: 3
83
96
  summary: Eo_oE