Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix YAML serialization on ruby 2.0.

Fixes #210.

Ruby 2.0 hashes are ordered, too.
  • Loading branch information...
commit 229801b8423d3d2d3d0559dd785d7824b06494b6 1 parent 3bd2f22
@myronmarston authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/vcr/structs.rb
View
4 lib/vcr/structs.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.