ivy4r 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.9.4 / 2009-12-01
2
+
3
+ * ivy.deps for buildr supports three argument types:
4
+ 1. if an Hash is given :conf is used for confs and :type is used for types
5
+ 2. if exactly two arrays are given args[0] is used for confs and args[1] is used for types
6
+ 3. if not exactly two arrays all args are used as confs
7
+
1
8
  === 0.9.3 / 2009-11-18
2
9
 
3
10
  * Sorting of compile and test dependencies to prevent problems with old jars that are added by
@@ -69,10 +69,13 @@ module Buildr
69
69
  # Returns the artifacts for given configurations as array
70
70
  # this is a post resolve task.
71
71
  # the arguments are checked for the following:
72
- # 1. if exactly two arrays are given args[0] is used for confs and args[1] is used for types
73
- # 2. if not exactly two arrays all args are used as confs
72
+ # 1. if an Hash is given :conf is used for confs and :type is used for types
73
+ # 2. if exactly two arrays are given args[0] is used for confs and args[1] is used for types
74
+ # 3. if not exactly two arrays all args are used as confs
74
75
  def deps(*args)
75
- if args.size == 2 && args[0].kind_of?(Array) && args[1].kind_of?(Array)
76
+ if args.size == 1 && args[0].kind_of?(Hash)
77
+ confs, types = [args[0][:conf]].flatten, [args[0][:type]].flatten
78
+ elsif args.size == 2 && args[0].kind_of?(Array) && args[1].kind_of?(Array)
76
79
  confs, types = args[0], args[1]
77
80
  else
78
81
  confs, types = args.flatten, []
data/lib/ivy4r.rb CHANGED
@@ -35,7 +35,7 @@ is
35
35
  }
36
36
  =end
37
37
  class Ivy4r
38
- VERSION = '0.9.3'
38
+ VERSION = '0.9.4'
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.
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.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaas Prause
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-18 00:00:00 +01:00
12
+ date: 2009-12-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency