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 +1 -1
- data/lib/cowtech-lib/option_parser.rb +2 -2
- data/lib/cowtech-lib/version.rb +1 -1
- metadata +2 -2
data/cowtech-lib.gemspec
CHANGED
@@ -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]) ==
|
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
|
data/lib/cowtech-lib/version.rb
CHANGED