sql_enum 0.2.1 → 0.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: 56cf18f4031e42dafc326aeb4f3f58bf16242f5e0ce248b3b053b408342a1497
4
- data.tar.gz: 98417655ed739818bc3e386a23bc6b8749ae5ca0691a8f8316e6cfb53c1e7987
3
+ metadata.gz: dd16ecd7dbef436bf1613fa7b841e3575db7528778cee563fcb7128ae48ed24b
4
+ data.tar.gz: 474745a0a9090a1e9203493c6f4864a69fb07f622ece22e3db432142ef2de953
5
5
  SHA512:
6
- metadata.gz: f9bc9f6baa13e72cb5b57d874cefd3715e50dc96d9f6f992f258c8fdf0a7204cab276d43c47062ad648b90ef2a24c729f9390bf5624aef5320fdab748995fe73
7
- data.tar.gz: aefa623d5ca3a4224cbbcf21805be3009cc878580a789f0cf59603466b869a9f0d90101e3dd0ebcc3ffb5bccabeb072748fa48fef30ba08d12b77e46eef31704
6
+ metadata.gz: 62b096819785f82af237b66cfe9cab150037e229796dda1e760f52e91140a8bcae092126e5bac5b0f51ea72cd25abad51ee9ad8f68b5ceb70b39682e18e367ce
7
+ data.tar.gz: 2c702f4de99f2c50513ae2b1cbcf17a349601d63b7e59a09750488358bca93632219924f444270a33befee9a28153970e0d129e1d20f62d30dc94ac028359d46
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sql_enum (0.2.0)
4
+ sql_enum (0.2.2)
5
5
  activerecord (>= 5.0)
6
6
 
7
7
  GEM
@@ -48,7 +48,7 @@ module ActiveRecord
48
48
 
49
49
  # def active?() status == 0 end
50
50
  klass.send(:detect_enum_conflict!, name, "#{value_method_name}?")
51
- define_method("#{value_method_name}?") { self[attr] == value.to_s }
51
+ define_method("#{value_method_name}?") { self[attr] == value.to_sym }
52
52
 
53
53
  # def active!() update! status: :active end
54
54
  klass.send(:detect_enum_conflict!, name, "#{value_method_name}!")
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Fowler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-14 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.0.8
116
+ rubygems_version: 3.1.6
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Enable using native sql enums