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.
The Ultimate Guide to HTTP Requests in Ruby
HTTP is the protocol that browsers & web servers use to communicate, so it’s important to understand if you want to write any kind of web application. In this article you’ll learn how to use HTTP in Ruby: https://www.rubyguides.com/2018/08/ruby-http-request/
Hanami v1.3.0.beta1
Switch to RSpec, deprecations, minor enhancements, and bug fixes. This will be the final minor version before 2.0. http://hanamirb.org/blog/2018/08/08/announcing-hanami-130beta1.html
csvpack - Work with tabular data packages (download, read into sql db, query, ...)
Hello, I’ve updated the csvpack (†) library / gem that let’s you work with tabular data packages in ruby. Download comma-separated values (CSV) datafiles in text - also known as tabular datafiles and read into any sql database (e.g. SQLite, PostgreSQL,…), query w/ ActiveRecord and more. Cheers. Prost. PS: You can find 100+ (starter) tabular data packages at the /datasets github org (thanks to the DataHub.io folks). (†): formerly known as datapak
Context Binding in Ruby
In this article we’re going to explore the following topics:
[Podcast] Ruby Rogues - Understanding Your Production Apps with Jared Norman
In this episode of Ruby Rogues, the panel talks to Jared Norman about understanding your production apps. Jared has been programming since he was about 10 years old and for the past 7 years, he has been doing Ruby. These days, he runs a consultancy company called Super Good Software doing Ruby on Rails stuff and mostly eCommerce. They talk about his article You Can’t Save Everyone: Some Exceptions Should Be Left Alone, when capturing exceptions is the right way to go, developing with good visibility in mind, and more! [more inside]
Changing the Way Ruby Creates Objects
Explore how Ruby creates and initializes objects, and how we can modify the default behavior in this edition of Ruby Magic! https://blog.appsignal.com/2018/08/07/ruby-magic-changing-the-way-ruby-creates-objects.html
A quick step-by-step guide on how to run Rails app on Digital Ocean
A quick step-by-step guide on how to run Rails app on Digital Ocean https://medium.com/@igorkhomenko/a-quick-step-by-step-guide-on-how-to-run-rails-app-on-digital-ocean-c44c97ab161e
Ruby 2.5 adds KeyError#receiver and KeyError#key
Learn about KeyError#receiver which returns receiver associated with the KeyError object & KeyError#key returns the key which caused the exception. https://crypt.codemancers.com/posts/2018-08-06-ruby-2-6-adds-key-error-receiver-key/
Fast Kubernetes client library
Based on excon, uses persistent HTTP connections and request pipelining. https://github.com/kontena/k8s-client
[Screencast] Improving Partial Loading Performance
N+1 queries can make an application slow. Having queries called within views can also slow down an app as well as making it less extendable. https://www.driftingruby.com/episodes/improving-partial-loading-performance
Generator, Yielder and Lazy enumerators in Ruby
In this article we’re going to explore the following topics:
I’ve created a free full-length course about building Rubyflow.com clone
The app source is also available on Github. READ MORE
Fix non set locale in path helpets in RSpec test files
This filter hook set the default locale for the filtered examples to get the correct path helpers. [more inside]
The Case of the Flaky Test Suite
In this story, Jason Swett of The Ruby Testing Podcast discusses the pitfalls of external dependencies in your test suites, and how to avoid them on the Honeybadger blog.
Back to the primitive - testing with simplicity
Our tests (same as our code) needs to be maintained and clean. Therefore we often try to reuse parts of application in the tests. This may lead to several problems that we may get away with if we just tested the most primitive objects we can like “Strings, Integers” etc. [more inside]
Run only recently modified specs
https://github.com/igorkasyanchuk/rrr do you want to run only recently changed specs? Here is a simple wrapper over “rspec” command can simplify your life.
Keep your API in Shape with Blueprint and JSON-Matchers
Keeping your API, API documentation, and API tests all sync can be a daunting task, here I cover how to use API Blueprint and JSON-Matchers to ease the process. Keep your API in Shape with Blueprint and JSON-Matchers
Should you build or buy microservices?
Many developers want to build a microservice because they can, but should they? This article looks at the costs of building versus buying to help CTOs make thoughtful decisions
Passenger 5.3.4: fixes crash on startup for BSD
Version 5.3.4 of the Passenger app server for Ruby, Node.js, Meteor and Python has just been released. This release contains fixes for a bug that crashed Passenger on BSDs, as well as the handling of chunked bodies when PassengerBufferUploads is off. Release notes and installation instructions: https://blog.phusion.nl/2018/08/01/passenger-5-3-4/
Client-Side Validation Powered By ActiveRecord
How to expose validation logic from the server to power client-side validations: https://medium.com/@ccschmitz/client-side-validation-powered-by-activerecord-6d8c1fed4e6