deep_sort 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: d902dc8fc0a4ecbb6e53e31306256e8b582c8c62
4
- data.tar.gz: 27e1a75e36c82b6a15bae09fb1bbeb6d6e52ecda
3
+ metadata.gz: 356d0d25d1b8fcee64bb993da1693b5eae7904a0
4
+ data.tar.gz: 199c38a0e30c381a795e7882e44714864e68b064
5
5
  SHA512:
6
- metadata.gz: ce2fa3b09a814bd5a834cfd3ba1455c342945b9832f8f0a87021f048d69cb6cfc04cbba8afec1cc080c290bf4c91ea80cca552ba0c8fe9fbabce80aae01bc68d
7
- data.tar.gz: 5e87d45d71dc79fd48b781b5d235204350fbc3017a7c3a5581d7bfdcd63d4b24320dc4f94333b8dfae06b95986b11a1c364bcb8e56d41ce2ac1526ad94d08e4f
6
+ metadata.gz: affb874755ecf0273f9c815b451dfae12b841b9c6301082233ec77ef8f0e9aa34172ba73bf8a7653f8a955b5d7e7c56c165332b1da2cf4e0837193de31418100
7
+ data.tar.gz: bcb1715d18f945e34887d2321bfcbe929c5be84f56ec0d8fbb4b0e5cde4695e22a731f31dae3670e9a9a8874d7e2846d74845bf6a333de3ea4f89349033cf437
data/README.md CHANGED
@@ -29,6 +29,7 @@ Or install it yourself as:
29
29
  * `Array#deep_sort!(options = {})`
30
30
  * `Hash#deep_sort(options = {})`
31
31
  * `Hash#deep_sort!(options = {})`
32
+ * `Enumerable#deep_sort()`
32
33
 
33
34
  ## Usage
34
35
 
@@ -0,0 +1,5 @@
1
+ module Enumerable
2
+ def deep_sort
3
+ DeepSort::Array.deep_sort(self.to_a, sort_enum: true)
4
+ end
5
+ end
@@ -1,3 +1,5 @@
1
+ require 'deep_sort/enum_ext'
2
+
1
3
  class Array
2
4
  prepend DeepSort::Array
3
5
  end
@@ -1,3 +1,3 @@
1
1
  module DeepSort
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_sort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel
@@ -85,6 +85,7 @@ files:
85
85
  - deep_sort.gemspec
86
86
  - lib/deep_sort.rb
87
87
  - lib/deep_sort/array.rb
88
+ - lib/deep_sort/enum_ext.rb
88
89
  - lib/deep_sort/extend.rb
89
90
  - lib/deep_sort/hash.rb
90
91
  - lib/deep_sort/version.rb