{"id":86146,"date":"2021-03-27T09:26:32","date_gmt":"2021-03-27T00:26:32","guid":{"rendered":"https:\/\/softantenna.com\/wp\/?p=86146"},"modified":"2021-03-27T09:26:32","modified_gmt":"2021-03-27T00:26:32","slug":"mimemagic-rails","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/mimemagic-rails\/","title":{"rendered":"mimemagic\u554f\u984c\u3067Rails\u754c\u9688\u306b\u6fc0\u9707"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2021\/03\/s_20210326_205647.jpg\" alt=\"S 20210326 205647\" title=\"s_20210326_205647.jpg\" border=\"0\" width=\"929\" height=\"604\" \/><\/p>\n<p>Rails\u3092\u69cb\u6210\u3059\u308bActiveStorage\u304c\u4f9d\u5b58\u3057\u3066\u3044\u308b\u300c<a href=\"https:\/\/github.com\/mimemagicrb\/mimemagic\">mimemagic<\/a>\u300d\u306e\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304crubygems.org\u304b\u3089\u53d6\u308a\u4e0b\u3052\u3089\u308c\u3001v0.3.5\u4ee5\u524d\u306emimemagic\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308bRails\u30a2\u30d7\u30ea\u304c\u300cbundle install\u300d\u3067\u5931\u6557\u3059\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3044\u3046\u554f\u984c\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f(<a href=\"https:\/\/hackmd.io\/@mametter\/mimemagic-info-ja\">HackMD<\/a>)\u3002<\/p>\n<p>\u3082\u3068\u3082\u3068\u3001mimemagic\u306ev0.3.5\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001MIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u305f\u3082\u306e\u306e\u3001GPL\u306e\u30d5\u30a1\u30a4\u30eb\u300cfreedesktop.org.xml\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u3001\u3053\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u30010.3.5\u307e\u3067\u306e\u3059\u3079\u3066\u306egem\u304crubygems.org\u304b\u3089\u524a\u9664\u3055\u308c\u305f\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305ffreedesktop.org.xml\u3092\u53c2\u7167\u3059\u308bMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u306ev0.3.7\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306bfreedesktop.org.xml\u3092\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5fc5\u8981\u304c\u751f\u3058\u305f\u306e\u3067\u3059(shared-mime-info\u30d1\u30c3\u30b1\u30fc\u30b8)\u3002<\/p>\n<p>\u4f8b\u3048\u3070macOS\u3067Homebrew\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u300cbrew install shared-mime-info\u300d\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3001MacPorts\u306e\u5834\u5408\u300csudo port install shared-mime-info\u300d\u3057\u305f\u4e0a\u3067\u300cFREEDESKTOP_MIME_TYPES_PATH=\/opt\/local\/share\/mime\/packages\/freedesktop.org.xml\u300d\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u74b0\u5883\u5909\u6570\u3067\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059(<a href=\"https:\/\/github.com\/mimemagicrb\/mimemagic\/pull\/124\">\u4eca\u5f8cMacPorts\u3067\u3082\u74b0\u5883\u5909\u6570\u306f\u5fc5\u8981\u306a\u304f\u306a\u308b\u304b\u3082<\/a>\u3057\u308c\u307e\u305b\u3093\u304c\u2026)\u3002<\/p>\n<p>\u5b9f\u969b\u624b\u5143\u306eRails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3044\u304d\u306a\u308a\u300cbundle install\u300d\u304c\u5931\u6557\u3057\u3066\u9a5a\u304b\u3055\u308c\u307e\u3057\u305f\u3002\u4eca\u5f8c\u306e\u52d5\u5411\u3092\u6ce8\u610f\u6df1\u304f\u898b\u5b88\u3063\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rails\u3092\u69cb\u6210\u3059\u308bActiveStorage\u304c\u4f9d\u5b58\u3057\u3066\u3044\u308b\u300cmimemagic\u300d\u306e\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304crubygems.org\u304b\u3089\u53d6\u308a\u4e0b\u3052\u3089\u308c\u3001v0.3.5\u4ee5\u524d\u306emimemagic\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308bRails\u30a2\u30d7\u30ea\u304c\u300cbund [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":86148,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[350],"class_list":["post-86146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-rails"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/86146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=86146"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/86146\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/86148"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=86146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=86146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=86146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}