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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfa487e513ae6a53c566d415894dc1de52aaed5674b0557efd8107996968de87
4
- data.tar.gz: 5bb5512a01dea451b73505b72a0fe5aafb2cfd648180389829f14d0ac2caa64f
3
+ metadata.gz: 4869ef89f5cf3961f973035842014a1d9bc734fe9106860be2c01410fc9b2e01
4
+ data.tar.gz: a7f77d43eba2fe1c88e855458019606cffc6de2feb6e3f1b4cb059082f40f3a7
5
5
  SHA512:
6
- metadata.gz: 9d1b4d486fd2b800090400d80b566f9e17a050c5bf139ea22ad20c902070105c7f3ef319d802bd5f5a9138445568ae10f8a1e30670178a8d6b8451679ca563f7
7
- data.tar.gz: e24c50cc9cdd0fb93df7e316c8590d63a153e11f18f5cd05a5edd6447f4d6ac621477ff90bb5e493511a0911f9f6e75b6f91de1743db9c922d465f4f420b4a33
6
+ metadata.gz: d6bfcba973767bbd544f777730c400dda8f36cf2cfc074f411dce8e291ecd8c32e7414fe815d0d64ef9d7de801bee5fd21c009d90da00768b56944fe32da5e49
7
+ data.tar.gz: b24fb7a2c5d77d6b874f8c134398267c42f3b0ff79c3cef8a9b89636c14a11540e122385e9a872960e79e94da66302d37fc05cad08487245c6681809dc3f1c4a
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Rasti::Types
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
- Type casting
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 Inflecto.underscore(Inflecto.demodulize(self.class.name)).upcase
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
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  module Enum
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
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 = 'Type casting'
12
- spec.description = 'Type casting'
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.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: Type casting
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: Type casting
176
+ summary: Enum objects
177
177
  test_files:
178
178
  - spec/coverage_helper.rb
179
179
  - spec/enum_spec.rb