rudash 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rudash.rb +8 -111
- data/lib/rudash/array.rb +1 -1
- data/lib/rudash/at.rb +1 -1
- data/lib/rudash/capitalize.rb +1 -1
- data/lib/rudash/chain.rb +1 -1
- data/lib/rudash/compact.rb +1 -1
- data/lib/rudash/concat.rb +1 -1
- data/lib/rudash/curry.rb +1 -1
- data/lib/rudash/difference.rb +1 -1
- data/lib/rudash/drop_right.rb +1 -1
- data/lib/rudash/each.rb +1 -1
- data/lib/rudash/each_right.rb +1 -1
- data/lib/rudash/empty.rb +1 -1
- data/lib/rudash/eq.rb +1 -1
- data/lib/rudash/equal.rb +1 -1
- data/lib/rudash/every.rb +1 -1
- data/lib/rudash/filter.rb +1 -1
- data/lib/rudash/find.rb +1 -1
- data/lib/rudash/find_last.rb +1 -1
- data/lib/rudash/flip.rb +1 -1
- data/lib/rudash/flow.rb +1 -1
- data/lib/rudash/flow_right.rb +1 -1
- data/lib/rudash/get.rb +1 -1
- data/lib/rudash/group_by.rb +1 -1
- data/lib/rudash/hash.rb +1 -1
- data/lib/rudash/head.rb +1 -1
- data/lib/rudash/identity.rb +1 -1
- data/lib/rudash/initial.rb +1 -1
- data/lib/rudash/intersection.rb +1 -1
- data/lib/rudash/join.rb +1 -1
- data/lib/rudash/keys.rb +1 -1
- data/lib/rudash/last.rb +1 -1
- data/lib/rudash/map.rb +1 -1
- data/lib/rudash/negate.rb +1 -1
- data/lib/rudash/nil.rb +1 -1
- data/lib/rudash/nth.rb +1 -1
- data/lib/rudash/number.rb +1 -1
- data/lib/rudash/pick.rb +1 -1
- data/lib/rudash/range.rb +1 -1
- data/lib/rudash/reduce.rb +1 -1
- data/lib/rudash/reduce_right.rb +1 -1
- data/lib/rudash/reject.rb +1 -1
- data/lib/rudash/remove.rb +1 -1
- data/lib/rudash/reverse.rb +1 -1
- data/lib/rudash/set.rb +1 -1
- data/lib/rudash/size.rb +1 -1
- data/lib/rudash/slice.rb +1 -1
- data/lib/rudash/some.rb +1 -1
- data/lib/rudash/string.rb +1 -1
- data/lib/rudash/tail.rb +1 -1
- data/lib/rudash/take.rb +1 -1
- data/lib/rudash/union.rb +1 -1
- data/lib/rudash/uniq.rb +1 -1
- data/lib/rudash/unset.rb +1 -1
- data/lib/rudash/update.rb +1 -1
- data/lib/rudash/without.rb +1 -1
- data/lib/version.rb +1 -1
- 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: 9bea5258dc1249ddcdecc2edfa8223022fe8f9f2af6231bb6961f51d19bb155d
|
4
|
+
data.tar.gz: 0534a81f704911c3c79ca5d0658951ac62025ce49432651abba3bc7d7283cd32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 557228c7390797472e6a1a0aa671a1ed42b977e6912e3b5662fe1fc8f3ed24e79037e86170d0122be322a7d1391da395a88632c73103a52eb0d3f7f0ad930ac3
|
7
|
+
data.tar.gz: 3d8e25a76c536d0a508e6a02160536ae72cb250769d27437d1a203b42fff9589c70dcb01cc8134decf1a981b5667fa3e05402d264c38423ea7723b7d8da71f36
|
data/lib/rudash.rb
CHANGED
@@ -1,58 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
require_relative
|
7
|
-
|
8
|
-
require_relative './rudash/find_last.rb'
|
9
|
-
require_relative './rudash/reduce.rb'
|
10
|
-
require_relative './rudash/reduce_right.rb'
|
11
|
-
require_relative './rudash/compact.rb'
|
12
|
-
require_relative './rudash/head.rb'
|
13
|
-
require_relative './rudash/last.rb'
|
14
|
-
require_relative './rudash/tail.rb'
|
15
|
-
require_relative './rudash/size.rb'
|
16
|
-
require_relative './rudash/flip.rb'
|
17
|
-
require_relative './rudash/identity.rb'
|
18
|
-
require_relative './rudash/get.rb'
|
19
|
-
require_relative './rudash/array.rb'
|
20
|
-
require_relative './rudash/equal.rb'
|
21
|
-
require_relative './rudash/hash.rb'
|
22
|
-
require_relative './rudash/empty.rb'
|
23
|
-
require_relative './rudash/reverse.rb'
|
24
|
-
require_relative './rudash/curry.rb'
|
25
|
-
require_relative './rudash/number.rb'
|
26
|
-
require_relative './rudash/keys.rb'
|
27
|
-
require_relative './rudash/each.rb'
|
28
|
-
require_relative './rudash/uniq.rb'
|
29
|
-
require_relative './rudash/difference.rb'
|
30
|
-
require_relative './rudash/string.rb'
|
31
|
-
require_relative './rudash/eq.rb'
|
32
|
-
require_relative './rudash/each_right.rb'
|
33
|
-
require_relative './rudash/at.rb'
|
34
|
-
require_relative './rudash/negate.rb'
|
35
|
-
require_relative './rudash/capitalize.rb'
|
36
|
-
require_relative './rudash/without.rb'
|
37
|
-
require_relative './rudash/intersection.rb'
|
38
|
-
require_relative './rudash/join.rb'
|
39
|
-
require_relative './rudash/initial.rb'
|
40
|
-
require_relative './rudash/set.rb'
|
41
|
-
require_relative './rudash/pick.rb'
|
42
|
-
require_relative './rudash/update.rb'
|
43
|
-
require_relative './rudash/slice.rb'
|
44
|
-
require_relative './rudash/remove.rb'
|
45
|
-
require_relative './rudash/union.rb'
|
46
|
-
require_relative './rudash/reject.rb'
|
47
|
-
require_relative './rudash/range.rb'
|
48
|
-
require_relative './rudash/group_by.rb'
|
49
|
-
require_relative './rudash/take.rb'
|
50
|
-
require_relative './rudash/drop_right.rb'
|
51
|
-
require_relative './rudash/chain.rb'
|
52
|
-
require_relative './rudash/flow.rb'
|
53
|
-
require_relative './rudash/flow_right.rb'
|
54
|
-
require_relative './rudash/unset.rb'
|
55
|
-
require_relative './rudash/nth.rb'
|
1
|
+
rudash_modules = Dir.entries('./lib/rudash').select do |filename|
|
2
|
+
filename.include?('.rb')
|
3
|
+
end
|
4
|
+
|
5
|
+
rudash_modules.each do |r_module|
|
6
|
+
require_relative "./rudash/#{r_module}"
|
7
|
+
end
|
56
8
|
|
57
9
|
### Utils Requires
|
58
10
|
require_relative './utils/index.rb'
|
@@ -68,61 +20,6 @@ require_relative './utils/chain_wrapper.rb'
|
|
68
20
|
|
69
21
|
# rubocop:disable Naming/ClassAndModuleCamelCase
|
70
22
|
class R_
|
71
|
-
extend Rudash::
|
72
|
-
extend Rudash::IsNil
|
73
|
-
extend Rudash::Filter
|
74
|
-
extend Rudash::Some
|
75
|
-
extend Rudash::Every
|
76
|
-
extend Rudash::Find
|
77
|
-
extend Rudash::Concat
|
78
|
-
extend Rudash::FindLast
|
79
|
-
extend Rudash::Reduce
|
80
|
-
extend Rudash::ReduceRight
|
81
|
-
extend Rudash::Compact
|
82
|
-
extend Rudash::Head
|
83
|
-
extend Rudash::Last
|
84
|
-
extend Rudash::Tail
|
85
|
-
extend Rudash::Size
|
86
|
-
extend Rudash::Flip
|
87
|
-
extend Rudash::Identity
|
88
|
-
extend Rudash::Get
|
89
|
-
extend Rudash::IsArray
|
90
|
-
extend Rudash::IsEqual
|
91
|
-
extend Rudash::IsHash
|
92
|
-
extend Rudash::IsEmpty
|
93
|
-
extend Rudash::Reverse
|
94
|
-
extend Rudash::Curry
|
95
|
-
extend Rudash::IsNumber
|
96
|
-
extend Rudash::Keys
|
97
|
-
extend Rudash::Each
|
98
|
-
extend Rudash::Uniq
|
99
|
-
extend Rudash::Difference
|
100
|
-
extend Rudash::IsString
|
101
|
-
extend Rudash::Eq
|
102
|
-
extend Rudash::EachRight
|
103
|
-
extend Rudash::At
|
104
|
-
extend Rudash::Negate
|
105
|
-
extend Rudash::Capitalize
|
106
|
-
extend Rudash::Without
|
107
|
-
extend Rudash::Intersection
|
108
|
-
extend Rudash::Join
|
109
|
-
extend Rudash::Initial
|
110
|
-
extend Rudash::Set
|
111
|
-
extend Rudash::Pick
|
112
|
-
extend Rudash::Update
|
113
|
-
extend Rudash::Slice
|
114
|
-
extend Rudash::Remove
|
115
|
-
extend Rudash::Union
|
116
|
-
extend Rudash::Reject
|
117
|
-
extend Rudash::Range
|
118
|
-
extend Rudash::GroupBy
|
119
|
-
extend Rudash::Take
|
120
|
-
extend Rudash::DropRight
|
121
|
-
extend Rudash::Chain
|
122
|
-
extend Rudash::Flow
|
123
|
-
extend Rudash::FlowRight
|
124
|
-
extend Rudash::Unset
|
125
|
-
extend Rudash::Nth
|
23
|
+
extend Rudash::Default
|
126
24
|
end
|
127
|
-
|
128
25
|
# rubocop:enable Naming/ClassAndModuleCamelCase
|
data/lib/rudash/array.rb
CHANGED
data/lib/rudash/at.rb
CHANGED
data/lib/rudash/capitalize.rb
CHANGED
data/lib/rudash/chain.rb
CHANGED
data/lib/rudash/compact.rb
CHANGED
data/lib/rudash/concat.rb
CHANGED
data/lib/rudash/curry.rb
CHANGED
data/lib/rudash/difference.rb
CHANGED
data/lib/rudash/drop_right.rb
CHANGED
data/lib/rudash/each.rb
CHANGED
data/lib/rudash/each_right.rb
CHANGED
data/lib/rudash/empty.rb
CHANGED
data/lib/rudash/eq.rb
CHANGED
data/lib/rudash/equal.rb
CHANGED
data/lib/rudash/every.rb
CHANGED
data/lib/rudash/filter.rb
CHANGED
data/lib/rudash/find.rb
CHANGED
data/lib/rudash/find_last.rb
CHANGED
data/lib/rudash/flip.rb
CHANGED
data/lib/rudash/flow.rb
CHANGED
data/lib/rudash/flow_right.rb
CHANGED
data/lib/rudash/get.rb
CHANGED
data/lib/rudash/group_by.rb
CHANGED
data/lib/rudash/hash.rb
CHANGED
data/lib/rudash/head.rb
CHANGED
data/lib/rudash/identity.rb
CHANGED
data/lib/rudash/initial.rb
CHANGED
data/lib/rudash/intersection.rb
CHANGED
data/lib/rudash/join.rb
CHANGED
data/lib/rudash/keys.rb
CHANGED
data/lib/rudash/last.rb
CHANGED
data/lib/rudash/map.rb
CHANGED
data/lib/rudash/negate.rb
CHANGED
data/lib/rudash/nil.rb
CHANGED
data/lib/rudash/nth.rb
CHANGED
data/lib/rudash/number.rb
CHANGED
data/lib/rudash/pick.rb
CHANGED
data/lib/rudash/range.rb
CHANGED
data/lib/rudash/reduce.rb
CHANGED
data/lib/rudash/reduce_right.rb
CHANGED
data/lib/rudash/reject.rb
CHANGED
data/lib/rudash/remove.rb
CHANGED
data/lib/rudash/reverse.rb
CHANGED
data/lib/rudash/set.rb
CHANGED
data/lib/rudash/size.rb
CHANGED
data/lib/rudash/slice.rb
CHANGED
data/lib/rudash/some.rb
CHANGED
data/lib/rudash/string.rb
CHANGED
data/lib/rudash/tail.rb
CHANGED
data/lib/rudash/take.rb
CHANGED
data/lib/rudash/union.rb
CHANGED
data/lib/rudash/uniq.rb
CHANGED
data/lib/rudash/unset.rb
CHANGED
data/lib/rudash/update.rb
CHANGED
data/lib/rudash/without.rb
CHANGED
data/lib/version.rb
CHANGED