{"action":"created","comment":{"url":"https://api.github.com/repos/Moove-it/ruy/pulls/comments/32324192","id":32324192,"diff_hunk":"@@ -1,28 +1,28 @@\n module Ruy\n   module Conditions\n \n-    # Expects that a context attribute is included in a set of values.\n+    # Expects that a value is included in a set of values from the context attribute.\n     class Include < Ruy::Rule\n-      attr_reader :attr, :values\n+      attr_reader :attr, :value\n \n+      # @param value Expected set of values\n       # @param attr Context attribute's name\n-      # @param values Expected set of values\n       # @yield a block in the context of the current rule\n-      def initialize(attr, values, &block)\n+      def initialize(value, attr, &block)\n         super\n+        @value = value\n         @attr = attr\n-        @values = values\n         instance_exec(&block) if block_given?\n       end\n \n       def call(var_ctx)","path":"lib/ruy/conditions/include.rb","position":23,"original_position":23,"commit_id":"8aa00b08d7048c9af340fb22371375243de46e9c","original_commit_id":"8aa00b08d7048c9af340fb22371375243de46e9c","user":{"login":"migl","id":1220142,"avatar_url":"https://avatars.githubusercontent.com/u/1220142?v=3","gravatar_id":"","url":"https://api.github.com/users/migl","html_url":"https://github.com/migl","followers_url":"https://api.github.com/users/migl/followers","following_url":"https://api.github.com/users/migl/following{/other_user}","gists_url":"https://api.github.com/users/migl/gists{/gist_id}","starred_url":"https://api.github.com/users/migl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migl/subscriptions","organizations_url":"https://api.github.com/users/migl/orgs","repos_url":"https://api.github.com/users/migl/repos","events_url":"https://api.github.com/users/migl/events{/privacy}","received_events_url":"https://api.github.com/users/migl/received_events","type":"User","site_admin":false},"body":"Still `var_ctx`. It's allright, just not called that anymore.","created_at":"2015-06-12T15:12:04Z","updated_at":"2015-06-12T15:12:04Z","html_url":"https://github.com/Moove-it/ruy/pull/29#discussion_r32324192","pull_request_url":"https://api.github.com/repos/Moove-it/ruy/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/Moove-it/ruy/pulls/comments/32324192"},"html":{"href":"https://github.com/Moove-it/ruy/pull/29#discussion_r32324192"},"pull_request":{"href":"https://api.github.com/repos/Moove-it/ruy/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/Moove-it/ruy/pulls/29","id":37063962,"html_url":"https://github.com/Moove-it/ruy/pull/29","diff_url":"https://github.com/Moove-it/ruy/pull/29.diff","patch_url":"https://github.com/Moove-it/ruy/pull/29.patch","issue_url":"https://api.github.com/repos/Moove-it/ruy/issues/29","number":29,"state":"open","locked":false,"title":"Semantics","user":{"login":"snmgian","id":73134,"avatar_url":"https://avatars.githubusercontent.com/u/73134?v=3","gravatar_id":"","url":"https://api.github.com/users/snmgian","html_url":"https://github.com/snmgian","followers_url":"https://api.github.com/users/snmgian/followers","following_url":"https://api.github.com/users/snmgian/following{/other_user}","gists_url":"https://api.github.com/users/snmgian/gists{/gist_id}","starred_url":"https://api.github.com/users/snmgian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snmgian/subscriptions","organizations_url":"https://api.github.com/users/snmgian/orgs","repos_url":"https://api.github.com/users/snmgian/repos","events_url":"https://api.github.com/users/snmgian/events{/privacy}","received_events_url":"https://api.github.com/users/snmgian/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-05T19:49:24Z","updated_at":"2015-06-12T15:12:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24d0b65ccff517822903b8faeafb8d679dadc042","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Moove-it/ruy/pulls/29/commits","review_comments_url":"https://api.github.com/repos/Moove-it/ruy/pulls/29/comments","review_comment_url":"https://api.github.com/repos/Moove-it/ruy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Moove-it/ruy/issues/29/comments","statuses_url":"https://api.github.com/repos/Moove-it/ruy/statuses/8aa00b08d7048c9af340fb22371375243de46e9c","head":{"label":"snmgian:semantics","ref":"semantics","sha":"8aa00b08d7048c9af340fb22371375243de46e9c","user":{"login":"snmgian","id":73134,"avatar_url":"https://avatars.githubusercontent.com/u/73134?v=3","gravatar_id":"","url":"https://api.github.com/users/snmgian","html_url":"https://github.com/snmgian","followers_url":"https://api.github.com/users/snmgian/followers","following_url":"https://api.github.com/users/snmgian/following{/other_user}","gists_url":"https://api.github.com/users/snmgian/gists{/gist_id}","starred_url":"https://api.github.com/users/snmgian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snmgian/subscriptions","organizations_url":"https://api.github.com/users/snmgian/orgs","repos_url":"https://api.github.com/users/snmgian/repos","events_url":"https://api.github.com/users/snmgian/events{/privacy}","received_events_url":"https://api.github.com/users/snmgian/received_events","type":"User","site_admin":false},"repo":{"id":23929636,"name":"ruy","full_name":"snmgian/ruy","owner":{"login":"snmgian","id":73134,"avatar_url":"https://avatars.githubusercontent.com/u/73134?v=3","gravatar_id":"","url":"https://api.github.com/users/snmgian","html_url":"https://github.com/snmgian","followers_url":"https://api.github.com/users/snmgian/followers","following_url":"https://api.github.com/users/snmgian/following{/other_user}","gists_url":"https://api.github.com/users/snmgian/gists{/gist_id}","starred_url":"https://api.github.com/users/snmgian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snmgian/subscriptions","organizations_url":"https://api.github.com/users/snmgian/orgs","repos_url":"https://api.github.com/users/snmgian/repos","events_url":"https://api.github.com/users/snmgian/events{/privacy}","received_events_url":"https://api.github.com/users/snmgian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snmgian/ruy","description":"Rules Engine for Ruby","fork":true,"url":"https://api.github.com/repos/snmgian/ruy","forks_url":"https://api.github.com/repos/snmgian/ruy/forks","keys_url":"https://api.github.com/repos/snmgian/ruy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snmgian/ruy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snmgian/ruy/teams","hooks_url":"https://api.github.com/repos/snmgian/ruy/hooks","issue_events_url":"https://api.github.com/repos/snmgian/ruy/issues/events{/number}","events_url":"https://api.github.com/repos/snmgian/ruy/events","assignees_url":"https://api.github.com/repos/snmgian/ruy/assignees{/user}","branches_url":"https://api.github.com/repos/snmgian/ruy/branches{/branch}","tags_url":"https://api.github.com/repos/snmgian/ruy/tags","blobs_url":"https://api.github.com/repos/snmgian/ruy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snmgian/ruy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snmgian/ruy/git/refs{/sha}","trees_url":"https://api.github.com/repos/snmgian/ruy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snmgian/ruy/statuses/{sha}","languages_url":"https://api.github.com/repos/snmgian/ruy/languages","stargazers_url":"https://api.github.com/repos/snmgian/ruy/stargazers","contributors_url":"https://api.github.com/repos/snmgian/ruy/contributors","subscribers_url":"https://api.github.com/repos/snmgian/ruy/subscribers","subscription_url":"https://api.github.com/repos/snmgian/ruy/subscription","commits_url":"https://api.github.com/repos/snmgian/ruy/commits{/sha}","git_commits_url":"https://api.github.com/repos/snmgian/ruy/git/commits{/sha}","comments_url":"https://api.github.com/repos/snmgian/ruy/comments{/number}","issue_comment_url":"https://api.github.com/repos/snmgian/ruy/issues/comments{/number}","contents_url":"https://api.github.com/repos/snmgian/ruy/contents/{+path}","compare_url":"https://api.github.com/repos/snmgian/ruy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snmgian/ruy/merges","archive_url":"https://api.github.com/repos/snmgian/ruy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snmgian/ruy/downloads","issues_url":"https://api.github.com/repos/snmgian/ruy/issues{/number}","pulls_url":"https://api.github.com/repos/snmgian/ruy/pulls{/number}","milestones_url":"https://api.github.com/repos/snmgian/ruy/milestones{/number}","notifications_url":"https://api.github.com/repos/snmgian/ruy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snmgian/ruy/labels{/name}","releases_url":"https://api.github.com/repos/snmgian/ruy/releases{/id}","created_at":"2014-09-11T18:06:38Z","updated_at":"2015-01-08T17:34:17Z","pushed_at":"2015-06-05T19:48:14Z","git_url":"git://github.com/snmgian/ruy.git","ssh_url":"git@github.com:snmgian/ruy.git","clone_url":"https://github.com/snmgian/ruy.git","svn_url":"https://github.com/snmgian/ruy","homepage":"","size":253,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Moove-it:master","ref":"master","sha":"2b47a397e247834eedda3f2976cb7daa547ac6ea","user":{"login":"Moove-it","id":488520,"avatar_url":"https://avatars.githubusercontent.com/u/488520?v=3","gravatar_id":"","url":"https://api.github.com/users/Moove-it","html_url":"https://github.com/Moove-it","followers_url":"https://api.github.com/users/Moove-it/followers","following_url":"https://api.github.com/users/Moove-it/following{/other_user}","gists_url":"https://api.github.com/users/Moove-it/gists{/gist_id}","starred_url":"https://api.github.com/users/Moove-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moove-it/subscriptions","organizations_url":"https://api.github.com/users/Moove-it/orgs","repos_url":"https://api.github.com/users/Moove-it/repos","events_url":"https://api.github.com/users/Moove-it/events{/privacy}","received_events_url":"https://api.github.com/users/Moove-it/received_events","type":"Organization","site_admin":false},"repo":{"id":22112066,"name":"ruy","full_name":"Moove-it/ruy","owner":{"login":"Moove-it","id":488520,"avatar_url":"https://avatars.githubusercontent.com/u/488520?v=3","gravatar_id":"","url":"https://api.github.com/users/Moove-it","html_url":"https://github.com/Moove-it","followers_url":"https://api.github.com/users/Moove-it/followers","following_url":"https://api.github.com/users/Moove-it/following{/other_user}","gists_url":"https://api.github.com/users/Moove-it/gists{/gist_id}","starred_url":"https://api.github.com/users/Moove-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moove-it/subscriptions","organizations_url":"https://api.github.com/users/Moove-it/orgs","repos_url":"https://api.github.com/users/Moove-it/repos","events_url":"https://api.github.com/users/Moove-it/events{/privacy}","received_events_url":"https://api.github.com/users/Moove-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Moove-it/ruy","description":"Rules Engine for Ruby","fork":false,"url":"https://api.github.com/repos/Moove-it/ruy","forks_url":"https://api.github.com/repos/Moove-it/ruy/forks","keys_url":"https://api.github.com/repos/Moove-it/ruy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Moove-it/ruy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Moove-it/ruy/teams","hooks_url":"https://api.github.com/repos/Moove-it/ruy/hooks","issue_events_url":"https://api.github.com/repos/Moove-it/ruy/issues/events{/number}","events_url":"https://api.github.com/repos/Moove-it/ruy/events","assignees_url":"https://api.github.com/repos/Moove-it/ruy/assignees{/user}","branches_url":"https://api.github.com/repos/Moove-it/ruy/branches{/branch}","tags_url":"https://api.github.com/repos/Moove-it/ruy/tags","blobs_url":"https://api.github.com/repos/Moove-it/ruy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Moove-it/ruy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Moove-it/ruy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Moove-it/ruy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Moove-it/ruy/statuses/{sha}","languages_url":"https://api.github.com/repos/Moove-it/ruy/languages","stargazers_url":"https://api.github.com/repos/Moove-it/ruy/stargazers","contributors_url":"https://api.github.com/repos/Moove-it/ruy/contributors","subscribers_url":"https://api.github.com/repos/Moove-it/ruy/subscribers","subscription_url":"https://api.github.com/repos/Moove-it/ruy/subscription","commits_url":"https://api.github.com/repos/Moove-it/ruy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Moove-it/ruy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Moove-it/ruy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Moove-it/ruy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Moove-it/ruy/contents/{+path}","compare_url":"https://api.github.com/repos/Moove-it/ruy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Moove-it/ruy/merges","archive_url":"https://api.github.com/repos/Moove-it/ruy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Moove-it/ruy/downloads","issues_url":"https://api.github.com/repos/Moove-it/ruy/issues{/number}","pulls_url":"https://api.github.com/repos/Moove-it/ruy/pulls{/number}","milestones_url":"https://api.github.com/repos/Moove-it/ruy/milestones{/number}","notifications_url":"https://api.github.com/repos/Moove-it/ruy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Moove-it/ruy/labels{/name}","releases_url":"https://api.github.com/repos/Moove-it/ruy/releases{/id}","created_at":"2014-07-22T16:47:35Z","updated_at":"2015-03-11T21:36:00Z","pushed_at":"2015-06-12T14:34:33Z","git_url":"git://github.com/Moove-it/ruy.git","ssh_url":"git@github.com:Moove-it/ruy.git","clone_url":"https://github.com/Moove-it/ruy.git","svn_url":"https://github.com/Moove-it/ruy","homepage":"","size":1135,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Moove-it/ruy/pulls/29"},"html":{"href":"https://github.com/Moove-it/ruy/pull/29"},"issue":{"href":"https://api.github.com/repos/Moove-it/ruy/issues/29"},"comments":{"href":"https://api.github.com/repos/Moove-it/ruy/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/Moove-it/ruy/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/Moove-it/ruy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Moove-it/ruy/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/Moove-it/ruy/statuses/8aa00b08d7048c9af340fb22371375243de46e9c"}}}}