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.
tty-editor initial release
tty-editor allows to open a file or text in in the user’s preferred editor.
Ruby Survey
I’ve been thinking a lot lately and was curious to get some feedback from other Ruby developers, past or present. If you have time, I’d love to get your feedback: https://jmcharnes.typeform.com/to/ot2Pnx
Asynchronous programming in Ruby
In this blog, I have executed database queries asynchronously same as Node.js https://medium.com/@gauravbasti2006/async-mongo-queries-in-ruby-96a31b48b8f3#.v1hjjnke4
pluck_all gem
pluck_all: Pluck multiple attributes in Rails 3, 4, 5, and return data as hash instead of only array. [more inside]
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. https://lucaguidi.com/2016/12/27/isolate-global-state.html
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. https://blog.active-bridge.com/image-zoom-on-pure-css
Adding Libnotify to Minitest
Create plugin for libnotify for your minitest suite http://sirfilip.github.io/minitest-notify