multi_range 1.3.1 → 1.3.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
  SHA256:
3
- metadata.gz: 25a56c6ee87e09d32f844d7ed6191a38884dc053d6eaf5546fcc96de0c72d1dc
4
- data.tar.gz: 772147a71b3f5c32ce6ed57e3c9092f8ef55eca4d787a41e3802d3b8aac67cd3
3
+ metadata.gz: c58749306160704fe7b4a316fd550b43cec3468209a65a5077aa6414f1576c6e
4
+ data.tar.gz: 5e2923db7411209d35ca86baadb153f593d97a7530a84fbf1b28df5cb98beb25
5
5
  SHA512:
6
- metadata.gz: 26e3b3c3d782513bb1a06866f28bb479a517b731c9c5832b17efb053c610b74d6a80bee72d85e7133a156058723a310f28dde08b3c7fd2e843e2c64bfa1fafc8
7
- data.tar.gz: 6d684d20afc0929326cc08a8321728754d42fb91b1ce7399102dd379712378c36b1c7321fab9ff43d7af84b25e084a6c120cc537af112c8158a2011664536cee
6
+ metadata.gz: 51b0294b27975e344d440a366a45658ef2b916ebb8b999e61edc4420124c0ea1b4f1a7401417815f5c7a435dc8e46fb19c6ff132282189828825780ae87a0797
7
+ data.tar.gz: e6b510be7d8e2e971f671f98963f58c9476bd91199c791bdc36c694828f3e92549877a7a1dfa1b58b2e73364efb8121753934fc1225943dc1cd53ce473af24df
data/lib/multi_range.rb CHANGED
@@ -22,7 +22,7 @@ class MultiRange
22
22
  attr_reader :ranges
23
23
 
24
24
  def initialize(ranges)
25
- @ranges = ranges.map{|s| s.is_a?(Numeric) ? s..s : s }.sort_by(&:begin).freeze
25
+ @ranges = ranges.map{|s| s.is_a?(Numeric) ? s..s : s }.sort_by{|s| s.begin }.freeze
26
26
  @is_float = @ranges.any?{|range| range.begin.is_a?(Float) || range.end.is_a?(Float) }
27
27
  end
28
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MultiRange
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_range
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - khiav reoy