{"id":46236,"date":"2018-03-23T11:51:01","date_gmt":"2018-03-23T02:51:01","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=46236"},"modified":"2024-05-06T11:46:19","modified_gmt":"2024-05-06T02:46:19","slug":"%e3%80%90ruby%e5%85%a5%e9%96%80%e3%80%91zip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e5%9c%a7%e7%b8%ae%e3%81%a8%e8%a7%a3%e5%87%8d%e3%81%a8%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%81%ae","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/46236","title":{"rendered":"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30aa\u30aa\u30a4\u30b7\u3067\u3059\u3002<\/p>\n<p>Ruby\u3067zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u3084\u89e3\u51cd\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n<p><span style=\"color: #339966\"><strong>rubyzip<\/strong><\/span>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3048\u3070<span style=\"color: #ff0000;background-color: #ffff99\"><strong>Ruby\u3067zip\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3084\u89e3\u51cd\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n<ul>\n<li><span style=\"color: #ff0000\"><strong>rubyzip\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000\"><strong>\u30d5\u30a1\u30a4\u30eb\u3092zip\u5727\u7e2e\u3059\u308b<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000\"><strong>zip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3059\u308b<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3059\u308b<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u306e\u89e3\u51cd\u3059\u308b<\/strong><\/span><\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001<\/p>\n<ul>\n<li><span style=\"color: #ff0000\"><strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5727\u7e2e\u3059\u308b<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000\"><strong>\u89e3\u51cd\u305b\u305a\u306bzip\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308b<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000\"><strong>Ruby\u306e\u6587\u5b57\u5217\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/strong><\/span><\/li>\n<\/ul>\n<p>\u306a\u3069\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u95a2\u3057\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<p>\u4eca\u56de\u306f\u3053\u308c\u3089\u306e\u65b9\u6cd5\u3092\u899a\u3048\u308b\u305f\u3081\u306b<span style=\"color: #ff0000; background-color: #ffff99;\"><strong>\u3001Ruby\u3067zip\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u305f\u3081\u306e\u3055\u307e\u3056\u307e\u306a\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/strong><\/span>\u3057\u307e\u3059\uff01<\/p>\n<h2>rubyzip\u306e\u4f7f\u3044\u65b9<\/h2>\n<h3>rubyzip\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n<p>Ruby\u3067zip\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u5727\u7e2e\u3084\u89e3\u51cd\u3092\u3059\u308b\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u624b\u6bb5\u304c\u3042\u308a\u307e\u3059\u304c\u3001<span style=\"color: #339966;\"><strong>\u300crubyzip\u300d<\/strong><\/span>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u306a\u306e\u3067\u3001\u3053\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3058\u3081\u306brubyzip\u306e<span style=\"color: #339966\"><strong>gem<\/strong><\/span>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">gem install rubyzip<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">Fetching: rubyzip-1.2.1.gem (100%)\r\nSuccessfully installed rubyzip-1.2.1\r\nParsing documentation for rubyzip-1.2.1\r\nInstalling ri documentation for rubyzip-1.2.1\r\nDone installing documentation for rubyzip after 0 seconds\r\n1 gem installed<\/pre>\n<p>gem\u3068\u306f\u3001<span style=\"color: #0000ff\"><strong>Ruby\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>gem\u3092\u77e5\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/15339\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/02\/ruby_install-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">Ruby\/Rails\/gem\/bundler\u3068\u306f\uff1f\u5404\u7a2e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u89e3\u8aac<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<p>\u3067\u306f\u3001\u6b21\u306e\u9805\u3067\u3055\u3063\u305d\u304fzip\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u3092zip\u5727\u7e2e\u3059\u308b<\/h3>\n<p>rubyzip\u306b\u306f\u3001zip\u30d5\u30a1\u30a4\u30eb\u306b<span style=\"color: #0000ff\"><strong>\u5727\u7e2e<\/strong><\/span>\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b<span style=\"color: #339966\"><strong>\u300cZip::OutputStream\u300d\u30af\u30e9\u30b9<\/strong><\/span>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u300cZip::OutputStream\u300d\u30af\u30e9\u30b9\u306e\u4f7f\u3044\u65b9\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3001zip\u30d5\u30a1\u30a4\u30eb\u3078<span style=\"color: #0000ff\"><strong>\u5c0f\u5ddd(Stream)\u304c\u6d41\u308c\u308b\u3088\u3046\u306b\u66f8\u304d\u8fbc\u307f<\/strong><\/span>\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u77e5\u3063\u3066\u3044\u305f\u3060\u304f\u305f\u3081\u306b\u30011\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092zip\u5727\u7e2e\u3059\u308b\u65b9\u6cd5\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ea4\u3048\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u3046\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">.\r\n\u251c\u2500\u2500 compress.rb\r\n\u251c\u2500\u2500 input\r\n\u2502     \u2514\u2500\u2500 file_name.txt\r\n\u2514\u2500\u2500 zip_file.zip\r\n  \u2514\u2500\u2500 output\r\n    \u3000  \u2514\u2500\u2500 file_name.txt<\/pre>\n<p>\u305f\u304f\u3055\u3093\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u304c\u3001<span style=\"color: #0000ff\"><strong>\u4e01\u5be7\u306b\u8aac\u660e\u3059\u308b\u306e\u3067\u3054\u5b89\u5fc3\u304f\u3060\u3055\u3044\uff01<\/strong><\/span><\/p>\n<p>\u305d\u308c\u305e\u308c\u30d5\u30a1\u30a4\u30eb\u306e\u5f79\u5272\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-327\" class=\"tablepress tablepress-id-327\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30d5\u30a1\u30a4\u30eb\u540d<\/th><th class=\"column-2\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">compress.rb<\/td><td class=\"column-2\">zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">input\/file_name.txt<\/td><td class=\"column-2\">\u5727\u7e2e\u5143\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">zip_file.zip<\/td><td class=\"column-2\">\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u5f8c\u306b\u4f5c\u6210\u3055\u308c\u308bzip\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">output\/file_name.txt<\/td><td class=\"column-2\">zip_file.zip\u306e\u4e2d\u306b\u5727\u7e2e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-327 from cache -->\n<p>\u307e\u305a\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u524d\u6e96\u5099\u3068\u3057\u3066\u3001\u5727\u7e2e\u5143\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(input\/file_name.txt)\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306f\u4efb\u610f\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">1\u884c\u76ee\r\n2\u884c\u76ee\r\n<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001\u201d<span style=\"color: #339966\"><strong>input\/file_name.txt<\/strong><\/span>\u201d\u306e1\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092<span style=\"color: #339966\"><strong>\u201dzip_file.zip<\/strong><\/span>\u201d\u30d5\u30a1\u30a4\u30eb\u3078\u5727\u7e2e\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">require 'zip'\r\n\r\nfile_name = \"file_name.txt\"\r\nzip_file_name = \"zip_file.zip\"\r\n\r\n# \u4f5c\u6210\u3059\u308bzip\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u5f15\u6570\u306b\u6307\u5b9a\r\nZip::OutputStream.open(zip_file_name) do |out| \r\n\r\n  # zip\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u66f8\u304d\u8fbc\u3080\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u6307\u5b9a\r\n  out.put_next_entry(\"output\/\" + file_name) \r\n\r\n  # zip\u30d5\u30a1\u30a4\u30eb\u3078\u6587\u5b57\u5217\u3092\u66f8\u304d\u8fbc\u3080\r\n  buffer = File.read(\"input\/\"  + file_name)\r\n  out.write(buffer)\r\nend<\/pre>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">ruby compress.rb\r\n<\/pre>\n<p>\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001&#8221;<span style=\"color: #339966\"><strong>zip_file.zip<\/strong><\/span>&#8220;\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001<\/p>\n<ul>\n<li>out.put_next_entry(zip\u3078\u66f8\u304d\u8fbc\u3080\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9)<\/li>\n<li>out.write(zip\u3078\u66f8\u304d\u8fbc\u3080\u5185\u5bb9)<\/li>\n<\/ul>\n<p>\u3067\u30012\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066zip\u30d5\u30a1\u30a4\u30eb\u3078\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u308b\u70b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u300cZip::OutputStream\u300d\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-328\" class=\"tablepress tablepress-id-328\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30e1\u30bd\u30c3\u30c9\u540d<\/th><th class=\"column-2\">\u7528\u9014\u30fb\u76ee\u7684<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">open<\/td><td class=\"column-2\">\u5727\u7e2e\u3059\u308bzip\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3002<br \/>\n\u30d6\u30ed\u30c3\u30af\u306b\u306f\u300cZip::OutputStream\u300d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u304c\u6e21\u308b<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">put_next_entry<\/td><td class=\"column-2\">zip\u30d5\u30a1\u30a4\u30eb\u306b\u767b\u9332\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u5f15\u6570\u306b\u6307\u5b9a<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">write<\/td><td class=\"column-2\">put_next_entry\u306b\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306b\u66f8\u304d\u51fa\u3059\u6587\u5b57\u5217\u3092\u5f15\u6570\u306b\u6307\u5b9a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-328 from cache -->\n<p>\u4ee5\u964d\u306e\u8aac\u660e\u306f\u3001\u3053\u306e\u89e3\u8aac\u306e\u5fdc\u7528\u306b\u306a\u308b\u306e\u3067<span style=\"color: #0000ff\"><strong>\u7c21\u5358\u306b\u308f\u304b\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u601d\u3044\u307e\u3059\uff01<\/strong><\/span><\/p>\n<p>\u307e\u305f\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3067\u767b\u5834\u3057\u305f<span style=\"color: #339966\"><strong>File\u30af\u30e9\u30b9<\/strong><\/span>\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/14388\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/12\/20171206_ruby_open-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Ruby\u5165\u9580\u3011\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f\u307e\u3068\u3081(File open)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3><strong>zip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3059\u308b<\/strong><\/h3>\n<p>rubyzip\u3067\u306f\u3001zip\u30d5\u30a1\u30a4\u30eb\u3092<span style=\"color: #0000ff\"><strong>\u89e3\u51cd<\/strong><\/span>\u3059\u308b\u305f\u3081\u306b<span style=\"color: #339966\"><strong>\u300cZip::InputStream\u300d\u30af\u30e9\u30b9<\/strong><\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u300cZip::InputStream\u300d\u30af\u30e9\u30b9\u306e\u4f7f\u3044\u65b9\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3001<span style=\"color: #0000ff\"><strong>\u5c0f\u5ddd(Stream)\u304c\u6d41\u308c\u308b\u3088\u3046\u306bzip\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u524d\u9805\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f5c\u6210\u3057\u305f\u201d<span style=\"color: #339966\"><strong>zip_file.zip<\/strong><\/span>\u201d\u30d5\u30a1\u30a4\u30eb\u3092<span style=\"color: #0000ff\"><strong>\u89e3\u51cd<\/strong><\/span>\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">.\r\n\u251c\u2500\u2500 uncompress.rb\r\n\u2514\u2500\u2500 zip_file.zip\r\n  \u2514\u2500\u2500 output\r\n    \u3000    \u2514\u2500\u2500 file_name.txt<\/pre>\n<p>\u305d\u308c\u305e\u308c\u30d5\u30a1\u30a4\u30eb\u306e\u5f79\u5272\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-330\" class=\"tablepress tablepress-id-330\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30d5\u30a1\u30a4\u30eb\u540d<\/th><th class=\"column-2\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">uncompress.rb<\/td><td class=\"column-2\">zip_file.zip\u3092\u89e3\u51cd\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">zip_file.zip<\/td><td class=\"column-2\">\u524d\u9805\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f5c\u6210\u3057\u305fzip\u30d5\u30a1\u30a4\u30eb<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">output\/file_name.txt<\/td><td class=\"column-2\">zip_file.zip\u306e\u4e2d\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-330 from cache -->\n<p>\u305d\u308c\u3067\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">require 'zip'\r\n\r\nzip_file_name = \"zip_file.zip\"\r\n\r\n# \u89e3\u51cd\u3059\u308bzip\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u5f15\u6570\u306b\u6307\u5b9a\r\nZip::InputStream.open(zip_file_name) do |input|\r\n\r\n  # \u6b21\u306b\u53d6\u5f97\u3067\u304d\u308bzip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u60c5\u5831\u3092\u53d6\u5f97\r\n  entry = input.get_next_entry\r\n\r\n  # \u89e3\u51cd\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\r\n  Dir.mkdir(File.dirname(entry.name))\r\n  \r\n  # entry.name\u3067zip\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u53d6\u5f97\r\n  file_name = entry.name\r\n\r\n  # zip\u5185\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8aad\u307f\u8fbc\u307f\r\n  buffer = input.read\r\n\r\n  # \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\r\n  File.write(file_name, buffer)\r\nend<\/pre>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">ruby uncompress.rb\r\n<\/pre>\n<p>\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001&#8221;<span style=\"color: #339966\"><strong>1\u884c\u76ee&lt;\u6539\u884c&gt;2\u884c\u76ee<\/strong><\/span>&#8220;\u3068\u3044\u3046\u5185\u5bb9\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u201d<span style=\"color: #339966\"><strong>output\/file_name.txt<\/strong><\/span>\u201d\u306b\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001<\/p>\n<ul>\n<li>input.get_next_entry \u2192 zip\u5185\u3067\u53d6\u5f97\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u53d6\u5f97<\/li>\n<li>input.read \u2192 \u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u51fa\u3057<\/li>\n<\/ul>\n<p>\u306e2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066zip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3067\u304d\u308b\u3053\u3068\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u300cZip::InputStream\u300d\u30af\u30e9\u30b9\u306e\u4ee3\u8868\u7684\u306a\u30e1\u30bd\u30c3\u30c9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<br \/>\n\n<table id=\"tablepress-329\" class=\"tablepress tablepress-id-329\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30e1\u30bd\u30c3\u30c9\u540d<\/th><th class=\"column-2\">\u7528\u9014\u30fb\u76ee\u7684<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">open<\/td><td class=\"column-2\">\u89e3\u51cd\u3059\u308bzip\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u7b2c1\u5f15\u6570\u306b\u6307\u5b9a<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">get_next_entry<\/td><td class=\"column-2\">zip\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u60c5\u5831\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">read<\/td><td class=\"column-2\">zip\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308a\u8fd4\u3059<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-329 from cache --><\/p>\n<p>\u307e\u305f\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3067\u767b\u5834\u3057\u305f<span style=\"color: #339966\"><strong>Dir\u30af\u30e9\u30b9<\/strong><\/span>\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/14367\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/12\/ruby_filelist6-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010\u5b8c\u5168\u7db2\u7f85\u3011Ruby\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fb\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u307e\u3068\u3081\uff08dir, file\uff09<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u6271\u3046\u306b\u306f<\/h2>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>rubyzip\u3067\u306f<span style=\"color: #0000ff\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u4e0a\u306e\u7406\u7531<\/strong><\/span>\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u306f\u3001\u3044\u307e\u3084\u5e38\u8b58\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u899a\u3048\u3066\u304a\u304f\u3068\u4f55\u304b\u3068\u5f79\u306b\u7acb\u3061\u307e\u3059\uff01<\/p>\n<p>\u305d\u3093\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u3064\u304d\u306ezip\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3082\u3001\u3053\u308c\u307e\u3067\u306e\u89e3\u8aac\u306e\u5fdc\u7528\u306a\u306e\u3067\u4f5c\u6210\u306f\u3068\u3063\u3066\u3082<span style=\"color: #0000ff\"><strong>\u30ab\u30f3\u30bf\u30f3<\/strong><\/span>\u3067\u3059\uff01<\/p>\n<pre class=\"lang:ruby decode:true \">require 'zip'\r\n\r\nfile_name = \"file_name.txt\"\r\nzip_file_name = \"password_zip_file.zip\"\r\n\r\n# zip\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\r\npassword = Zip::TraditionalEncrypter.new('password')\r\n\r\n# \u7b2c2\u5f15\u6570\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\r\nZip::OutputStream.open(zip_file_name, password) do |out|\r\n  out.put_next_entry(\"output\/\" + file_name)\r\n\r\n  out.print(\"1\u884c\u76ee\\n\")\r\n  out.print(\"2\u884c\u76ee\\n\")\r\nend\r\n<\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\u306e&#8221;<span style=\"color: #339966\"><strong>password_zip_file.zip<\/strong><\/span>&#8220;\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f\u3001Ruby\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3064\u304d\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3059\u308b\u89e3\u8aac\u3092\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u306e\u89e3\u51cd<\/h3>\n<p>rubyzip\u3067\u306f<span style=\"color: #0000ff\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u524d\u9805\u3067\u4f5c\u6210\u3057\u305f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u306e\u201d<span style=\"color: #339966\"><strong>password_zip_file.zip<\/strong><\/span>\u201d\u3092\u89e3\u51cd\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">require 'zip'\r\n\r\nzip_file_name = \"password_zip_file.zip\"\r\n\r\n# zip\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\r\npassword = Zip::TraditionalDecrypter.new('password')\r\n\r\n# \u7b2c3\u5f15\u6570\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3001\u7b2c2\u5f15\u6570\u306f0\u56fa\u5b9a\r\nZip::InputStream.open(zip_file_name, 0, password) do |input|\r\n  entry = input.get_next_entry\r\n\r\n  Dir.mkdir(File.dirname(entry.name))\r\n  File.write(entry.name, input.read)\r\nend\r\n<\/pre>\n<p>\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u304c\u89e3\u51cd\u3055\u308c\u3066\u201d<span style=\"color: #339966\"><strong>output\/file_name.txt<\/strong><\/span>\u201d\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u300cZip::InputStream.open\u300d\u30e1\u30bd\u30c3\u30c9\u306e<span style=\"color: #0000ff\"><strong>\u7b2c3\u5f15\u6570\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067<\/strong><\/span>\u3001<\/span>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304dzip\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u30ab\u30f3\u30bf\u30f3\u306b\u89e3\u51cd\u3059\u308b\u3067\u304d\u308b\u3053\u3068\u304c\u7406\u89e3\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p>\u307e\u305f\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306e<span style=\"color: #339966\"><strong>Dir.mkdir\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/14367\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/12\/ruby_filelist6-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010\u5b8c\u5168\u7db2\u7f85\u3011Ruby\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fb\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u307e\u3068\u3081\uff08dir, file\uff09<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5727\u7e2e\u3059\u308b<\/h2>\n<p><span style=\"color: #0000ff\"><strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3093\u3060zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/strong><\/span>\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u307e\u3067\u306e\u89e3\u8aac\u3067\u767b\u5834\u3057\u305f\u300cZip::OutputStream\u300d\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u5fdc\u7528\u3067\u3059\u306e\u3067\u3001\u65b0\u3057\u3044\u3053\u3068\u3092\u899a\u3048\u305a\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u201d<span style=\"color: #339966\"><strong>input_dir<\/strong><\/span>\u201d\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u201d<span style=\"color: #339966\"><strong>input_dir.zip<\/strong><\/span>\u201d\u30d5\u30a1\u30a4\u30eb\u3078\u5727\u7e2e\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u306f\u201d<span style=\"color: #339966\"><strong>input_dir<\/strong><\/span>\u201d\u30d5\u30a9\u30eb\u30c0\u3078\u5727\u7e2e\u3057\u305f\u3044\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b\u306a\u3069\u3057\u3066\u6e96\u5099\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">require 'zip'\r\n\r\nzip_file_name = \"input_dir.zip\"\r\n\r\n#input_dir\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u914d\u5217\u306b\u767b\u9332\r\nentries = Dir.glob(\"input_dir\/*\")\r\n\r\nZip::OutputStream.open(zip_file_name) do |out|\r\n# input_dir\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30eb\u30fc\u30d7\r\n entries.each do |entry|\r\n # \u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306e\u3046\u3061\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u307f\u3092\u53d6\u5f97\u3059\u308b\r\n file_name = File.basename(entry)\r\n # zip\u5185\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u5185\u5bb9\u3092\u767b\u9332\r\n out.put_next_entry(\"output_dir\/\" + file_name)\r\n out.write( File.read(entry) )\r\n end\r\nend<\/pre>\n<p>\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001&#8221;<span style=\"color: #339966\"><strong>input_dir.zip<\/strong><\/span>&#8220;\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u30bd\u30d5\u30c8\u3067\u89e3\u51cd\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u89e3\u51cd\u305b\u305a\u306bzip\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308b\u65b9\u6cd5<\/h2>\n<p>rubyzip\u3067\u306f\u3001<span style=\"color: #0000ff\"><strong>zip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u305b\u305a\u306bzip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080<\/strong><\/span>\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>zip\u5185\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308b\u306b\u306f\u30011\u884c\u3054\u3068\u306b\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b<span style=\"color: #0000ff\"><strong><span style=\"color: #339966\"><strong>each_line\u30e1\u30bd\u30c3\u30c9<\/strong><\/span><\/strong><\/span>\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u524d\u7ae0\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u4f5c\u6210\u3057\u305f&#8221;<span style=\"color: #339966\"><strong>zip_file.zip<\/strong><\/span>&#8220;\u5185\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">require 'zip'\r\n\r\nzip_file_name = \"zip_file.zip\"\r\n\r\n# \u8aad\u307f\u53d6\u308bzip\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u5f15\u6570\u306b\u6307\u5b9a\r\nZip::InputStream.open(zip_file_name) do |input|\r\n\r\n  # zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u60c5\u5831\u3092\u53d6\u5f97\r\n  entry = input.get_next_entry\r\n\r\n  puts \"zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9: #{entry.name}\"\r\n\r\n  # zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6539\u884c\u30b3\u30fc\u30c9\u6bce\u306b\u30eb\u30fc\u30d7\r\n  input.each_line do |line|\r\n    puts line\r\n  end\r\nend\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9: output\/file_name.txt\r\n1\u884c\u76ee\r\n2\u884c\u76ee<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001&#8221;<span style=\"color: #339966\"><strong>zip_file.zip<\/strong><\/span>&#8220;\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u201d<span style=\"color: #339966\"><strong>output\/file_name.txt<\/strong><\/span>\u201d\u306e\u5185\u5bb9\u3092\u8aad\u307f\u53d6\u3063\u3066\u3001<span style=\"color: #339966\"><strong>puts\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u3067\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>each_line\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u3001zip\u5185\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u6539\u884c\u6bce\u306b\u51e6\u7406\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p>each_line\u30e1\u30bd\u30c3\u30c9\u4ee5\u5916\u306b\u3082\u3001Ruby\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u3048\u308b\u6b21\u306e\u3088\u3046\u306a<span style=\"color: #0000ff\"><strong>\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u306e\u3067\u3001\u305c\u3072\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/strong><\/span><\/p>\n\n<table id=\"tablepress-335\" class=\"tablepress tablepress-id-335\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30e1\u30bd\u30c3\u30c9\u540d<\/th><th class=\"column-2\">\u7528\u9014\u30fb\u76ee\u7684<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">each_line<\/td><td class=\"column-2\">\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u884c\u6bce\u306b\u8aad\u307f\u53d6\u308a\u3001\u30d6\u30ed\u30c3\u30af\u306e\u5909\u6570\u306b\u6e21\u3059<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">readlines<\/td><td class=\"column-2\">\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u884c\u6bce\u306b\u8aad\u307f\u53d6\u308a\u3001\u914d\u5217\u3067\u8fd4\u3059<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">read<\/td><td class=\"column-2\">\u753b\u50cf\u3084\u6587\u5b57\u5217\u306a\u3069\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-335 from cache -->\n<h2>\u6587\u5b57\u5217\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>rubyzip\u3067\u306f<span style=\"color: #0000ff\"><strong>Ruby\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u3078\u76f4\u63a5\u66f8\u304d\u8fbc\u3080<\/strong><\/span>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u307e\u3067\u89e3\u8aac\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5fdc\u7528\u306a\u306e\u3067<span style=\"color: #0000ff\"><strong>\u30ab\u30f3\u30bf\u30f3\u306b\u5b9f\u73fe<\/strong><\/span>\u3059\u308b\u3053\u3068\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>zip\u30d5\u30a1\u30a4\u30eb\u306b2\u3064\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u6587\u5b57\u5217\u3092\u66f8\u304d\u8fbc\u3080\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">require 'zip'\r\n\r\nfile_name1 = \"file_name1.txt\"\r\nfile_name2 = \"file_name2.txt\"\r\nzip_file_name = \"zip_file.zip\"\r\n \r\nZip::OutputStream.open(zip_file_name) do |out|\r\n  # zip_file.zip\u5185\u306e output\/file_name1.txt \u3078\u66f8\u304d\u8fbc\u307f\r\n  out.put_next_entry(\"output\/\" + file_name1)\r\n  out.print(\"#{file_name1} 1\u884c\u76ee\\n\")\r\n  out.print(\"#{file_name1} 2\u884c\u76ee\\n\")\r\n\r\n  # zip_file.zip\u5185\u306e output\/file_name2.txt \u3078\u66f8\u304d\u8fbc\u307f\r\n  out.put_next_entry(\"output\/\" + file_name2)\r\n  out.print(\"#{file_name2} 1\u884c\u76ee\\n\")\r\n  out.print(\"#{file_name2} 2\u884c\u76ee\\n\")\r\nend<\/pre>\n<p>\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001&#8221;<span style=\"color: #339966\"><strong>zip_file.zip<\/strong><\/span>&#8220;\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3067\u304d\u308b\u306e\u3067\u3001\u30bd\u30d5\u30c8\u3067\u89e3\u51cd\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>output\/file_name1.txt\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">file_name1.txt 1\u884c\u76ee\r\nfile_name1.txt 2\u884c\u76ee<\/pre>\n<p>output\/file_name2.txt\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">file_name2.txt 1\u884c\u76ee\r\nfile_name2.txt 2\u884c\u76ee<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Ruby\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306b\u3082zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u66f8\u304d\u51fa\u3059\u305f\u3081\u306b\u3001\u6b21\u306e\u3088\u3046\u306a<span style=\"color: #0000ff\"><strong>\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-331\" class=\"tablepress tablepress-id-331\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u30e1\u30bd\u30c3\u30c9\u540d<\/th><th class=\"column-2\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">print<\/td><td class=\"column-2\">\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u307e\u305f\u306f\u914d\u5217\u3092zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">puts<\/td><td class=\"column-2\">print\u30e1\u30bd\u30c3\u30c9\u3068\u540c\u69d8\u3002\u9055\u3044\u306f\u6539\u884c\u30b3\u30fc\u30c9\u3092\u884c\u672b\u306b\u81ea\u52d5\u633f\u5165<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">printf<\/td><td class=\"column-2\">\u7b2c1\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u66f8\u5f0f\u3067\u30012\u5f15\u6570\u306e\u6587\u5b57\u5217\u3092zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">putc<\/td><td class=\"column-2\">\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f1\u6587\u5b57\u307e\u305f\u306f1\u6841\u306e\u6574\u6570\u3092zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">write<\/td><td class=\"column-2\">\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3084\u753b\u50cf\u306a\u3069\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3092zip\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-331 from cache -->\n<p>\u307e\u305f\u3001<span style=\"color: #339966\"><strong>printf\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u306e\u66f8\u5f0f\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/16119\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-77-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Ruby\u5165\u9580\u3011print puts p printf \u51fa\u529b\u30e1\u30bd\u30c3\u30c9\u3092\u6975\u3081\u308b\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304b\u3067\u3057\u305f\u304b\uff1f<\/p>\n<p>\u4eca\u56de\u306f<span style=\"color: #339966\"><strong>rubyzip<\/strong><\/span>\u3092\u4f7f\u3063\u305f<span style=\"color: #0000ff\"><strong>zip\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u5727\u7e2e\u3084\u89e3\u51cd\u65b9\u6cd5<\/strong><\/span>\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>rubyzip\u3092\u4f7f\u3046\u3068<span style=\"color: #0000ff\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\u306ezip<\/strong><\/span>\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3084\u89e3\u51cd\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>rubyzip\u3092\u4f7f\u3046\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u53d6\u308a\u3084\u66f8\u304d\u8fbc\u307f\u3057\u305f\u3044\u5834\u5408\u306b\u5927\u5909\u4fbf\u5229\u306b\u306a\u306e\u3067\u3001\u305c\u3072\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001rubyzip\u306e\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3053\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30aa\u30aa\u30a4\u30b7\u3067\u3059\u3002 Ruby\u3067zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u3084\u89e3\u51cd\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u3044\u307e\u3059\u304b\uff1f rubyzip\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3048\u3070Ruby\u3067zip\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3084\u89e3\u51cd\u304c\u53ef\u80fd\u3067\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 ruby [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":55393,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2352],"tags":[114],"class_list":["post-46236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-study","tag-ruby"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/46236\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/46236\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-23T02:51:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:46:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/image-23.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a\",\"datePublished\":\"2018-03-23T02:51:01+00:00\",\"dateModified\":\"2024-05-06T02:46:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236\"},\"wordCount\":240,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/image-23.jpg\",\"keywords\":[\"ruby\"],\"articleSection\":[\"Ruby\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236\",\"name\":\"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/image-23.jpg\",\"datePublished\":\"2018-03-23T02:51:01+00:00\",\"dateModified\":\"2024-05-06T02:46:19+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/image-23.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/image-23.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/46236#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/46236","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/46236","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2018-03-23T02:51:01+00:00","article_modified_time":"2024-05-06T02:46:19+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/image-23.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/46236#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/46236"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a","datePublished":"2018-03-23T02:51:01+00:00","dateModified":"2024-05-06T02:46:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/46236"},"wordCount":240,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/46236#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/image-23.jpg","keywords":["ruby"],"articleSection":["Ruby\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/46236","url":"https:\/\/www.sejuku.net\/blog\/46236","name":"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/46236#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/46236#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/image-23.jpg","datePublished":"2018-03-23T02:51:01+00:00","dateModified":"2024-05-06T02:46:19+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/46236#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/46236"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/46236#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/image-23.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/image-23.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/46236#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Ruby\u5165\u9580\u3011zip\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u30fb\u89e3\u51cd\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/46236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=46236"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/46236\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/55393"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=46236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=46236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=46236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}