Original: https://github.com/digaev/stale_options StaleOptions    A gem for caching HTTP responses. The gem was built with an idea to implement a class which will create options for ActionController::ConditionalGet#stale? method. It allows to cache any kind of object, not only record or collection (unlike of #stale?). Installation Usage Caching options Examples Controller helpers Contributing License Installation… Continue Reading [Reproduce]Ruby Gem – digaev/stale_options: A Ruby gem for caching HTTP responses

Original: https://github.com/janko-m/down Down Down is a utility tool for streaming, flexible and safe downloading of remote files. It can use open-uri + Net::HTTP, HTTP.rb or wget as the backend HTTP library. Installation gem “down”, “~> 4.4” Downloading The primary method is Down.download, which downloads the remote file into a Tempfile: require “down” tempfile = Down.download(“http://example.com/nature.jpg”) tempfile #=> #<Tempfile:/var/folders/k7/6zx6dx6x7ys3rv3srh0nyfj00000gn/T/20150925-55456-z7vxqz.jpg> Metadata… Continue Reading Ruby Gem – janko-m/down: Streaming downloads using net/http, http.rb or wget

When testing Rails applications, two of the most significant performance bottlenecks are accessing the database and loading Rails itself. RSpec Mocks and other mocking frameworks give us the tools to avoid these bottlenecks by allowing us to mock our Rails models, but doing so can be tedious. 1. ActiveMocker ActiveMocker… Continue Reading Ruby Gem – zeisler/active_mocker

A small gem to lubricate your testing workflow with prettier than usual diffs. Enable fancy colored diffs in your minitest assertions https://github.com/angelkar/pretty-diffs 1. Motivation When you make assertions between large strings with Minitest, for example JSON responses, it is laborious to identify what has changed. The usual workflow involves copy-pasting… Continue Reading Ruby Gem – angelkar/pretty-diffs

ComfortableMexicanSofa ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine      Features Simple drop-in integration with Rails 5.2+ apps with minimal configuration CMS stays away from the rest of your application Powerful page templating capability using Content Tags Multiple Sites from a single installation Multi-Language Support (i18n) (ca,… Continue Reading Ruby Gem – comfy/comfortable-mexican-sofa: ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine

Original: https://github.com/hspazio/elastic_notifier ElasticNotifier    ElasticNotifier gem provides a simple API to send error notifications to an Elastic Search instance. It can also be used as plug-in for exception_notification gem to send error notifications caught by the Rack middleware. Installation Add this line to your application’s Gemfile: gem ‘elastic_notifier’ And then execute: $ bundle… Continue Reading Ruby Gem – hspazio/elastic_notifier: A Ruby exception notifier for ElasticSearch

feedparser library – Read Web Feeds in XML, HTML, JSON, TXT and More; Build Your Own News Reader from Scratch in Twenty Lines feedparser/feedparser: feedparser gem – (universal) web feed parser and normalizer (XML w/ Atom or RSS, JSON Feed, HTML w/ Microformats e.g. h-entry/h-feed or Feed.HTML, Feed.TXT w/ YAML,… Continue Reading Ruby Gem – feedparser/feedparser

Packing your Ruby application into a single executable. http://enclose.io 1. Ruby Packer Packing your Ruby application into a single executable. 1.1 Features Works on Linux, Mac and Windows Creates a binary distribution of your application Supports natively any form of require and load, including dynamic ones (e.g. load(my_path + ‘x.rb’) Features… Continue Reading Ruby Gem – pmq20/ruby-packer

Mountable Rails Engine for viewing paginated logs from a browser 1. Installation Add this line to your application’s Gemfile: gem ‘logs’ And then execute: $ bundle 2. Mount Engine: config/routes.rb Rails.application.routes.draw do mount Logs::Engine => ‘/logs’ end 3. Screenshot References kirillshevch/logs: Mountable Rails Engine for viewing paginated logs from a… Continue Reading Ruby Gem – kirillshevch/logs

ActiveRecord::MTI ActiveRecord support for PostgreSQL’s native inherited tables (multi-table inheritance) Compatible with ActiveRecord 4.0, 4.1, 4.2, 5.0, 5.1 Confirmed production use in 4.2 1. Usage Add this line to your application’s Gemfile: gem ‘active_record-mti’ And then execute: $ bundle Or install it yourself as: $ gem install active_record-mti 2. Application… Continue Reading Ruby Gem – TwilightCoders/active_record-mti