ruby-rails-extensions 2.0.0 → 2.0.1

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: 55be0ba360ddc75f362e31c5e4dd863f6816b897e3fb722db748698a379e586f
4
- data.tar.gz: 879cdcb54384e5927bacbad99714f54c2d737a86f55aac79d4f97d83de658b59
3
+ metadata.gz: a6add5f21ad9085c223bdb38ec6ae1d11c9ff67004762933eb5f9f8721c1cfac
4
+ data.tar.gz: acb3e894e9f31d5b9f40f210f3da4176dcf399d5fda00ec3e2d44d5ab3b7e414
5
5
  SHA512:
6
- metadata.gz: 868b8f77e7e7ec4d974ac7af0e0f07352362d009ff1ab748868965a072f4c7cafd1ea9ec44ec30a6828f19a7d59a9ec1b4bafd7272a25fde053f7d442809f6ca
7
- data.tar.gz: 43d272c9b3bc33ccceef003fc3f4e8be1bb3dd6ec83dd6b42879186e7c52dab68c57b0cfa8b6fe5a5660e756a06c0b2110fab411bed6d1e239b5866c8a310a58
6
+ metadata.gz: 22e10cfb20f5b8ed90198c9f0b75dd6c596bc6e08c8cadb6f01e141ba1448b7c33439e8546c58d4e19d7ecfb70a37e46c1b2b8d8fed69d25e27bfa6262966562
7
+ data.tar.gz: f92d99d927fdb1f0d22c028b54813a52dda7963471b23cbfe5388b2f0cfde5182a9b5d4b9701d6e0bf2f3012ef725f0b3fcedbaa154c378be71763e77c7f79fb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 2.0.1 (2024-07-29)
5
+ ------------------
6
+
7
+ * Bug fixes:
8
+ * `alias_method` doesn't work when target method doesn't exist. Switched to long hand alias
9
+
4
10
  2.0.0 (2024-07-26)
5
11
  ------------------
6
12
 
@@ -1,7 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Enumerable.class_eval do
4
- alias_method :select_present, :compact_blank
4
+ # @see `compact_blank`
5
+ def select_present(...)
6
+ compact_blank(...)
7
+ end
5
8
 
6
- alias_method :select_present!, :compact_blank!
9
+ # @see `compact_blank!`
10
+ def select_present!(...)
11
+ compact_blank!(...)
12
+ end
7
13
  end
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Enumerable.class_eval do
4
- alias_method :select_present_join, :compact_blank_join
4
+ # @see `compact_blank_join`
5
+ def select_present_join(...)
6
+ compact_blank_join(...)
7
+ end
5
8
  end
@@ -1,11 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  TrueClass.class_eval do
4
- alias_method :to_sort_i, :to_i
4
+ # @see `to_i`
5
+ def to_sort_i
6
+ to_i
7
+ end
5
8
  end
6
9
 
7
10
  FalseClass.class_eval do
8
- alias_method :to_sort_i, :to_i
11
+ # @see `to_i`
12
+ def to_sort_i
13
+ to_i
14
+ end
9
15
  end
10
16
 
11
17
  NilClass.class_eval do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyRailsExtensions
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  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.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.0
19
+ version: 1.4.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.3.0
29
+ version: 1.4.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.0'