cowtech-lib 1.9.4.2 → 1.9.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/cowtech-lib.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cowtech-lib}
8
- s.version = "1.9.4.2"
8
+ s.version = "1.9.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Shogun"]
12
- s.date = %q{2011-05-15}
11
+ s.authors = [%q{Shogun}]
12
+ s.date = %q{2011-06-06}
13
13
  s.description = %q{A general purpose utility library.}
14
14
  s.email = %q{shogun_panda@me.com}
15
15
  s.extra_rdoc_files = [
@@ -30,13 +30,12 @@ Gem::Specification.new do |s|
30
30
  "lib/cowtech-lib/version.rb"
31
31
  ]
32
32
  s.homepage = %q{http://github.com/ShogunPanda/cowtech-lib}
33
- s.licenses = ["MIT"]
34
- s.require_paths = ["lib"]
35
- s.rubygems_version = %q{1.3.7}
33
+ s.licenses = [%q{MIT}]
34
+ s.require_paths = [%q{lib}]
35
+ s.rubygems_version = %q{1.8.3}
36
36
  s.summary = %q{A general purpose utility library.}
37
37
 
38
38
  if s.respond_to? :specification_version then
39
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
40
39
  s.specification_version = 3
41
40
 
42
41
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -38,7 +38,7 @@ module Cowtech
38
38
  #
39
39
  # Arguments:
40
40
  # * <em>msg</em>: The message to show
41
- # * <em>cmd</em>: The command to run
41
+ # * <em>command</em>: The command to run
42
42
  # * <em>show_msg</em>: If show the exit message
43
43
  # * <em>show_exit</em>: If show the exit code
44
44
  # * <em>fatal</em>: If abort on failure
@@ -65,7 +65,7 @@ module Cowtech
65
65
  end
66
66
  rv[:output] = rv[:output].join("\n")
67
67
 
68
- self.status(:status => rv[:status] == 0 ? :ok : :fail, :fatal => false) if args[:show_exit]
68
+ @console.status(:status => rv[:status] == 0 ? :ok : :fail, :fatal => false) if args[:show_exit]
69
69
  exit(1) if args[:fatal] and rv[:status] != 0
70
70
  rv
71
71
  end
@@ -156,7 +156,7 @@ module Cowtech
156
156
  rv = false
157
157
  end
158
158
 
159
- rv ? rv : self.status(:fail, :fatal => args[:fatal])
159
+ rv ? rv : @console.status(:fail, :fatal => args[:fatal])
160
160
  end
161
161
 
162
162
  # Create directories (and any missing parent directory).
@@ -210,7 +210,7 @@ module Cowtech
210
210
  break unless rv
211
211
  end
212
212
 
213
- rv ? rv : self.status(:fail, :fatal => args[:fatal])
213
+ rv ? rv : @console.status(:fail, :fatal => args[:fatal])
214
214
  end
215
215
 
216
216
  # Copy files to a destination directory.
@@ -290,7 +290,7 @@ module Cowtech
290
290
  end
291
291
  end
292
292
 
293
- rv ? rv : self.status(:fail, :fatal => args[:fatal])
293
+ rv ? rv : @console.status(:fail, :fatal => args[:fatal])
294
294
  end
295
295
 
296
296
  # Rename a file.
@@ -312,7 +312,7 @@ module Cowtech
312
312
  rv = false
313
313
  end
314
314
 
315
- rv ? rv : self.status(:fail, :fatal => args[:fatal])
315
+ rv ? rv : @console.status(:fail, :fatal => args[:fatal])
316
316
  end
317
317
 
318
318
  # Returns a list of files in specified paths which matchs one of requested patterns.
@@ -3,8 +3,8 @@ module Cowtech
3
3
  module Version
4
4
  MAJOR = 1
5
5
  MINOR = 9
6
- PATCH = 4
7
- BUILD = 2
6
+ PATCH = 5
7
+ BUILD = 0
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
10
10
  end
metadata CHANGED
@@ -1,46 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cowtech-lib
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 9
8
- - 4
9
- - 2
10
- version: 1.9.4.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.9.5.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Shogun
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-15 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-06-06 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: open4
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156730940 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *2156730940
34
25
  description: A general purpose utility library.
35
26
  email: shogun_panda@me.com
36
27
  executables: []
37
-
38
28
  extensions: []
39
-
40
- extra_rdoc_files:
29
+ extra_rdoc_files:
41
30
  - LICENSE.txt
42
31
  - README.rdoc
43
- files:
32
+ files:
44
33
  - .document
45
34
  - LICENSE.txt
46
35
  - README.rdoc
@@ -52,37 +41,29 @@ files:
52
41
  - lib/cowtech-lib/script.rb
53
42
  - lib/cowtech-lib/shell.rb
54
43
  - lib/cowtech-lib/version.rb
55
- has_rdoc: true
56
44
  homepage: http://github.com/ShogunPanda/cowtech-lib
57
- licenses:
45
+ licenses:
58
46
  - MIT
59
47
  post_install_message:
60
48
  rdoc_options: []
61
-
62
- require_paths:
49
+ require_paths:
63
50
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
51
+ required_ruby_version: !ruby/object:Gem::Requirement
65
52
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
- version: "0"
72
- required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
58
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- segments:
78
- - 0
79
- version: "0"
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
80
63
  requirements: []
81
-
82
64
  rubyforge_project:
83
- rubygems_version: 1.3.7
65
+ rubygems_version: 1.8.3
84
66
  signing_key:
85
67
  specification_version: 3
86
68
  summary: A general purpose utility library.
87
69
  test_files: []
88
-