mongoid-enum-dazzl 1.0.0.pre.853362636 → 1.0.0.pre.853659464
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid/enum/dazzl.rb +2 -1
- data/lib/mongoid/enum/dazzl/info.rb +1 -2
- data/spec/spec_helper.rb +1 -1
- metadata +1 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4a98eac31070cd087980e7be2f32c2b5401934ada4e7fae0ee2873440fe2407
|
4
|
+
data.tar.gz: b300d66dd8eb52ed3eb39915290c439428226c4768134438e8484b3a3db7607b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8fdf843c3e9ad935978f862c423090e0bde353fa6b6ce3e0223996caca2a9e8dba5736a4ca0c0d41b2737a70f8e903d92dbc9bf544fc6f56ed6146223279a53
|
7
|
+
data.tar.gz: 30b676909f2f98eab333b3593844cb3a5099063163329a4e3a102ca7af2e57cbd39e072aa06e78bfeb8c2731de62ddc67c3644f23ef479d2bed92294cbb15944
|
data/lib/mongoid/enum/dazzl.rb
CHANGED
@@ -10,7 +10,8 @@ module Mongoid
|
|
10
10
|
extend ActiveSupport::Concern
|
11
11
|
module ClassMethods
|
12
12
|
def enum(name, values, options = {})
|
13
|
-
field_name =
|
13
|
+
field_name = \
|
14
|
+
:"#{Mongoid::Enum::Dazzl.configuration.field_name_prefix}#{name}"
|
14
15
|
options = default_options(values).merge(options)
|
15
16
|
|
16
17
|
set_values_constant name, values
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-enum-dazzl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.853659464
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
@@ -10,26 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.2'
|
20
|
-
- - "<="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 2.2.16
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.2'
|
30
|
-
- - "<="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 2.2.16
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: faker
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|