activerecord-postgres_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: ac2154f798abecd00d17ad2ddb22307b9567113d10bb6e46b93ac2696a166afe
4
- data.tar.gz: 75925162b95e2e293bf6f6834dbc05bea188ad40b35aac7d7c5b3f0ac36caf59
3
+ metadata.gz: 9e3664d257be105bae903d0b4183683768247f9a441afbcd6afc9290036ed8a5
4
+ data.tar.gz: ec213e9dbc12ed859ef762c3f8ef1982e0eb072da67d1d11e921d0e17f8bd560
5
5
  SHA512:
6
- metadata.gz: 8a8599019f7412e927bce0a25c5ae26de5a7b0e197a7a4c5da54f53edcb888e4bb6b7e0414d20f461fa61b2f33f2927e7edd67542eb8e968ed4766d25a15a811
7
- data.tar.gz: 1042bdcdd209e900527348265f906da95773635053118806ea7107f2496f6da39c3b885024d28b7fdcb292fb0868a11ed1aa277e37e9aeea8cab4389ba835599
6
+ metadata.gz: 7f6dd1f45d8168aed7199e1e0d8381be40e9a745c421aca1e1f39bf4f2d45400e943d4ed955acf12ed9f489a70662b8b126b2a0b9ef6ceef98b96115227cf08f
7
+ data.tar.gz: aaaad9f196e5ff222481bed5c732d596e6474566b8508e171e8fc5c6c6647b4d6c0d0a8f76060f7c6633004244d59e01689d68c7f2ce1bd84f9dfabb4e443cae
@@ -23,8 +23,8 @@ module ActiveRecord
23
23
 
24
24
  module ColumnMethods # :nodoc:
25
25
  # Enables `t.enum :my_field, enum_name: :my_enum_name` on migrations
26
- def enum(name, options = {})
27
- column(name, options.delete(:enum_name), options.except(:enum_name))
26
+ def enum(name, enum_name:, **options)
27
+ column(name, enum_name, **options)
28
28
  end
29
29
  end
30
30
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module PostgresEnum
5
- VERSION = "1.5.0"
5
+ VERSION = "1.6.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-postgres_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
  - Michael Merkushin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2021-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord