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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Have you ever deployed Ruby apps to OpenShift PaaS? Wandering what’s behind OpenShift 3 Ruby images and how to use them to build your application images with one s2i command without writing any Dockerfile? Read my latest post.
Parker Selbert explains why Postgres window functions are helpful, how to implement them and use tests to drive a switch from pure Ruby to a window function.
Themis is a mobile-to-backend cryptographic services library, which has a wrapper in Ruby. We wrote a nice tutorial on armoring classical Mobile Websocket Example (a Ruby chat server with clients for iOS and Android) with Themis cryptography.
Long story short, Celluloid versions 0.17+ have a memory leak. More info.
Ruby is a wonderfully flexible language. An example of this flexibility is in the ability to define a custom collection class that acts as an Enumerable object. In Ruby, a collection that acts as an Enumerable is basically a class which holds a list of objects and exposes helpful methods for iteration and collection. An example of this pattern built into Ruby is the Array class. Creating your own Enumerable is as simple as including a module and defining a few crucial methods.