ead is a gem used to generate/modify files of Ruby on Rails projects by using a generated JSON file by EAD. EAD can be accessible from this repository or here
ead's installation is pretty standard:
$ gem install ead
There are two choices to use the generated JSON file;
-
Go to the root folder of your Ruby on Rails project.
$ ead 'path_of_the_generated_file'
- Don't forget to put quotation marks('). It is not necessary put quotation marks, if path_of_the_generated_file doesn't include any "(". But, usage of quotation marks is encouraged to be on the safe side.
-
Move the generated JSON file (its name must be 'EAD.json') to the root folder of your project. Then,
$ ead
- If the name of the generated JSON file isn't 'EAD.json',
$ ead './name_of_the_file'
- Don't forget to put quotation marks('). It is not necessary put quotation marks, if path_of_the_generated_file doesn't include any "(". But, usage of quotation marks is encouraged to be on the safe side.
-
If all files are generated as expected,
$ bundle exec rails db:migrate
EAD is a tool to initialize any Ruby on Rails project quickly by implementing associations from a generated JSON file.
EAD contains two parts;
- A user interface(called 'EAD') to generate JSON file
- A gem(called 'EAD gem' or 'ead') to modify the files of Ruby on Rails project by using the generated JSON file
This repository contains the code of the EAD gem.
EAD can be accessible from this repository or here
- Ruby
- RSpec
The project is developed by using a sample Rails project. Ruby v2.7.2 and Rails v6.1.3.2 are used for this sample project. So, any previous versions of Ruby and Rails may cause some problems.
- Clone this repository
- Open terminal
- Change directory by using
cd ead-g
- Run
bundle install
- Run
rspec
to test all files
Reach out to me at one of the following places!
👤 Hasan Özovalı
- Website: ozovalihasan.com
- LinkedIn: Hasan Özovalı
- Github: @ozovalihasan
- Twitter: @ozovalihasan
- Mail: ozovalihasan@gmail.com
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!