command_line = Cocaine::CommandLine.new( "curl", "-X POST -d :data :url", :data => "", # Hey note this! :url => "http://localhost:9000", :swallow_stderr => false) puts command_line.command
…which will produce:
curl -X POST -d '' 'http://localhost:9000'
The paperclip project saw a few neat commits this week. Jeremy McNevin (jmcnevin) and ralph (ralph) pass the file type to Fog now, always (839b98c and 201f02e). Luke Griffiths (Sporky023), one of our new apprentices, got his first open source contribution in: you can pass an
:s3_encrypted option for controlling which encryption type S3 should use ( true is now s3serverside_encryption => :aes256">65e0338 and true option">af6d343). And Jon Yurek (jyurek) fixed mixing Paperclip with non-ActiveRecord codebases (bc6ed16).
There was an issue where using an inline trait would cause it not to be reset ([70a80fd](http://github.com/thoughtbot/factory_girl/commit/70a80fde5845749ae8404bd70b81c5d6183f68fd “Reset evaluator class when cloning a FactoryGirl::Factory
Applying traits inline modifies the evaluator class, so it needs to be reset when cloning in order to ensure that the attributes are correct.
Closes #268”)), and an issue with the precedence of inline traits ([065c6c1](http://github.com/thoughtbot/factory_girl/commit/065c6c17895e13e6a4ba5debfd8d4d1ed500cd74 “Fix issues with inline traits not taking precedence
Josh also deprecated the
attributes_for class method, which once upon a time produced all the attributes that a factory would set (a883315). He provided no reliable workaround.