cowtech-lib 1.9.1.3 → 1.9.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/cowtech-lib.gemspec CHANGED
@@ -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.3"
8
+ s.version = "1.9.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shogun"]
@@ -87,7 +87,7 @@ module Cowtech
87
87
  when :action then
88
88
  option[:required] = false
89
89
  else
90
- option[:default] = @@valid_types[option[:type]][1] unless option[:default].is_a?(@@valid_types[option[:type]][0]) == false || option[:default] == nil
90
+ option[:default] = @@valid_types[option[:type]][1] unless option[:default].is_a?(@@valid_types[option[:type]][0]) == true || option[:default] != nil
91
91
  end
92
92
 
93
93
  # Adjust priority
@@ -225,7 +225,7 @@ module Cowtech
225
225
  # Returns: The option value
226
226
  def get(name, default = nil)
227
227
  name = name.to_sym
228
-
228
+
229
229
  if @options[name][:value] != nil then
230
230
  @options[name][:value]
231
231
  elsif default != nil then
@@ -4,7 +4,7 @@ module Cowtech
4
4
  MAJOR = 1
5
5
  MINOR = 9
6
6
  PATCH = 1
7
- BUILD = 3
7
+ BUILD = 4
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
- - 3
10
- version: 1.9.1.3
9
+ - 4
10
+ version: 1.9.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun