ruby-rails-extensions 2.1.0.pre.rc.11 → 2.1.0.pre.rc.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaf63da60d4f5a4025624021d80aa6d5fbc93393f6da419c15207042a503e18f
|
4
|
+
data.tar.gz: ee1cb13799cf814b9fe027b91ba42f55dd167759d3cad7bb5d463af47bd9e3ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f8123053ed9491f33d10815f621ae1e8f5fcc4555a75c44c5cb003467a1bfc6e5a555e56e11f2807ff1df9bf982438557ef39d1587c1436eaf0e3da01b8e758
|
7
|
+
data.tar.gz: 3c94ad665e2610c2eb3dbeaf21c45ef68cd90a0036d3f3a336ef7de54165583a55e19d214f2878a85ed6f24585e058bdae10892efdab77261a4beef7b9a410b6
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Array.class_eval do
|
4
|
+
# Flattens and compacts an array
|
5
|
+
# @see Array#flatten!
|
6
|
+
# @see Array#compact!
|
7
|
+
#
|
8
|
+
# @return [Array]
|
9
|
+
#
|
10
|
+
def flatten_compact!
|
11
|
+
flatten!
|
12
|
+
|
13
|
+
compact!
|
14
|
+
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
alias flat_pact! flatten_compact!
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-rails-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.pre.rc.
|
4
|
+
version: 2.1.0.pre.rc.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brands Insurance
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- lib/ruby-rails-extensions/extensions/find_bang.rb
|
40
40
|
- lib/ruby-rails-extensions/extensions/find_dupes.rb
|
41
41
|
- lib/ruby-rails-extensions/extensions/first_dupe.rb
|
42
|
+
- lib/ruby-rails-extensions/extensions/flatten_compact.rb
|
42
43
|
- lib/ruby-rails-extensions/extensions/google_format.rb
|
43
44
|
- lib/ruby-rails-extensions/extensions/hash_only.rb
|
44
45
|
- lib/ruby-rails-extensions/extensions/humanize_symbol.rb
|