davidrichards-just_enumerable_stats 0.0.18 → 0.0.19

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.
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