sprout 0.7.240-x86-linux → 0.7.241-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- 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