Sha256: a17440c838746b9f01d3617df1712c03d50d26e223ca11f8ae79592348ee13a9
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
# SmartCore · [](https://badge.fury.io/rb/smart_core) [](https://travis-ci.org/0exp/smart_core) [](https://coveralls.io/github/0exp/smart_core?branch=master) In active development. --- ## Installation ```ruby gem 'smart_core' ``` ```shell bundle install # --- or --- gem install smart_core ``` ```ruby require 'smart_core' ``` --- #### Completed abstractions: - [**Operation Object**](#operation-object) (aka `Service Object`) (`SmartCore::Operation`) - attribute definition DSL (`param`, `option`, `params`, `options`); - yieldable result object abstraction (`Success`, `Failure`, `Fatal`, `#success?`, `#failure?`, `#fatal?`); - yieldable `#call` (and `.call`); - inheritance works as expected `:)`; - no dependencies; - [**Validation Object**](#validation-object) (`SmartCore::Validator`) - support for nested validations; - inheritance works as expected `:)`; - command-style DSL; - thread-safe; - no dependencies; --- #### Operation Object ```ruby class Service < SmartCore::Operation # soon... end ``` #### Validation Object ```ruby class Validator < SmartCore::Validator # soon... end ``` --- ## Contributing - Fork it ( https://github.com/0exp/smart_core/fork ) - Create your feature branch (`git checkout -b feature/my-new-feature`) - Commit your changes (`git commit -am 'Add some feature'`) - Push to the branch (`git push origin feature/my-new-feature`) - Create new Pull Request ## License Released under MIT License. ## Authors [Rustam Ibragimov](https://github.com/0exp)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_core-0.3.0 | README.md |