Sha256: 1c16b5041c6aec917a4117d458d214dd9db3870971d76cfb01ab34278dbf4e0b

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

# encoding: utf-8
#
require 'mongoid'

string = Marshal.dump("\255")

marshaled = Marshal.dump(string)

binary = Moped::BSON::Binary.new(:generic, marshaled)

unmarshaled = Marshal.load(binary.to_s)


p(unmarshaled == string)
p(unmarshaled.encoding)
p(string.encoding)
p('foobar'.encoding)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-store-0.4.4 a.rb
mongoid-store-0.4.3 a.rb