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.
mandriller 0.1.0 release!
I just released mandriller 0.1.0. It’s a simple gem for Mandrill SMTP API integration. Just replace ActionMailer::Base to Mandriller::Base, then put some lines for settings!
rufus-lua 1.1.1 released
Just released rufus-lua 1.1.1, a Ruby - Lua (5.1.x) bridge. This release includes work and ideas from Matthew Nielsen and Nathanael Jones, many thanks to them.
My Dilemma Of Semantic Versioning
Following a progressive path when developing gems and following semantic versioning results in fast-growing major version numbers. With two examples I explain my dilemma and open the discussion for proper versioning of Ruby gems.
Screencast: Introducing Mutant
Short (15 minutes) video demonstrating the awesome mutation tester Mutant. [more inside]
Custom Video Players and Animating Videos in RubyMotion
In the previous episode we looked at CALayer and how easy it makes animating your views. We’re going to expand on this by looking at a class I mentioned at the end of that episode called AVPlayerLayer, and it’s buddy AVPlayer. Using these classes you can creating custom designed video players and animate them in the same ways that you can animate CALayer (because AVPlayerLayer is a subclass of CALayer), without making the video jump, it’s all very smooth. [more inside]
ITTIA DB SQL Receives "Editor's Choice Award" From Embedded Computing Design
ITTIA DB SQL is selected as an “Editor’s Choice Award” by the respected Embedded Computing Design magazine. ITTIA DB SQL continues “targeting embedded systems, mobile devices, and other Internet of Things (IoT) appliances that require non-stop access to data”, allowing manufacturers to benefit from relational model and SQL to build fast, scalable, reliable and highly available applications.
Testing Sinatra application methods in isolation with RSpec
A small blog post on how to test Sinatra application methods, without having to perform full requests. More isolation easier. Testing Sinatra application methods in isolation with RSpec
N+1 Series: Eager Loading with Active Record - Codemy
We show you some eager loading techniques in this ~ 13 minute video.
Gem Active Admin Jcrop
I’ve just developed this gem called Active Admin Jcrop that adds an image cropping functionality to Active Admin. I guess it’s really useful in many projects. GitHub RubyGems Hope you like it and please feel free to contribute :D [more inside]
ojogo gem - another world cup command line tool - who's playing today?
Hello, I’ve put together another command line tool for the World Cup 2014 in Brazil that lets you query the football.db HTTP JSON API and prints today’s matches. For example, typing on Jun/29 $ ojogo will print
Netherlands (NED) vs Mexico (MEX)
Costa Rica (CRC) vs Greece (GRE)
That’s it. More info. Cheers.
FastAttributes - fast way to define attributes with their types in your model
If you are looking for a gem which allows you to define attributes in your model and you care about performance, please check out fast_attributes. [more inside]
Duckpond Gem 1.2, now with added screencast!
I just launched DuckPond version 1.2 - it’s either a good idea or a horrible idea, I haven’t quite made my mind up yet! I also recorded a screencast which gives a quick run through of the functionality the gem provides.
Pushr 1.0.0 - Lightning fast push notifications for Android and iOS
Today I’ve released the first release of Pushr. Use Pushr to send push notifications using Redis to Android or iOS devices from Ruby or Rails applications. It’s fast and lightweight!
Optimizing Active Record Associated Record Count Queries With the belongs_to counter_cache Option
It is often useful to know how many records are associated with a model identified as being the parent in a belongs_to relationship. Active Record’s default behavior is to determine this number using a COUNT(*) query. Fortunately, you can avoid this additional costly query by caching the associated record account with a few simple modifications to your Rails application. Read the tutorial.
The beauty and ease of writing an engine application in Rails!
A quick tutorial for building a rails API as an engine. Rails API as an Engine.
The Vibe is back, alright!
The Vibe is back! After many weeks wandering lost in the wilderness, I present to you the new and improved (caveat: exactly the same) vibe. The weekly load down on what’s cool in the dev and tech world. Get a sense for what the vibe is….
If you explicitly expire cached fragments, opt out of cache digests
We upgraded a Rails 3 application to use Rails 4, and found that certain pages weren’t being updated as we expected. The problem was that cached fragments were no longer being expired properly. So we’ve written this blog post: If you explicitly expire cached fragments, opt out of cache digests.
Testing Pundit rails authorisation with RSpec
Authorisation is always an issue, have to be dealt carefully and often you start off with simple home made statements like user.admin?, etc. … I had to switch from a custom solution to a solid community proofed and backed solution. Find here my synopsis on testing Pundit with Rspec.
Managing Logs and Why Elasticsearch is Amazing!
Even though our logging system is considered to be a core piece of our hosting platform and even though we have very strict internal demands for keeping the system available and healthy, we still don’t have to do much to keep Elasticsearch up and running. While it’s incredibly configurable, we found that we haven’t had to deviate much from their sane defaults. So, given the ease of use of Elasticsearch, I found myself talking more about what it’s like to manage a lot of logs from a lot of sources, both software and hardware. Here are my slides if you’d like to follow along: Read more here.
Simple Ways to Protect an API
Let’s explore HTTP Basic Authentication and HTTP Token Authentication as simple solutions to protect an API from unauthorized access with examples in Ruby/Rails.
N+1 Series: Optimized Count with Joins and Custom Select - Codemy
We show you in a ~10 minute video how to do associations count without resorting to counter caches.
Get World Cup results on the command line
Henry Poydar has written the worldcup-2014 gem that provides command line access to World Cup 2014 information and results.