rudash 2.8.2 → 2.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rudash/at.rb +0 -5
- data/lib/rudash/compact.rb +0 -4
- data/lib/rudash/concat.rb +0 -4
- data/lib/rudash/difference.rb +0 -4
- data/lib/rudash/each.rb +0 -4
- data/lib/rudash/each_right.rb +0 -3
- data/lib/rudash/every.rb +0 -4
- data/lib/rudash/filter.rb +0 -5
- data/lib/rudash/find.rb +0 -6
- data/lib/rudash/find_last.rb +0 -5
- data/lib/rudash/get.rb +0 -4
- data/lib/rudash/intersection.rb +0 -4
- data/lib/rudash/map.rb +0 -5
- data/lib/rudash/pick.rb +0 -6
- data/lib/rudash/reduce_right.rb +0 -3
- data/lib/rudash/remove.rb +0 -5
- data/lib/rudash/set.rb +0 -3
- data/lib/rudash/size.rb +0 -4
- data/lib/rudash/some.rb +0 -4
- data/lib/rudash/union.rb +0 -6
- data/lib/rudash/update.rb +0 -7
- data/lib/rudash/without.rb +0 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc7aaeca7e82e07a1facc3dad834177b254a6d2e56d1b494855c1922e4ec48d3
|
4
|
+
data.tar.gz: 0f7aa124d2b72b1c12ec77f3c942f7c4315d6f19d5c91460ddd5d55056bf9d20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a0eb97316bb07b9703b7d3659a139834ab79483ecf225b68e089646e93ee267d7d5357653bbb6ba981557ae65c964eca482ab4eeb5172ca958ba120df6ad31
|
7
|
+
data.tar.gz: d3b83b741229716e0dc356610564773d818169371dcf0b866d7db098c804f72782e34a3d44de04567011d7e8fece2176dfb638fff3a9c4271b672ddd201cc8ee
|
data/lib/rudash/at.rb
CHANGED
data/lib/rudash/compact.rb
CHANGED
data/lib/rudash/concat.rb
CHANGED
data/lib/rudash/difference.rb
CHANGED
data/lib/rudash/each.rb
CHANGED
data/lib/rudash/each_right.rb
CHANGED
data/lib/rudash/every.rb
CHANGED
data/lib/rudash/filter.rb
CHANGED
@@ -1,12 +1,7 @@
|
|
1
|
-
require_relative 'is_nil.rb'
|
2
|
-
require_relative 'identity.rb'
|
3
|
-
require_relative 'head.rb'
|
4
1
|
require_relative '../utils/subset_deep_match.rb'
|
5
2
|
|
6
3
|
module Rudash
|
7
4
|
module Filter
|
8
|
-
extend Rudash
|
9
|
-
|
10
5
|
def filter(collection, *rest_args)
|
11
6
|
filter = self.head(rest_args) || self.method(:identity)
|
12
7
|
|
data/lib/rudash/find.rb
CHANGED
@@ -1,11 +1,5 @@
|
|
1
|
-
require_relative 'filter.rb'
|
2
|
-
require_relative 'head.rb'
|
3
|
-
require_relative 'identity.rb'
|
4
|
-
|
5
1
|
module Rudash
|
6
2
|
module Find
|
7
|
-
extend Rudash
|
8
|
-
|
9
3
|
def find(collection, *rest_args)
|
10
4
|
filter_proc = self.head(rest_args) || self.method(:identity)
|
11
5
|
filtered_arr = self.filter(collection, filter_proc)
|
data/lib/rudash/find_last.rb
CHANGED
@@ -1,10 +1,5 @@
|
|
1
|
-
require_relative 'filter.rb'
|
2
|
-
require_relative 'identity.rb'
|
3
|
-
|
4
1
|
module Rudash
|
5
2
|
module FindLast
|
6
|
-
extend Rudash
|
7
|
-
|
8
3
|
def find_last(collection, *rest_args)
|
9
4
|
filter_proc = self.head(rest_args) || self.method(:identity)
|
10
5
|
filtered_arr = self.filter(collection, filter_proc)
|
data/lib/rudash/get.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
require_relative 'reduce.rb'
|
2
|
-
require_relative 'filter.rb'
|
3
1
|
require_relative '../utils/path_resolver.rb'
|
4
2
|
require_relative '../utils/index.rb'
|
5
3
|
|
6
4
|
module Rudash
|
7
5
|
module Get
|
8
|
-
extend Rudash
|
9
|
-
|
10
6
|
def get(hash, path, *rest_args)
|
11
7
|
return nil if !path.is_a?(String) && !path.is_a?(Array)
|
12
8
|
return nil if !hash.is_a?(Array) && !hash.is_a?(Hash)
|
data/lib/rudash/intersection.rb
CHANGED
data/lib/rudash/map.rb
CHANGED
data/lib/rudash/pick.rb
CHANGED
data/lib/rudash/reduce_right.rb
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
require_relative 'reduce.rb'
|
2
1
|
require_relative '../utils/index.rb'
|
3
2
|
|
4
3
|
module Rudash
|
5
4
|
module ReduceRight
|
6
|
-
extend Rudash
|
7
|
-
|
8
5
|
def reduce_right(collection, *rest_args)
|
9
6
|
reversed_collection = Rudash::Utils.force_reverse(collection)
|
10
7
|
self.reduce(reversed_collection, *rest_args)
|
data/lib/rudash/remove.rb
CHANGED
data/lib/rudash/set.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
require_relative '../utils/path_resolver.rb'
|
2
2
|
require_relative '../utils/nested_path_creator.rb'
|
3
3
|
require_relative '../utils/index.rb'
|
4
|
-
require_relative 'get.rb'
|
5
4
|
|
6
5
|
module Rudash
|
7
6
|
module Set
|
8
|
-
extend Rudash
|
9
|
-
|
10
7
|
def set(object, path, value)
|
11
8
|
return object if !object.is_a?(Hash) && !object.is_a?(Array)
|
12
9
|
|
data/lib/rudash/size.rb
CHANGED
data/lib/rudash/some.rb
CHANGED
data/lib/rudash/union.rb
CHANGED
data/lib/rudash/update.rb
CHANGED
@@ -1,12 +1,5 @@
|
|
1
|
-
require_relative 'identity.rb'
|
2
|
-
require_relative 'get.rb'
|
3
|
-
require_relative 'set.rb'
|
4
|
-
require_relative 'head.rb'
|
5
|
-
|
6
1
|
module Rudash
|
7
2
|
module Update
|
8
|
-
extend Rudash
|
9
|
-
|
10
3
|
def update(object, path, *rest_args)
|
11
4
|
updater = self.head(rest_args) || self.method(:identity)
|
12
5
|
current_value = self.get(object, path)
|
data/lib/rudash/without.rb
CHANGED