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: 5b3a4f70a6e3a5dee5a465b1d7e53dc163118c71f8da1b67ef3a9086f7b1ec55
4
- data.tar.gz: 39feabe026daa75b4e8fd5a3197eae29c18b8c28deacafc845b9f2b26bf8adb0
3
+ metadata.gz: eaf63da60d4f5a4025624021d80aa6d5fbc93393f6da419c15207042a503e18f
4
+ data.tar.gz: ee1cb13799cf814b9fe027b91ba42f55dd167759d3cad7bb5d463af47bd9e3ba
5
5
  SHA512:
6
- metadata.gz: c295fea115ef77cebfbd42b3fb1f36631ee040ca9a697630be671e17737dc31b4d4335186ba66defbdca3d795b27f59429cd58c18dea462be1a32600b1ea4bb7
7
- data.tar.gz: 721b32f34431371b2cad8dd3264b73808262a3447f74d8542bb22c261d638da3ea50f75380bf20a997e0573726227774ef8aa6f213d9c09c7650009dfa8c09d6
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyRailsExtensions
4
- VERSION = '2.1.0-rc.10'
4
+ VERSION = '2.1.0-rc.12'
5
5
  end
@@ -25,6 +25,7 @@ module RubyRailsExtensions
25
25
  find_bang
26
26
  find_dupes
27
27
  first_dupe
28
+ flatten_compact
28
29
  google_format
29
30
  hash_only
30
31
  humanize_symbol
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.10
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