Project

pan_domain

0.0
No commit activity in last 3 years
No release in over 3 years
A gem which create common tables and data which prioritize on data integrity.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 1.1
~> 10.0
~> 4.0.0.rc1

Runtime

~> 5.2
 Project Readme

PanDomain

CircleCI Maintainability Gem Version

Availabel domains:

  • Human
    • Blood Classification System
    • Blood Group Name

Installation

Add this line to your application's Gemfile:

gem 'pan_domain'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install pan_domain

How to use

  1. Install all domains

     $ pan_domain install
    

    or with rake command

     $ rake pan_domain:install
    
  2. Generate all migrations from all domains

     $ pan_domain generate_migrations
    

    or with rake command

     $ rake pan_domain:install:migrations
    
  3. Seed all data from all domains

     $ pan_domain generate_seeds
    

    or with rake command

     $ rake pan_domain:db:seed
    
  4. Install a specific domain (require add gem 'pan_domain' in the Gemfile)

     $ rake [domain_name]_domain:install (eg: rake human_domain:install)
    
  5. Generate all migrations from a specific domain (require add gem 'pan_domain' in the Gemfile)

     $ rake [domain_name]_domain:generate:migrations (eg: rake human_domain:generate:migrations)
    
  6. Loads all seed data from a specific domain (require add gem 'pan_domain' in the Gemfile)

     $ rake [domain_name]_domain:db:seed (eg: rake human_domain:db:seed)
    
  7. List available commands $ pan_domain --help

Test

To run all tests, you can use this command in root directory:

$ rake spec

Note: run rspec in root directory will not working.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request