LWN.net Logo

This Week's Ruby News - Issue 105

From:  Ruby Weekly <rw-AT-peterc.org>
To:  <lwn-AT-lwn.net>
Subject:  This Week's Ruby News - Issue 105
Date:  Thu, 9 Aug 2012 12:16:26 +0000
Message-ID:  <0618f6a79d6bb9675f313ceb29659df23b6.20120809121612@mail259.us2.mcsv.net>
Archive-link:  Article, Thread

Ruby Weekly - A Weekly Ruby Newsletter
Issue #105 - August 9, 2012
================================================================================


Headlines
---------

'Refinements' Added to Ruby Trunk
https://bugs.ruby-lang.org/issues/4085#change-28594


  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
http://www.jruby.org/2012/08/07/jruby-1-7-0-preview2.html


  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
----------------

AppFog does to PaaS what Gmail did to email.
http://launchbit.com/taz/358-1048-9659df23b6


  2GB RAM at no cost. Hosted in EU, Asia, and various US zones including Rackspace and AWS.
MongoDB, MySQL and Postgres supported!<br/>(<a href="http://launchbit.com/sp/361-358/">Sponsor this
newsletter</a>)


Reading
-------

Why Rails 4's 'Live Streaming' Is A Big Deal
http://blog.phusion.nl/2012/08/03/why-rails-4-live-stream...

  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'
http://blog.wyeworks.com/2012/8/3/ruby-refinements-landed...

SPDY on Rails
http://blog.bugsnag.com/2012/08/05/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
http://metaskills.net/2012/08/07/synchronized-times-in-ru...

  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'?
http://programmers.stackexchange.com/q/154247/24694


  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
http://blog.jcoglan.com/2012/08/02/your-first-ruby-native...

  James Coglan demonstrates an approach to using Java to build a JRuby
  library / extension.

Overriding Instance Methods With Modules
http://shime.github.com/blog/2012/08/06/overriding-instan...

Ruby with MongoDB for Web Development
http://www.packtpub.com/article/ruby-mongodb-web-develope...

  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
http://elevat.eu/blog/2012/08/a-quick-test-of-the-new-mys...

Ditching ERB: A Guide to Using Liquid
http://rubysource.com/ditching-erb-a-guide-to-using-liquid/


Adventures in Functional Programming With Ruby
http://www.naildrivin5.com/blog/2012/07/17/adventures-in-...

  With David Bryant Copeland, author of Build Awesome Command-Line
  applications in Ruby.


Watching and Listening
----------------------

RailsCasts on Ransack: A Complex Search Form Builder
http://railscasts.com/episodes/370-ransack


  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
http://confreaks.com/videos/1067-cascadiaruby2012-a-rubyi...

  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
http://rubyrogues.com/063-rr-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
http://rubyrogues.com/064-rr-presenting-at-conferences/



Libraries and Code
------------------

Stubble: A Simple URL Shortening App
http://mattbradley.github.com/stubble/


  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
https://github.com/treasure-data/je


  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
http://jordanhollinger.com/2012/08/02/mortal-token-a-libr...

  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
https://github.com/funny-falcon/bin_utils


auto_html: Rails Extension for Transforming URLs to Appropriate Resources
http://rors.org/2010/08/15/auto_html


  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
http://nesquena.github.com/backburner/


bootstrap_flash_messages: Twitter Bootstrap Alerts and Rails Flash Messages
https://github.com/RobinBrouwer/bootstrap_flash_messages



Jobs
----

Ruby on Rails Developer on Small Agile Team (Portland, OR or Pasadena, CA)
http://goldstar.catchthebest.com/apply/2985/fa8b


  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]
http://jobs.rubyinside.com/a/jbb/job-details/717005


RoR/Agile Developer New York City at Simon  Schuster [New York, New York]
http://jobs.rubyinside.com/a/jbb/job-details/719678



Last but not least..
--------------------

A Full JRuby GUI App, JotBot, Open Sourced under GPLv3
https://github.com/Neurogami/JotBot


  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.



================================================================================

You opted in for Ruby Weekly at http://rubyweekly.com/ to get weekly e-mails
about the Ruby programming language.


Our mailing address is: Office 30, Lincoln Way, Fairfield Enterprise Centre,
Louth, Lincs, UK, LN11 9EJ.

You can e-mail the list maintainer directly at rw@peterc.org in case of
problems/questions.

(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds