ruby-rails-extensions 2.1.0.pre.rc.7 → 2.1.0.pre.rc.8
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: 4924afbe4a7a485556e5b773fadd2f3119168faf0af0fd7963e6d30dcd38fb49
|
4
|
+
data.tar.gz: 0a3c69358e4895b12e65034e47d06fbbe417b8877014b256c55c2a9bbcc84eda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6df635f383c654e4966942bc01a0200e80a1e7f49013a60afa1ebb5a7132a2e73e80d540a64baaaf85b91b57d61191027244851c895c5027f857f8774d2fe20
|
7
|
+
data.tar.gz: 3973b6bbb600e313b21f3963f848639152b342e4174340bccfac418f26a011fa2107f4d1d4a1c84edad5892e7d184a977badb47fbd17a3f44fa8e7722c107cc3
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Range.class_eval do
|
4
|
+
# Greater than check.
|
5
|
+
#
|
6
|
+
# @param other [Numeric]
|
7
|
+
#
|
8
|
+
# @return [Boolean]
|
9
|
+
#
|
10
|
+
def >(other)
|
11
|
+
self.end > other
|
12
|
+
end
|
13
|
+
|
14
|
+
# Greater than or equal to check.
|
15
|
+
#
|
16
|
+
# @param other [Numeric]
|
17
|
+
#
|
18
|
+
# @return [Boolean]
|
19
|
+
#
|
20
|
+
def >=(other)
|
21
|
+
self.end >= other
|
22
|
+
end
|
23
|
+
|
24
|
+
# Less than to check.
|
25
|
+
#
|
26
|
+
# @param other [Numeric]
|
27
|
+
#
|
28
|
+
# @return [Boolean]
|
29
|
+
#
|
30
|
+
def <(other)
|
31
|
+
self.begin < other
|
32
|
+
end
|
33
|
+
|
34
|
+
# Less than or equal to check.
|
35
|
+
#
|
36
|
+
# @param other [Numeric]
|
37
|
+
#
|
38
|
+
# @return [Boolean]
|
39
|
+
#
|
40
|
+
def <=(other)
|
41
|
+
self.begin <= other
|
42
|
+
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brands Insurance
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/ruby-rails-extensions/extensions/presence_bang.rb
|
92
92
|
- lib/ruby-rails-extensions/extensions/quarter_dates.rb
|
93
93
|
- lib/ruby-rails-extensions/extensions/range_add.rb
|
94
|
+
- lib/ruby-rails-extensions/extensions/range_comparisons.rb
|
94
95
|
- lib/ruby-rails-extensions/extensions/range_multiply.rb
|
95
96
|
- lib/ruby-rails-extensions/extensions/remove_reserved_keywords.rb
|
96
97
|
- lib/ruby-rails-extensions/extensions/safe_parse.rb
|