lock_jar 0.14.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 127144912becde98e2e9f80f09c4cc8539ac9444
4
- data.tar.gz: 5cc472a575538541f16e46ad98f8cc788aa9670a
3
+ metadata.gz: 5998af4c7ae20beeb17bcc2545cb8965777119cb
4
+ data.tar.gz: 8ea6c1dbf3253883fbd9e739ad3a52724a8b88ba
5
5
  SHA512:
6
- metadata.gz: 03900e1901e2442d270e32d33dd817880beb11b2d8593ec29266c92065593184f636e8cbc95815e5856966ec37095f899eac1e28feedb01cbecd99d1c6c7d920
7
- data.tar.gz: 7c1e04d429617d7b95b139195312f8f2106c8c94e6f1b6fb52ccfc6995359d89bdc8135d4fae8025b3bceb04f4a15440a7cb9f462eb2cb2b89b2b5e9c61f9e51
6
+ metadata.gz: 17c9ee504886cbe8d55b9a143a7a2af961d660ecfcbe15913b2b3f87f6b5c9905ddec8ab2be8040b400d220ed27ea3d18422a07d0da27cf8434d0380578e3131
7
+ data.tar.gz: dc1ff550cedb9bbe83464f6888dee82c79d359d15bc9b0d15ab5ac74617a463ac8ca7a68f8b7042cfa36404d9a1e60af44edd0be7edbf29be2a3a4b93992fb80
@@ -68,12 +68,16 @@ module LockJar
68
68
  end
69
69
 
70
70
  definition.groups.each do |group|
71
- puts '[LockJar] Group #{group}:' if ENV['DEBUG']
71
+ puts "[LockJar] Group #{group}:" if ENV['DEBUG']
72
72
 
73
73
  definition.specs_for([group]).each do |spec|
74
- merged_dsl = merge_gem_dsl(dsl, spec, group)
75
- dsl = merged_dsl if merged_dsl
76
- gems_with_jars << "gem:#{spec.name}" if File.exist? File.join(spec.gem_dir, 'Jarfile')
74
+ if File.exist? File.join(spec.gem_dir, 'Jarfile')
75
+ merged_dsl = merge_gem_dsl(dsl, spec, group)
76
+ if merged_dsl
77
+ gems_with_jars << "gem:#{spec.name}"
78
+ dsl = merged_dsl
79
+ end
80
+ end
77
81
  end
78
82
  end
79
83
 
@@ -14,6 +14,7 @@ module LockJar
14
14
  end
15
15
 
16
16
  def lock(jarfile_or_dsl, opts = {}, &blk)
17
+
17
18
  @opts = { download: true }.merge(opts)
18
19
 
19
20
  create_dsl!(jarfile_or_dsl, &blk)
@@ -104,6 +105,8 @@ module LockJar
104
105
  end
105
106
 
106
107
  def apply_repositories!
108
+ lockfile.local_repository = opts[:local_repo] || jarfile.local_repository
109
+
107
110
  if jarfile.clear_repositories
108
111
  resolver(opts).clear_remote_repositories
109
112
  else
@@ -116,8 +119,6 @@ module LockJar
116
119
  resolver(opts).add_remote_repository(repo)
117
120
  lockfile.remote_repositories << repo
118
121
  end
119
-
120
- lockfile.local_repository = opts[:local_repo] || jarfile.local_repository
121
122
  end
122
123
 
123
124
  def add_artifact!(group, artifact_data, artifact)
@@ -1,4 +1,4 @@
1
1
  # the version
2
2
  module LockJar
3
- VERSION = '0.14.0'
3
+ VERSION = '0.14.1'
4
4
  end
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.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Guymon