array_enum 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -15
- data/lib/array_enum/version.rb +1 -1
- data/lib/array_enum.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa2a0e8f11b84fd107a5584e35661f3de42773fd4ff66891357007b0e40aab5f
|
4
|
+
data.tar.gz: d556a1dc708b23138e6d42b64add098b28ab76c838b1fbab501f0bd4411f8cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0ccf9ba1d8b104591b58bce03af29e6738c25e1fcadd5fee4d78293b614be5a289678f65a366843d94e5c234aeda43766e57da58909699f923ce9c45cb6891
|
7
|
+
data.tar.gz: 836ef949dd08e9729b51f0fa634dc7d5672fc3055f0c5cbae3bc61a0670c7fcd439ccab6db7321f825c482d8403a78bfe78730552d800dd412b19863d778ea2f
|
data/Gemfile.lock
CHANGED
@@ -1,39 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
array_enum (1.
|
4
|
+
array_enum (1.6.0)
|
5
5
|
activemodel
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (7.
|
11
|
-
activesupport (= 7.
|
12
|
-
activerecord (7.
|
13
|
-
activemodel (= 7.
|
14
|
-
activesupport (= 7.
|
10
|
+
activemodel (7.2.0)
|
11
|
+
activesupport (= 7.2.0)
|
12
|
+
activerecord (7.2.0)
|
13
|
+
activemodel (= 7.2.0)
|
14
|
+
activesupport (= 7.2.0)
|
15
15
|
timeout (>= 0.4.0)
|
16
|
-
activesupport (7.
|
16
|
+
activesupport (7.2.0)
|
17
17
|
base64
|
18
18
|
bigdecimal
|
19
|
-
concurrent-ruby (~> 1.0, >= 1.
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
20
20
|
connection_pool (>= 2.2.5)
|
21
21
|
drb
|
22
22
|
i18n (>= 1.6, < 2)
|
23
|
+
logger (>= 1.4.2)
|
23
24
|
minitest (>= 5.1)
|
24
|
-
|
25
|
-
tzinfo (~> 2.0)
|
25
|
+
securerandom (>= 0.3)
|
26
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
26
27
|
base64 (0.2.0)
|
27
|
-
bigdecimal (3.1.
|
28
|
-
concurrent-ruby (1.
|
28
|
+
bigdecimal (3.1.8)
|
29
|
+
concurrent-ruby (1.3.4)
|
29
30
|
connection_pool (2.4.1)
|
30
31
|
drb (2.2.1)
|
31
|
-
i18n (1.14.
|
32
|
+
i18n (1.14.5)
|
32
33
|
concurrent-ruby (~> 1.0)
|
33
|
-
|
34
|
-
|
34
|
+
logger (1.6.0)
|
35
|
+
minitest (5.25.1)
|
35
36
|
pg (1.5.6)
|
36
37
|
rake (13.2.0)
|
38
|
+
securerandom (0.3.1)
|
37
39
|
timeout (0.4.1)
|
38
40
|
tzinfo (2.0.6)
|
39
41
|
concurrent-ruby (~> 1.0)
|
data/lib/array_enum/version.rb
CHANGED
data/lib/array_enum.rb
CHANGED
@@ -26,7 +26,7 @@ module ArrayEnum
|
|
26
26
|
db_values = Array(values).map do |value|
|
27
27
|
mapping_hash[value] || raise(ArgumentError, format(MISSING_VALUE_MESSAGE, value: value, attr: attr_name))
|
28
28
|
end
|
29
|
-
where("#{table_name}.#{attr_name} #{comparison_operator} ARRAY[:db_values]", db_values: db_values)
|
29
|
+
where("#{table_name}.#{attr_name} #{comparison_operator} ARRAY[:db_values]::integer[]", db_values: db_values)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: array_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wojciech Wnętrzak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|