zonify 0.4.0.6 → 0.4.1

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.
Files changed (2) hide show
  1. data/lib/zonify.rb +3 -2
  2. metadata +4 -5
data/lib/zonify.rb CHANGED
@@ -339,7 +339,7 @@ def merge(*trees)
339
339
  d = data.merge(acc_[type])
340
340
  acc_[type] = d
341
341
  else # Not WRR records.
342
- acc_[type][:value] = (data[:value] + acc_[type][:value]).uniq.sort
342
+ acc_[type][:value] = (data[:value] + acc_[type][:value]).sort.uniq
343
343
  end
344
344
  acc_
345
345
  end
@@ -562,7 +562,8 @@ extend self
562
562
  end
563
563
  end
564
564
  end
565
- addenda = rrs ? { :value => rrs + (acc_[type][:value] or []) } : {}
565
+ normed = (rrs + (acc_[type][:value] or [])).sort.uniq if rrs
566
+ addenda = normed ? { :value => normed } : {}
566
567
  acc_[type] = data.merge(addenda)
567
568
  acc_
568
569
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zonify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 99
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- - 6
11
- version: 0.4.0.6
9
+ - 1
10
+ version: 0.4.1
12
11
  platform: ruby
13
12
  authors:
14
13
  - Airbnb
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2012-09-27 00:00:00 Z
18
+ date: 2012-10-13 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: fog