mongoid-enum-dazzl 1.0.0.pre.856399187 → 1.0.0.pre.994134209
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a6c77c2f65ba696a864cc3769ca8b175af606d9ad48b90c7b5c3cf9a969d39c
|
4
|
+
data.tar.gz: 40d3040fddd88fe7a3c1ff7f87f2294e62d8db8e951c5ba7c92f265492936862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b417780741033a0fdbf3a6ed1b2d91dbebca2507793b4f645f095f06f924aa5c078ae87ea07c426786edbf64d87f496bd05b901c1ad466eb92e5c5eaa79f6c
|
7
|
+
data.tar.gz: b56aa649e7347cd3076e9c639874c84fb43d395fa2e1049d26cf1321e90ecda0859e945880ce7d9bddcc0c0e96a77d1050ec109fc247b77092cb83225c8c4a50
|
data/README.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
# Mongoid::Enum
|
1
|
+
# Mongoid::Enum::Dazzl
|
2
2
|
[![RSpec](https://github.com/dazzl-tv/mongoid-enum/actions/workflows/rspec.yml/badge.svg)](https://github.com/dazzl-tv/mongoid-enum/actions/workflows/rspec.yml)
|
3
3
|
[![Linter](https://github.com/dazzl-tv/mongoid-enum/actions/workflows/linter.yml/badge.svg)](https://github.com/dazzl-tv/mongoid-enum/actions/workflows/linter.yml)
|
4
|
-
[![Gem Version](https://badge.fury.io/rb/mongoid-enum.svg)](https://badge.fury.io/rb/mongoid-enum)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/mongoid-enum-dazzl.svg)](https://badge.fury.io/rb/mongoid-enum-dazzl)
|
5
5
|
[![Docs](https://inch-ci.org/github/dazzl-tv/mongoid-enum.svg)](https://inch-ci.org/github/dazzl-tv/mongoid-enum)
|
6
|
-
[![Maintainability](https://api.codeclimate.com/v1/badges/
|
7
|
-
[![Test Coverage](https://api.codeclimate.com/v1/badges/
|
6
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/fd1a01968b5cb53a708f/maintainability)](https://codeclimate.com/github/dazzl-tv/mongoid-enum/maintainability)
|
7
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/fd1a01968b5cb53a708f/test_coverage)](https://codeclimate.com/github/dazzl-tv/mongoid-enum/test_coverage)
|
8
|
+
[![Known Vulnerabilities](https://snyk.io/test/github/dazzl-tv/mongoid-enum/badge.svg)](https://snyk.io/test/github/dazzl-tv/mongoid-enum)
|
8
9
|
|
9
10
|
Heavily inspired by [DHH's
|
10
11
|
ActiveRecord::Enum](https://github.com/rails/rails/commit/db41eb8a6ea88b854bf5cd11070ea4245e1639c5), this little library is
|
@@ -20,7 +21,7 @@ and a few other bits-and-bobs.
|
|
20
21
|
Add this to your Gemfile:
|
21
22
|
|
22
23
|
```ruby
|
23
|
-
gem
|
24
|
+
gem 'mongoid-enum-dazzl'
|
24
25
|
```
|
25
26
|
|
26
27
|
And then run `bundle install`.
|
@@ -31,7 +32,7 @@ And then run `bundle install`.
|
|
31
32
|
```ruby
|
32
33
|
class Payment
|
33
34
|
include Mongoid::Document
|
34
|
-
include Mongoid::Enum
|
35
|
+
include Mongoid::Enum::Dazzl
|
35
36
|
|
36
37
|
enum :status, [:pending, :approved, :declined]
|
37
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.994134209
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faker
|