Sha256: 82cf7f6c3c775e4550f76940473370e1c8301dcd99aaf03ba37f02121c8cf118

Contents?: true

Size: 1.91 KB

Versions: 6

Compression:

Stored size: 1.91 KB

Contents

levtéra
=======

<!---

TODO Add badges of this services

[![Travis](https://api.travis-ci.org/indefinido/canmoia.png)](http://travis-ci.org/indefinido/canmoia)
[![Coverage Status](https://coveralls.io/repos/indefinido/canmoia/badge.png?branch=master)](https://coveralls.io/r/indefinido/canmoia)
[![Code Climate](https://codeclimate.com/github/indefinido/canmoia.png)](https://codeclimate.com/github/indefinido/canmoia)
![project status](http://stillmaintained.com/indefinido/canmoia.png)

-->

Summary
-------

Levtéra (lev = move, téra = straight). The core functionality of Vehicle domain.

Description
-----------

The core domain concerns for Vehicles (Makes, Versions, Models, Plates)

Mainly for brasilian makes, but hopefully will expand and used in more services.


Features
--------

Domain Rules for

 - Makes
   - Provider validation
 - Version
   - Provider ivalidation
   - Power, doors and valves numericality check
   - Transmission type check (automatic, semi-automatic ...)
   - Body type check (truck, convertible, ...)
 - Models
   - Provider ivalidation
   - Vehicle type check (car, motorcycle, ...)
 - Vehicles
   - Provider ivalidation
   - Fabrication and model years numericality
   - Engine feeding check (alcohol, flexible, gasoline, ...)


Examples
--------

```ruby

require 'levtera'

class Version
  include Mongoid::Document
  include Levtera::Concerns::Version
end

version.transmission_type = :automatic
version.valid? // true

version.transmission_type = :potatoe
version.valid? // false

```

Requirements
------------

Currently ORM dependend, sorry folks.

 - rails   >= 3
 - mongoid >= 3

Install
-------

Through gem command

  $ gem install levtera

Or add to your gemfile

Testing
=======

On your spec_helper.rb, require integration to use shared examples

```ruby

  require 'levtera/rspec'

  describe Make do
    it_should_behave_like :levtera_make
  end


```


This project rocks and uses WTFP-LICENSE.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
levtera-0.2.6 README.md
levtera-0.2.5 README.md
levtera-0.2.4 README.md
levtera-0.2.3 README.md
levtera-0.2.2 README.md
levtera-0.2.1 README.md