davidrichards-just_enumerable_stats 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 18
4
+ :patch: 19
@@ -254,9 +254,12 @@ module Enumerable
254
254
  def _jes_categories
255
255
  if @_jes_categories
256
256
  @_jes_categories
257
+ elsif self.any? {|e| e.is_a?(Float)}
258
+ val = self.map {|e| e}
259
+ val.uniq.sort rescue val
257
260
  elsif self._jes_is_numeric?
258
- @_jes_range_class = FixedRange if self.all? {|e| e.is_a?(Float)}
259
- self._jes_range_instance.map
261
+ val = self._jes_range_instance.map {|e| e}
262
+ val.uniq.sort rescue val
260
263
  else
261
264
  self.uniq.sort rescue self.uniq
262
265
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davidrichards-just_enumerable_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Richards