Make It So is a command line utility that makes it easy to create starting points for all apps Ruby. Right now, it only supports Rails, but support for Sinatra, Gosu, and other paradigms are in progress.
Add this line to your application's Gemfile:
Install it yourself as:
$ gem install make_it_so
In the terminal, run:
make_it_so rails <app_name>
Then run:
rake db:create
rake db:migrate
Inject javascript at the end of the body tag. Javascript should always be the last thing loaded on the page. In view logic you can do the following:
<%= content_for :extra_footer do %>
<script type="text/javascript">
var widget = new Something.Widget('foo');
</script>
<% end %>
In the terminal, run:
make_it_so sinatra <app_name>
By default, the generator, will create a sinatra root complete with an RSpec configuration.
In the terminal, run:
make_it_so gosu <app_name>
By default, the generator, will create a gosu template complete with an RSpec configuration.
The tree structure looks like:
GosuGame
├── Gemfile
├── README.md
├── game.rb
├── img
├── lib
│ ├── bounding_box.rb
│ └── keys.rb
└── spec
└── spec_helper.rb
To learn more about Gosu development read through this tutorial
- Fork it ( https://github.com/[my-github-username]/make_it_so/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request