{"id":48182,"date":"2015-02-06T12:00:26","date_gmt":"2015-02-06T03:00:26","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=48182"},"modified":"2017-03-22T19:47:58","modified_gmt":"2017-03-22T10:47:58","slug":"gem-codesearch","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/gem-codesearch\/","title":{"rendered":"gem-codesearch \u2013 rubygems\u3092\u30d5\u30eb\u30c6\u30ad\u30b9\u30c8\u30b5\u30fc\u30c1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u8c6a\u5feb\u306a\u30bd\u30d5\u30c8"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/Is_20170322_191657.jpg\" alt=\"S 20170322 191657\" title=\"s_20170322_191657.jpg\" border=\"0\" width=\"856\" height=\"461\" \/><\/p>\n<p>RubyGems\u3068\u306fRuby\u8a00\u8a9e\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3002\u4e16\u754c\u4e2d\u306eRuby\u958b\u767a\u8005\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305fgem\u30d5\u30a1\u30a4\u30eb\u306f\u3001<a href=\"https:\/\/rubygems.org\/\">rubygems.org<\/a>\u3092\u5229\u7528\u3057\u3066\u691c\u7d22\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/akr\/gem-codesearch\">gem-codesearch<\/a>\u300d\u306f\u3001\u3053\u306erubygems.org\u306e\u5b8c\u5168\u30df\u30e9\u30fc\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u69cb\u7bc9\u3057\u3001\u30d5\u30eb\u30c6\u30ad\u30b9\u30c8\u30b5\u30fc\u30c1\u3092\u5b9f\u73fe\u3059\u308b\u8c6a\u5feb\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u306brubygems\u306e\u30df\u30e9\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u3001\u5b8c\u5168\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408400GB\u307b\u3069\u306e\u30c7\u30a3\u30b9\u30af\u30b9\u30da\u30fc\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u304c\u3001\u30ea\u30bd\u30fc\u30b9\u306b\u4f59\u88d5\u306e\u3042\u308b\u958b\u767a\u8005\u306a\u3089\u3070\u8a66\u3057\u3066\u307f\u308b\u4fa1\u5024\u306f\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>gem-codesearch\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>gem-codesearch\u306fGoogle\u304c\u4f5c\u6210\u3057\u305f<a href=\"https:\/\/github.com\/google\/codesearch\">codesearch<\/a>\u3068\u547c\u3070\u308c\u308b\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u307e\u3059\u3002codesearch\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u4e8b\u524d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>#Debian\u30d9\u30fc\u30b9\u306eLinux\u306e\u5834\u5408\r\nsudo aptitude install codesearch\r\n#macOS\u306a\u3069\u305d\u306e\u4ed6\u30b7\u30b9\u30c6\u30e0\u306e\u5834\u5408\r\ngo get github.com\/google\/codesearch\/cmd\/...<\/pre>\n<p>\u6b21\u306bgem-codesearch\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>% gem install gem-codesearch\r\n% mkdir $HOME\/gem-codesearch        # \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210\r\n% cd $HOME\/gem-codesearch\r\n% gem-codesearch-setup all >& setup.log # \u6570\u65e5\u304b\u304b\u308b\u304b\u3082\u2026\r\n<\/pre>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/Is_20170322_194410.jpg\" alt=\"S 20170322 194410\" title=\"s_20170322_194410.jpg\" border=\"0\" width=\"850\" height=\"593\" \/><\/p>\n<p>\u25b2gem-codesearch-setup\u3067\u30df\u30e9\u30fc\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u521d\u306b\u8ff0\u3079\u305f\u3068\u304a\u308a\u304b\u306a\u308a\u306e\u5bb9\u91cf\u306a\u306e\u3067\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre>% csearch sort_by\r\n<\/pre>\n<p>\u25b2\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u69cb\u7bc9\u3055\u308c\u305f\u5f8c\u306f\u3001csearch\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u691c\u7d22\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>% gem install milkode\r\n% milk init --default               # milkode\u3092\u6700\u5c0f\u306b\u4f7f\u7528\u3059\u308b\u5834\u5408\u3002\r\n% rake mirror unpack index_milkode >& setup.log\r\n<\/pre>\n<p>\u25b2codesearch\u3067\u306f\u306a\u304f\u3066milkode\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5927\u91cf\u306b\u6d88\u8cbb\u3059\u308b\u306e\u304c\u6700\u5927\u306e\u30cd\u30c3\u30af\u3067\u3059\u304c\u3001\u30df\u30e9\u30fc\u304c\u69cb\u7bc9\u3067\u304d\u308b\u3068\u8ab0\u306b\u3082\u6c17\u517c\u306d\u306a\u304fRuby\u95a2\u9023\u306e\u81a8\u5927\u306a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u691c\u7d22\u3057\u307e\u304f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u56de\u7dda\u306b\u4f59\u88d5\u306e\u3042\u308b\u65b9\u306f\u3001\u3053\u306e\u5bcc\u8c6a\u7684\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RubyGems\u3068\u306fRuby\u8a00\u8a9e\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3002\u4e16\u754c\u4e2d\u306eRuby\u958b\u767a\u8005\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305fgem\u30d5\u30a1\u30a4\u30eb\u306f\u3001rubygems.org\u3092\u5229\u7528\u3057\u3066\u691c\u7d22\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4eca\u56de\u7d39\u4ecb\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":48184,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[154],"class_list":["post-48182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/48182","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=48182"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/48182\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/48184"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=48182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=48182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=48182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}