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.
New blog article: Web applications on Phusion Passenger are not vulnerable to HTTPoxy
We wrote a short blog article on how HTTPoxy can affect web application security, why applications on Passenger are not vulnerable and why Ruby apps in general are not vulnerable. Read about it here
New gem for the Gyft API
I have a little project that required me to work with the Gyft developer API. As there was no gem yet I decided to build one.
Ruby compiled code in Rubinius
A small post about how to compile one script and require the compiled version in Rubinius. http://gzfrancisco.name/code/2016/07/20/ruby-compiled-code/
New Features in Ruby 2.4
Code examples for 15 new features and improvements coming in Ruby 2.4 https://blog.blockscore.com/new-features-in-ruby-2-4/
A new player in Rails CMS team
Happy to announce new open source Ruby on Rails CMS. Let’s build websites faster and simpler with KMS - https://github.com/webgradus/kms
Returning unique records from an ActiveRecord query
Introduced in Rails 4.1, #distinct is a nice addition which moves you one more step away from writing custom SQL statements in your Rails project. https://christoph.luppri.ch/articles/2016/07/20/returning-unique-records-from-an-activerecord-query/
Clean up your routes with Sinatra::Namespace
After fighting with Sinatra::Namespace for a few weeks, the build is finally green! Since then, I’ve added some documentation for writing your Sinatra routes in a modular fashion and wanted to share that here too. Read on!
Post Rails-Way Book Bundle
Together with other book/video authors, we’ve decided to create a Post Rails Book Bundle. The theme of the bundle is all things which are beyond “The Rails Way”. The offer is time-limited and ends on Friday this week. [more inside]
Rails: Namespacing our Controllers Parts 1 and 2
In these (part 1, part 2) videos we show you how to namespace your controllers. Namespacing your controller can help keep your monolith application clean and manageable.
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/