AuxiliaryRails

Collection of classes, configs, scripts, generators for Ruby on Rails helping you get things done, better.

Gem Build Status Maintainability

Installation

Add one of these lines to your application's Gemfile:

# version released to RubyGems
gem 'auxiliary_rails'
# or latest version from the repository
gem 'auxiliary_rails', git: 'https://github.com/ergoserv/auxiliary_rails'
# or from a specific branch of the repository
gem 'auxiliary_rails', github: 'ergoserv/auxiliary_rails', branch: 'develop'

And then execute:

$ bundle

Or install it yourself as:

$ gem install auxiliary_rails

Usage

Rails Application Templates

Install gem into the system (e.g. using gem install auxiliary_rails) then:

auxiliary_rails new APP_PATH

Or use rails new command specifying --template argument:

rails new APP_PATH --skip-action-cable --skip-coffee --skip-test --database=postgresql --template=https://raw.githubusercontent.com/ergoserv/auxiliary_rails/develop/templates/rails/elementary.rb

Generators

# Install everything at once
rails generate auxiliary_rails:install

# Install one by one
rails generate auxiliary_rails:install_commands
rails generate auxiliary_rails:install_errors
rails generate auxiliary_rails:install_rubocop
rails generate auxiliary_rails:install_rubocop --no-specify-gems

# API resource generator
rails generate auxiliary_rails:api_resource

# Command generator
rails generate auxiliary_rails:command

View Helpers

current_controller?(*ctrl_names)
current_action?(*action_names)

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ergoserv/auxiliary_rails.

License

The gem is available as open source under the terms of the MIT License.


alt text

This gem was created and is maintained by ErgoServ.

If you like what you see and would like to hire us or join us, get in touch!