cowtech-lib 1.9.1.2 → 1.9.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cowtech-lib}
8
- s.version = "1.9.1.2"
8
+ s.version = "1.9.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shogun"]
@@ -110,7 +110,8 @@ module Cowtech
110
110
  if args[:file] then
111
111
  rv = true
112
112
  tests.each do |test|
113
- rv = rv && FileTest.try((test.to_s + "?").to_sym, args[:file])
113
+ method = (test.to_s + "?").to_sym
114
+ rv = rv && (FileTest.respond_to?(method) ? FileTest.send(method, args[:file]) : false)
114
115
  end
115
116
  end
116
117
 
@@ -4,7 +4,7 @@ module Cowtech
4
4
  MAJOR = 1
5
5
  MINOR = 9
6
6
  PATCH = 1
7
- BUILD = 2
7
+ BUILD = 3
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
10
10
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 9
8
8
  - 1
9
- - 2
10
- version: 1.9.1.2
9
+ - 3
10
+ version: 1.9.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun