{"action":"created","comment":{"url":"https://api.github.com/repos/ranguba/rroonga/pulls/comments/27862486","id":27862486,"diff_hunk":"@@ -0,0 +1,59 @@\n+# -*- coding: utf-8 -*-\n+#\n+# Copyright (C) 2015  Masafumi Yokoyama <yokoyama@clear-code.com>\n+#\n+# This library is free software; you can redistribute it and/or\n+# modify it under the terms of the GNU Lesser General Public\n+# License version 2.1 as published by the Free Software Foundation.\n+#\n+# This library is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+# Lesser General Public License for more details.\n+#\n+# You should have received a copy of the GNU Lesser General Public\n+# License along with this library; if not, write to the Free Software\n+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n+\n+class OperatorTest < Test::Unit::TestCase\n+  include GroongaTestUtils\n+\n+  setup :setup_database\n+\n+  class RegexpTest < self\n+    setup\n+    def setup_expression\n+      @expression = Groonga::Expression.new\n+      @expression.append_constant(39)","path":"test/test-operator.rb","position":27,"original_position":27,"commit_id":"c2c7162ac7870bcb85fc88f6e38768b7607be5b7","original_commit_id":"c2c7162ac7870bcb85fc88f6e38768b7607be5b7","user":{"login":"kou","id":27350,"avatar_url":"https://avatars.githubusercontent.com/u/27350?v=3","gravatar_id":"","url":"https://api.github.com/users/kou","html_url":"https://github.com/kou","followers_url":"https://api.github.com/users/kou/followers","following_url":"https://api.github.com/users/kou/following{/other_user}","gists_url":"https://api.github.com/users/kou/gists{/gist_id}","starred_url":"https://api.github.com/users/kou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kou/subscriptions","organizations_url":"https://api.github.com/users/kou/orgs","repos_url":"https://api.github.com/users/kou/repos","events_url":"https://api.github.com/users/kou/events{/privacy}","received_events_url":"https://api.github.com/users/kou/received_events","type":"User","site_admin":false},"body":"数値に対して正規表現を使うことはないので「なんでこの値なの？」と思ってしまいます。\r\nもう少し意味のある値を使ってください。","created_at":"2015-04-07T09:14:35Z","updated_at":"2015-04-07T09:14:35Z","html_url":"https://github.com/ranguba/rroonga/pull/87#discussion_r27862486","pull_request_url":"https://api.github.com/repos/ranguba/rroonga/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/ranguba/rroonga/pulls/comments/27862486"},"html":{"href":"https://github.com/ranguba/rroonga/pull/87#discussion_r27862486"},"pull_request":{"href":"https://api.github.com/repos/ranguba/rroonga/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/ranguba/rroonga/pulls/87","id":32745254,"html_url":"https://github.com/ranguba/rroonga/pull/87","diff_url":"https://github.com/ranguba/rroonga/pull/87.diff","patch_url":"https://github.com/ranguba/rroonga/pull/87.patch","issue_url":"https://api.github.com/repos/ranguba/rroonga/issues/87","number":87,"state":"open","locked":false,"title":"Add Operator::REGEXP","user":{"login":"myokoym","id":386687,"avatar_url":"https://avatars.githubusercontent.com/u/386687?v=3","gravatar_id":"","url":"https://api.github.com/users/myokoym","html_url":"https://github.com/myokoym","followers_url":"https://api.github.com/users/myokoym/followers","following_url":"https://api.github.com/users/myokoym/following{/other_user}","gists_url":"https://api.github.com/users/myokoym/gists{/gist_id}","starred_url":"https://api.github.com/users/myokoym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myokoym/subscriptions","organizations_url":"https://api.github.com/users/myokoym/orgs","repos_url":"https://api.github.com/users/myokoym/repos","events_url":"https://api.github.com/users/myokoym/events{/privacy}","received_events_url":"https://api.github.com/users/myokoym/received_events","type":"User","site_admin":false},"body":"GitHub: #65","created_at":"2015-04-07T09:03:57Z","updated_at":"2015-04-07T09:14:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34c96634f87cef84c14403ae45047ea528b32a83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ranguba/rroonga/pulls/87/commits","review_comments_url":"https://api.github.com/repos/ranguba/rroonga/pulls/87/comments","review_comment_url":"https://api.github.com/repos/ranguba/rroonga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ranguba/rroonga/issues/87/comments","statuses_url":"https://api.github.com/repos/ranguba/rroonga/statuses/c2c7162ac7870bcb85fc88f6e38768b7607be5b7","head":{"label":"ranguba:add-operator-regexp","ref":"add-operator-regexp","sha":"c2c7162ac7870bcb85fc88f6e38768b7607be5b7","user":{"login":"ranguba","id":247992,"avatar_url":"https://avatars.githubusercontent.com/u/247992?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguba","html_url":"https://github.com/ranguba","followers_url":"https://api.github.com/users/ranguba/followers","following_url":"https://api.github.com/users/ranguba/following{/other_user}","gists_url":"https://api.github.com/users/ranguba/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguba/subscriptions","organizations_url":"https://api.github.com/users/ranguba/orgs","repos_url":"https://api.github.com/users/ranguba/repos","events_url":"https://api.github.com/users/ranguba/events{/privacy}","received_events_url":"https://api.github.com/users/ranguba/received_events","type":"Organization","site_admin":false},"repo":{"id":619202,"name":"rroonga","full_name":"ranguba/rroonga","owner":{"login":"ranguba","id":247992,"avatar_url":"https://avatars.githubusercontent.com/u/247992?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguba","html_url":"https://github.com/ranguba","followers_url":"https://api.github.com/users/ranguba/followers","following_url":"https://api.github.com/users/ranguba/following{/other_user}","gists_url":"https://api.github.com/users/ranguba/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguba/subscriptions","organizations_url":"https://api.github.com/users/ranguba/orgs","repos_url":"https://api.github.com/users/ranguba/repos","events_url":"https://api.github.com/users/ranguba/events{/privacy}","received_events_url":"https://api.github.com/users/ranguba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ranguba/rroonga","description":"The Ruby bindings of Groonga.","fork":false,"url":"https://api.github.com/repos/ranguba/rroonga","forks_url":"https://api.github.com/repos/ranguba/rroonga/forks","keys_url":"https://api.github.com/repos/ranguba/rroonga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ranguba/rroonga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ranguba/rroonga/teams","hooks_url":"https://api.github.com/repos/ranguba/rroonga/hooks","issue_events_url":"https://api.github.com/repos/ranguba/rroonga/issues/events{/number}","events_url":"https://api.github.com/repos/ranguba/rroonga/events","assignees_url":"https://api.github.com/repos/ranguba/rroonga/assignees{/user}","branches_url":"https://api.github.com/repos/ranguba/rroonga/branches{/branch}","tags_url":"https://api.github.com/repos/ranguba/rroonga/tags","blobs_url":"https://api.github.com/repos/ranguba/rroonga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ranguba/rroonga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ranguba/rroonga/git/refs{/sha}","trees_url":"https://api.github.com/repos/ranguba/rroonga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ranguba/rroonga/statuses/{sha}","languages_url":"https://api.github.com/repos/ranguba/rroonga/languages","stargazers_url":"https://api.github.com/repos/ranguba/rroonga/stargazers","contributors_url":"https://api.github.com/repos/ranguba/rroonga/contributors","subscribers_url":"https://api.github.com/repos/ranguba/rroonga/subscribers","subscription_url":"https://api.github.com/repos/ranguba/rroonga/subscription","commits_url":"https://api.github.com/repos/ranguba/rroonga/commits{/sha}","git_commits_url":"https://api.github.com/repos/ranguba/rroonga/git/commits{/sha}","comments_url":"https://api.github.com/repos/ranguba/rroonga/comments{/number}","issue_comment_url":"https://api.github.com/repos/ranguba/rroonga/issues/comments{/number}","contents_url":"https://api.github.com/repos/ranguba/rroonga/contents/{+path}","compare_url":"https://api.github.com/repos/ranguba/rroonga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ranguba/rroonga/merges","archive_url":"https://api.github.com/repos/ranguba/rroonga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ranguba/rroonga/downloads","issues_url":"https://api.github.com/repos/ranguba/rroonga/issues{/number}","pulls_url":"https://api.github.com/repos/ranguba/rroonga/pulls{/number}","milestones_url":"https://api.github.com/repos/ranguba/rroonga/milestones{/number}","notifications_url":"https://api.github.com/repos/ranguba/rroonga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ranguba/rroonga/labels{/name}","releases_url":"https://api.github.com/repos/ranguba/rroonga/releases{/id}","created_at":"2010-04-20T08:21:55Z","updated_at":"2015-04-03T05:51:53Z","pushed_at":"2015-04-07T09:03:58Z","git_url":"git://github.com/ranguba/rroonga.git","ssh_url":"git@github.com:ranguba/rroonga.git","clone_url":"https://github.com/ranguba/rroonga.git","svn_url":"https://github.com/ranguba/rroonga","homepage":"http://ranguba.org/#about-rroonga","size":14577,"stargazers_count":44,"watchers_count":44,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":29,"forks":16,"open_issues":29,"watchers":44,"default_branch":"master"}},"base":{"label":"ranguba:master","ref":"master","sha":"74fdf755f2ebcd3a7a740935b36e01c5892e7f94","user":{"login":"ranguba","id":247992,"avatar_url":"https://avatars.githubusercontent.com/u/247992?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguba","html_url":"https://github.com/ranguba","followers_url":"https://api.github.com/users/ranguba/followers","following_url":"https://api.github.com/users/ranguba/following{/other_user}","gists_url":"https://api.github.com/users/ranguba/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguba/subscriptions","organizations_url":"https://api.github.com/users/ranguba/orgs","repos_url":"https://api.github.com/users/ranguba/repos","events_url":"https://api.github.com/users/ranguba/events{/privacy}","received_events_url":"https://api.github.com/users/ranguba/received_events","type":"Organization","site_admin":false},"repo":{"id":619202,"name":"rroonga","full_name":"ranguba/rroonga","owner":{"login":"ranguba","id":247992,"avatar_url":"https://avatars.githubusercontent.com/u/247992?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguba","html_url":"https://github.com/ranguba","followers_url":"https://api.github.com/users/ranguba/followers","following_url":"https://api.github.com/users/ranguba/following{/other_user}","gists_url":"https://api.github.com/users/ranguba/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguba/subscriptions","organizations_url":"https://api.github.com/users/ranguba/orgs","repos_url":"https://api.github.com/users/ranguba/repos","events_url":"https://api.github.com/users/ranguba/events{/privacy}","received_events_url":"https://api.github.com/users/ranguba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ranguba/rroonga","description":"The Ruby bindings of Groonga.","fork":false,"url":"https://api.github.com/repos/ranguba/rroonga","forks_url":"https://api.github.com/repos/ranguba/rroonga/forks","keys_url":"https://api.github.com/repos/ranguba/rroonga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ranguba/rroonga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ranguba/rroonga/teams","hooks_url":"https://api.github.com/repos/ranguba/rroonga/hooks","issue_events_url":"https://api.github.com/repos/ranguba/rroonga/issues/events{/number}","events_url":"https://api.github.com/repos/ranguba/rroonga/events","assignees_url":"https://api.github.com/repos/ranguba/rroonga/assignees{/user}","branches_url":"https://api.github.com/repos/ranguba/rroonga/branches{/branch}","tags_url":"https://api.github.com/repos/ranguba/rroonga/tags","blobs_url":"https://api.github.com/repos/ranguba/rroonga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ranguba/rroonga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ranguba/rroonga/git/refs{/sha}","trees_url":"https://api.github.com/repos/ranguba/rroonga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ranguba/rroonga/statuses/{sha}","languages_url":"https://api.github.com/repos/ranguba/rroonga/languages","stargazers_url":"https://api.github.com/repos/ranguba/rroonga/stargazers","contributors_url":"https://api.github.com/repos/ranguba/rroonga/contributors","subscribers_url":"https://api.github.com/repos/ranguba/rroonga/subscribers","subscription_url":"https://api.github.com/repos/ranguba/rroonga/subscription","commits_url":"https://api.github.com/repos/ranguba/rroonga/commits{/sha}","git_commits_url":"https://api.github.com/repos/ranguba/rroonga/git/commits{/sha}","comments_url":"https://api.github.com/repos/ranguba/rroonga/comments{/number}","issue_comment_url":"https://api.github.com/repos/ranguba/rroonga/issues/comments{/number}","contents_url":"https://api.github.com/repos/ranguba/rroonga/contents/{+path}","compare_url":"https://api.github.com/repos/ranguba/rroonga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ranguba/rroonga/merges","archive_url":"https://api.github.com/repos/ranguba/rroonga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ranguba/rroonga/downloads","issues_url":"https://api.github.com/repos/ranguba/rroonga/issues{/number}","pulls_url":"https://api.github.com/repos/ranguba/rroonga/pulls{/number}","milestones_url":"https://api.github.com/repos/ranguba/rroonga/milestones{/number}","notifications_url":"https://api.github.com/repos/ranguba/rroonga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ranguba/rroonga/labels{/name}","releases_url":"https://api.github.com/repos/ranguba/rroonga/releases{/id}","created_at":"2010-04-20T08:21:55Z","updated_at":"2015-04-03T05:51:53Z","pushed_at":"2015-04-07T09:03:58Z","git_url":"git://github.com/ranguba/rroonga.git","ssh_url":"git@github.com:ranguba/rroonga.git","clone_url":"https://github.com/ranguba/rroonga.git","svn_url":"https://github.com/ranguba/rroonga","homepage":"http://ranguba.org/#about-rroonga","size":14577,"stargazers_count":44,"watchers_count":44,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":29,"forks":16,"open_issues":29,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ranguba/rroonga/pulls/87"},"html":{"href":"https://github.com/ranguba/rroonga/pull/87"},"issue":{"href":"https://api.github.com/repos/ranguba/rroonga/issues/87"},"comments":{"href":"https://api.github.com/repos/ranguba/rroonga/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/ranguba/rroonga/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/ranguba/rroonga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ranguba/rroonga/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/ranguba/rroonga/statuses/c2c7162ac7870bcb85fc88f6e38768b7607be5b7"}}}}