ruby-rails-extensions 2.1.0.pre.rc.10 → 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
|
@@ -9,41 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2024-10-07 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: benchmark-ips
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.14.0
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 2.14.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubocop-rubomatic-rails
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.4.0
|
34
|
-
- - "<"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '2.0'
|
37
|
-
type: :development
|
38
|
-
prerelease: false
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.4.0
|
44
|
-
- - "<"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '2.0'
|
12
|
+
dependencies: []
|
47
13
|
description:
|
48
14
|
email:
|
49
15
|
- documents@brandsinsurance.com
|
@@ -73,6 +39,7 @@ files:
|
|
73
39
|
- lib/ruby-rails-extensions/extensions/find_bang.rb
|
74
40
|
- lib/ruby-rails-extensions/extensions/find_dupes.rb
|
75
41
|
- lib/ruby-rails-extensions/extensions/first_dupe.rb
|
42
|
+
- lib/ruby-rails-extensions/extensions/flatten_compact.rb
|
76
43
|
- lib/ruby-rails-extensions/extensions/google_format.rb
|
77
44
|
- lib/ruby-rails-extensions/extensions/hash_only.rb
|
78
45
|
- lib/ruby-rails-extensions/extensions/humanize_symbol.rb
|