{"action":"created","comment":{"url":"https://api.github.com/repos/jbender/motion-spec/pulls/comments/44074649","id":44074649,"diff_hunk":"@@ -135,11 +136,25 @@ def main_activity\n     private\n \n     def build_ios_parent_context(context)\n-      (parent_context = self).methods(false).each do |e|\n-        class << context\n-          self\n-        end.send(:define_method, e) do |*args|\n-          parent_context.send(e, *args)\n+      parent_context = self\n+\n+      # object.methods(false) returns duplicate method names where one ends in\n+      # a ':' (e.g. ['foo:', 'foo']). This was causing a low-level Ruby error:\n+      # Assertion failed: (b != NULL), function rb_vm_block_method_imp, file vm.cpp, line 3386.\n+      # To fix the issue we removed the 'foo:' version of the method names.\n+      methods = parent_context\n+        .methods(false)\n+        .map { |name| name.to_s.chomp(':') }\n+        .uniq","path":"lib/motion-spec/context.rb","position":26,"original_position":26,"commit_id":"4bdaf15db1f614e62e4825749cdec95b5d37f4ae","original_commit_id":"4bdaf15db1f614e62e4825749cdec95b5d37f4ae","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Place the . on the previous line, together with the method call receiver.","created_at":"2015-11-05T21:51:16Z","updated_at":"2015-11-05T21:51:16Z","html_url":"https://github.com/jbender/motion-spec/pull/5#discussion_r44074649","pull_request_url":"https://api.github.com/repos/jbender/motion-spec/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/jbender/motion-spec/pulls/comments/44074649"},"html":{"href":"https://github.com/jbender/motion-spec/pull/5#discussion_r44074649"},"pull_request":{"href":"https://api.github.com/repos/jbender/motion-spec/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/jbender/motion-spec/pulls/5","id":49885990,"html_url":"https://github.com/jbender/motion-spec/pull/5","diff_url":"https://github.com/jbender/motion-spec/pull/5.diff","patch_url":"https://github.com/jbender/motion-spec/pull/5.patch","issue_url":"https://api.github.com/repos/jbender/motion-spec/issues/5","number":5,"state":"open","locked":false,"title":"Implement let/subject","user":{"login":"jcarbo","id":847027,"avatar_url":"https://avatars.githubusercontent.com/u/847027?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarbo","html_url":"https://github.com/jcarbo","followers_url":"https://api.github.com/users/jcarbo/followers","following_url":"https://api.github.com/users/jcarbo/following{/other_user}","gists_url":"https://api.github.com/users/jcarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarbo/subscriptions","organizations_url":"https://api.github.com/users/jcarbo/orgs","repos_url":"https://api.github.com/users/jcarbo/repos","events_url":"https://api.github.com/users/jcarbo/events{/privacy}","received_events_url":"https://api.github.com/users/jcarbo/received_events","type":"User","site_admin":false},"body":"This isn't a 100% 1-1 with rspec but it's as close as we're going to get without a major refactor. The big issue is that rspec implements each example/spec as it's own subclass of the parent contexts which makes it easier to prevent things leaking into other examples.","created_at":"2015-11-05T21:51:11Z","updated_at":"2015-11-05T21:51:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf7efbf828aace988c1b582dfd911e84f0e94627","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jbender/motion-spec/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jbender/motion-spec/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jbender/motion-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jbender/motion-spec/issues/5/comments","statuses_url":"https://api.github.com/repos/jbender/motion-spec/statuses/4bdaf15db1f614e62e4825749cdec95b5d37f4ae","head":{"label":"jbender:feature/let-subject","ref":"feature/let-subject","sha":"4bdaf15db1f614e62e4825749cdec95b5d37f4ae","user":{"login":"jbender","id":723784,"avatar_url":"https://avatars.githubusercontent.com/u/723784?v=3","gravatar_id":"","url":"https://api.github.com/users/jbender","html_url":"https://github.com/jbender","followers_url":"https://api.github.com/users/jbender/followers","following_url":"https://api.github.com/users/jbender/following{/other_user}","gists_url":"https://api.github.com/users/jbender/gists{/gist_id}","starred_url":"https://api.github.com/users/jbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbender/subscriptions","organizations_url":"https://api.github.com/users/jbender/orgs","repos_url":"https://api.github.com/users/jbender/repos","events_url":"https://api.github.com/users/jbender/events{/privacy}","received_events_url":"https://api.github.com/users/jbender/received_events","type":"User","site_admin":false},"repo":{"id":45269421,"name":"motion-spec","full_name":"jbender/motion-spec","owner":{"login":"jbender","id":723784,"avatar_url":"https://avatars.githubusercontent.com/u/723784?v=3","gravatar_id":"","url":"https://api.github.com/users/jbender","html_url":"https://github.com/jbender","followers_url":"https://api.github.com/users/jbender/followers","following_url":"https://api.github.com/users/jbender/following{/other_user}","gists_url":"https://api.github.com/users/jbender/gists{/gist_id}","starred_url":"https://api.github.com/users/jbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbender/subscriptions","organizations_url":"https://api.github.com/users/jbender/orgs","repos_url":"https://api.github.com/users/jbender/repos","events_url":"https://api.github.com/users/jbender/events{/privacy}","received_events_url":"https://api.github.com/users/jbender/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbender/motion-spec","description":"RubyMotion spec library","fork":false,"url":"https://api.github.com/repos/jbender/motion-spec","forks_url":"https://api.github.com/repos/jbender/motion-spec/forks","keys_url":"https://api.github.com/repos/jbender/motion-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbender/motion-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbender/motion-spec/teams","hooks_url":"https://api.github.com/repos/jbender/motion-spec/hooks","issue_events_url":"https://api.github.com/repos/jbender/motion-spec/issues/events{/number}","events_url":"https://api.github.com/repos/jbender/motion-spec/events","assignees_url":"https://api.github.com/repos/jbender/motion-spec/assignees{/user}","branches_url":"https://api.github.com/repos/jbender/motion-spec/branches{/branch}","tags_url":"https://api.github.com/repos/jbender/motion-spec/tags","blobs_url":"https://api.github.com/repos/jbender/motion-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbender/motion-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbender/motion-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbender/motion-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbender/motion-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/jbender/motion-spec/languages","stargazers_url":"https://api.github.com/repos/jbender/motion-spec/stargazers","contributors_url":"https://api.github.com/repos/jbender/motion-spec/contributors","subscribers_url":"https://api.github.com/repos/jbender/motion-spec/subscribers","subscription_url":"https://api.github.com/repos/jbender/motion-spec/subscription","commits_url":"https://api.github.com/repos/jbender/motion-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbender/motion-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbender/motion-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbender/motion-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbender/motion-spec/contents/{+path}","compare_url":"https://api.github.com/repos/jbender/motion-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbender/motion-spec/merges","archive_url":"https://api.github.com/repos/jbender/motion-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbender/motion-spec/downloads","issues_url":"https://api.github.com/repos/jbender/motion-spec/issues{/number}","pulls_url":"https://api.github.com/repos/jbender/motion-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/jbender/motion-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/jbender/motion-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbender/motion-spec/labels{/name}","releases_url":"https://api.github.com/repos/jbender/motion-spec/releases{/id}","created_at":"2015-10-30T18:32:59Z","updated_at":"2015-10-30T22:51:25Z","pushed_at":"2015-11-05T21:51:11Z","git_url":"git://github.com/jbender/motion-spec.git","ssh_url":"git@github.com:jbender/motion-spec.git","clone_url":"https://github.com/jbender/motion-spec.git","svn_url":"https://github.com/jbender/motion-spec","homepage":"","size":360,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"jbender:master","ref":"master","sha":"524fc5cbce8e936accd462a537fb1c99b8bccf4f","user":{"login":"jbender","id":723784,"avatar_url":"https://avatars.githubusercontent.com/u/723784?v=3","gravatar_id":"","url":"https://api.github.com/users/jbender","html_url":"https://github.com/jbender","followers_url":"https://api.github.com/users/jbender/followers","following_url":"https://api.github.com/users/jbender/following{/other_user}","gists_url":"https://api.github.com/users/jbender/gists{/gist_id}","starred_url":"https://api.github.com/users/jbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbender/subscriptions","organizations_url":"https://api.github.com/users/jbender/orgs","repos_url":"https://api.github.com/users/jbender/repos","events_url":"https://api.github.com/users/jbender/events{/privacy}","received_events_url":"https://api.github.com/users/jbender/received_events","type":"User","site_admin":false},"repo":{"id":45269421,"name":"motion-spec","full_name":"jbender/motion-spec","owner":{"login":"jbender","id":723784,"avatar_url":"https://avatars.githubusercontent.com/u/723784?v=3","gravatar_id":"","url":"https://api.github.com/users/jbender","html_url":"https://github.com/jbender","followers_url":"https://api.github.com/users/jbender/followers","following_url":"https://api.github.com/users/jbender/following{/other_user}","gists_url":"https://api.github.com/users/jbender/gists{/gist_id}","starred_url":"https://api.github.com/users/jbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbender/subscriptions","organizations_url":"https://api.github.com/users/jbender/orgs","repos_url":"https://api.github.com/users/jbender/repos","events_url":"https://api.github.com/users/jbender/events{/privacy}","received_events_url":"https://api.github.com/users/jbender/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbender/motion-spec","description":"RubyMotion spec library","fork":false,"url":"https://api.github.com/repos/jbender/motion-spec","forks_url":"https://api.github.com/repos/jbender/motion-spec/forks","keys_url":"https://api.github.com/repos/jbender/motion-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbender/motion-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbender/motion-spec/teams","hooks_url":"https://api.github.com/repos/jbender/motion-spec/hooks","issue_events_url":"https://api.github.com/repos/jbender/motion-spec/issues/events{/number}","events_url":"https://api.github.com/repos/jbender/motion-spec/events","assignees_url":"https://api.github.com/repos/jbender/motion-spec/assignees{/user}","branches_url":"https://api.github.com/repos/jbender/motion-spec/branches{/branch}","tags_url":"https://api.github.com/repos/jbender/motion-spec/tags","blobs_url":"https://api.github.com/repos/jbender/motion-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbender/motion-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbender/motion-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbender/motion-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbender/motion-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/jbender/motion-spec/languages","stargazers_url":"https://api.github.com/repos/jbender/motion-spec/stargazers","contributors_url":"https://api.github.com/repos/jbender/motion-spec/contributors","subscribers_url":"https://api.github.com/repos/jbender/motion-spec/subscribers","subscription_url":"https://api.github.com/repos/jbender/motion-spec/subscription","commits_url":"https://api.github.com/repos/jbender/motion-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbender/motion-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbender/motion-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbender/motion-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbender/motion-spec/contents/{+path}","compare_url":"https://api.github.com/repos/jbender/motion-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbender/motion-spec/merges","archive_url":"https://api.github.com/repos/jbender/motion-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbender/motion-spec/downloads","issues_url":"https://api.github.com/repos/jbender/motion-spec/issues{/number}","pulls_url":"https://api.github.com/repos/jbender/motion-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/jbender/motion-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/jbender/motion-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbender/motion-spec/labels{/name}","releases_url":"https://api.github.com/repos/jbender/motion-spec/releases{/id}","created_at":"2015-10-30T18:32:59Z","updated_at":"2015-10-30T22:51:25Z","pushed_at":"2015-11-05T21:51:11Z","git_url":"git://github.com/jbender/motion-spec.git","ssh_url":"git@github.com:jbender/motion-spec.git","clone_url":"https://github.com/jbender/motion-spec.git","svn_url":"https://github.com/jbender/motion-spec","homepage":"","size":360,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jbender/motion-spec/pulls/5"},"html":{"href":"https://github.com/jbender/motion-spec/pull/5"},"issue":{"href":"https://api.github.com/repos/jbender/motion-spec/issues/5"},"comments":{"href":"https://api.github.com/repos/jbender/motion-spec/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jbender/motion-spec/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jbender/motion-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jbender/motion-spec/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jbender/motion-spec/statuses/4bdaf15db1f614e62e4825749cdec95b5d37f4ae"}}}}