cowtech-lib 1.9.6.2 → 1.9.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/cowtech-lib.gemspec +7 -3
- data/lib/cowtech-lib/option_parser.rb +1 -1
- data/lib/cowtech-lib/shell.rb +4 -2
- data/lib/cowtech-lib/version.rb +1 -1
- metadata +17 -5
data/Gemfile
ADDED
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.6.
|
8
|
+
s.version = "1.9.6.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Shogun}]
|
12
|
-
s.date = %q{2011-07-
|
12
|
+
s.date = %q{2011-07-21}
|
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 = [
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
"Gemfile",
|
21
22
|
"LICENSE.txt",
|
22
23
|
"README.rdoc",
|
23
24
|
"Rakefile",
|
@@ -32,18 +33,21 @@ Gem::Specification.new do |s|
|
|
32
33
|
s.homepage = %q{http://github.com/ShogunPanda/cowtech-lib}
|
33
34
|
s.licenses = [%q{MIT}]
|
34
35
|
s.require_paths = [%q{lib}]
|
35
|
-
s.rubygems_version = %q{1.8.
|
36
|
+
s.rubygems_version = %q{1.8.5}
|
36
37
|
s.summary = %q{A general purpose utility library.}
|
37
38
|
|
38
39
|
if s.respond_to? :specification_version then
|
39
40
|
s.specification_version = 3
|
40
41
|
|
41
42
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
|
+
s.add_runtime_dependency(%q<jeweler>, [">= 0"])
|
42
44
|
s.add_runtime_dependency(%q<open4>, [">= 0"])
|
43
45
|
else
|
46
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
44
47
|
s.add_dependency(%q<open4>, [">= 0"])
|
45
48
|
end
|
46
49
|
else
|
50
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
47
51
|
s.add_dependency(%q<open4>, [">= 0"])
|
48
52
|
end
|
49
53
|
end
|
data/lib/cowtech-lib/shell.rb
CHANGED
@@ -264,6 +264,8 @@ module Cowtech
|
|
264
264
|
break if !rv
|
265
265
|
end
|
266
266
|
else # If we are copying or moving to a file
|
267
|
+
files = args[:files]
|
268
|
+
|
267
269
|
if !files.kind_of?(String) && !dest.kind_of?(String) == true then
|
268
270
|
@console.error("Cowtech::Lib::Shell#copy: To copy a single file, both files and dest arguments must be a string.", :dots => false, :fatal => args[:fatal])
|
269
271
|
rv = false
|
@@ -281,10 +283,10 @@ module Cowtech
|
|
281
283
|
FileUtils.cp(files, dest, {:noop => @console.skip_commands, :verbose => @console.skip_commands})
|
282
284
|
end
|
283
285
|
rescue StandardError => e
|
284
|
-
|
286
|
+
@console.error("Cannot #{if move then "move" else "copy" end} entry <text style=\"bold white\">#{files}</text> to non-writable entry<text style=\"bold white\"> #{dest}</text>", :dots => false, :fatal => args[:fatal]) if args[:show_errors] && (e.message =~ /^Permission denied - (.+)/)
|
285
287
|
rv = false
|
286
288
|
rescue Exception => e
|
287
|
-
|
289
|
+
@console.error("Cannot #{if move then "move" else "copy" end} <text style=\"bold white\">#{files}</text> to <text style=\"bold_white\">#{dest}</text> due to an error: <text style=\"bold red\">#{e}</text>", :dots => false, :fatal => args[:fatal]) if args[:show_errors]
|
288
290
|
rv = false
|
289
291
|
end
|
290
292
|
end
|
data/lib/cowtech-lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cowtech-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.6.
|
4
|
+
version: 1.9.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-07-
|
12
|
+
date: 2011-07-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jeweler
|
16
|
+
requirement: &70157636855980 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70157636855980
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: open4
|
16
|
-
requirement: &
|
27
|
+
requirement: &70157636854660 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
30
|
- - ! '>='
|
@@ -21,7 +32,7 @@ dependencies:
|
|
21
32
|
version: '0'
|
22
33
|
type: :runtime
|
23
34
|
prerelease: false
|
24
|
-
version_requirements: *
|
35
|
+
version_requirements: *70157636854660
|
25
36
|
description: A general purpose utility library.
|
26
37
|
email: shogun_panda@me.com
|
27
38
|
executables: []
|
@@ -31,6 +42,7 @@ extra_rdoc_files:
|
|
31
42
|
- README.rdoc
|
32
43
|
files:
|
33
44
|
- .document
|
45
|
+
- Gemfile
|
34
46
|
- LICENSE.txt
|
35
47
|
- README.rdoc
|
36
48
|
- Rakefile
|
@@ -62,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
74
|
version: '0'
|
63
75
|
requirements: []
|
64
76
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.8.
|
77
|
+
rubygems_version: 1.8.5
|
66
78
|
signing_key:
|
67
79
|
specification_version: 3
|
68
80
|
summary: A general purpose utility library.
|