lock_jar 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3a691a255e5c05a41c32741bb73b4dd39bfe13c
4
- data.tar.gz: 9b6593b52c0d38d0816f25e7ea9e036d47b11192
3
+ metadata.gz: 3e94cfe9b52644b578413a836ddfb067b071cdb9
4
+ data.tar.gz: bf9c830d21a96d659120fb041bf9b6ff3b0e5d39
5
5
  SHA512:
6
- metadata.gz: e9ecb0fae86af182cbbb69734516b7ed307d1e124483afa449e229246e16b5081b30e7df0b962dc68aabe440907062153ec48adc246a45705988837d808f26bd
7
- data.tar.gz: 6e74c403ff8dc46efc2f8340d5950dd1f5368d50749bb6fe87629c202470888aa879ce0843518474766e4f3f24a1f5f9c8c4635a6488cace75f243792478113f
6
+ metadata.gz: e61785cb757101b6e1dfbc84cd41a80fb83774fda9231b90e4c2ded1aea8de01333d7e079c98d3e9b5f01b0dcb0c1f0cfefdec02fa4d038247d30a80985626cb
7
+ data.tar.gz: 70e721272f973c6ac7451b42b7244e131eadb9a316661a6f651073ba1375946bade979761a67e157a24fe39f70b2e04739a22a0e5929f85c0f0e17719cbb396e
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  * Add support for `without_default_maven_repo`
6
6
 
7
+ ### 0.12.2 (Feburary 25, 2015)
8
+
9
+ * Only write unique set of remote repositories to lockfile
10
+
7
11
  ### 0.12.1 (Feburary 25, 2015)
8
12
 
9
13
  * Fix for writing remote repositories to lockfile
@@ -15,6 +15,7 @@
15
15
 
16
16
  require "yaml"
17
17
  require 'lock_jar/version'
18
+ require 'set'
18
19
 
19
20
  module LockJar
20
21
  module Domain
@@ -35,7 +36,7 @@ module LockJar
35
36
  lockfile.maps = lock_data['maps'] || []
36
37
  lockfile.excludes = lock_data['excludes'] || []
37
38
  lockfile.groups = lock_data['groups'] || lock_data['scopes'] || {}
38
- lockfile.remote_repositories = lock_data['remote_repositories'] || lock_data['repositories'] || []
39
+ lockfile.remote_repositories = Set.new( Array(lock_data['remote_repositories'] || lock_data['repositories']) )
39
40
  lockfile.gems = lock_data['gems'] || []
40
41
  lockfile
41
42
  end
@@ -77,7 +78,7 @@ module LockJar
77
78
  lock_data['groups'] = groups
78
79
 
79
80
  if remote_repositories.size > 0
80
- lock_data['remote_repositories'] = remote_repositories
81
+ lock_data['remote_repositories'] = remote_repositories.to_a
81
82
  end
82
83
 
83
84
  lock_data
@@ -1,3 +1,3 @@
1
1
  module LockJar
2
- VERSION = '0.12.1'
2
+ VERSION = '0.12.2'
3
3
  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.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Guymon