lock_jar 0.4.3 → 0.4.4

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
@@ -65,6 +65,10 @@ module LockJar
65
65
  @naether.clear_remote_repositories if opts[:offline]
66
66
  end
67
67
 
68
+ def remote_repositories
69
+ @naether.remote_repository_urls
70
+ end
71
+
68
72
  def add_remote_repository( repo )
69
73
  @naether.add_remote_repository( repo )
70
74
  end
@@ -90,7 +90,7 @@ module LockJar
90
90
  end
91
91
 
92
92
  if lock_jar_file.repositories.size > 0
93
- lock_data['repositories'] = lock_jar_file.repositories
93
+ lock_data['repositories'] = resolver(opts).remote_repositories
94
94
 
95
95
  if needs_force_encoding
96
96
  lock_data['repositories'].map! { |repo| repo.force_encoding("UTF-8") }
data/lock_jar.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lock_jar"
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
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"]
@@ -17,7 +17,7 @@ describe LockJar, "#lock" do
17
17
  lockfile = LockJar.read('tmp/Jarfile.lock')
18
18
  lockfile.should eql( {
19
19
  "local_repository" => "~/.m2",
20
- "repositories" => ["http://repository.jboss.org/nexus/content/groups/public-jboss"],
20
+ "repositories" => ["http://repo1.maven.org/maven2/", "http://repository.jboss.org/nexus/content/groups/public-jboss"],
21
21
  "scopes" => {
22
22
  "compile"=>{
23
23
  "dependencies"=>["org.apache.mina:mina-core:2.0.4", "spec/pom.xml"],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lock_jar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -2689966737246561938
176
+ hash: 27735535067066855
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements: