Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

andytan87/hummingbird-server

Repository files navigation

Kitsu Server

Build Status Code Climate Test Coverage


This is our server repository. It contains the rails application for Kitsu.
Check out the meta, client and api docs repositories.


This README outlines the details of collaborating on this application.

Styleguide

Styleguide Amendments

These amendments are listed below, though we may forget some. Rubocop will help you, and we have a .rubocop.yml which we develop with.

Rails

ActiveRecord Models

  • Group macro-style methods at the beginning of the class definition, in the following order:

    class User < ActiveRecord::Base
     # put the default scope at the top
     default_scope { includes(:favorites) }
     # then the constants
     COLORS = %w[red green blue]
     # then named scopes
     scope(:banned) { where(banned: true) }
     # then any mixin-style "acts_as_*" and similar methods
     acts_as_sortable
     devise :database_authenticable, :registerable, :recoverable,
     :validatable, :confirmable
     # then field-type macros such as enum or has_attached_file
     enum rating_system: %i[smilies stars]
     has_attached_file :avatar
     # then associations
     has_many :library_entries
     # then validation
     validates :email, presence: true
     validates name, presence: true
     # and then callbacks
     before_save :do_the_thing
     # ... and finally the rest of the methods!
    end

About

πŸš‚ Rails API server for Kitsu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 98.6%
  • Other 1.4%

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /