arel_extensions 1.4.1 → 1.4.2

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: db9c16d557a7a4b36fc60e84971dbd94fc236918801f4ce3cdfb0815584fdf9d
4
- data.tar.gz: 0d0702ff9347173532230335a0483bb48b2a2757a4cad7717d601a33a5f8bf0a
3
+ metadata.gz: 0575b4ab47af8476483e318be8f31d527f5c8a2647252ae8ce8ee7c4ca76dd0e
4
+ data.tar.gz: aade085eaa75d84970e2f7ddfa94a065f783780a8175000c5de8d4276ef097d1
5
5
  SHA512:
6
- metadata.gz: 8fbffb0bc62840f5396ef526be9e1241172686f21e0138623dfcc7d867b2c5286d40dc94f5f3f144c8ef6d175d1c4ebd6ba8c41df115b6401f2defc55a5fe43b
7
- data.tar.gz: 663402e4ba189bf5389bc27f61667601cb186f8bdc741fbdc4fdd48932efd4fcc6a824550e558de0b3630da94e53f13bfc1e0211190b4afd52fec42ccc9b4246
6
+ metadata.gz: 2e8b3d5bfe158426a8f9bc52ce9923c36255cb66b5573fe42a95adf5cd10a0f8a03ba946fec5d474296bd3873328f2976fc25bf8bce18b8029cc4a541db591da
7
+ data.tar.gz: 3881eb2b0badf280a8a0b503539d37295bcd004d0636c2df1f5639cb67197ce22719e08a5311cd44a54871d222d6e5e74d0350b773da8a6ff9bcdb7451a1799a
data/NEWS.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [unreleased]
4
4
 
5
+ ## Release v2.2.2/v1.4.2 (27-11-2024)
6
+
7
+ - Fix deprecartion warnings for `==` and `!=`, showing the true location.
8
+ - Always emit deprecartion warnings for `==` and `!=`.
9
+
5
10
  ## Release v2.2.1/v1.4.1 (08-11-2024)
6
11
 
7
12
  - Improved deprecartion warnings for `==` and `!=`, showing the location where they're called.
@@ -18,21 +18,16 @@ module ArelExtensions
18
18
  include ArelExtensions::StringFunctions
19
19
  include ArelExtensions::Predications
20
20
 
21
- @@warn_eqeq = true
22
- @@warn_noteq = true
23
-
24
21
  def ==(other)
25
- if Gem::Version.create(ArelExtensions::VERSION) >= Gem::Version.create('2.2') && @@warn_eqeq
26
- warn("[#{caller(0..0)[0]}] arel_extensions: `==` is now deprecated and will be removed soon. Use `.eq` instead.")
27
- @@warn_eqeq = false
22
+ if Gem::Version.create(ArelExtensions::VERSION) >= Gem::Version.create('2.2')
23
+ warn("#{caller(1..1).first} arel_extensions: `==` is now deprecated and will be removed soon. Use `.eq` instead.")
28
24
  end
29
25
  Arel::Nodes::Equality.new self, Arel.quoted(other, self)
30
26
  end
31
27
 
32
28
  def !=(other)
33
- if Gem::Version.create(ArelExtensions::VERSION) >= Gem::Version.create('2.2') && @@warn_noteq
34
- warn("[#{caller(0..0)[0]}] arel_extensions: `!=` is now deprecated and will be removed soon. Use `.not_eq` instead.")
35
- @@warn_noteq = false
29
+ if Gem::Version.create(ArelExtensions::VERSION) >= Gem::Version.create('2.2')
30
+ warn("#{caller(1..1).first} arel_extensions: `!=` is now deprecated and will be removed soon. Use `.not_eq` instead.")
36
31
  end
37
32
  Arel::Nodes::NotEqual.new self, Arel.quoted(other, self)
38
33
  end
@@ -1,3 +1,3 @@
1
1
  module ArelExtensions
2
- VERSION = '1.4.1'.freeze
2
+ VERSION = '1.4.2'.freeze
3
3
  end
data/version_v1.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ArelExtensions
2
- VERSION = '1.4.1'.freeze
2
+ VERSION = '1.4.2'.freeze
3
3
  end
data/version_v2.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ArelExtensions
2
- VERSION = '2.2.1'.freeze
2
+ VERSION = '2.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yann Azoury
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-11-08 00:00:00.000000000 Z
13
+ date: 2024-11-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: arel