rudash 1.0.1 → 2.0.0
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 +4 -4
- data/lib/rudash/at.rb +15 -0
- data/lib/rudash/compact.rb +3 -5
- data/lib/rudash/concat.rb +7 -9
- data/lib/rudash/curry.rb +7 -10
- data/lib/rudash/difference.rb +7 -9
- data/lib/rudash/each.rb +5 -7
- data/lib/rudash/each_right.rb +22 -0
- data/lib/rudash/eq.rb +5 -0
- data/lib/rudash/every.rb +3 -6
- data/lib/rudash/filter.rb +28 -30
- data/lib/rudash/find.rb +5 -7
- data/lib/rudash/find_last.rb +7 -7
- data/lib/rudash/flip.rb +4 -6
- data/lib/rudash/get.rb +33 -28
- data/lib/rudash/head.rb +5 -7
- data/lib/rudash/identity.rb +2 -2
- data/lib/rudash/is_array.rb +2 -2
- data/lib/rudash/is_empty.rb +7 -9
- data/lib/rudash/is_equal.rb +2 -2
- data/lib/rudash/is_hash.rb +2 -2
- data/lib/rudash/is_nil.rb +2 -2
- data/lib/rudash/is_number.rb +2 -2
- data/lib/rudash/is_proc.rb +2 -2
- data/lib/rudash/is_string.rb +10 -0
- data/lib/rudash/keys.rb +9 -11
- data/lib/rudash/last.rb +3 -5
- data/lib/rudash/map.rb +20 -16
- data/lib/rudash/negate.rb +12 -0
- data/lib/rudash/reduce.rb +28 -30
- data/lib/rudash/reduce_right.rb +9 -11
- data/lib/rudash/reverse.rb +7 -9
- data/lib/rudash/size.rb +3 -6
- data/lib/rudash/some.rb +3 -5
- data/lib/rudash/tail.rb +3 -5
- data/lib/rudash/uniq.rb +9 -11
- data/lib/rudash.rb +10 -0
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac304ebb2e93011c388f160fe27b4373ea974ed0cebd69db708fae496f62fb8a
|
4
|
+
data.tar.gz: e020fe5ab2d6d3eb6b68f4a1aacfc99bc6bfea56bed39ca81749b6b5114703c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8a04cb55a0dedcc788683fd6d40403422e1139d4a96910a28d8e473ea4c088b9826740d59e9c9b7cf33545b0f2c5983177c60bdaf94eb5de2afb6f595ab0ae2
|
7
|
+
data.tar.gz: 03825a7e60bcfd1436e960f7258c65537518a2265b7d24d2ed8943fd0e4cbbdd886571dae28c8d193dd5f3a0b11dfe317f61dd934647956d9a8769760b5b1a17
|
data/lib/rudash/at.rb
ADDED
data/lib/rudash/compact.rb
CHANGED
data/lib/rudash/concat.rb
CHANGED
@@ -3,14 +3,12 @@ require_relative 'is_nil.rb'
|
|
3
3
|
module Concat
|
4
4
|
extend IsNil
|
5
5
|
|
6
|
-
def concat
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
14
|
-
}
|
6
|
+
def concat(head, *values)
|
7
|
+
head_arr = head.is_a?(Array) ? head : [head]
|
8
|
+
if values.size == 0
|
9
|
+
return head_arr
|
10
|
+
else
|
11
|
+
return head_arr + self.concat(*values)
|
12
|
+
end
|
15
13
|
end
|
16
14
|
end
|
data/lib/rudash/curry.rb
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
module Curry
|
2
|
-
def curry
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
10
|
-
a_proc.curry
|
11
|
-
}
|
2
|
+
def curry(a_proc)
|
3
|
+
case a_proc
|
4
|
+
when Proc
|
5
|
+
a_proc.curry
|
6
|
+
else
|
7
|
+
raise 'Expected a Proc'
|
8
|
+
end
|
12
9
|
end
|
13
10
|
end
|
data/lib/rudash/difference.rb
CHANGED
@@ -3,16 +3,14 @@ require_relative 'reduce.rb'
|
|
3
3
|
module Difference
|
4
4
|
extend Reduce
|
5
5
|
|
6
|
-
def difference
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
return acc if !current.is_a?(Array)
|
6
|
+
def difference(*values)
|
7
|
+
diff_reducer = -> (acc, current) {
|
8
|
+
return [] if !acc.is_a?(Array)
|
9
|
+
return acc if !current.is_a?(Array)
|
11
10
|
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
self.reduce[values, diff_reducer]
|
11
|
+
acc - current
|
16
12
|
}
|
13
|
+
|
14
|
+
self.reduce(values, diff_reducer)
|
17
15
|
end
|
18
16
|
end
|
data/lib/rudash/each.rb
CHANGED
@@ -3,14 +3,12 @@ require_relative 'map.rb'
|
|
3
3
|
module Each
|
4
4
|
extend Map
|
5
5
|
|
6
|
-
def each
|
7
|
-
|
8
|
-
|
9
|
-
collection
|
10
|
-
}
|
6
|
+
def each(collection, *rest_args)
|
7
|
+
self.map(collection, *rest_args)
|
8
|
+
collection
|
11
9
|
end
|
12
10
|
|
13
|
-
def for_each
|
14
|
-
self.each
|
11
|
+
def for_each(*args)
|
12
|
+
self.each(*args)
|
15
13
|
end
|
16
14
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative 'each.rb'
|
2
|
+
|
3
|
+
module EachRight
|
4
|
+
extend Each
|
5
|
+
|
6
|
+
def each_right(collection, *rest_args)
|
7
|
+
reversed_collection =
|
8
|
+
case collection
|
9
|
+
when Array then collection.reverse
|
10
|
+
when Hash then collection.reverse_each.to_h
|
11
|
+
when String then collection.reverse
|
12
|
+
else []
|
13
|
+
end
|
14
|
+
|
15
|
+
self.each(reversed_collection, *rest_args)
|
16
|
+
collection
|
17
|
+
end
|
18
|
+
|
19
|
+
def for_each_right(*args)
|
20
|
+
self.each_right(*args)
|
21
|
+
end
|
22
|
+
end
|
data/lib/rudash/eq.rb
ADDED
data/lib/rudash/every.rb
CHANGED
@@ -3,11 +3,8 @@ require_relative 'filter.rb'
|
|
3
3
|
module Every
|
4
4
|
extend Filter
|
5
5
|
|
6
|
-
def every?
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
filtered_arr.length == array.length
|
11
|
-
}
|
6
|
+
def every?(array, filter)
|
7
|
+
filtered_arr = self.filter(array, filter)
|
8
|
+
filtered_arr.length == array.length
|
12
9
|
end
|
13
10
|
end
|
data/lib/rudash/filter.rb
CHANGED
@@ -7,42 +7,40 @@ module Filter
|
|
7
7
|
extend Identity
|
8
8
|
extend Head
|
9
9
|
|
10
|
-
def filter
|
11
|
-
|
12
|
-
filter = self.head[rest_args] || self.identity
|
10
|
+
def filter(collection, *rest_args)
|
11
|
+
filter = self.head(rest_args) || self.method(:identity)
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
if (match == true)
|
26
|
-
filtered_arr << v
|
13
|
+
if collection.is_a?(Array) and filter.is_a?(Hash)
|
14
|
+
filtered_arr = []
|
15
|
+
collection.each do |v|
|
16
|
+
match = true
|
17
|
+
filter.each do |key, value|
|
18
|
+
if (value != v[key])
|
19
|
+
match = false
|
20
|
+
break
|
27
21
|
end
|
28
22
|
end
|
29
23
|
|
30
|
-
|
31
|
-
|
32
|
-
if filter.arity == 1
|
33
|
-
return collection.select { |x| filter[x] }
|
34
|
-
else
|
35
|
-
return collection.select.with_index { |x, idx| filter[x, idx] }
|
36
|
-
end
|
37
|
-
elsif collection.is_a?(Hash)
|
38
|
-
if filter.arity == 1
|
39
|
-
return collection.select { |k, v| filter[v] }
|
40
|
-
else
|
41
|
-
return collection.select { |k, v| filter[v, k] }
|
24
|
+
if (match == true)
|
25
|
+
filtered_arr << v
|
42
26
|
end
|
27
|
+
end
|
28
|
+
|
29
|
+
return filtered_arr
|
30
|
+
elsif collection.is_a?(Array)
|
31
|
+
if filter.arity == 1
|
32
|
+
return collection.select { |x| filter[x] }
|
33
|
+
else
|
34
|
+
return collection.select.with_index { |x, idx| filter[x, idx] }
|
35
|
+
end
|
36
|
+
elsif collection.is_a?(Hash)
|
37
|
+
if filter.arity == 1
|
38
|
+
return collection.select { |k, v| filter[v] }
|
43
39
|
else
|
44
|
-
return []
|
40
|
+
return collection.select { |k, v| filter[v, k] }
|
45
41
|
end
|
46
|
-
|
42
|
+
else
|
43
|
+
return []
|
44
|
+
end
|
47
45
|
end
|
48
46
|
end
|
data/lib/rudash/find.rb
CHANGED
@@ -7,12 +7,10 @@ module Find
|
|
7
7
|
extend Head
|
8
8
|
extend Identity
|
9
9
|
|
10
|
-
def find
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
filtered_arr[0]
|
16
|
-
}
|
10
|
+
def find(collection, *rest_args)
|
11
|
+
filter_proc = self.head(rest_args) || self.method(:identity)
|
12
|
+
filtered_arr = self.filter(collection, filter_proc)
|
13
|
+
|
14
|
+
filtered_arr[0]
|
17
15
|
end
|
18
16
|
end
|
data/lib/rudash/find_last.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
require_relative 'filter.rb'
|
2
|
+
require_relative 'identity.rb'
|
2
3
|
|
3
4
|
module FindLast
|
4
5
|
extend Filter
|
6
|
+
extend Identity
|
5
7
|
|
6
|
-
def find_last
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
filtered_arr[filtered_arr.length - 1]
|
12
|
-
}
|
8
|
+
def find_last(collection, *rest_args)
|
9
|
+
filter_proc = self.head(rest_args) || self.method(:identity)
|
10
|
+
filtered_arr = self.filter(collection, filter_proc)
|
11
|
+
|
12
|
+
filtered_arr[filtered_arr.length - 1]
|
13
13
|
end
|
14
14
|
end
|
data/lib/rudash/flip.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
module Flip
|
2
|
-
def flip
|
3
|
-
|
4
|
-
|
5
|
-
reveresed_args = args.reverse
|
2
|
+
def flip(a_proc)
|
3
|
+
flipped_proc = -> (*args) {
|
4
|
+
reveresed_args = args.reverse
|
6
5
|
|
7
|
-
|
8
|
-
}
|
6
|
+
a_proc[*reveresed_args]
|
9
7
|
}
|
10
8
|
end
|
11
9
|
end
|
data/lib/rudash/get.rb
CHANGED
@@ -1,42 +1,47 @@
|
|
1
1
|
require_relative 'reduce.rb'
|
2
|
+
require_relative 'filter.rb'
|
2
3
|
|
3
4
|
module Get
|
4
5
|
extend Reduce
|
6
|
+
extend Filter
|
5
7
|
|
6
|
-
def get
|
7
|
-
|
8
|
-
|
9
|
-
return nil if !hash.is_a?(Array) and !hash.is_a?(Hash)
|
8
|
+
def get(hash, path, *rest_args)
|
9
|
+
return nil if !path.is_a?(String) and !path.is_a?(Array)
|
10
|
+
return nil if !hash.is_a?(Array) and !hash.is_a?(Hash)
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
transform_path = -> (path) {
|
13
|
+
normalized_path = path
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
if normalized_path.is_a?(Array)
|
16
|
+
normalized_path = normalized_path.join('.')
|
17
|
+
end
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
splitted_hash = normalized_path.split('.')
|
19
|
+
filter_not_empty = -> (value) {
|
20
|
+
value != ''
|
21
21
|
}
|
22
22
|
|
23
|
-
splitted_hash =
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
if acc.is_a?(Array) and current.match(/^(\d)+$/)
|
29
|
-
acc[current.to_i]
|
30
|
-
elsif acc.is_a?(Array) and !current.match(/^(\d)+$/)
|
31
|
-
nil
|
32
|
-
elsif acc.is_a?(Hash)
|
33
|
-
acc[current.to_sym]
|
34
|
-
else
|
35
|
-
nil
|
36
|
-
end
|
37
|
-
}
|
23
|
+
splitted_hash = self.filter(
|
24
|
+
normalized_path.split(/[.\[\]]/),
|
25
|
+
filter_not_empty
|
26
|
+
)
|
27
|
+
}
|
38
28
|
|
39
|
-
|
29
|
+
splitted_hash = transform_path[path]
|
30
|
+
|
31
|
+
get_reducer = -> (acc, current) {
|
32
|
+
return nil if acc.nil?
|
33
|
+
|
34
|
+
if acc.is_a?(Array) and current.match(/^(\d)+$/)
|
35
|
+
acc[current.to_i]
|
36
|
+
elsif acc.is_a?(Array) and !current.match(/^(\d)+$/)
|
37
|
+
nil
|
38
|
+
elsif acc.is_a?(Hash)
|
39
|
+
acc[current.to_sym] || acc[current]
|
40
|
+
else
|
41
|
+
nil
|
42
|
+
end
|
40
43
|
}
|
44
|
+
|
45
|
+
self.reduce(splitted_hash, get_reducer, hash)
|
41
46
|
end
|
42
47
|
end
|
data/lib/rudash/head.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
module Head
|
2
|
-
def head
|
3
|
-
|
4
|
-
|
5
|
-
array.first
|
6
|
-
}
|
2
|
+
def head(array)
|
3
|
+
return nil if !array.is_a?(Array)
|
4
|
+
array.first
|
7
5
|
end
|
8
6
|
|
9
|
-
def first
|
10
|
-
self.head
|
7
|
+
def first(*args)
|
8
|
+
self.head(*args)
|
11
9
|
end
|
12
10
|
end
|
data/lib/rudash/identity.rb
CHANGED
data/lib/rudash/is_array.rb
CHANGED
data/lib/rudash/is_empty.rb
CHANGED
data/lib/rudash/is_equal.rb
CHANGED
data/lib/rudash/is_hash.rb
CHANGED
data/lib/rudash/is_nil.rb
CHANGED
data/lib/rudash/is_number.rb
CHANGED
data/lib/rudash/is_proc.rb
CHANGED
data/lib/rudash/keys.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
module Keys
|
2
|
-
def keys
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
12
|
-
}
|
2
|
+
def keys(value)
|
3
|
+
case value
|
4
|
+
when Hash
|
5
|
+
value.map { |key, value| "#{key}" }
|
6
|
+
when Array
|
7
|
+
value.map.with_index { |value, index| "#{index}" }
|
8
|
+
else
|
9
|
+
[]
|
10
|
+
end
|
13
11
|
end
|
14
12
|
end
|
data/lib/rudash/last.rb
CHANGED
data/lib/rudash/map.rb
CHANGED
@@ -1,22 +1,26 @@
|
|
1
|
+
require_relative 'head.rb'
|
2
|
+
require_relative 'identity.rb'
|
3
|
+
|
1
4
|
module Map
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
+
extend Head
|
6
|
+
extend Identity
|
7
|
+
|
8
|
+
def map(collection, *rest_args)
|
9
|
+
mapper_proc = self.head(rest_args) || self.method(:identity)
|
5
10
|
|
6
|
-
|
11
|
+
col = collection.is_a?(String) ? collection.split('') : collection
|
7
12
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
13
|
+
if col.is_a?(Array)
|
14
|
+
return mapper_proc.arity == 1 ?
|
15
|
+
col.map { |value| mapper_proc[value] } :
|
16
|
+
col.map.with_index { |value, index| mapper_proc[value, index] }
|
12
17
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}
|
18
|
+
elsif col.is_a?(Hash)
|
19
|
+
return mapper_proc.arity == 1 ?
|
20
|
+
col.map { |k,v| mapper_proc[v] } :
|
21
|
+
col.map { |k,v| mapper_proc[v, k] }
|
22
|
+
else
|
23
|
+
return []
|
24
|
+
end
|
21
25
|
end
|
22
26
|
end
|
data/lib/rudash/reduce.rb
CHANGED
@@ -1,35 +1,33 @@
|
|
1
1
|
module Reduce
|
2
|
-
def reduce
|
3
|
-
|
4
|
-
|
5
|
-
initial_state = rest_args[1]
|
2
|
+
def reduce(collection, *rest_args)
|
3
|
+
reducer = rest_args[0]
|
4
|
+
initial_state = rest_args[1]
|
6
5
|
|
7
|
-
|
6
|
+
col = collection.is_a?(String) ? collection.split('') : collection
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
8
|
+
case rest_args.size
|
9
|
+
when 1
|
10
|
+
return col.reduce { |acc, current|
|
11
|
+
if col.is_a?(Hash)
|
12
|
+
reducer.arity == 2 ?
|
13
|
+
reducer[acc, current[1]] :
|
14
|
+
reducer[acc, current[1], current[0]]
|
15
|
+
else
|
16
|
+
reducer[acc, current]
|
17
|
+
end
|
18
|
+
}
|
19
|
+
when 2
|
20
|
+
return col.reduce(initial_state) { |acc, current|
|
21
|
+
if col.is_a?(Hash)
|
22
|
+
reducer.arity == 2 ?
|
23
|
+
reducer[acc, current[1]] :
|
24
|
+
reducer[acc, current[1], current[0]]
|
25
|
+
else
|
26
|
+
reducer[acc, current]
|
27
|
+
end
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return nil
|
31
|
+
end
|
34
32
|
end
|
35
33
|
end
|
data/lib/rudash/reduce_right.rb
CHANGED
@@ -3,17 +3,15 @@ require_relative 'reduce.rb'
|
|
3
3
|
module ReduceRight
|
4
4
|
extend Reduce
|
5
5
|
|
6
|
-
def reduce_right
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
6
|
+
def reduce_right(collection, *rest_args)
|
7
|
+
reversed_collection =
|
8
|
+
case collection
|
9
|
+
when Array then collection.reverse
|
10
|
+
when Hash then collection.reverse_each.to_h
|
11
|
+
when String then collection.reverse
|
12
|
+
else []
|
13
|
+
end
|
15
14
|
|
16
|
-
|
17
|
-
}
|
15
|
+
self.reduce(reversed_collection, *rest_args)
|
18
16
|
end
|
19
17
|
end
|
data/lib/rudash/reverse.rb
CHANGED
data/lib/rudash/size.rb
CHANGED
@@ -3,11 +3,8 @@ require_relative 'is_nil.rb'
|
|
3
3
|
module Size
|
4
4
|
extend IsNil
|
5
5
|
|
6
|
-
def size
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
something.size
|
11
|
-
}
|
6
|
+
def size(something)
|
7
|
+
return 0 if self.is_nil?(something)
|
8
|
+
something.size
|
12
9
|
end
|
13
10
|
end
|
data/lib/rudash/some.rb
CHANGED
@@ -3,10 +3,8 @@ require_relative 'filter.rb'
|
|
3
3
|
module Some
|
4
4
|
extend Filter
|
5
5
|
|
6
|
-
def some?
|
7
|
-
|
8
|
-
|
9
|
-
filtered_arr.length != 0
|
10
|
-
}
|
6
|
+
def some?(array, filter)
|
7
|
+
filtered_arr = self.filter(array, filter)
|
8
|
+
filtered_arr.length != 0
|
11
9
|
end
|
12
10
|
end
|
data/lib/rudash/tail.rb
CHANGED
data/lib/rudash/uniq.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
module Uniq
|
2
|
-
def uniq
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
12
|
-
}
|
2
|
+
def uniq(value)
|
3
|
+
case value
|
4
|
+
when String
|
5
|
+
self.uniq(value.split(''))
|
6
|
+
when Array
|
7
|
+
value.uniq
|
8
|
+
else
|
9
|
+
[]
|
10
|
+
end
|
13
11
|
end
|
14
12
|
end
|
data/lib/rudash.rb
CHANGED
@@ -28,6 +28,11 @@ require_relative './rudash/keys.rb'
|
|
28
28
|
require_relative './rudash/each.rb'
|
29
29
|
require_relative './rudash/uniq.rb'
|
30
30
|
require_relative './rudash/difference.rb'
|
31
|
+
require_relative './rudash/is_string.rb'
|
32
|
+
require_relative './rudash/eq.rb'
|
33
|
+
require_relative './rudash/each_right.rb'
|
34
|
+
require_relative './rudash/at.rb'
|
35
|
+
require_relative './rudash/negate.rb'
|
31
36
|
|
32
37
|
class R_
|
33
38
|
extend Map
|
@@ -60,4 +65,9 @@ class R_
|
|
60
65
|
extend Each
|
61
66
|
extend Uniq
|
62
67
|
extend Difference
|
68
|
+
extend IsString
|
69
|
+
extend Eq
|
70
|
+
extend EachRight
|
71
|
+
extend At
|
72
|
+
extend Negate
|
63
73
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rudash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Islam Attrash
|
@@ -17,11 +17,14 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/rudash.rb
|
20
|
+
- lib/rudash/at.rb
|
20
21
|
- lib/rudash/compact.rb
|
21
22
|
- lib/rudash/concat.rb
|
22
23
|
- lib/rudash/curry.rb
|
23
24
|
- lib/rudash/difference.rb
|
24
25
|
- lib/rudash/each.rb
|
26
|
+
- lib/rudash/each_right.rb
|
27
|
+
- lib/rudash/eq.rb
|
25
28
|
- lib/rudash/every.rb
|
26
29
|
- lib/rudash/filter.rb
|
27
30
|
- lib/rudash/find.rb
|
@@ -37,9 +40,11 @@ files:
|
|
37
40
|
- lib/rudash/is_nil.rb
|
38
41
|
- lib/rudash/is_number.rb
|
39
42
|
- lib/rudash/is_proc.rb
|
43
|
+
- lib/rudash/is_string.rb
|
40
44
|
- lib/rudash/keys.rb
|
41
45
|
- lib/rudash/last.rb
|
42
46
|
- lib/rudash/map.rb
|
47
|
+
- lib/rudash/negate.rb
|
43
48
|
- lib/rudash/reduce.rb
|
44
49
|
- lib/rudash/reduce_right.rb
|
45
50
|
- lib/rudash/reverse.rb
|