<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pandazx</author_name>
  <author_url>https://blog.hatena.ne.jp/pandazx/</author_url>
  <blog_title>pandazx's blog</blog_title>
  <blog_url>https://pandazx.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>MessagePackしたファイルの読み込み時にエラーで、少しハマったのでメモ test.rb:27:in `unpack': extra bytes follow after a deserialized object (MessagePack::MalformedFormatError) こうじゃなくて File.open(outpath, &quot;w&quot;) do |fout| fout.puts(links.to_msgpack) end こう File.open(outpath, &quot;w&quot;) do |fout| fout.write(links.to_msgpack) end 改行コードがね。。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpandazx.hatenablog.com%2Fentry%2F2016%2F10%2F07%2F193807&quot; title=&quot;Ruby: MessagePackのファイル読み書きでエラー - pandazx&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-07 19:38:07</published>
  <title>Ruby: MessagePackのファイル読み書きでエラー</title>
  <type>rich</type>
  <url>https://pandazx.hatenablog.com/entry/2016/10/07/193807</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
