rasti-enum 1.0.0 → 1.0.1
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 -2
- data/lib/rasti/enum.rb +7 -1
- data/lib/rasti/enum/version.rb +1 -1
- data/rasti-enum.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4869ef89f5cf3961f973035842014a1d9bc734fe9106860be2c01410fc9b2e01
|
4
|
+
data.tar.gz: a7f77d43eba2fe1c88e855458019606cffc6de2feb6e3f1b4cb059082f40f3a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6bfcba973767bbd544f777730c400dda8f36cf2cfc074f411dce8e291ecd8c32e7414fe815d0d64ef9d7de801bee5fd21c009d90da00768b56944fe32da5e49
|
7
|
+
data.tar.gz: b24fb7a2c5d77d6b874f8c134398267c42f3b0ff79c3cef8a9b89636c14a11540e122385e9a872960e79e94da66302d37fc05cad08487245c6681809dc3f1c4a
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
# Rasti::
|
1
|
+
# Rasti::Enum
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rasti-enum.svg)](https://rubygems.org/gems/rasti-enum)
|
4
4
|
[![Build Status](https://travis-ci.org/gabynaiman/rasti-enum.svg?branch=master)](https://travis-ci.org/gabynaiman/rasti-enum)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/gabynaiman/rasti-enum/badge.svg?branch=master)](https://coveralls.io/github/gabynaiman/rasti-enum?branch=master)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/gabynaiman/rasti-enum.svg)](https://codeclimate.com/github/gabynaiman/rasti-enum)
|
7
7
|
|
8
|
-
|
8
|
+
Enum objects
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
data/lib/rasti/enum.rb
CHANGED
@@ -7,7 +7,13 @@ module Rasti
|
|
7
7
|
class Value < String
|
8
8
|
|
9
9
|
def initialize
|
10
|
-
super
|
10
|
+
super text_value
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def text_value
|
16
|
+
Inflecto.underscore(Inflecto.demodulize(self.class.name)).upcase
|
11
17
|
end
|
12
18
|
|
13
19
|
end
|
data/lib/rasti/enum/version.rb
CHANGED
data/rasti-enum.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Rasti::Enum::VERSION
|
9
9
|
spec.authors = ['Gabriel Naiman']
|
10
10
|
spec.email = ['gabynaiman@gmail.com']
|
11
|
-
spec.summary = '
|
12
|
-
spec.description = '
|
11
|
+
spec.summary = 'Enum objects'
|
12
|
+
spec.description = 'Enum objects'
|
13
13
|
spec.homepage = 'https://github.com/gabynaiman/rasti-enum'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rasti-enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Naiman
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0.2'
|
131
|
-
description:
|
131
|
+
description: Enum objects
|
132
132
|
email:
|
133
133
|
- gabynaiman@gmail.com
|
134
134
|
executables: []
|
@@ -173,7 +173,7 @@ requirements: []
|
|
173
173
|
rubygems_version: 3.0.6
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
|
-
summary:
|
176
|
+
summary: Enum objects
|
177
177
|
test_files:
|
178
178
|
- spec/coverage_helper.rb
|
179
179
|
- spec/enum_spec.rb
|