naether 0.4.3-java → 0.4.4-java

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
data/lib/naether.rb CHANGED
@@ -110,6 +110,11 @@ class Naether
110
110
  # Array of mixed dependencies
111
111
  def dependencies=(dependencies)
112
112
  @resolver.clearDependencies()
113
+
114
+ unless dependencies.is_a? Array
115
+ dependencies = [dependencies]
116
+ end
117
+
113
118
  dependencies.each do |dependent|
114
119
  # Hash of notation => scope
115
120
  if dependent.is_a? Hash
@@ -117,7 +122,14 @@ class Naether
117
122
 
118
123
  # Add pom dependencies with scopes
119
124
  if key =~ /\.xml$/i
120
- add_pom_dependencies( key, dependeny[key] )
125
+ scopes = nil
126
+ if dependent[key].is_a? Array
127
+ scopes = dependent[key]
128
+ else
129
+ scopes = [dependent[key]]
130
+ end
131
+
132
+ add_pom_dependencies( key, dependent[key] )
121
133
 
122
134
  # Add a dependency notation with scopes
123
135
  else
data/naether-0.4.4.jar ADDED
Binary file
data/pom.xml CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <groupId>com.slackworks</groupId>
6
6
  <artifactId>naether</artifactId>
7
- <version>0.4.3</version>
7
+ <version>0.4.4</version>
8
8
  <packaging>jar</packaging>
9
9
  <name>naether</name>
10
10
  <url>https://github.com/mguymon/naether</url>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.3
5
+ version: 0.4.4
6
6
  platform: java
7
7
  authors:
8
8
  - Michael Guymon
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-22 00:00:00 -04:00
13
+ date: 2011-09-26 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -74,7 +74,7 @@ files:
74
74
  - lib/naether.rb
75
75
  - lib/naether/bootstrap.rb
76
76
  - lib/naether/java.rb
77
- - naether-0.4.3.jar
77
+ - naether-0.4.4.jar
78
78
  - pom.xml
79
79
  has_rdoc: true
80
80
  homepage: http://github.com/mguymon/naether
data/naether-0.4.3.jar DELETED
Binary file