mongoid-enum-dazzl 1.0.0.pre.856390691 → 1.0.0.pre.994130791
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -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: e29d111fafed1fd0fd1b722bc073c35a4bcc8bd6d9e2d1281c8183b42e3b7a9a
|
4
|
+
data.tar.gz: c17ced9794070bba7ca183bc64bd0e13939f344e0504dae6aca1a20d55d9719c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fd80f77442d1250716b3b2b3426e1de0a72b43e22b090252243c096da5383d73637834c24be943384c1755ccc79b788166282edf56cf5eedc5f9ac4440fe60f
|
7
|
+
data.tar.gz: 8dec304dc10c1796d03f0f00a74104e6631529d3ee4f943a1b3668dccd2944f33c289ac55e306212c6955bd995e196fedc39163730d5f1324f8789fd4ed25718
|
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
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
|
-
[![
|
7
|
-
[![Test Coverage](https://api.codeclimate.com/v1/badges/34c8fdc8181220e50ff7/test_coverage)](https://codeclimate.com/github/dazzl-tv/mongoid-enum/test_coverage)
|
6
|
+
[![Known Vulnerabilities](https://snyk.io/test/github/dazzl-tv/mongoid-enum/badge.svg)](https://snyk.io/test/github/dazzl-tv/mongoid-enum)
|
8
7
|
|
9
8
|
Heavily inspired by [DHH's
|
10
9
|
ActiveRecord::Enum](https://github.com/rails/rails/commit/db41eb8a6ea88b854bf5cd11070ea4245e1639c5), this little library is
|
@@ -20,7 +19,7 @@ and a few other bits-and-bobs.
|
|
20
19
|
Add this to your Gemfile:
|
21
20
|
|
22
21
|
```ruby
|
23
|
-
gem
|
22
|
+
gem 'mongoid-enum-dazzl'
|
24
23
|
```
|
25
24
|
|
26
25
|
And then run `bundle install`.
|
@@ -31,7 +30,7 @@ And then run `bundle install`.
|
|
31
30
|
```ruby
|
32
31
|
class Payment
|
33
32
|
include Mongoid::Document
|
34
|
-
include Mongoid::Enum
|
33
|
+
include Mongoid::Enum::Dazzl
|
35
34
|
|
36
35
|
enum :status, [:pending, :approved, :declined]
|
37
36
|
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.994130791
|
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
|