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

RabbitMQ ruby clients: bunny, amqp, march_hare, rabbitmq_http_api_client, amq-protocol 1. bunny Bunny is a popular, easy to use, mature Ruby client for RabbitMQ (3.3+) http://rubybunny.info 1.1 Bunny, a Ruby RabbitMQ Client Bunny is a RabbitMQ client that focuses on ease of use. It is feature complete, supports all recent RabbitMQ features and… Continue Reading Ruby Gems – RabbitMQ ruby clients: bunny, amqp, march_hare, rabbitmq_http_api_client, amq-protocol

Daemons provides an easy way to wrap existing ruby scripts (for example a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands. If you want, you can also use daemons to run blocks of ruby code in a daemon process and to control… Continue Reading Ruby Gem – thuehlinger/daemons

a Ruby Gem for using aliyun sms service. 一个应用阿里云短信推送服务的Ruby Gem。 Aliyun::Sms 阿里云短信服务 Ruby Gem aliyun-sms 用于阿里云短信服务的 Ruby Gem. 使用这个 Gem 的前提是已经在阿里云注册用户,申请开通了短信服务, 并获得了以下几个关键参数: ACCESS_KEY_SECRET: 阿里云接入密钥,在阿里云控制台申请获取。 ACCESS_KEY_ID: 阿里云接入 ID, 在阿里云控制台申请获取。 SIGN_NAME: 短信签名,在阿里云申请开通短信服务时获取。 TEMPLATE_CODE: 短信模版代码,在阿里云申请开通短信服务时申请获取。 1. Installation 安装 Rails 应用安装方法 在应用的 Gemfile 文件中添加 Ruby Gems 安装源: gem ‘aliyun-sms’ # Ruby Gems 安装源 应用的根目录下运行:… Continue Reading Ruby Gem – VICTOR-LUO-F/aliyun-sms

git-redmine-commit git commit with redmine issue id. With this tool, you can do a git commit with a redmine issue id. The message of the commit is filled with the title of the issue automatically. With this tool, you can do a git commit with a redmine issue id. The… Continue Reading Ruby Gem – robin/git-redmine-commit or atyun/git-redmine-commit

Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets easily from ActiveRecord relations, Plain Ruby classes, or predefined data. Key Features: Can generate headers & columns from ActiveRecord column_names or a Class/Model’s spreadsheet_columns method Dead simple custom spreadsheets with custom data Data Sources: ActiveRecord… Continue Reading Ruby Gem – westonganger/spreadsheet_architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data

Go faster, off the Rails – Benchmarks for your whole Rails app. A series of things you can use to benchmark a Rails or Ruby app. https://github.com/schneems/derailed_benchmarks 1. Install Put this in your gemfile: gem ‘derailed_benchmarks’, group: :development Then run $ bundle install. While executing your commands you may need… Continue Reading Ruby Gem – schneems/derailed_benchmarks

ruby-prof: a code profiler for MRI rubies https://github.com/ruby-prof/ruby-prof 1. Overview ruby-prof is a fast code profiler for MRI Ruby. Its features include: Speed – it is a C extension and therefore many times faster than the standard Ruby profiler. Modes – Ruby prof can measure a number of different parameters,… Continue Reading Ruby Gem – ruby-prof/ruby-prof

Rails cache with locale在Rails视图中自动添加当前应用程序区域设置(I18n.locale)作为缓存键的一部分。 Original: https://github.com/igorkasyanchuk/cache_with_locale Rails cache with locale Automatically adding current application locale (I18n.locale) as a part of caching key in Rails views. Problem & Solution For example you have: Rails app with different locales you want to add fragment caching in views When you have a different locales… Continue Reading [Reproduce]Rails cache with locale automatically adding current application locale (I18n.locale) as a part of caching key in Rails views.