enum_machine 2.0.0 → 2.0.1

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: 29c5cbbb67a385d43e3410de9b1d2974b5a5878bad25c51eca631785870389e6
4
- data.tar.gz: adbf98313f00d208194b20899373d7ec2561ec99f94b23974efe226538c7c63d
3
+ metadata.gz: aee9e7e0ece2e73f55fdd9c7180c3babfc1b2bed804cb3475fb1867b0dba757d
4
+ data.tar.gz: a9b418f9678c7567baf43d84ac427249580fd4bc976b616677ecb52c89b082ec
5
5
  SHA512:
6
- metadata.gz: 32c418e7ff59bbcc33b4a00e4fea58533077409609e4125f226fdbbdf676522cadfa2977ce90100132bec76536ff0920691ecf98b3a713fff9ebbf7c63794b9c
7
- data.tar.gz: 55656e3c4903039bb40f7807c3abdd141c57ddc566c34bab59e8d57c08b7dd70a97d7cf3e7654b21d488230b4aaa9575ebcb8feeab8470c16ba847c31a78fe95
6
+ metadata.gz: b09927e13245d01a177fbc80b38714021d8c74c2d28a9b3538a3290e7aeb9b298c409e0571fcd9f5db92ddf152eeab8d15edc153315bd75884efadfa77c7b1db
7
+ data.tar.gz: 422c5c3de070e51c9314dab1fcb724fd20c3c256433026c32bae4288757438dd51cefe43236ff5256af1577a16a06f343276ea7d4d26f620d433e17e89b2a3f9
data/.rubocop.yml CHANGED
@@ -19,3 +19,8 @@ Style/Next:
19
19
 
20
20
  Style/ClassVars:
21
21
  Enabled: false
22
+
23
+ Gp/UnsafeYamlMarshal:
24
+ Enabled: true
25
+ Exclude:
26
+ - spec/**/*.rb
data/Gemfile.lock CHANGED
@@ -22,7 +22,7 @@ GIT
22
22
  PATH
23
23
  remote: .
24
24
  specs:
25
- enum_machine (2.0.0)
25
+ enum_machine (2.0.1)
26
26
  activemodel
27
27
  activerecord
28
28
  activesupport
@@ -6,6 +6,8 @@ module EnumMachine
6
6
  aliases = machine&.instance_variable_get(:@aliases) || {}
7
7
 
8
8
  Class.new do
9
+ const_set(:VALUE_CLASS, value_class)
10
+
9
11
  define_singleton_method(:machine) { machine } if machine
10
12
  define_singleton_method(:values) { enum_values.map { value_class.new(_1).freeze } }
11
13
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EnumMachine
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ermolaev Andrey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-28 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel