rudash 2.15.0 → 2.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 643280f2bdd3f723c1f7c8c01d33d9bb4ee7ef04401cf16aa5c01fe9cc03a2fe
4
- data.tar.gz: b3b5e0a3270aa5d8afbe46425bda59890bf734d45cdf4676861d3b4c28c883a7
3
+ metadata.gz: e652511c0d1f058e6008b955f3d601c8e8d17f34097662f3a3f06c4aaa109161
4
+ data.tar.gz: 5f6fac4442c45d311e51f327047ae40edeac1e7db49844c255e2c489128738fe
5
5
  SHA512:
6
- metadata.gz: f89b8e79721bdafffde41f8676bf4332001232586fa9b1144c00370027d4fd335633c8e4dabb6a0b16dcb3df54de7e35c6d0e7cdb787510699d32ab06c5882a6
7
- data.tar.gz: ed76efd17f99e18b7cc1cb91d5f6b7bbb13fed8deb482905ccaf93eaaaba3c67be169744f9899f1140e23d65152a77d6a1257fce07d7ff9016bb5cf8ea80e5f6
6
+ metadata.gz: 89ec61e8ca7cb52adfc95dd3355a8ff3de03dad29117d9dda4457ab9ca6bd632ace7b6da46605363016427cbc7fa3a57a10233ceccd7fbac5155b2396ffca4f1
7
+ data.tar.gz: aa092bfe4f6c50686ebc49ce62cdd52fed28810f16738cc61d489fe0aa4ec620d9a95c64294c58429431dac9e74eaf2b4f70c63f19f1f2f7d7e4fa152852dac1
@@ -0,0 +1,11 @@
1
+ require_relative '../utils/index.rb'
2
+
3
+ module Rudash
4
+ module FlowRight
5
+ def flow_right(*funs)
6
+ flatten_funs = funs.flatten.reverse
7
+
8
+ self.flow(flatten_funs)
9
+ end
10
+ end
11
+ end
data/lib/rudash.rb CHANGED
@@ -50,6 +50,7 @@ require_relative './rudash/take.rb'
50
50
  require_relative './rudash/drop_right.rb'
51
51
  require_relative './rudash/chain.rb'
52
52
  require_relative './rudash/flow.rb'
53
+ require_relative './rudash/flow_right.rb'
53
54
 
54
55
  require_relative './utils/chain_wrapper.rb'
55
56
 
@@ -109,4 +110,5 @@ class R_
109
110
  extend Rudash::DropRight
110
111
  extend Rudash::Chain
111
112
  extend Rudash::Flow
113
+ extend Rudash::FlowRight
112
114
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rudash
2
- VERSION = '2.15.0'
2
+ VERSION = '2.16.0'
3
3
  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: 2.15.0
4
+ version: 2.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Islam Attrash
@@ -34,6 +34,7 @@ files:
34
34
  - lib/rudash/find_last.rb
35
35
  - lib/rudash/flip.rb
36
36
  - lib/rudash/flow.rb
37
+ - lib/rudash/flow_right.rb
37
38
  - lib/rudash/get.rb
38
39
  - lib/rudash/group_by.rb
39
40
  - lib/rudash/head.rb