0.0
No release in over 3 years
Low commit activity in last 3 years
A Rails template with Kabisa defaults
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 2.3
~> 0.11
~> 10.0
~> 3.4
~> 4.8
~> 3.0
~> 0.55
~> 0.16

Runtime

~> 3.4
~> 0.20
 Project Readme

Kabisa LaunchBase 🚀

Build Status Maintainability Test Coverage

Installation

In an existing Rails application

Add this line to your application's Gemfile:

gem 'launch_base'

And then execute:

bundle

Or install it yourself as:

gem install launch_base

Globally, to generate a new application:

sudo gem install launch_base

Usage

launch_base add sidekiq         # Add Sidekiq gem and configuration to your app
launch_base help [COMMAND]      # Describe available commands or one specific command
launch_base new                 # Create a new LaunchBase project (Rails 5.1 or higher is required)
launch_base new --with-sidekiq  # Create a new LaunchBase project including Sidekiq support
launch_base update              # update LaunchBase
launch_base lint install        # install lint configuration files
launch_base lint update         # update gem and reinstall lint configuration files

Requirements

Database transactions

An app generated by Launch Base assumes database transactions work within Capybara tests, which requires Rails 5.1 or higher. Alternatively, you should add DatabaseCleaner:

  1. Add DatabaseCleaner to your gem within the test group (be sure to also run bundle install):
group :test do
  gem 'database_cleaner'
end
  1. Add a spec/support/database_cleaner.rb file:
require 'database_cleaner'

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner.clean_with :truncation
  end

  config.around :each do |example|
    DatabaseCleaner.strategy = if example.metadata[:type].in? [:feature, :request]
                                 :truncation
                               else
                                 :transaction
                               end

    DatabaseCleaner.start
    example.run
    DatabaseCleaner.clean
  end
end

Contents

For info about the contents of an app generated by LaunchBase, please refer to the README.md template

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test 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 gem tag --push, which will create and push a git tag for the version. Travis CI will automatically build and publish the gem.

Contributing

Bug reports and pull requests are welcome on GitHub at Launch Base.

License

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