deep_sort 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 356d0d25d1b8fcee64bb993da1693b5eae7904a0
4
- data.tar.gz: 199c38a0e30c381a795e7882e44714864e68b064
3
+ metadata.gz: 0c9b855a4e11c26b3e2457ace5526499257ab6f3
4
+ data.tar.gz: 467acbe09f058c085db9d474f219e94c04afb90a
5
5
  SHA512:
6
- metadata.gz: affb874755ecf0273f9c815b451dfae12b841b9c6301082233ec77ef8f0e9aa34172ba73bf8a7653f8a955b5d7e7c56c165332b1da2cf4e0837193de31418100
7
- data.tar.gz: bcb1715d18f945e34887d2321bfcbe929c5be84f56ec0d8fbb4b0e5cde4695e22a731f31dae3670e9a9a8874d7e2846d74845bf6a333de3ea4f89349033cf437
6
+ metadata.gz: 54c30b41f01880c8f709154524cd2d4a4a6728a5b498ad0cd7172700a4880621ec44410c67a76304e55c378b49ef058f1c1c4a81f441713ce13c65dec845d65c
7
+ data.tar.gz: 1a1aca25d50c37431d79c59af8ac947e98597cf651fe1194863afd9e4c2f8e47c0dd5cb8e981481886b43d55323a9ba2b54c95ad4838d17527c9762f8df9b35d
@@ -12,10 +12,10 @@ module DeepSort::Array
12
12
  array.map {|value|
13
13
  case value
14
14
  when Array, Hash
15
- value.deep_sort(options)
15
+ DeepSort.deep_sort(value, options)
16
16
  when Enumerable
17
17
  if options[:sort_enum]
18
- value.to_a.deep_sort(options)
18
+ DeepSort.deep_sort(value.to_a, options)
19
19
  else
20
20
  value
21
21
  end
@@ -16,10 +16,10 @@ module DeepSort::Hash
16
16
 
17
17
  case value
18
18
  when Array, Hash
19
- value = value.deep_sort(options)
19
+ value = DeepSort.deep_sort(value, options)
20
20
  when Enumerable
21
21
  if options[:sort_enum]
22
- value = value.to_a.deep_sort(options)
22
+ value = DeepSort.deep_sort(value.to_a, options)
23
23
  end
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module DeepSort
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_sort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler