enum_from_file 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc4c56d2f0e4d9e5e6e58646adf6f6fe9ee9af12e8982a20273805c2752da8f4
4
- data.tar.gz: '042855f86b9276ab4d482546bd75f5c91949114da7653438be95b0c20599e994'
3
+ metadata.gz: 8309ab8199ce256909aa92761505e52ab7629d475c18f026a9b347241af9765c
4
+ data.tar.gz: 4ba36f31ad7c9d064b7b55d2e6b65dcf2bb51d8490f12f23516eeb4022f47945
5
5
  SHA512:
6
- metadata.gz: 1c6c414f5b74175f998d8848bc82144cde4869a4c9413f3430c7f9976c5aca50eb95f04ad436365174d26e61d7438840f82c6983ab28596ec5dc0a4ef94e3b8b
7
- data.tar.gz: 9067f915adb7b8a0ea984c51d15212a9f06cafe75b9eb30df680a0dcd06fe5d140202254f19af17b6c3cf0ecf41aaed8f52904d4209c94523624dfd1f044fb7e
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 'enum_from_file'
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
 
@@ -43,7 +43,7 @@ module EnumFromFile
43
43
 
44
44
  return values.to_h unless values.is_a?(String)
45
45
 
46
- Hash[values.split.map { |val| [val.to_sym, val.to_sym] }]
46
+ Hash[values.split.map { |val| [val.to_sym, val] }]
47
47
  end
48
48
  end
49
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EnumFromFile
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
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.1
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-25 00:00:00.000000000 Z
11
+ date: 2019-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails