The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
AppPerf - Open source ruby performance monitoring
I have made some significant updates to my AppPerf platform. [more inside]
The 15 most popular Ruby links of 2016
A round-up of the most popular links shared in Ruby Weekly in 2016.
BetterSJR v1.0.0 released!
BetterSJR is a Ruby gem which adds error message reporting to SJR templates. Instead of failing silently, you now get helpful error messages in your browser’s developer console. For more info and use-cases check the official announcement.
GraphQL in Rails 5
Checkout the latest screencast on using GraphQL in Rails 5 [more inside]
TDD'ing creation of Brainfuck interpreter in Ruby
You can follow the TDD process by looking at the commits history or see the end result.
Creating Advanced Active Record DB Queries with Arel
Under the hood, Active Record has its own private API to build database SQL queries: Arel. For now, let’s focus on passing in custom-built Arel queries. Read more
File-replicator gem
file-replicator gem ads two command line executables to your toolbox, one that splits files and another to put them back together. They have a good initial set of options that makes them flexible enough for almost anybody. Though they are meant to work as a team, those two are not magicians and other tools can work on their product too.
Wannabe Bool gem
If string, numeric, symbol and nil values wanna be a boolean value, they can with the new to_b method. Moreover, you can use WannabeBool::Attributes module to create predicate methods in your classes. [more inside]
make_model_searchable v0.2.1 release
make_model_searchable adds simple searching functionality to active record models. No need to implement same search function for each model every time! [more inside]
pastel v0.7.0 release
Newest pastel fixes color capabilities detection and support on Windows. Make them strings colourful!
tty-color v0.4.0 release
The new version tty-color fixes both mode and color? to work on Windows systems without printing warnings and errors.
i18n-tasks v0.9.8 adds key refactoring
i18n-tasks v0.9.8 adds the long-awaited support for moving, merging, and removing keys from the command line via the new mv command! [more inside]
Isolate Global State
Global state is handy for development, but evil to maintain. We’ll learn from Hanami source code how this was a problem and how we fixed it.
Another take on Primitive Obsession
Primitives like Array and Hash are not always the right choice. This post (#1 in a series of… probably only 2) outlines why you really do need to create custom collection classes. [more inside]
[Screencast] Sidekiq on Production
Sidekiq is a Ruby Background Processor that manages its queue with a Redis service. Learn to deploy Sidekiq to your production environment. https://www.driftingruby.com/episodes/sidekiq-on-production
How to zoom image with pure JavaScript
I believe that every shopping website has ability zoom the product image. All of them are using jQuery plugins such as jQuery Zoom or EasyZoom After I think how would I implements this plugin I realized that we do not need jQuery for that. So let us go step by step and implement image zoom without jQuery.
Adding Libnotify to Minitest
Create plugin for libnotify for your minitest suite
What's new in Ruby 2.4?
Ruby 2.4.0 has just been released. In this post, we will look at some of the interesting new features in Ruby 2.4.
AnyChart JS Charts released 2 integration templates for data visualization with Ruby
AnyChart JS Charts has just released 21 integration templates that facilitate adding interactive JavaScript-based charts, maps, stock graphs, Gantt charts, and dashboards to HTML5 apps, no matter what technology stack is used. In particular, there are 2 special templates for Ruby on Rails:
Safer Rails database migrations with Soundcloud's Large Hadron Migrator
Learn how to handle migration in big tables without causing deadlocks in your applications using Soundcloud’s solution
PropertyWebBuilder - Open Source site builder for realtors / estate agents
Finally, an alternative to WordPress for creating real estate websites quickly. Can be deployed to heroku in minutes.