hchoroomi / ruby-bookmarks

Ruby and Ruby on Rails bookmarks collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Bookmarks

This is a curated collection of essential Ruby and Ruby on Rails resources. The project aims to maintain a well-structured reference equally useful both for beginners and advanced web developers. ★ stands here for Editors' Choice.

This list is not intended to include any random resource related to Ruby programming (we already have a most complete gem catalogue at ruby-toolbox.com), but only the best and most actual alternatives in each area. You will find here latest editions of the most important books, time and community tested gems (alive projects only!), and actively updated websites.

Sharing and pull requests are very much appreciated!

PS: Check out awesome-awesomeness for other community-driven bookmark collections.

Books

For beginners and intermediate level developers

Advancing Ruby knowledge

Ruby on Rails for beginners

Ruby on Rails, advanced level

Testing

Other frameworks and tools

Blogs

Screencasts and courses

Other Learning Materials

  • TryRuby — online Ruby console and 15 minute interactive Ruby tutorial.
  • Project Euler — a huge amount of programming problems to learn any language.
  • PuzzleNode — a site for coders who enjoy to work on challenging problems, and is inspired by similar efforts such as Project Euler and the Internet Problem Solving Contest.
  • Ruby on Rails Guides — These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.
  • Ruby Koans — will walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language.
  • RubyMonk — free, interactive tutorials to help you discover Ruby idioms, in your browser!
  • SitePoint — articles on Ruby programming.
  • Better Specs — RSpec best practices.
  • Sourcegraph — search engine for code examples/ Here is a demo video.

Style Guides

Podcasts

Tools

IDEs and text editors

  • StackOverflow: What Ruby IDE do you prefer?
  • Sublime Text — one of the best text editors for coding. Here are some essential add-ons:
    • Package Control — Sublime Text package manager that makes it exceedingly simple to find, install and keep packages up-to-date.
    • Soda Theme — dark and light custom UI themes for Sublime Text.
    • RSpec plugin
    • ApplySyntax — a plugin for Sublime Text 2 and 3 that allows you to detect and apply the syntax of files that might not otherwise be detected properly. For example, files with the .rb extension are usually Ruby files, but when they are found in a Rails project, they could be RSpec spec files, Cucumber step files, Ruby on Rails files (controllers, models, etc), or just plain Ruby files. This is actually the problem I was trying to solve when I started working on this plugin.
    • BeautifyRuby — beautifies Ruby code.
    • Sublime Ruby Debugger — a debugger plugin for interactive ruby and RoR debugging on Sublime Text.
    • All Autocomplete — extends the default autocomplete to find matches in all open files.
    • ChangeQuotes — converts single to double or double to single quotes. Attempts to preserve correct escaping, though this could be improved I'm sure.
    • CoffeeScript — syntax highlighting and checking, commands, shortcuts, snippets, compilation and more.
    • SideBarEnhancements — provides enhancements to the operations on Sidebar of Files and Folders.
    • BracketHighlighter — bracket and tag highlighter for Sublime Text.
  • RubyMine — intelligent Ruby and Rails IDE.
  • Atom - a brand-new hackable text editor from Github.

Environment management

  • rbenv — a tool to to pick a Ruby version for your application and guarantee that your development environment matches production. Put rbenv to work with Bundler for painless Ruby upgrades and bulletproof deployments.
  • RVM — a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Ruby distributions

  • RubyInstaller — a self-contained Windows-based installer that includes the Ruby language, an execution environment, important documentation, and more.
  • RubyStack — a complete development environment for Ruby on Rails that can be deployed in one click. It includes the latest stable release of Ruby, RVM, Rails, Apache, NGinx, MySQL, SQLite, Git and Subversion, Memcache and Varnish, Sphinx, PHP and phpMyAdmin.

Documentation

  • Dash — an API Documentation Browser and Code Snippet Manager. Dash stores snippets of code and instantly searches offline documentation sets for 150+ APIs, including Ruby core libraries, and Ruby on Rails.
  • Zeal – Dash alternative for Linux & Windows.

Application and Web Servers

  • Unicorn – Rack HTTP server for fast clients and Unix.

  • Phusion Passenger — a fast and robust web server and application server for Ruby, Python and Node.js.

  • Thin – A very fast & simple Ruby web server.

  • Puma — a Ruby web server built for concurrency.

  • Pow! — a zero-config Rack server for Mac OS X.

    • Powder — user-friendly CLI wraper for Pow.
    • Powify — a management tool for Pow by 37 signals. It allows you to easily install, update, and manage pow and pow applications seamlessly.
  • The Ruby Web Benchmark Report (July 2014) — „I benchmarked every single version of Ruby available as of the beginning of this test — January 2014. On each version I benchmarked every Rack server and web framework combination I could find. I tested with both Apache Bench and wrk to see if there are flaws that one benchmarking tool picks up on that the other didn’t. The goal of the benchmark is the fastest benchmark run, not the average.“

Deployment Automation and Configuration Management

  • Capistrano — remote multi-server automation tool.
  • Chef — a systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
  • Mina – really fast deployer and server automation tool.

Other tools

  • Pry — an IRB alternative and runtime developer console.
  • Reek — code smell detection for Ruby.
  • Foreman — manage Procfile-based applications.
  • Rubular — a Ruby-based regular expression editor. It's a handy way to test regular expressions as you write them.
  • httpie — extremely handy command line HTTP client, a user-friendly cURL replacement.
  • ngrok — introspected tunnels to localhost. ngrok creates a tunnel from the public internet (http://subdomain.ngrok.com) to a port on your local machine. You can give this URL to anyone to allow them to try out a web site you're developing without doing any deployment.
  • eye — a process monitor.

Quizes, tests, exams

  • codequizzes.com — learn programming by doing, not by reading.
  • codewars.com — achieve mastery through challenge.
  • Smarterer.com — crowdsourced tests for Ruby, Rails, and a lot of other technologies.
  • oDesk — a global freelance platform that includes qualification testing for programming languages and frameworkks.

Gems

Web Frameworks

  • Ruby on Rails — an open source full-stack framework web application framework.
  • Sinatra — a DSL for quickly creating web applications in Ruby with minimal effort.
  • Padrino — a Ruby framework built upon the Sinatra web library, created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes Sinatra great!
  • Cuba — a microframework for web development originally inspired by Rum, a tiny but powerful mapper for Rack applications. It integrates many templates via Tilt, and testing via Cutest and Capybara.
  • Lotus — a complete MVC web framework.

Benchmark results for different Ruby, web framework and app server combinations (actual on July 2014).

API

  • RABL — a Rails and Padrino ruby templating system for generating JSON, XML, MessagePack, PList and BSON.
  • Grape — an opinionated micro-framework for creating REST-like APIs in Ruby.
  • Pliny – write excellent APIs in Ruby.

Rails

  • Simple Form — forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
  • ResqueMailer — Rails plugin for sending asynchronous email with ActionMailer and Resque.
  • Paperclip — easy file attachment management for ActiveRecord.
  • Peek — status bar with debug information for Rails apps.
  • Jammit — an industrial strength asset packaging library for Rails, providing both the CSS and JavaScript concatenation and compression that you'd expect, as well as YUI Compressor, Closure Compiler, and UglifyJS compatibility, ahead-of-time gzipping, built-in JavaScript template support, and optional Data-URI / MHTML image and font embedding.
  • Thinking Sphinx — a library for connecting ActiveRecord to the Sphinx full-text search tool, and integrates closely with Rails (but also works with other Ruby web frameworks).
  • CarrierWave — classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks.
  • Kaminari — clean, powerful, customizable and sophisticated paginator for modern web app frameworks and ORMs.
  • dotenv — loads environment variables from .env file into ENV in development.
  • suspenders — a Rails template with Thoughtbot standard defaults, ready to deploy to Heroku.
  • High Voltage — easily include static pages in your Rails app.
  • email_validator — an email validator for Rails 3 and 4.

Rack

  • Rack::Timeout — abort requests that are taking too long.
  • Rack::Protection — protects against typical web attacks. Should work for all Rack apps, including Rails.

Authentication and Authorization

  • Devise — flexible authentication solution for Rails with Warden.
  • OmniAuth — a flexible authentication system utilizing Rack middleware.
  • CanCanCan — a continuation of the dead. CanCan project. Our mission is to keep CanCan alive and moving forward, with maintenance fixes and new features.
  • Authlogic — a clean, simple, and unobtrusive ruby authentication solution.
  • Pundit — minimal authorization through OO design and pure Ruby classes.

Message Queuing

  • AMQP — EventMachine-based RabbitMQ client.
  • Bunny — RabbitMQ Ruby client based on AMQP gem.
  • Stalker — a minimalist queuing DSL for Beanstalk.

Background Jobs

  • Backburner — a beanstalkd-powered job queue that can handle a very high volume of jobs.
  • Delayed::Job — database backed asynchronous priority queue.
  • Minion — simple job queue over AMPQ (based on AMQP gem and Bunny).
  • Qu — a Ruby library for queuing and processing background jobs.
  • que — a Ruby job queue that uses PostgreSQL's advisory locks for speed and reliability.
  • Resque — a Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later.
  • Sidekiq — a full-featured background processing framework for Ruby. It aims to be simple to integrate with any modern Rails application and much higher performance than other existing solutions.
  • Sucker Punch — an asynchronous processing library using Celluloid, heavily influenced by Sidekiq and girl_friday.

Scheduling

(info collected from Stack Overflow)

  • rufus-scheduler — an in-process, in-memory scheduler with no persistence, accepting at, in, cron and every jobs.
  • sidekiq-cron — scheduler based on rufus-scheduler and Sidekiq (Redis based message queue) for persistence. Inherits web UI from Sidekiq.
  • sidekiq-scheduler — one more job scheduler based on rufus-scheduler and Sidekiq.
  • resque-scheduler — rufus-scheduler + Resque.
  • Clockwork — a cron replacement. It runs as a lightweight, long-running Ruby process which sits alongside your web processes (Mongrel/Thin) and your worker processes (DJ/Resque/Minion/Stalker) to schedule recurring work at particular times or dates. Here is a blog post with more details.
  • Whenever — a Ruby wrapper for crond, with a clear syntax (each job is a separate process).

Security

  • Brakeman — a static analysis security vulnerability scanner for Ruby on Rails applications.
  • Codesake::Dawn - Codesake::Dawn is a security source code scanner for ruby powered code. It is especially designed for web applications, but it works also with general purpose ruby scripts. Codesake::Dawn supports all major MVC frameworks like ruby on rails, Padrino and Sinatra; it provides more than 170 security checks with their own mitigation suggestion.

Graphics

  • RMagick — an interface to the ImageMagick and GraphicsMagick image processing libraries.
  • MiniMagick — a ruby wrapper for ImageMagick or GraphicsMagick command line.
  • psd.rb Parse Photoshop files in Ruby with ease

Parsers

HTML, XML

  • Nokogiri — an HTML, XML, SAX, and Reader parser. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors.

CSS

  • LESS — leaner CSS, in your browser or Ruby.
  • Bourbon — alightweight mixin library for Sass.
  • SASS — an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.
  • Bitters — add a dash of pre-defined style to your Bourbon.

Markdown

Template engines

  • Mustache — logic-less Ruby templates. A framework-agnostic way to render logic-free views.
  • HAML — a very compact markup language, that accelerates and simplifies template creation down to veritable haiku.
  • Slim – a templating language that reduce the syntax to the essential parts without becoming cryptic.

Logging

  • MonoLogger — a lock-free logger for Ruby 2.0.
  • Yell — Your Extensible Logging Library, a comprehensive logging replacement for Ruby.
  • Fluentd — an open source data collector designed for processing data streams, which instantly enables you to have Log Management, Big Data Analytics, etc.
  • mongodb_logger — an alternative logger for Rails or Rack based app, which log all requests of you application into MongoDB database (allow to store and search any information from logs; web panel allow filter logs, build graphs using MapReduce by information from logs).
  • Hatchet — logging library that provides the ability to add class/module specific filters.
  • Whoops — a free, self-hosted tool for logging application events like errors or background worker completion (uses Rails for web frontend and MongoDB).

SDK, API Wrappers, Service Clients

  • Yt — YouTube API Ruby client.
  • Dropbox Core API for Ruby.
  • AWS SDK — Amazon Web Services API for Ruby.
  • PayPal — this SDK provides Ruby APIs to create, process and manage payment.

Testing

  • RSpec — RSpec meta-gem that depends on the other components.
  • rspec-rails — Rails integration for RSpec.
  • Cucumber — a tool for running automated tests written in plain language.
  • shoulda
  • factory_girl — a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class, including factory inheritance.
  • factory_girl_rails — Rails integration for factory_girl.
  • Capybara — a tool helping you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem.
  • capybara-webkit A Capybara driver for headless WebKit so you can test JavaScript web apps.
  • Formulaic — simplify form filling with Capybara.
  • Mocha — a Ruby library for mocking and stubbing.
  • Spring — Rails application preloader to speeds up development by keeping your application running in the background so you don't need to boot it every time you run a test, rake task or migration.
  • Faker — a library for generating fake data such as names, addresses, and phone numbers.

Profiling

  • ruby-prof — a code profiler for MRI rubies.
  • Timecop — a gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
  • timecop-console — expose Timecop's capabilities to the UI in your rails app, allowing QA to take advantage of it.

Misc

  • Prawn — fast, nimble PDF generation.
  • Dalli — high performance Memcached client for Ruby.
  • Active Merchant — a simple and unified API to access dozens of different payment gateways with very different internal APIs.
  • EventMachine — fast, simple event-processing library.
  • rpush — push notification service, supporting Apple Push Notification Service, Google Cloud Messaging, Amazon Device Messaging, Windows Phone Push Notification Service.
  • Rubyzip — reading and writing zip files.
  • JsonCompare — returns the difference between two JSON files.

About

Ruby and Ruby on Rails bookmarks collection