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.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/lib/ivy4r.rb +6 -5
  3. metadata +1 -1
@@ -1,3 +1,7 @@
1
+ === 0.9.9 / 2009-12-10
2
+
3
+ * Fixed setting of ant properties, properties are really sets and cannot be overwritten afterwards.
4
+
1
5
  === 0.9.7 / 2009-12-10
2
6
 
3
7
  * Fixed missing files in gem.
@@ -35,7 +35,7 @@ is
35
35
  }
36
36
  =end
37
37
  class Ivy4r
38
- VERSION = '0.9.7'
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
- ant_properties[name] = value
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] }[1]
231
+ property = ant_properties.find {|p| matcher === p[0] }
232
+ property ? property[1] : nil
232
233
  end
233
234
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ivy4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaas Prause