arel_extensions 2.2.1 → 2.2.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: 496c28c87b9cb589cdb380689e61b9342a133810c6b1bae0800a47de8af1a36f
4
- data.tar.gz: 78f60edcc7cbe904d7fe426b93713a0718e0303316512e04add8b22324e1c8d7
3
+ metadata.gz: ec5e40945328be87eb2078d58b5bbe144f9927f76f44d636b207e9c79ed8d083
4
+ data.tar.gz: a829d89fbafe6717a773b3cd1deb4a86c4a230d30b712f8dc9c2d87967fb325d
5
5
  SHA512:
6
- metadata.gz: 78e2a4bb36148b6ad53963c18e66dc3b17ebf992b4d87cbf42257a50160072ae39c9bbb700fc22dc19adb4b6a7e0add1f011ef27608004f16a4e737bbd2e5afe
7
- data.tar.gz: 7951d173223ebea2e46a745110c9b892f0d3c6e36c775d2b92d5e926504e79a44fc400078b6861a526781fa0b0c783b6a3061e8bd4b805fc608117a30ac2dac6
6
+ metadata.gz: 868227bed38916facdf1f48b0961b48a41bcfb65a5741c17947e73fa3e28d7c9b01ccef238396f1b23288d3ca12dd5c4dfdbedcf9a900dd17efe08dc1e3ef139
7
+ data.tar.gz: a8843d2c5a52ea04a9b0b46bf6b4563697829cd2ea63b39c23fdf2d4790c8e25902d302165392997c617ab13c06b5465f560b4de185a4152804ed493df8c8246
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 = '2.2.1'.freeze
2
+ VERSION = '2.2.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: 2.2.1
4
+ version: 2.2.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: activerecord