sprout 0.7.240-darwin → 0.7.241-darwin
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/lib/sprout/tasks/tool_task.rb +9 -1
- data/lib/sprout/version.rb +1 -1
- metadata +2 -2
@@ -502,7 +502,7 @@ module Sprout
|
|
502
502
|
end
|
503
503
|
|
504
504
|
def value
|
505
|
-
@value
|
505
|
+
@value
|
506
506
|
end
|
507
507
|
|
508
508
|
def shell_value
|
@@ -735,6 +735,14 @@ module Sprout
|
|
735
735
|
# Concrete param object for collections of strings
|
736
736
|
class StringsParam < TaskParam # :nodoc:
|
737
737
|
|
738
|
+
def value=(val)
|
739
|
+
if(val.is_a?(String))
|
740
|
+
message = "The #{name} property is an Array, not a String. It looks like you may have used the assignment operator (=) where the append operator (<<) was expected."
|
741
|
+
raise ToolTaskError.new(message)
|
742
|
+
end
|
743
|
+
@value = val
|
744
|
+
end
|
745
|
+
|
738
746
|
# Files lists are initialized to an empty array by default
|
739
747
|
def value
|
740
748
|
@value ||= []
|
data/lib/sprout/version.rb
CHANGED