enum_from_file 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -7
- data/lib/enum_from_file/storage.rb +1 -1
- data/lib/enum_from_file/version.rb +1 -1
- 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: 8309ab8199ce256909aa92761505e52ab7629d475c18f026a9b347241af9765c
|
4
|
+
data.tar.gz: 4ba36f31ad7c9d064b7b55d2e6b65dcf2bb51d8490f12f23516eeb4022f47945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0db7e1372f0275e18153a87cc07e21e159e7ce13ed7e466b0480e71ae2064d635a8bdd7b9ece1af0810ca93d9ed0f4bc649759166e5b8b9dbdc1175288002271
|
7
|
+
data.tar.gz: de4d647028dd9c6395f5f92412c9bb7f636bf71e47741a921ad9447a32ef0c71ff3ed2ffc0f2574f338a4f9051b6acca904f3e85a6d1da0c5005355ae9b9934f
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ enum :eye_color, from_file: :eye_colors
|
|
22
22
|
|
23
23
|
You can continue using regular syntax for regular cases:
|
24
24
|
```ruby
|
25
|
-
enum status: { active: active, archived: archived }
|
25
|
+
enum status: { active: "active", archived: "archived" }
|
26
26
|
```
|
27
27
|
|
28
28
|
**All the options will be passed to native enum implementation as expected.**
|
@@ -47,7 +47,7 @@ The list will be converted automatically, so both structures yield the same resu
|
|
47
47
|
Add this line to your application's Gemfile:
|
48
48
|
|
49
49
|
```ruby
|
50
|
-
gem
|
50
|
+
gem "enum_from_file"
|
51
51
|
```
|
52
52
|
|
53
53
|
And then execute:
|
@@ -55,11 +55,6 @@ And then execute:
|
|
55
55
|
$ bundle
|
56
56
|
```
|
57
57
|
|
58
|
-
Or install it yourself as:
|
59
|
-
```bash
|
60
|
-
$ gem install enum_from_file
|
61
|
-
```
|
62
|
-
|
63
58
|
## Contributing
|
64
59
|
Bug reports and pull requests are welcome on project's [page](https://github.com/andrewr224/enum-from-file) at GitHub
|
65
60
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enum_from_file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrew_r
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|