mongoid-enum-dazzl 1.0.0.pre.905815569 → 1.0.0.pre.1266049595
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- 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: 865996edba45657ab990be78d01d46b0fb211f1267de10cfbc702bf862df502a
|
4
|
+
data.tar.gz: 035b39a6afd7f6bb859e1cab7d32cf052115c9f8841d1294ca219b374fbaf2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab797b622af42a53881bad36c0a9ee7e9304ce91e5799824c38f612a4c0753a2b6b6ca8bb58e7d756454b9589b867a6317e6fd7ad8326a6f2e6479c5c4fd99a2
|
7
|
+
data.tar.gz: c6e9d06d01213d3736923fdbc29611b2ffa012e9bcafdb2c3b9b3e4600d935fdf9ca719837a2de476f34323c88635e3ef46e24e80c8fd0fa9bda05266d1ec527
|
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
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.1266049595
|
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-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faker
|