{"type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.nishimu.land%2Fentry%2F20081213%2F1229136631\" title=\"Rails\u306erake stats\u306e\u518d\u73fe - \u3061\u306a\u307f\u306b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u7814\u7a76\u3067\u81ea\u5206\u304c\u3069\u308c\u304f\u3089\u3044\u30c6\u30b9\u30c8\u3092\u66f8\u3044\u3066\u3044\u308b\u306e\u304b\u3001\u3092\u898b\u3048\u308b\u5316\u3059\u308b\u70ba\u306b\u4f7f\u3063\u3066\u3044\u308bRake\u30bf\u30b9\u30af CODE = FileList['lib/**/*.rb'] SPEC = FileList['spec/**/*.rb'] desc 'Report code-spec ratio' task :stats do code = `wc -l #{CODE}`.split(/ /)[-2] spec = `wc -l #{SPEC}`.split(/ /)[-2] ratio = \"%.1f\" % (spec.to_f / code.to_f) max_width = [[code, spec].map(\u2026","author_url":"https://blog.hatena.ne.jp/Sixeight/","author_name":"Sixeight","published":"2008-12-13 11:50:31","version":"1.0","title":"Rails\u306erake stats\u306e\u518d\u73fe","width":"100%","blog_url":"https://blog.nishimu.land/","url":"https://blog.nishimu.land/entry/20081213/1229136631","blog_title":"\u3061\u306a\u307f\u306b","categories":["ruby"],"provider_name":"Hatena Blog","height":"190","image_url":null}