{"action":"created","issue":{"url":"https://api.github.com/repos/opal/opal/issues/796","labels_url":"https://api.github.com/repos/opal/opal/issues/796/labels{/name}","comments_url":"https://api.github.com/repos/opal/opal/issues/796/comments","events_url":"https://api.github.com/repos/opal/opal/issues/796/events","html_url":"https://github.com/opal/opal/issues/796","id":68302790,"number":796,"title":"Opal does not understand Ruby 2.0's new prepend method","user":{"login":"jxxcarlson","id":679991,"avatar_url":"https://avatars.githubusercontent.com/u/679991?v=3","gravatar_id":"","url":"https://api.github.com/users/jxxcarlson","html_url":"https://github.com/jxxcarlson","followers_url":"https://api.github.com/users/jxxcarlson/followers","following_url":"https://api.github.com/users/jxxcarlson/following{/other_user}","gists_url":"https://api.github.com/users/jxxcarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/jxxcarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxxcarlson/subscriptions","organizations_url":"https://api.github.com/users/jxxcarlson/orgs","repos_url":"https://api.github.com/users/jxxcarlson/repos","events_url":"https://api.github.com/users/jxxcarlson/events{/privacy}","received_events_url":"https://api.github.com/users/jxxcarlson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opal/opal/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"adambeynon","id":68938,"avatar_url":"https://avatars.githubusercontent.com/u/68938?v=3","gravatar_id":"","url":"https://api.github.com/users/adambeynon","html_url":"https://github.com/adambeynon","followers_url":"https://api.github.com/users/adambeynon/followers","following_url":"https://api.github.com/users/adambeynon/following{/other_user}","gists_url":"https://api.github.com/users/adambeynon/gists{/gist_id}","starred_url":"https://api.github.com/users/adambeynon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambeynon/subscriptions","organizations_url":"https://api.github.com/users/adambeynon/orgs","repos_url":"https://api.github.com/users/adambeynon/repos","events_url":"https://api.github.com/users/adambeynon/events{/privacy}","received_events_url":"https://api.github.com/users/adambeynon/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-04-14T08:29:53Z","updated_at":"2015-06-23T04:44:12Z","closed_at":null,"body":"Rubys' (fantastic new) `prepend` method throws an error.  Just run the exemple of\r\n\r\nhttp://dev.af83.com/2012/10/19/ruby-2-0-module-prepend.html\r\n\r\n```\r\ncd /tmp\r\n\r\n$ cat >foo.rb\r\n\r\nmodule FooBar\r\n def hello\r\n   puts 2\r\n   super\r\n end\r\nend\r\n\r\nclass Foo\r\n def hello\r\n   puts 'hello'\r\n end\r\nend\r\n\r\nclass Bar < Foo\r\n prepend FooBar\r\n\r\n def hello\r\n   puts 1\r\n   super\r\n end\r\nend\r\n\r\nBar.new.hello\r\n```\r\n\r\n(2) Run opal on the fie\r\n\r\n```\r\n$ opal foo.rb\r\n\r\n/private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:3041\r\n     throw exception;\r\n           ^\r\nNoMethodError: undefined method `prepend' for Bar\r\n   at OpalClass.$new (/private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:3361:15)\r\n   at OpalClass.<anonymous> (/private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:3037:31)\r\n   at OpalClass.Opal.defn.TMP_1 (/private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:2440:19)\r\n   at OpalClass.method_missing_stub [as $prepend] (/private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:709:35)\r\n   at /private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:12926:10\r\n   at /private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:12935:5\r\n   at Object.<anonymous> (/private/var/folders/2p/f989tv8n3kx8xqwhvrr3t0ym0000gn/T/opal-nodejs-runner-20150414-30422-xk04b0:12937:3)\r\n   at Module._compile (module.js:460:26)\r\n   at Object.Module._extensions..js (module.js:478:10)\r\n   at Module.load (module.js:355:32)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/opal/opal/issues/comments/114353642","html_url":"https://github.com/opal/opal/issues/796#issuecomment-114353642","issue_url":"https://api.github.com/repos/opal/opal/issues/796","id":114353642,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T04:44:12Z","updated_at":"2015-06-23T04:44:12Z","body":"As more and more libraries are dropping support for Ruby 1.9, this is becoming a bigger issue with compatibility with gems. We'll want to get ahead of this one before it leads to misconceptions about Opal's lack of compatibility with Ruby 2."}}