Permalink
Browse files

Fix YAML serialization on ruby 2.0.

Fixes #210.

Ruby 2.0 hashes are ordered, too.
  • Loading branch information...
1 parent 3bd2f22 commit 229801b8423d3d2d3d0559dd785d7824b06494b6 @myronmarston committed Nov 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/vcr/structs.rb
View
@@ -170,8 +170,8 @@ def each
end
end
- if RUBY_VERSION =~ /1.9/
- # 1.9 hashes are already ordered.
+ if RUBY_VERSION.to_f > 1.8
+ # 1.9+ hashes are already ordered.
def self.apply_to(*args); end
else
def self.apply_to(hash, keys)

0 comments on commit 229801b

Please sign in to comment.