JSON Formatter ( Alex Chaffee)
Refactor rake task internals ( Sam Phippen)
Refactor HtmlFormatter ( Pete Hodgson)
Autotest supports a path to Ruby that contains spaces (dsisnero)
Provide a helpful warning when a shared example group is redefined. ( Mark Burns).
--default_path can be specified as --default-path . --line_number can be specified as --line-number . Hyphens are more idiomatic command line argument separators ( Sam Phippen).
A more useful error message …
So I didn't go to whatever was going on in Baltimore this week, but I did do a whole bunch of open source coding over the past week or two:
TestFirst has a totally revamped design, including the downloadable (or cloneable) student exercises, and Learn JavaScript is now a first-class citizen
Wrong 's expect alias now plays nicer with RSpec's expect
Rerun got a few new command-line options, including --clear and --exit so you can …
Have you upgraded RubyGems lately? Is your console suddenly filled with warnings like this? NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users/chaffee/.rvm/gems/ruby-1.9.2-p0/specifications/thin-1.2.7.gemspec:10.
You may be showing signs of a new malady known as Warningitis! So far there is no cure, but doing the following will temporarily cure your symptoms: gem update --system 1.7.2
…working at companies with armies of engineers. You were introduced to Sarah Allen and Alex Chaffee at a "learn how to program Ruby in my backyard" gathering. That sparked your involvement in the RailsBridge workshops. Tell us about the workshops. I volunteered at my first workshop in early 2010. I had just been let go from a job, and I was feeling down and needed something that made me feel useful. I got in touch with Sarah and she mentioned that there was a workshop approaching, …
…Sebastian Deterding explains why it's not all it's cracked up to be , and may in fact hurt your product/service.
Unlocked. Everything you wanted to know about file locking (or were afraid to find out).
Off The Rails. Web Apps With Rack, Sinatra, Grape, and Siesta , a README.md presentation by Alex Chaffee.
Alex Chaffee: Erector - http://erector.rubyforge.org
Steven Parkes: http://github.com/smparkes
Jeff Casimir: 4 Things I Love - http://github.com/jcasimir/things_i_love
Yasuko Ohba: Sub-resources - http://github.com/nay/sub-resources
Marc Chung: Parsley - http://github.com/fizx/parsley
Jugyo: g - http://github.com/jugyo/g
Will Emerson: Spree - http://www.spreecommerce.com …
I'm updating Erector to RSpec 2 and came across two problems for which solutions were surprisingly difficult to Google. Here are my (finally successful) results.
Problem: no such file to load -- spec/rake/spectask
Before: require "spec/rake/spectask" # RSpec 1.3
After: require "rspec/core/rake_task" # RSpec 2.0
Problem: undefined method `spec_files=' for #<RSpec::Core::RakeTask:0x00000101550aa8>
Before: # RSpec 1.3 Spec::Rake::SpecTask.new(:core) …
Uh-oh! ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Moved Permanently 301 (http://gems.rubyforge.org/latest_specs.4.8)
Whew! gem sources -a http://rubygems.org/ gem sources -r http://gems.rubyforge.org/
Looks like they weren't kidding when they said to switch from rubyforge to rubygems.org (née gemcutter)!
[Edited to change "http://production.s3.rubygems.org/" to "http://rubygems.org/". Note that the trailing slash is significant!]
Uh-oh! ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Moved Permanently 301 (http://gems.rubyforge.org/latest_specs.4.8)
Whew! gem sources -a http://production.s3.rubygems.org/ gem sources -r http://gems.rubyforge.org/
Looks like they weren't kidding when they said to switch from rubyforge to rubygems.org (née gemcutter)!
The error: /Library/Ruby/Gems/1.8/gems/json_pure-1.4.3/lib/json/pure/generator.rb:232:in `__send__': undefined method `except' for #<JSON::Pure::Generator::State:0x102f245b0> (NoMethodError)
The environment: Ruby 1.8.7, DataMapper, dm-types, ActiveSupport, or just require 'json/pure' require 'active_support'
(as seen in http://gist.github.com/339528 )
My solution: # workaround for activesupport vs. json_pure vs. Ruby 1.8 glitch if JSON.const_defined?(:Pure) …