Issues » 105

Previous issues | Read this issue on the Web
Ruby Weekly Issue 105
August 9, 2012
'Refinements' Added to Ruby Trunk
Floating around as an idea for a couple of years now, 'refinements' extend the functionality of classes within a certain module namespace. Performance issues have kept them from being readily accepted but Shugo Maeda has added to the latest MRI Ruby trunk as an experimental feature.
JRuby 1.7.0 Preview 2 Released
JRuby 1.7 is shaping up to be a big release (one big part is the default runtime mode is Ruby 1.9.3). So big, in fact, they really want to get it right and have another preview release for you to try. Be sure to report any bugs.
From Our Sponsor
Why Rails 4's 'Live Streaming' Is A Big Deal
Phusion are excited about the new 'live streaming' features in Rails (announced last week) not least because Passenger Enterprise 4.0 is to become hybrid multi-processed, multi-threaded and evented. Lots of info here.
An Explanation and Examples of Ruby's New 'Refinements'
SPDY on Rails
A look at adding SPDY support to your Rails apps when using Nginx and Passenger. SPDY is a networking protocol developed by Google that allows you to transport Web data with lower latency using compression, multiplexing and prioritization.
Synchronized Times In Ruby and JavaScript Acceptance Tests Using Capybara, Timecop and Sinon.JS
Timecop provides simple time travel and freezing capabilities in Ruby, but what if you're working on a JavaScript app backed and tested by a Rails application and you want to alter the test browser's clock as well? Ken Collins digs in.
ko1 Asks for Experience of Python's 'PEP-302 New Import Hooks'?
Core Ruby developer Koichi Sasada asks Pythonistas for their impressions of a Python feature he wants to propose an equivalent for in Ruby 2.0. He got an answer direct from one of the maintainers of the system.
Your First Ruby Native Extension in Java
James Coglan demonstrates an approach to using Java to build a JRuby library / extension.
Overriding Instance Methods With Modules
Ruby with MongoDB for Web Development
Gautam Rege walks through modelling and building a Ruby application that leans on MongoDB.
A Quick Test Of The New MySQL memcached Plugin With (J)Ruby
Ditching ERB: A Guide to Using Liquid
Adventures in Functional Programming With Ruby
With David Bryant Copeland, author of Build Awesome Command-Line applications in Ruby.
Watching and Listening
RailsCasts on Ransack: A Complex Search Form Builder
Ransack can be used to build complex search forms. It also helps in adding sortable links and building a dynamic advanced search page. Ryan Bates shows us how.
A Rubyist's Guide to the HTML5 Canvas API
Ever wanted to get into 2D graphics programming without leaving the comfort of the open web? This talk from H. Dean Hudson aims to get you up to speed on the basics for building Canvas-based games and apps that can integrate with a Ruby backend.
Ruby Rogues on Hiring Programmers
The first in a pair of recent Ruby Rogues podcast episodes, this time looking at the trials and tribulations of hiring programmers. (Step one: post a job listing in Ruby Weekly? ;-))
Ruby Rogues on Presenting at Conferences
Libraries and Code
Stubble: A Simple URL Shortening App
stubble is a super simple URL shortening app written in Ruby using Sinatra, Slim, and MongoDB. Use it as a foundation for your own URL shortening service or as an example project when learning Ruby, Sinatra, Slim, or MongoDB.
Je: jemalloc Injection into Ruby Apps for Better Perf and Memory Use
Ruby uses 'malloc' for memory allocation but the alternative 'jemalloc' can provide better performance and more efficient memory use. Je injects jemalloc support into your Ruby apps at runtime. I got no speed boost on a simple synthetic benchmark but your mileage may vary.
Mortal Token: Library for Generating Self-Destructing Tokens
An experiment library that produces 'self-destructing' tokens which automatically expire based upon nothing but their own value and whose validity can be easily checked.
BinUtils: Methods for Working with Binary Data in Ruby
auto_html: Rails Extension for Transforming URLs to Appropriate Resources
If you don't want to bother visitors with rich editors or HTML markup but still want them to be able to embed images, links, and content from sites like YouTube, this is worth checking out.
Backburner: Simple, Reliable Beanstalkd Job Queue for Ruby
bootstrap_flash_messages: Twitter Bootstrap Alerts and Rails Flash Messages
Ruby on Rails Developer on Small Agile Team (Portland, OR or Pasadena, CA)
Work on an agile team, influence product requirements, develop a feature and deploy it the same day, and then get home at a reasonable time to hangout with your family and friends. Goldstar was featured on 37Signals' Bootstrapped, Profitable and Proud series.
Ruby Programmer at PuzzleFlow Solutions [Novi, Michigan]
RoR/Agile Developer New York City at Simon Schuster [New York, New York]
Last but not least..
A Full JRuby GUI App, JotBot, Open Sourced under GPLv3
JotBot is a cross-platform desktop application written in JRuby that uses Monkeybars. It was a commercial product released somewhere around 2009 but didn't take off. The code is being released to provide an example of Monkeybars usage.
Published by Cooper Press.
Want to sponsor an issue? See our Q2 2014 media kit.

© 2014 Cooper Press Ltd. Email policy Privacy policy
Office 30, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
Update your email address
or unsubscribe here

ONE e-mail each Thursday. Easy to unsubscribe. No spam — your e-mail address is safe
Published by Cooper Press and curated by Peter Cooper