split_rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/split_rails.rb +5 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 900a0b862cbeb6bebfe65a3bd9b9973bfe1f5d0098cc399318160e42318c9309
4
+ data.tar.gz: 162b0855a432a0523650cd08cf875ea83ce2099a28917057516a70ebfbb55158
5
+ SHA512:
6
+ metadata.gz: ed8b76c45dee8b277df1fec511796adcc92dc96a5a6a118689aa92378d9b0242ba87c303cf7e860ae1408ce8b0be77493f82acffe2d9b20543d1b6f8b13413cd
7
+ data.tar.gz: 7566a505d643df32f325f5e3adc19873251f2c06ddad8c1174d8a436dbdf6de57ae9b93060451cf145db84f16ad808909da92bdb91465790606724677f7ff0fa
@@ -0,0 +1,5 @@
1
+ class Array
2
+ def split_array
3
+ partition(&:even?)
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: split_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Rishabh Manan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/split_rails.rb
20
+ homepage:
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.5.3
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: A gem to split an array of integers based on even and odd integers
42
+ test_files: []