DEV Community

Discussion on: Hacktoberfest 2018 - Anyone looking for open source contributors?

Collapse
 
vinistock profile image
Vinicius Stock

Sail is still looking for more contributors. We want more setting types and better looking visuals. Take a look at the issues section for a possible start!

vinistock / sail

Sail brings settings to help you navigate your Rails application live

Maintainability Build Status Test Coverage Gem Version

Sail

This Rails engine brings a setting model into your app to be used as feature flags, gauges, knobs and other live controls you may need.

Installation

Add this line to your application's Gemfile:

gem 'sail'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sail

Adding the following line to your routes file will make the dashboard available at <base_url>/sail

mount Sail::Engine => '/sail'

Running the generator will create the settings table for your application.

$ rails g sail my_desired_migration_name

Which generates a migration to create the following table

create_table :sail_settings do |t|
  t.string :name, null: false
  t.text :description
  t.string :value, null: false
  t.integer :cast_type, null: false, limit: 1
  t.index ["name"], name: "index_settings_on_name", unique: true
  t.timetamps
end

Configuration

Available configurations and their defaults are listed below