I guess I should try to understand why the YAML serializer had to start
base64 encoding first (and why the JSON serializer somehow gets away
without it, without having the same problems).
If I did figure out a way to write a serializer that was reliable
without base64 encoding, as well as human readable -- is that something
you would be interested in being a part of VCR?
On 2/18/2013 5:28 PM, Myron Marston wrote:
> You can always write your own serializer, and have it be pretty json
> formatted or whatever. The serializer is three methods (file_extension,
> serialize, deserialize) and then it's one config option to use it.
>
>
> On Mon, Feb 18, 2013 at 2:26 PM, Jonathan Rochkind <
roch...@jhu.edu
> <mailto:
roch...@jhu.edu>> wrote:
>
> Ah, okay, thanks. No idea if I missed those places before, or if
> they have been added since I first looked at those docs.
>
> Ah, yeah, if the JSON one isn't human-readable either, then it's
> clearly no improvement as the default.
>
> Man, I wish there was a way to return to human readable cassettes
> even for 'binary' tagged strings, but I guess it's just not to be. I
> really miss having human-readable responses in my cassettes though.
>
>
> On 2/18/2013 5:14 PM, Myron Marston wrote:
>
> > Wow, I didn't realize there was a built-in JSON
> serializer... does it
> avoid having all those responses saved as base64 in the
> serialized VCR
> cassette?
>
> I believe so.
>
> If so, perhaps it should be documented more prominently
> somewhere... or
>
> perhaps the JSON serializer should even be made default?
>
> Are these two places not prominent enough?
>
>
https://relishapp.com/vcr/vcr/__v/2-4-0/docs/cassettes/__cassette-format
> <
https://relishapp.com/vcr/vcr/v/2-4-0/docs/cassettes/cassette-format>!
>
http://rubydoc.info/gems/vcr/__VCR:use_cassette
> <
http://rubydoc.info/gems/vcr/VCR:use_cassette>
>
> I'm not convinced the JSON serializer should be made the
> default. It
> dumps a long, single-line string that's not that human readable
> (given
> the lack of linebreaks and indentation). Making it the default
> would
> break test suites out in the wild.
>
>
> On Mon, Feb 18, 2013 at 2:09 PM, Jonathan Rochkind
> <
roch...@jhu.edu <mailto:
roch...@jhu.edu>
> <mailto:
roch...@jhu.edu <mailto:
roch...@jhu.edu>>> wrote:
>
> Wow, I didn't realize there was a built-in JSON
> serializer... does
> it avoid having all those responses saved as base64 in the
> serialized VCR cassette?
>
> If so, perhaps it should be documented more prominently
> somewhere...
> or perhaps the JSON serializer should even be made default?
>
> In general, it is often _appropriate_ for a response to be
> tagged
> 'binary' at the HTTP transport layer that VCR intervenes in
> -- but
> it sure makes it inconvenient to have all that base64 in the
> cassettes, the human readability of the cassettes used to
> be a huge
> advantage.
>
>
> On 2/18/2013 5:03 PM, Myron Marston wrote:
>
> You're not doing anything wrong. Tenderlove changed
> psych a
> while back
> to dump strings tagged as ASCII-8BIT (e.g. binary)
> encoding as
> Base64-encoded data:
>
>
https://github.com/tenderlove/____psych/commit/____c9cd187d5aa8fa6607dd463b5f98a6____5483ae39ce
> <
https://github.com/tenderlove/__psych/commit/__c9cd187d5aa8fa6607dd463b5f98a6__5483ae39ce>
>
>
> <
https://github.com/__tenderlove/psych/commit/__c9cd187d5aa8fa6607dd463b5f98a6__5483ae39ce
>
https://github.com/tenderlove/____psych/issues/27
> <
https://github.com/tenderlove/__psych/issues/27>
>
> <
https://github.com/__tenderlove/psych/issues/27
> H4sIAAAAAAAAA+1bW0/jRhR+____51eM8tAnAnPx3FTIqmrLtqtttdKyT1____UfjD0B
>
>
> L44nsodL/____n3PhEBZ7RofyYkdCZCQwBnHo+____8735lz88m7+0VJbl3dFL46nbAj
>
>
> OiGuynxeVJenky/____nZ1MzeTc7OAnFwk1dFerCNSSslu50k____tZ1uprMDgj5/9NV
>
>
> /Bcu5Glwm2Xxz8mMUyamlE+____ZPDmOVx7XuSari2WAh8/+____OYdnnNdpdv0v+c0t
>
>
> S78ilbsjpb/05K4IV/____4mEMblIZkX92ThL4rSHZI0z0mWZleO____XNw0wdWHJLgm
>
>
> wDOeffHDluD++nHr89KnYTKjRxy2s/____5gs58i3+__y6qIK7dPVkpgxXimt9clzk
>
>
> m0VLQMtX0+/XJoJrw+nJ8dOKxztq/______9Vl4Qe3MCptkhgL9zyt2dwUfO6nRXC____L
>
>
> H90mlTVSW7jv+____bJvN1ilCzc7q13u6iIjn0p/M5+____7p82tP43kHT9xu2ZvO2Qi
>
>
> GQB76yaAGcGUwBCgpFE2GYYAbRnTmn______cS8OtVXTTkl7IsKrCarcKftGoJCT89
>
>
> Qtg/S6RgZu/____gN0pwOir8YJItrgwJP8fAT5WwXO0d/____JoaE91Wh/vZofUD9/3g
>
>
> TzDOhzLG7f7Br6iRAsQ7GvwUPEI/+______AUCfm0pMxTMrPvwtcIKqcAohjh8WUK____F
>
>
> gpigA/6PLr0in5fO3abX2/____T8A4FvDGUWDplu8Ac9eIXR43p+____Csz3s32M69Em
>
>
> AfxB493wvyrb7w2+RBy7EMdrQBUD/____qC2D2cRi9FAh+____PZ3bFL4eED2L6GMJ5C
>
>
> IP9m+8+z5/____7gY0JOrZXRBpXxDmr7zKgkGTPi7w8/____o5igRysol6DwH9Lxa6aF
>
>
> joWQDt+zs6Cnt+____fhePTBzN5cz5ZdD8fZPgT8qGLPkLav____xg7428umyFqDRIEP
>
>
> ua5AgT+____o46faajVmrYH2rrRpDPwqMRD1YDzPk____PArq1QiR601sL4xp8aE/FKK
>
>
> PSx0QgMi0Xo8+NlUbAH+7jK/____hi4Ij2bWfe4Oav1axI11Rj27yrgAfs____CuJeP6
>
>
> sowfIE8AesQU/____EAA19Hx0kpaFUnvZuJ1dbxe5ALJAuo____cToSCviCGgEGloBKr
>
>
> DYQHHQnA7qTAAZMWKTzvHv/____hyiV52EVsHJPfF2lRHhJ3v/R1IJ/+____fk+Oyfs/
>
>
> z8jc1/DroW0MF65cCo3Sw9gLL+____YrknnoAFdh3XkmMaVB8ovpaK4FFpsn____+ycw
>
>
> o6Cu38Hv7lrKbPoCw0gCUAITxiiJyr______AHFZhUzMZuRwcBOxRYe1enRWCxsQ19
>
>
> bRDQOu9fy6W+____yHJ3X6RwsXH1beFgUqQh058uw89kkV____Y3ZTF3NRxcDblzFw9L
>
>
> MuwphtUXVCve9BXHdKK/fJy/____AX21E4zUl8FkMoJqmqAiiEH1JYwF5Y____+pr955
>
>
> PCqT4Vya2CPsPl8GhZ/____LRI2ayfBh8ngGzifWivcMfiatHdf6e____8OfCEwizxSD
>
>
> DgYG/9dTQwTX33teSWFcP+____Ocqv0zfgoTM+____P6nt7wo0IfGFdSFmX7kMzBACMw
>
>
> NcDAjNSSgig7T94PrqpicEj+____SmvfhCJLtzc2AwpoHxn7Lrr9uKry9C____Gc/dqU
>
>
> BaSGMGdclhcwnowMlOhRtDdErcUwVM______134FqLogi57DQVbGcLyQBDjZiBZ6Bm
>
>
> 7xwWjIVzwSCEHi8X7F32RTksKmViUb______HqK3RYvSlAZWuUQYcB1fEeMl2QRsZ3
>
>
> HEZUQJx6byk3Yj0QImKCNxYsi7O83e______nC61PACxRkfrEsXYAXleBtoCYQPycB
>
>
> 3gMKfpp7EtLmukGShOnNKuhNQQyDIW____lQjWjQLh9VI/__DwFo1sCHI5kgdMehF5
> MGbvZpIl8AB98u36Kvi2Z2/dzQ7+____Awno8bysNwAA
>
>
> --
> You received this message because you are
> subscribed to the
> Google
> Groups "VCR Rubygem" group.
> To unsubscribe from this group and stop receiving
> emails
> from it,
> send an email to
> vcr-ruby+unsubscribe@__
googleg__roups.com <
http://googlegroups.com>
> <mailto:
vcr-ruby%____2Bun...@googlegroups.com
> <mailto:
vcr-ruby%25__2Bun...@googlegroups.com>
> <mailto:
vcr-ruby%__252Bunsubscribe@googlegroups.__com
> <mailto:
vcr-ruby%25252Bun...@googlegroups.com>>__>.
>
> For more options, visit
>
https://groups.google.com/____groups/opt_out
> <
https://groups.google.com/__groups/opt_out>
> an email to vcr-ruby+unsubscribe@__
googleg__roups.com
> <
http://googlegroups.com>
>
> <mailto:
vcr-ruby%__2Buns...@googlegroups.com
> <mailto:
vcr-ruby%252Buns...@googlegroups.com>__>.
> For more options, visit
>
https://groups.google.com/____groups/opt_out
> <
https://groups.google.com/__groups/opt_out>