RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
April 16, 2013
Autoprefixer parse CSS (or Sass) and add prefixed properties and values (calc() or properties names in transition) by Can I Use database for actual browsers (for example, “more 1 %” by global statistics usage).
Hello, RubyFlow,

the EuRuKo 2013 1st ticket batch went out in under 2 minutes last Friday and while it was thrilling to watch it, we realised that not everyone can be on his/her toes to get a ticket, especially since they went on sale at 14:00 UTC. US West Coast and East Asia devs were (probably) asleep after a long day of building beautiful Ruby code.

So, in order to give our US West Coast and East Asia colleagues a chance for a ticket, we are opening the 2nd batch, on Wednesday 17/04 at 05:00 UTC. Yes, tomorrow we are waking up at 6 in the morning (our local time) and with coffee at one hand, mouse on the other, we are opening the next ticket round and watch it selling out in minutes. And then back to bed..... we wish!

So set your alarm clock tomorrow (Wed) at 05:00 UTC and get your ticket. It's less than a day.

May the Rubee with you!

PS: Next batch on Friday. Read it here.
Recently I was asked a question about ‘& parameters’ when you define and/or call methods which take a block. When do you put an ampersand in front of block variables and when do you not? It is often hard to remember how confusing Ruby can be when you’re starting out. So, let’s dig into this a little more deeply and shed some light on what’s going on.
Port Monitor REST API has been released:

Developers - Port Monitor

With this API you can integrate website/port/server monitoring in your app or web. The API has been built using Ruby on Rails of course.
I just released the first BETA version of the long-time coming, Viewpoint 1.0.0. Give it a shot and submit some pull requests or issues. Viewpoint Github page
Do you need to clear Memcached instance without restarting it? If you do - check this post.
I have recently started using capistrano-deploytags. It creates timestamped Git tag at each deployment. Find out Why timestamp each deployment with Git tag?
Let's talk about RubyMotion  blog.thefrontiergroup.com.au
New post about our experience with RubyMotion.
April 13, 2013
I just launched Rove.io – the visual online Vagrant configurator. Checkout the "Vagrant to the masses" introduction.
Last nights slides from the vienna.rb talk titled "beer.db - Using Open Beer & Brewery Data in Ruby". Use left/right cursor keys (or space bar) to browse the slides and T-key to toggle between presentation and outline mode. Or check the all-in-one-page markdown source. Cheers. PS: For more Ruby meetups in Central Europe (Vienna, Brno, Bratislava) see "Coders without Borders".
April 12, 2013
Hi there, I released the_array_comparator version 0.4.0.

The Array Comparator lets you add multiple checks comparing two arrays each. This way it lets you write more concise tests and makes error detection in a commandline environment easier. If you're interested, please have a look at the git repository (Examples given).
The new release of roar-rails allows you passing user options to #respond_with and #consume! Also, overriding reading and writing of document fragments in representable is now easily achieved, but, hey, read the whole story here.
Google Summer of Code 2013  weblog.rubyonrails.org
Ruby on Rails has been accepted into Google Summer of Code 2013 as a mentoring organization. What does this mean to you? Potentially, if you're the right person, you can get paid to work on Rails this summer! The "right person" in this case is one who is at least 18 years old (sorry, Google's rule, not ours!) on or before May 27, 2013; a full or part-time college student; and passionate about improving Rails. Know more here
April 11, 2013
Continuous Integration provides sound economical benefits. This post examines the bottom-line advantages of Continuous Integration with respect to any business dealing with software deployment.

A Business Case for Continuous Integration
I just share a proptip on how to Test JQuery draggable and droppable with Capybara
This approach could also be applied to other difficult to simulate test steps.
Let me know what you think of it and/or how you solve similar issues! Thank you!
I've just released version 0.4 of RuboCop - an experimental Ruby code analyzer, based on the community Ruby style guide. This is the first version that's deemed suitable for general use and adds support for Ruby 2.0. Hopefully you'll find it useful!
April 10, 2013
Ruby Berlin e.V. and the JRuby team are thrilled to announce the second European Edition of JRubyConf. JRubyConf will feature as part of eurucamp week, taking place in Germany's capital City from 10 - 18 August.

Early Bird tickets are available now (€149 instead of €199).
Our CFP launches Friday.
When we build workers, we want them to be like an army of little spongebobs, always on the edge and ready to work. sponges helps you create this army of sponges, control them, and well… kill them at will too. Making them eager to work is now your job.
I just released the new version of fileuploader-rails gem, that adds Fineuploader 3.4.1 to your asset pipeline.

This plugin is easy to use, light, and can be used without jquery.

There is one drawback: it uses raw fileuploading. You can read about this in this wiki: Handling Raw File uploads in Rails
Last week I published a no nonsense, no steps skipped guide to Getting Started with Ember.js on Rails.

This week I've published the next part, The no nonsense guide to test driven development with Ember.js on Rails. I hope you find it useful.
Whilst the usefulness of most Ruby 2 features is pretty obvious, the uses of Module#prepend weren't as instantly apparent to me.

In this post I explored a potential use of Module#prepend and saw the point of it.
April 09, 2013
To overcome confidential data issues in mission-critical applications, the new release of ITTIA DB SQL provides security and authentication features that bring flexible data safety to Android developers of embedded systems and mobile devices, allowing them to achieve the greatest level of data security in embedded applications by encrypting both network communications and storage media.
Listen in on an all new GitMinutes podcast as @schneems discusses his GIT workflow and experience with Rails issues
Ruby doesn't support nested exceptions, but the ability to rescue an exception, raise your own, but still retain the original one, can often be very handy.
The Phusion Passenger application server, version 4.0 RC 6, has been released.
April 08, 2013
Engine Yard's resident PHP developer delves into learning Ruby. Check out his story here.
Old dependencies are your second biggest technical debt
I've just published a blog post about my experience of building API with Ruby on Rails.
Web applications deployments cannot be slow. After understanding how EB works, identifying bottlenecks, and caching things; I was able to reduce the time to deploy to near one minute.

Read more about how to have faster Rails 3 deployments to AWS Elastic Beanstalk.
In this episode we’ll learn how to install, configure and use MiniTest in a Rails application. I’ll also show you a few tips and tricks on how to improve the output formatter, set up Guard to automatically run the tests, and more.

http://www.metacasts.tv/casts/minitest-rails

* Subscription required.
Check out our hyper-realistic trailer!. Also, announcing the first ticket batch (with a brand new website)!
Get your positions!
April 07, 2013
Steel City Ruby Conference's speaker lineup is anchored by Jim Weirich, Konstantin Haase, Avdi Grimm, and Angela Harms, but the rest of the lineup will be filled by your talks through a CFP. The CFP closes this Friday, so submit a proposal now.
LevelUp 0.2.0 released  kmatrah.github.com
I released version 0.2.0 of LevelUp. New configuration options, task overriding and bug fixes.
I have created a little JSON API service for the open beer database (that is, beer.db) using the Sinatra Ruby gem. For example, /brewery/brooklyn gets you all beers from the Brooklyn Brewing Co. in New York and /beer/guinness gets you a pint of Guinness (sorry no real irish stout, just the data in JSON ;-). See the JSON API start page or the service source code or the beer.db project page for more info. Cheers. Prost.
TheComments - comment functionality for your web app. Comments are polymorphic. Gem provide usable cache counters for User model and commentable objects. TheComments has simple, but powerfull AntiSpam system and spam traps instead Captcha.

TheComments can become a New Hope for comment system for Rails 4.
April 05, 2013
Beta-release of a command-line tool to translate HAML templates to ERB. Not all features of HAML are supported yet, but it's a start. Written in Haskell. Contributors welcome to improve and extend the code.
herbalizer @ GitHub
Rails Apps Composer on Guard  railsapps.github.com
Paavo Leinonen added Guard as an option for continuous testing when using Rails Apps Composer. He describes his development environment, explains why Guard is useful, and how the Rails Apps Composer gem saves time building applications. The blog post is titled Rails Apps Composer on Guard.
Adding new functionality to a large legacy Rails application is often expensive, if possible. But what if instead of adding new behaviour to the Rails application we implemented it as a single-page application in JavaScript? In this article I will show a few useful techniques for doing that. Read more...
Do you want to watch a discussion/rant on code readability with a Ruby slant? Sure you do -- it’s this week's short video in the XI to Eye series.
April 04, 2013
Programming Principles introduced by the Eiffel programming language.
Split, the Rack Based AB testing framework, has just been updated to 0.6.0 including the following changes:

* Support for Ruby 2.0.0
* Multiple Goals
* Custom configuration of user blocking logic
* Loads of bugfixes

Download it from Rubygems - View the Changelog
Normally, classes and modules get names only when they're assigned to a constant. If you make your own, like with Class.new, they're anonymous.

Adam Hunter's new "Named" gem lets you give them names without assigning them to constants. Just use Named::Class.new('CustomClass') or Named::Module.new('MyModule').

Check it out on Rubygems and Github.
Matthew Kirk shows how matrices can be useful to solve problems involving systems of equations. Read the details in his guest blog post on RubyLearning - Ruby Matrix, the Forgotten Library.
April 03, 2013
In a blog post titled Project Gemsets with RVM I describe how RVM, the Ruby Version Manager, looks for files named .ruby-version and .ruby-gemset and loads the required version of Ruby and an appropriate gemset. RVM used to expect a .rvmrc file to perform the trick but Fletcher Nichol (@fnichol) evangelized to have a common convention among several Ruby version switcher utilities.
Looking for content management / admin backend for your Rails 4 app?

Grab ComfortableMexicanSofa(2.0 branch)

gem install comfortable_mexican_sofa --pre

or in your Gemfile:

gem "comfortable_mexican_sofa", "~>2.0.0.beta1"

It will get proper v2.0 when Rails 4 gets out of beta/rc.

For Rails 3.1/3.2 there's current v1.8
This year Rubyconf Brasil Call for Proposals is up. The conference will be on August 29-30. Venus is Frei Caneca Theater in São Paulo, Brazil. The CFP will be open until at least mid-May. It's going to be 2 full days with 2 parallel tracks and more than 30 talks, with audio real time translations for English-Portuguese and vice-versa. Hurry up. Only around 30 speakers will be selected!
We have opened a limited number of "fresh tracks" early bird tickets. There are only 100 for sale, and will only be available until April 17th. Please visit http://burlingtonruby.com for information about the conference and to purchase tickets. See you in August!
Take a look at my Ruby Daily newspaper powered by paper.li
It's an everyday news digest about (and from) ruby community and web development.
Hope you'll find it useful.
We work with JSON APIs every day, so it helps to know what options there are when it comes to formatting our JSON on the command line. Your easiest/best bets are the Python JSON tool (if there is no other option), YAJL tools, or the ppjson gem, written using the escort framework.