What's New in Edge Rails #22
Week of May 21 - May 27, 2012
In addition to the features I've called out below, there's still plenty of internal tinkering going on with Rails 4.0. This week included some work on deep methods to manipulate hashes and removing a batch of dependencies on Pathname
.
- 43fa48e5 moves the root route to the top of the generated routes.rb file. I'm mildly surprised that this hasn't spawned another flame war.
- As of 1ce4b5b3 and b02d14aa there is broader helper support for various HTML5 input types, including color, month, week, datetime, and datetime-local.
- You can use the
/rails/info/routes
path in development to show the equivalent ofrake routes
in the browser starting with cb44e0fe.
Double Shot #887
Summer camping schedule is going to mean skipping a few days here and there. So it goes.
- cactus - A testing framework for your CSS.
- CLAWS - Command-line tool for managing AWS servers.
- Trollop - Simple command line option parser for ruby.
- Introducing rake-rails - Delegate rake commands to corresponding rails commands so you don't have to remember which is which.
- Top on steroids - 15 Practical Linux HTOP Examples - I'm not a sysadmin, but this article helps when I want to pretend.
- Cheatsheet - Easy way to get all the active short cuts in the current OS X application.
- Objectify: A Better Way to Build Rails Applications - Framework that sits on top of Rails to enable more object-oriented purity.
- Lessons Learnt from Building a REST API - Starting with the premise of not using Rails for something that ought to be as fast as possible.
- sprockets-source-url - Support for generation of source URLs in scripts compiled with sprockets.
- RubyGems Tasks - An attempt to put together a minimal set of non opinionated features for building gems via Rake tasks.
- Fozzie - Gem for sending things to Statsd.
- Sublime Text 2 Completions for RubyMotion - Make life easier if you're developing RM apps in ST2.
- Removing Blueprint from Compass in 0.13 - The Compass CSS authoring framework is going to become grid-agnostic.
- Bartender - App to organize your OS X menu bar. Definitely helped out on my messy dev box.
- Bear CSS - Upload a HTML document, get back a CSS template based on the markup that you used.
- MySQL is done. It's the Postgres Age. - I'm feeling this more and more lately myself.
Double Shot #886
Happy anniversary to my wonderful wife. And to me, of course.
- UberConference - Looks like an interesting try at reworking the conference call market, from the guy behind Grand Central.
- Getting Real - The 37signals book, now available as a free PDF.
- Chrome 1px unavoidable spacing between td - Happens on Safari, too. A bug that cost me a few hours yesterday.
- Sextant: A Gem to Help you Find your Routes - A browser-based alternative to rake routes.
- Rails Apps Composer version 1.5.0 - New release of a flexible recipe-based app generator.
- polyamory - Test runner that understands Cucumber, RSpec, Shoulda, Test::Unit and more.
Double Shot #885
Soothing myself with nice code before looking at ugly tests.
- GitHub Trends - Handy RSS feeds to keep track of top projects.
- Bacon Ipsum - Another text generator for people tired of lorem ipsum.
- SpahQL - A query language for Javascript objects - Make dealing with structured data on the client a bit easier.
- Coda 2 - Looks like a spiffy upgrade to this all-in-one web coding IDE. Check out the iPad version Diet Coda too.
- Gumby - A new responsive CSS framework.
- Dark Patterns: User Interfaces Designed to Trick People - I think I've had clients who kept this site bookmarked.
- wysihtml5 - HTML5 rich text editor that degrades to a textarea on older browsers.
What's New in Edge Rails #21
Week of May 14 - May 20, 2012
In addition to the code changes below, I want to mention the contributors to docrails, who are doing a great job of keeping the Guides up to date with the edge code. Check out their work at http://edgeguides.rubyonrails.org/.
-
683fc4db changes
:disable_with
todata-disable-with
in various tag helpers for consistency with other attributes handled by the unobtrusive JavaScript drivers. dd42e890 further tweaks this to use the:data => { :disable_with => ... }
form of the API in examples. - With 3f352d04
Model.pluck
supports SQL fragments (such asDISTINCT name
as well as attribute names. - You can now tell Rails to pass templates through undisturbed by using the .raw extension, as of 8bea6072.
- 446940c3 brings in helpers for the HTML5 time input tag.
- Check the changelog update in 103ce300 for details about the deprecation of most dynamic finder methods in Active Record, and how to rewrite them in your code. No rush on this because they won't be gone until Rails 5.0, but it's good to stay up to date.
Double Shot #884
Aren't things supposed to slow down in the summer? No?
- Authority - Authorization gem for Rails applications.
- CarrierWave::Processing - Add-on image processors for CarrierWave, including image quality adjustment.
- Batch IP Locator - Geocode and map multiple IP addresses at one time.
- NSRails - Objective-C framework to talk to Rails objects, including REST API and synchronization.
- Reset Firefox - easily fix most problems - Coming soon, a way to reset your profile without losing things like bookmarks and history.
- Ore - Templated ruby project generator.
Double Shot #883
It's gonna be another very long day.
- Free Weekend on Code School - Coming this weekend. A pretty good deal if you want to improve your ruby skills.
- Vagrant and Weewee: A Repeatable Dev Project Setup - How to set up your own base box to bootstrap your projects from.
- The trouble with light boxes - And what to do about them on mobile sites.
- Three quick Rails console tips - And they're well worth knowing.
- git-animals - "Animals using git". And yes, it's as silly as it sounds.
- PostgreSQL as JSON Document Store - One way to use the stuff that's coming in 9.2.
Double Shot #882
New staging server held hostage by bacteria. Bah.
- lolcommits - Take a snapshot with your webcam every time you make a code commit. The rise of developer narcissism continues.
- SASS vs. LESS - Long comparison of these two CSS preprocessors. SASS comes out on top, but both are good.
- flotr2 - HTML 5 graphing library with lots of nifty examples.
- Node.js Is Bad Ass Rock Star Tech - 5 minutes of poking fun at hipster rockstar programmers. "You are the reason science was set back a thousand years."
- rspec-rails-uncommitted - Rake tasks to run specs for all uncommitted, unpushed, or unmerged files in your project.
- Devise Async - Send Devise emails using Resque, Sidekiq, or DJ.
- SourceNinja - Monitor your software to know when there are patches available to the bits you depend on.
- SheetMapper - Connect spreadsheet rows to ruby objects. Feeds - Get notifications from GitHub, Basecamp, Trello and other services in your Mac menu bar.
Double Shot #881
Wrote some good code yesterday, at the expense of not writing enough good emails.
- PostgreSQL 9.2 beta improves scalability, adds JSON - Lots of yummy goodness coming in the next version, which seems to be moving far faster than MySQL these days.
- Firefox Beta - For Android. If only I had any interest in phones I'd be all over this.
- Get your callbacks on with Factory Girl 3.3 - The leading factory solution for rails continues to move forward.
- yell-rails - Easy integration of the YELL logging library into your Rails 3.x projects.
- redis-faina: a query analysis tool for Redis - See where things are slow inside your Redis installation.
Double Shot #880
Our Cub Scout Day Camp is blessed with an abundance of rangemasters this year.
- The Web Developer Toolbox: Raphaël - Hacks.mozilla.org starts a series looking at useful libraries for web developers, starting with this interface to SVG.
- rubygems-bundler - This tool to eliminate 'bundle exec' is at 1.0 now.
- jQuery.ish 0.2 - jQuery compatible syntax for core features in under 500 bytes.
- Monitor HTTP Traffic on Mobile/Fennec - Firebug's Net panel for Android devices.
- git-playback - Slide show creation from git commits.
- Amazon CloudFront - Support for Dynamic Content - Amazon's CDN knows what to do with querystrings now.
What's New in Edge Rails #20
Week of May 7 - May 13, 2012
As usual, I'm only pulling out the things that look most interesting to developers using Rails; there's a great deal of work still happening on Rails 4.0 internals. This work is valuable and necessary, but it's the part of the iceberg that remains underwater for most Rails users.
Some time in the last week or two, by the way, Rails master passed 30,000 commits.
- ceb1dcc3 adds a default humans.txt to new Rails projects.
- b8f394f4 changes the behavior of Object#try to only use public methods of the target object.
-
ActiveRecord::Store
allows you to specify the encoding for serialized attributes starting with 3c0bf043. This allows you to choose JSON, YAML, Marshal, or your own custom storage format.
Double Shot #879
Oh look, it's Monday again.
- RubyMotion Weekly - New email newsletter to bring you all things RubyMotion.
- Android Query - UI and asynchronous library for Android coding inspired by jQuery.
- MOBtvse - Rails- and Markdown-based blogging platform.
- Libskypekit and Skypekit - C and Ruby interface for Skype - Skype is one of those pieces of software I use but detest, so I hope I never have the need for this.
- blueprint - Reverse-engineer a running server to puppet or chef recipes.
- *JS: Low-Level JavaScript - Prototype of a typed dialect of JavaScript from Mozilla. heap.coffee applies the same ideas to CoffeeScript.
- A quick look at Dash for doc browsing - I've been finding Dash quite useful myself; here's an extended review.
Double Shot #878
End of another week, yay.
- Freelance - Freelancing life in one three-panel cartoon.
- CapHub - Separate your application code from your deployment code.
- Gemfile trick for github repositories - Dunno if it's really a "trick", but Bundler has a built-in shortcut to include code from GitHub to your project.
- jQuery Knob demo - Fun little bit of UI experimentation.
- js2coffee - Compile your JavaScript code into CoffeeScript. Could be a useful learning tool.
- Front-end Unit Testing with JavaScript - Getting started with PhantomJS and CasperJS.
- AppDrone - Automate the Mundane - Create new Rails projects by picking options from a UI.
Double Shot #877
Today: A few minutes of email nonsense, and then off to the woods for a work day. Time to get the council camp ready for summer.
- No more "bundle exec…" - Work proceeds on the integration between Bundler, ruby, and rubygems, including a gem to make things work today.
- HTML9 Responsive Boilerstrap JS - Put a fork in it, web development is done.
- Multiple Ruby Version Support on Heroku - Heroku apps can now specify which ruby (though not which patch level) they'd like to run under.
- UltraREPL - Souped-up REPL for node.js.
- gitspective - See your (or anyone else's) GitHub activity on a timeline.
- scratchpad-gist - Publish Firefox scratchpads to gists. (Didn't know about scratchpads? Here's the basics.)
- How to get 4x the performance out of Heroku with Unicorn - And thus lower the effective price of hosting there.
- Extending asset pipeline with custom preprocessors - Some advanced usage of Sprockets.
- bullet 4.0.0 released - Now with eager loading detection for mongoid as well as Active Record.
- Introducing Project Sputnik: Developer laptop - Dell is planning a laptop with multiple open source development profiles running under Ubuntu. This is very interesting and could wean some of us off of Macs.
- Bubble 2.0 - Charlie Stross joins those of us who've said publicly that VC money is getting very stupid again.
- PostgreSQL Magazine - Available in PDF, online, or dead tree editions.
- LESS Prefixer - Use vendor-prefixed CSS properties without worrying about which prefixes to use.
Double Shot #876
Email bankruptcy is starting to seem like a viable alternative. Anyone in the market for some small Rails clients?
- I18n Alchemy - localization and parsing - New gem to handle localizing and parsing date, time, and numeric attributes when getting or setting their values.
- OrmHate - Martin Fowler pushes back against some of the current fashion of ORM hating.
- Constrain Yourself - Using constraints in routes.rb to limit the scope of routes.
- RubyStack now with RVM and DevKit support - Latest release of Bitnami's Ruby image includes rvm and ruby 1.9.3-p194.
- Everyday Rails Testing with RSpec: Get advance access to my new book now - Well, not mine, but Aaron Sumner, who's writing about TDD with RSpec.
- Clutch.io - A/B testing for iOS and Android apps.
Double Shot #875
My Cub Scouts say they want to do more camping, fishing, whittling, and science. Gonna be a fun summer.
- Sortbox - "Like e-mail filters, for your Dropbox". Looks interesting, though I'm always wary of trusting yet another company with access to my data.
- Online git man pages - Hook up your local git to open the man pages on git-scm.com. Didn't work for me but my setup is pretty squirrelly.
- queue_classic 2.0 - Queue built on top of PostgreSQL. Why didn't I know about this?
- Pry 102: Advanced Features - A tool I still need to learn. The more I see the more I like though.
- rubymotion-learn - Links to all sorts of RubyMotion goodies.
- We don't support Internet Explorer, and we're calling that a feature - Only a viable strategy in a few niches, I think.
- RubyMotion and Interface Builder… - Yes, you can use them together.
- Firefox and the release channels - The release cycle plus the distinction between Aurora/Beta/Nightly builds. 99% of the time I happily run on Nightly.
What's New in Edge Rails #19
Week of April 30 - May 6, 2012
Lots of code tinkering this week, but no huge new features. Here are a few highlights.
-
5c1109a6 adds a
-i
option to the rails generator to skip building the index.html file that you always delete anyhow. - 16e7f2f tweaks the Inflector code so that 'police' no longer singularizes to 'polouse'.
-
ActiveRecord::Base#ids
shows up in 93076168 - it's likepluck
specifically for the primary key of the main table. -
07e5301e forces the
first
finder to default to primary key order across all database engines. 489166e1 does the same forlast
. If you want the old behavior offirst
you can usetake
(introduced in 1379375f).
Double Shot #874
What? Time for computers again instead of hikes and sleeping in a hammock? Oh well.
- Five Common Rails Mistakes - Welll….good tips here, but I don't think Rails is a "one size fits all" system. Some things that are mistakes in large systems are just fine in small sites.
- Opa - Statically typed platform that combines frontend code, backend code, and SQL into one unified framework.
- Monadic - Monads for Ruby.
- Brackets - Code editor for HTML/CSS/JS from Adobe. Written in web technologies itself, it opens as a desktop app but shows its own source code by default. Kinda nifty looking.
- Monologue - "A simple blogging (Rails) engine". Yep, another one.
- Precompile Assets Using a Git Hook - Another way to try to handle the slowness of the asset pipeline.
- Dead simple ActiveRecord migrations without Rails - Yep, it's good to remember that you can use plenty of chunks of Rails even when you're not writing Rails apps.
- RubyMotion Screencast - A free 50-minute primer from Pragmatic.
- RubyMotion Samples - A collection of goodies on GitHub.
Double Shot #873
Off for another weekend in the woods.
- RubyMotion - "Unlock the power of Ruby for iOS" That is, you can build native iPad apps in Ruby. This is huge news. Here are a couple of early reviews. Pragmatic has a free screencast as well.
- RubyMotionSamples - A collection of code to get you started.
- Introducing Bloggy: A simple way to add a Jekyll Blog to any Rails application - From the folks at Engine Yard.
- seed_dump - Create a seeds.db file from an existing database.
Double Shot #872
This is going to be another of those "ten pounds of stuff in a five pound sack" says.
- OpenSSL Errors and Rails – Certificate Verify Failed – Gem::RemoteFetcher::FetchError - An extensive discussion of what's going on, along with workarounds.
- Announcing Pull Request Support - Travis CI can now check out pull requests before they're merged.
- Railscats! - For those of you who have trouble typing 'railscasts.com'.
- Spree 1.1.0 Released - Open source e-commerce moves to Rails 3.2, among other changes.
- Ruby's Eigenclasses Demystified - Ruby method lookup is more complex than you might think.
subscribe via RSS