ivy4r 0.9.7 → 0.9.9
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/History.txt +4 -0
- data/lib/ivy4r.rb +6 -5
- metadata +1 -1
data/History.txt
CHANGED
data/lib/ivy4r.rb
CHANGED
|
@@ -35,7 +35,7 @@ is
|
|
|
35
35
|
}
|
|
36
36
|
=end
|
|
37
37
|
class Ivy4r
|
|
38
|
-
VERSION = '0.9.
|
|
38
|
+
VERSION = '0.9.9'
|
|
39
39
|
|
|
40
40
|
# Set the ant home directory to load ant classes from if no custom __antwrap__ is provided
|
|
41
41
|
# and the default provided ant version 1.7.1 should not be used.
|
|
@@ -164,7 +164,7 @@ class Ivy4r
|
|
|
164
164
|
# [set] <tt>property['name'] = value</tt> sets the ant property with name to given value no overwrite
|
|
165
165
|
# [get] <tt>property[matcher]</tt> gets property that is equal via case equality operator (<tt>===</tt>)
|
|
166
166
|
def property
|
|
167
|
-
AntPropertyHelper.new(ant_properties)
|
|
167
|
+
AntPropertyHelper.new(ant, ant_properties)
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
# Returns the __antwrap__ instance to use for all internal calls creates a default
|
|
@@ -222,12 +222,13 @@ class Ivy4r
|
|
|
222
222
|
end
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
-
AntPropertyHelper = Struct.new(:ant_properties) do #:nodoc:
|
|
225
|
+
AntPropertyHelper = Struct.new(:ant, :ant_properties) do #:nodoc:
|
|
226
226
|
def []=(name, value) #:nodoc:
|
|
227
|
-
|
|
227
|
+
ant.property :name => name, :value => value
|
|
228
228
|
end
|
|
229
229
|
|
|
230
230
|
def [](matcher) #:nodoc:
|
|
231
|
-
ant_properties.find {|p| matcher === p[0] }
|
|
231
|
+
property = ant_properties.find {|p| matcher === p[0] }
|
|
232
|
+
property ? property[1] : nil
|
|
232
233
|
end
|
|
233
234
|
end
|