lock_jar 0.14.1 → 0.14.2

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: 5998af4c7ae20beeb17bcc2545cb8965777119cb
4
- data.tar.gz: 8ea6c1dbf3253883fbd9e739ad3a52724a8b88ba
3
+ metadata.gz: 89e8000e6eabfa436d403adf58c2df66c89f2939
4
+ data.tar.gz: de15e6014fadc83bee21a403ca80cb25d595849d
5
5
  SHA512:
6
- metadata.gz: 17c9ee504886cbe8d55b9a143a7a2af961d660ecfcbe15913b2b3f87f6b5c9905ddec8ab2be8040b400d220ed27ea3d18422a07d0da27cf8434d0380578e3131
7
- data.tar.gz: dc1ff550cedb9bbe83464f6888dee82c79d359d15bc9b0d15ab5ac74617a463ac8ca7a68f8b7042cfa36404d9a1e60af44edd0be7edbf29be2a3a4b93992fb80
6
+ metadata.gz: f6a3d83e53fa5759b2b0099e9325e87a183f46e37047d6b92741f169f2f46fadc5890c481014da4a7140f4a8555d9c55ca4d941728e3a4f45c1415fd549ceda7
7
+ data.tar.gz: 65d1ea5290e981d89f32066d37fbac6a91626744d130e58c1cb1ca96d9e7227555130ceca93927b3a06c58615599a98010a21fdbcb7605fe6ddb31c6364df1c2
@@ -71,12 +71,12 @@ module LockJar
71
71
  puts "[LockJar] Group #{group}:" if ENV['DEBUG']
72
72
 
73
73
  definition.specs_for([group]).each do |spec|
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
74
+ next unless File.exist? File.join(spec.gem_dir, 'Jarfile')
75
+
76
+ merged_dsl = merge_gem_dsl(dsl, spec, group)
77
+ if merged_dsl
78
+ gems_with_jars << "gem:#{spec.name}"
79
+ dsl = merged_dsl
80
80
  end
81
81
  end
82
82
  end
@@ -14,7 +14,6 @@ module LockJar
14
14
  end
15
15
 
16
16
  def lock(jarfile_or_dsl, opts = {}, &blk)
17
-
18
17
  @opts = { download: true }.merge(opts)
19
18
 
20
19
  create_dsl!(jarfile_or_dsl, &blk)
@@ -105,7 +104,7 @@ module LockJar
105
104
  end
106
105
 
107
106
  def apply_repositories!
108
- lockfile.local_repository = opts[:local_repo] || jarfile.local_repository
107
+ lockfile.local_repository = opts[:local_repo] ||= jarfile.local_repository
109
108
 
110
109
  if jarfile.clear_repositories
111
110
  resolver(opts).clear_remote_repositories
@@ -1,4 +1,4 @@
1
1
  # the version
2
2
  module LockJar
3
- VERSION = '0.14.1'
3
+ VERSION = '0.14.2'
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.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Guymon