Project

matrioshka

0.0
No commit activity in last 3 years
No release in over 3 years
Turn your Rails 3 application into a gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Matrioshka

Organizing redistributable Rails applications can be a pain. Typical way to solve the issue is to write a lot of generators to duplicate entries like migrations, seeds and other stuff from the host application. Modern Rails Engines system however has the ability to proxy all that for you. So most of ready Rails applications can become a gem within few simple steps.

Matrioshka is a set of ready generators that will do the job on your behalf.

endorse

Host Application (Gem)

Inject the following to your host application Gemfile:

gem 'matrioshka'

Run Matrioshka install generator

rails g matrioshka:install

It will generate all the required additions and patches. For a typical application they will just work. However you probably should edit $application.gemspec to set proper meta information for your future gem.

Client Application (Consumer)

As soon as your gem ready to rumble we can procceed to the consumer. Let's make it work within a new rails application:

rails new marakash

Add your application gem to the new Gemfile:

gem '$application'

Run bundle install and then

rake $application:link

Ta-dam. You are done here. Time to party hard.

Maintainers

License

It is free software, and may be redistributed under the terms of MIT license.

Bitdeli Badge