No commit activity in last 3 years
No release in over 3 years
Generate simple PORO services for your Rails APP.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.2.0
 Project Readme

PORO Service Generator

A Rails generator of very simple services as Plain Old Ruby Objects (PORO).

Why?

I really like organizing my side RoR projects using PORO services so I created this gem to make it easier to generate the services files. I also wanted to start publishing some code among the community and I feel that this simple generator is an easy and fast way to start, so I readed some guides and put it online! Please, if you have something to tell me just do, any feedback is welcome!

Setup

Just add this to your gemfile:

gem 'poro_service_generator'

And then bundle it from the command line:

bundle install

Use

To generate a new service just put this in your command line:

rails generate service ServiceName

And it will generate the next files:

  1. /app/services/service_name.rb
  2. /test/services/service_name_test.rb file.

The generated service will have only the basic init and call methods, but you can tune it as you want to match your project requirements.

About

Any suggestion or feedback please feel free to contact me!

klatooine@gmail.com