gemboys
DESCRIPTION
The third Torino Coding Society Lesson. Most used ruby gems presentation.TRANSCRIPT
GEMB O Y S04/11/2013
@mukkoo@delphaber
@welaika
RUBY GEMS?WHAT ARE
RUBY GEMS?WHAT ARE
Ruby programs and libraries (in a self-contained format called a "gem").
FRAMEWORKS & BACKENDS
gem 'active_admin'FRAMEWORKS & BACKENDS
gem 'active_admin'FRAMEWORKS & BACKENDS
Active Admin is a Ruby on Rails framework for creating elegant backends for website administration.
Active Admin in ActionFRAMEWORKS & BACKENDS
Active Admin in ActionFRAMEWORKS & BACKENDS
code
Active Admin in ActionFRAMEWORKS & BACKENDS
view
FRONTEND
gem 'simple_form'FRONTEND
gem 'simple_form'FRONTEND
Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
Simple Form in ActionFRONTEND
Without Simple Form
Without Simple Form
Simple Form in ActionFRONTEND
Without Simple Form
With Simple Form
gem 'compass'FRONTEND
gem 'compass'FRONTEND
Compass is an open-source CSS Authoring Framework. The compass core framework is a design-agnostic framework that provides common code that would otherwise be duplicated across other frameworks and extensions.
Compass in ActionFRONTEND
Compass in ActionFRONTEND
Without Compass
Compass in ActionFRONTEND
With Compass
REPORTING & DEBUGGING
gem 'better_errors'REPORTING & DEBUGGING
gem 'better_errors'REPORTING & DEBUGGING
Better Errors replaces the standard Rails error page with a much better and more useful error page.
Better Errors in ActionREPORTING & DEBUGGING
Better Errors in ActionREPORTING & DEBUGGING
gem 'airbrake'REPORTING & DEBUGGING
gem 'airbrake'REPORTING & DEBUGGING
When an uncaught exception occurs, Airbrake will POST the relevant data to the Airbrake server specified in your environment.
Airbrake in ActionREPORTING & DEBUGGING
Airbrake in ActionREPORTING & DEBUGGING
Airbrake in ActionREPORTING & DEBUGGING
gem 'newrelic_rpm'REPORTING & DEBUGGING
gem 'newrelic_rpm'REPORTING & DEBUGGING
New Relic is a performance management system. It provides you with deep information about the performance of your application as it runs in production.
NewRelic in ActionREPORTING & DEBUGGING
NewRelic in ActionREPORTING & DEBUGGING
TESTING
gem 'letter_opener'TESTING
gem 'letter_opener'TESTING
Preview email in the browser instead of sending it. This means you do not need to set up email delivery in your development environment, and you no longer need to worry about accidentally sending a test email to someone else’s address.
Letter Opener in actionTESTING
Letter Opener in actionTESTING
gem 'factory_girl'TESTING
gem 'factory_girl'TESTING
Factory girl is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies and support for multiple factories for the same class.
Factory Girl in actionTESTING
Factory Girl in actionTESTING
gem 'timecop'TESTING
gem 'timecop'TESTING
A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it dead simple to test time-dependent code.
Timecop in actionTESTING
Timecop in actionTESTING
TOOLS
gem 'delayed_job_active_record'TOOLS
gem 'delayed_job_active_record'TOOLS
Database based asynchronous priority queue system.
Useful for:- sending massive newsletters- image resizing- http downloads- batch imports- spam checks
Delayed Job in actionTOOLS
Delayed Job in actionTOOLS
gem 'whenever'TESTING
gem 'whenever'TESTING
Cron jobs in ruby.
Whenever in actionTESTING
Whenever in actionTESTING
Whenever in actionTESTING
gem 'faker'TESTING
gem 'faker'TESTING
A library for generating fake data such as names, addresses, and phone numbers.
Faker in actionTESTING
Faker in actionTESTING
AUTHENTICATIONAUTHORIZATION
gem 'cancan'AUTHENTICATION / AUTHORIZATION
gem 'cancan'AUTHENTICATION / AUTHORIZATION
CanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access.
CanCan in actionAUTHENTICATION / AUTHORIZATION
CanCan in actionAUTHENTICATION / AUTHORIZATION
gem 'devise'AUTHENTICATION / AUTHORIZATION
gem 'devise'AUTHENTICATION / AUTHORIZATION
Devise is a flexible authentication solution for Rails.
Devise in actionAUTHENTICATION / AUTHORIZATION
Devise in actionAUTHENTICATION / AUTHORIZATION
UPLOADS MANAGEMENT
gem 'paperclip'UPLOADS MANAGEMENT
gem 'paperclip'UPLOADS MANAGEMENT
Paperclip is intended as an easy file attachment library for Active Record.
Paperclip in actionUPLOADS MANAGEMENT
Paperclip in actionUPLOADS MANAGEMENT
DEPLOY
gem 'capistrano'DEPLOY
gem 'capistrano'DEPLOY
A remote server automation and deployment tool.
Capistrano in actionDEPLOY
Capistrano in actionDEPLOY
$ cap deploy
Capistrano in actionDEPLOY
… and the other gems we love
bourboncapybara-webkitcarrierwavedatabase_cleanerdate_validatordragonflyemail_validatorfriendly_idgeocoderinherited_resources
neat nested_formomniauthpryrecipient_interceptorshowcasesimplecovslim-railszeus
Pizza Time!
04/11/2013
Filippo Gangi Dino @mukkoo Fabrizio Monti @delphaber
weLaika @welaika dev.welaika.com
What are your gem(s), boys?
And now