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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 532d9c63da0d5670890af1f3236821651e5df2939a360086138af660363f7917
4
- data.tar.gz: 296725907a06887551117c12a554bc1b3b1c0d6852bd7ab714be2cbcda6cbbae
3
+ metadata.gz: fa2a0e8f11b84fd107a5584e35661f3de42773fd4ff66891357007b0e40aab5f
4
+ data.tar.gz: d556a1dc708b23138e6d42b64add098b28ab76c838b1fbab501f0bd4411f8cde
5
5
  SHA512:
6
- metadata.gz: adb8025e3538639f748d2752d5cf05facb3494ced82c550a40d6a400f5569fffe3e977a7159d0e3a0c685b76c887c7b14158d854863761ec3f444310552aa45b
7
- data.tar.gz: d9d7f665c33d61254bdbc758f0b4ccd998f9b81cd974e1d17b4345184ce41f1a29d137a070c2f9bdc5bf9ea118222d68cd0c4e7006ef3d3d55820326592b5a1f
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.5.0)
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.1.3.2)
11
- activesupport (= 7.1.3.2)
12
- activerecord (7.1.3.2)
13
- activemodel (= 7.1.3.2)
14
- activesupport (= 7.1.3.2)
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.1.3.2)
16
+ activesupport (7.2.0)
17
17
  base64
18
18
  bigdecimal
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- mutex_m
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.7)
28
- concurrent-ruby (1.2.3)
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.4)
32
+ i18n (1.14.5)
32
33
  concurrent-ruby (~> 1.0)
33
- minitest (5.22.3)
34
- mutex_m (0.2.0)
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)
@@ -1,3 +1,3 @@
1
1
  module ArrayEnum
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'
3
3
  end
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.5.0
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-04-12 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel