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.
Hiding secrets in Vault
Stop storing your secrets in git and make your applications secure. I have written a blog post how to setup your own production-grade system, scalable system for managing secrets. https://infinum.co/the-capsized-eight/articles/hiding-secrets-in-vault
PureCDB - 32 and 64 bit CDB files in pure Ruby
PureCDB is a pure Ruby implementation of Bernsteins CDB format. It supports both reading and writing both standard 32 bit CDB files (limited to 4GB) and extended 64 bit CDB files which can be bigger. Uses ffi-mmap to mmap() the files on reading.
FFI based Mmap gem
ffi-mmap is a very bare-bones Mmap implementation using FFI instead of a C extension. I wrote this for a project when I realised the old mmap extension wouldn’t compile on the version of Ruby I was testing my project on.
Continuously check your Ruby dependencies
I just recently launched Dependency CI, it has great support for Ruby dependencies and it’s completely free for open source projects too.
How to get notified when your test suite is done running
This trick will interrupt you when your tests are finished, letting you know it’s time to get back to coding. [more inside]
Writing a middleware for your Sinatra app
Follow this tutorial to create a middleware yourself. [more inside]
How to generate non predicable alphanumerical ids in Rails?
In many applications you generate ids that are visible to customers or used in links. Rails by default uses sequential integers which are easily guessable. Here’s a short summary of gems you can use to create non-predictable, YouTube-like identifiers in your app.
How can Ruby on Rails benefit your web applications?
Everyone wants to maximize efficiency and your software development too should push you ahead instead of pulling you back. Ruby on Rails with its faster iteration and great utility puts it way ahead of other programming languages. Check out how Ruby on Rails can benefit your web application Read More
Grill.rb 2016 – Poland’s first Ruby outdoor conference review
If you’ve missed first Poland’s outdoor conference, here’s my review of the whole event.
Refinery CMS 3.0.4 released
v3.0.4 has been released, most important changes: allowed finders to be defined for each action, Improved HTML sanitizer, fixed multiple locales sitemap generator, fixed heroku generator. You can read the blog post for more informations: Refinery CMS 3.0.4 Released
AutoReloader: A transparent code reloader for Ruby
These days I’ve published auto_reloader, a transparent code reloader for Ruby and wrote about the reason in this article.
A Review of Code Reloaders for Ruby
I’ve just written a review of code reloaders for Ruby, which is specially useful for non Rails web apps.
Implementing & Testing SOAP API clients in Ruby
The bigger your application, the more likely you will need to integrate with less common APIs. This time, we are going to discuss implementing & testing communication with SOAP based services. It’s no big deal. Still better than gzipped XMLs over SFTP (I will leave that story to another time).
A Cheatsheet of Ruby Version Changes
I went over the changelog of every Ruby 2.x release & compiled the most important changes. http://www.blackbytes.info/ruby-version-changes/
Summary of Phoenix workshop for Rails team
Here’s how I’ve made the first step into introducing Elixir and Phoenix to our Rails development team at VIsuality. Read more on Phoenix on Rails blog.
[Screencast] ActionCable - Part 2 - More Complex Example
Extending the previous episode, we look into making a realtime poll application where users can get live feedback on voting. https://www.driftingruby.com/episodes/actioncable-part-2-more-complex-example
Partial Downloads with Enumerators and Fibers
When developing Shrine, I needed to determine the MIME type of a remote file. Since this information is written only in the beginning of the file, I wanted to avoid having to download the whole file. So I wanted to share with you how I managed to have only an arbitrary part of a remote file downloaded using net/http.
Isolate Side Effects – Functional Style in Ruby
In this article, we’ll look at what side effects are, why they are problematic despite being necessary, and how to isolate them to minimise their drawbacks.
Exception Notification v4.2.1
v4.2.1 hast just been released, fixing the webhook notifier and improving the Slack one! https://rubygems.org/gems/exception_notification/versions/4.2.1
tty-prompt v0.7.0
New version of tty-prompt allows to customise keyboard interrupt handler and fixes issue when reading keyboard key press events on OSX. Enjoy!
Technical Error in Sandi Metz Rails Conf 2016 Presentation
See how Sandi Metz commits one of the TDD beginner’s mistake in her RailsConf 2016 - Get a Whiff of This presentation.
Partial template name need not be a valid Ruby identifier in Rails 5
Always present association
Recently my colleague showed my a little trick that I found to be very useful in some situations. It’s nothing fancy or mind-blowing or unusual in terms of using Ruby. It’s just applied in a way that I haven’t seen before. It kind of even seems obvious after seeing it :) [more inside]
Rails: Working with Flash Messages (video)
We need to be able to inform our users if they are doing something wrong. This is where flash messages come in. In this episode we show you how to implement flash messages cleanly in your application.