Skip to content
/ tasks Public
forked from hyperoslo/tasuku

Easily set up custom solvable tasks in your Rails app.

Notifications You must be signed in to change notification settings

str1fe/tasks

 
 

Repository files navigation

Tasuku

Gem Version Build Status Dependency Status Code Climate Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'tasuku'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tasuku

Install the gem:

$ rails generate tasuku:install

Run the migrations:

$ rake db:migrate

Then you can change the default configurations:

# config/routes.rb
Rails.application.routes.draw do
  mount Tasuku::Engine, at: '/tasks'
end

And the method to use in deriving the current user:

# config/initializers/tasuku.rb
Tasuku.configure do |config|
  config.author = :current_user
end

Views

Tasuku ships with views, but you can copy them to customize things to your liking:

$ rails generate tasuku:views

Tasuku defaults to using your application's layout, so you'll need to prefix your own route helpers with main_app so Ruby on Rails knows where to look.

Usage

...

Configuration

...

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this library we probably want to hire you.

License

Tasuku is available under the MIT license. See the LICENSE file for more info.

About

Easily set up custom solvable tasks in your Rails app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 97.0%
  • CSS 1.6%
  • JavaScript 1.4%