buildr-resolver 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{buildr-resolver}
8
- s.version = "0.3.5"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Guymon"]
@@ -166,6 +166,7 @@ module Buildr
166
166
  def remote=(urls)
167
167
  case urls
168
168
  when nil then @remote = nil
169
+ when RepositoryArray then @remote = urls
169
170
  when Array then @remote = RepositoryArray.new(urls.dup)
170
171
  else @remote = RepositoryArray.new([urls])
171
172
  end
@@ -27,8 +27,16 @@ module Buildr
27
27
 
28
28
  if Buildr.repositories.remote.size > 0
29
29
  naether.clear_remote_repositories
30
+
31
+ # ensure repos have been converted to RepostoryArray
32
+ Buildr.repositories.remote = Buildr.repositories.remote
33
+
30
34
  Buildr.repositories.remote.each do |repo|
31
- naether.add_remote_repository( repo[:url].to_s, repo[:username], repo[:password] )
35
+ begin
36
+ naether.add_remote_repository( repo[:url].to_s, repo[:username], repo[:password] )
37
+ rescue
38
+
39
+ end
32
40
  end
33
41
  end
34
42
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildr-resolver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Guymon