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.
Ruby 2.2.3 Enumerator Basics : Part 1
Ruby 2.2.3 Enumerator methods such as each_with_object, next, next_values and feed. What it here
Using OpenShift s2i Docker images to build Ruby application containers
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.
Cropping with Carrierwave
Wrote up a quick post with an example of how to make use of imagemagick’s crop functionality through Carrierwave. Link.
Ruby 2.2.3 Hash Basics : Part 4
Ruby 2.2.3 hash methods such as default proc, delete, delete_if, each and each_key. Watch it here
Ruby 2.2.2 Array Basics : Part 12
Ruby 2.2.3 methods such as zip, values_at, unshift, uniq! and to_h. Watch it here
Released image_processing gem
I extracted image processing from refile-mini_magick into the image_processing gem, with the goal of having generic helper methods for image processing which can be used in any project.
Pinterest API gem
Pinterest finally opened up their rest API out of beta late last week. Here is a ruby gem to interact with it: Lots of devs have been waiting for this API so hopefully the gem will be a big help to start playing with it!
Recurring Jobs with Clockwork and Volt
I built a realtime Bitcoin price monitor in Volt using the “clockwork” gem for recurring jobs. Check it out!
mandrill_mailer 1.1.0
Nothing earth-shattering in this new version aside from a few useful RSpec custom matchers but it looks like few people knew we reached 1.0 (which brought support for mandrill_api 1.0) recently so I thought I’d let you good folks know about it. :-)
What happened to RailsBricks?
RailsBricks is gone and people are asking why.
Upcoming Ruby Conferences - October 2015 Edition - Live Version Try $ rubyconf
Hello, For you convenience the upcoming Ruby Conferences as listed with the whatson gem and the included rubyconf command line tool (for a live version try $ rubyconf): Read more
Stepwise Refinement
Seattle Ruby’s Lazy Professor problem solved using Stepwise Refinement. Read it here
Ruby 2.2.3 Class Basics : Part 1
Ruby 2.2.3 methods such as alias, creating class dynamically, superclass, allocate and new methods. Watch it here
Gem Warrior - RubyGem text adventure
I created a text adventure as my first game, and decided to do it as a RubyGem. Here’s my final wrapup of the process.
Login as any user with any_login gem (Devise + now with Authlogic)
Hello, here is an updated version of any_login gem. Now you can quickly login as any user in system: https://github.com/igorkasyanchuk/any_login Read more
Bubble Sort Visual Demo
Watch it here
Folding Postgres Window Functions into Rails
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.
Rails 4 - Sample API application
Here’s the code of a sample API built with Rails 4 and a web app consuming it.
Building encrypted chat service for iOS, Android and Ruby
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.
Instrumenting Your Cache With Notifications
An exploration of instrumentation in Rails, beyond raw metrics. Learn how to measure everything your cache is doing with ActiveSupport::Notifications.
Why you should upgrade Celluloid ASAP to 0.17.2 (or downgrade to 0.16.0)
Long story short, Celluloid versions 0.17+ have a memory leak. More info.
How to Create a Custom Enumerable
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.
Ruby 2.2.2 Array Basics : Part 11
Ruby 2.2.2 Array methods such as sort, take, take_while, uniq, transpose, to_h and transpose. Watch the video here.
Building a JSON API with Rails 5
Learn how to build a JSON API with Rails and take advantage of the rails-api gem, which, starting with Rails 5, now comes built in.
Lotus v0.5.0
Mailers, custom coercions, command / query separation, improvements RailsGirls Summer of Code & Hack day! Read more