24 Apr '13, 8am

Ruby's pessimistic operator (please stop doing shit in your Gemfile) - #ruby #rails

December 29, 2010 dancroak bundler gemfile ruby ruby gems semantic versioning software pessimistic operator Ruby’s pessimistic operator Do you know Ruby’s pessimistic operator? It looks like this: ~> You’ve seen it in some Gemfile s. Here’s an example gem 'rails', '~> 3.0.3' gem 'thin', '~> 1.1' ~> 3.0.3 means that when you bundle install , you’ll get the highest-released gem version of rails between the range >= 3.0.3 and < 3.1. ~> 1.1 means that when you bundle install , you’ll get the highest-released gem version of thin between the range >= 1.1 and < 2.0. Using the pessimistic operator in combination with consistent Semantic versioning by gem authors, we can theoretically achieve better stability in our dependencies. Read more on the tradeoffs or read our current guidelines on Bundler . Written by Dan Croak . dancroak bundler gemfile ruby ruby gems semantic versioning ...

Full article: http://robots.thoughtbot.com/post/2508037841/rubys-pessim...

Tweets

Instrumenting Ruby on Rails with TraceView in u...

rubyflow.com 24 Apr '13, 2pm

Instrumenting Ruby on Rails with TraceView in under 10 minutes Posted by pglombardo on April 23, 2013 — 0 comments Setting...

Ruby 2.0 has been released and @rubinius has st...

rubini.us 26 Apr '13, 3pm

The Rubinius team is now focused on pushing Rubinius into the hands of all developers. To that end, the current highlevel ...

#Ruby #programming batch announced. Discounted ...

rubylearning.com 24 Apr '13, 4am

, a participant who just graduated, has to say – “When I joined this course I was sceptical about how useful this course w...

Double Shot #1115: traceGL – Fancy code-flow vi...

afreshcup.com 25 Apr '13, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

Since Rails 4.0's release is imminent, here's t...

edgeguides.rubyonrails.org 02 May '13, 2am

The best way to be sure that your application still works after upgrading is to have good test coverage before you start t...

pleasant surprise: the @keen_io gem by @dzello ...

ruby5.envylabs.com 23 Apr '13, 9pm

Profile your Ruby 2 apps with DTrace, better analytics with Keen, learn about gem development, actually verify your app he...

@joniburn 1.9系でincompatible character encodings...

jp.rubyist.net 23 Apr '13, 6am

open(path, "r:Shift_JIS") {|f| p [f.external_encoding, f.internal_encoding] } #=> [#<Encoding:Shift_JIS>, nil] open(path, ...

たぶんこのへん: 404 then upstream timeout - Ruby Forum

ruby-forum.com 23 Apr '13, 9pm

I finally got a chance to repro this in a sandboxed environment and ngrep the local adapter. It appears there might be 2 i...

@andr3 Are you using ruby 1.8? Vide

sass-lang.com 29 Apr '13, 12pm

Whether an error in the Sass code should cause Sass to provide a detailed description within the generated CSS file. If se...

"Clean code is easier to change, & since change...

pragmaticstudio.com 22 Apr '13, 12am

If you learn Ruby, you can master Rails. Are you using Rails but find yourself getting stuck, or even bogged down? Do you ...

@peterc Many thanks for mentioning our courses ...

rubyweekly.com 25 Apr '13, 3pm

Parsing JSON The Hard Way From the Practicing Ruby journal comes an excellent walkthrough of building a JSON parser from A...

Desenvolvedores Ruby/Rails assinem

rubyweekly.com 27 Apr '13, 7pm

"Peter does all the hard work of keeping up with the ruby world outside of my twitter feed and emails me a nice summary ev...

Ruby on Rails Guides: Ruby On Rails Security Gu...

guides.rubyonrails.org 19 Apr '13, 1pm

The threats against web applications include user account hijacking, bypass of access control, reading or modifying sensit...