myronmarston/vcr — Issue #136: undefined method `syck_to_yaml' for class `Object'
Author: brutuscat
Created: 2012-02-21 14:32:52+00:00
State: open

Hi, I'm getting this weird exception:

```undefined method `syck_to_yaml' for class `Object'```

```
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/yaml.rb:37:in `yamler='
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/yaml.rb:33:in `class_eval'
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/yaml.rb:33:in `yamler='
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr/cassette/serializers/syck.rb:42:in `using_syck'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr/cassette/serializers/syck.rb:26:in `serialize'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr/cassette.rb:208:in `block in write_recorded_interactions_to_disk'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr/cassette.rb:208:in `open'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr/cassette.rb:208:in `write_recorded_interactions_to_disk'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr/cassette.rb:82:in `eject'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr.rb:122:in `eject_cassette'
~/.rvm/gems/ruby-1.9.3-p0@entretenerse2/bundler/gems/vcr-580f827414e2/lib/vcr.rb:149:in `use_cassette'
```

When doing:

```
VCR.use_cassette(cassette, :allow_playback_repeats => true, :serialize_with => :syck ) do
spider.crawl()
end
```

With config

```
require 'vcr'
cassette = args.name
VCR.configure do |c|
c.allow_http_connections_when_no_cassette = true
c.ignore_localhost = true
c.cassette_library_dir = 'db'
c.hook_into :fakeweb
c.around_http_request do |request|
uri = URI(request.uri)
if uri.host == 'maps.googleapis.com'
# extract an address like "1700 E Pine St, Seattle, WA"
address = CGI.unescape(uri.query.split('&').first.split('=').last)
VCR.use_cassette("geocoder/#{address}", :allow_playback_repeats => true, :serialize_with => :syck ,&request)
else
request.proceed
end
end
end
```

Ideas?