{"action":"created","issue":{"url":"https://api.github.com/repos/gocardless/hutch/issues/176","labels_url":"https://api.github.com/repos/gocardless/hutch/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/gocardless/hutch/issues/176/comments","events_url":"https://api.github.com/repos/gocardless/hutch/issues/176/events","html_url":"https://github.com/gocardless/hutch/issues/176","id":111871620,"number":176,"title":"Using bunny on JRuby","user":{"login":"gottfrois","id":943784,"avatar_url":"https://avatars.githubusercontent.com/u/943784?v=3","gravatar_id":"","url":"https://api.github.com/users/gottfrois","html_url":"https://github.com/gottfrois","followers_url":"https://api.github.com/users/gottfrois/followers","following_url":"https://api.github.com/users/gottfrois/following{/other_user}","gists_url":"https://api.github.com/users/gottfrois/gists{/gist_id}","starred_url":"https://api.github.com/users/gottfrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gottfrois/subscriptions","organizations_url":"https://api.github.com/users/gottfrois/orgs","repos_url":"https://api.github.com/users/gottfrois/repos","events_url":"https://api.github.com/users/gottfrois/events{/privacy}","received_events_url":"https://api.github.com/users/gottfrois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-16T17:03:42Z","updated_at":"2015-10-16T20:30:35Z","closed_at":null,"body":"```\r\n$ rvm list\r\n=> jruby-1.7.19 [ x86_64 ]\r\n\r\n$ gem install hutch\r\nPlease report a bug if this causes problems.\r\nFetching: carrot-top-0.0.7.gem (100%)\r\nSuccessfully installed carrot-top-0.0.7\r\nERROR:  Error installing hutch:\r\n\tamq-protocol requires Ruby version >= 2.0.\r\n```\r\n\r\nThis is because building the gem `pkg` using `gemspec` is done on the gem owner side and not on client side. Declaring platform dependencies in the gemspec will not ensure proper gem will be installed on the client gemset.\r\n\r\nIn order to do that you need to build the gem with native extensions so that ruby code is run on the client machine when he runs the `bundle install` command."},"comment":{"url":"https://api.github.com/repos/gocardless/hutch/issues/comments/148826284","html_url":"https://github.com/gocardless/hutch/issues/176#issuecomment-148826284","issue_url":"https://api.github.com/repos/gocardless/hutch/issues/176","id":148826284,"user":{"login":"teodor-pripoae","id":393437,"avatar_url":"https://avatars.githubusercontent.com/u/393437?v=3","gravatar_id":"","url":"https://api.github.com/users/teodor-pripoae","html_url":"https://github.com/teodor-pripoae","followers_url":"https://api.github.com/users/teodor-pripoae/followers","following_url":"https://api.github.com/users/teodor-pripoae/following{/other_user}","gists_url":"https://api.github.com/users/teodor-pripoae/gists{/gist_id}","starred_url":"https://api.github.com/users/teodor-pripoae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teodor-pripoae/subscriptions","organizations_url":"https://api.github.com/users/teodor-pripoae/orgs","repos_url":"https://api.github.com/users/teodor-pripoae/repos","events_url":"https://api.github.com/users/teodor-pripoae/events{/privacy}","received_events_url":"https://api.github.com/users/teodor-pripoae/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T20:30:35Z","updated_at":"2015-10-16T20:30:35Z","body":"You can build it without native extensions:\r\n\r\n```bash\r\n$ ruby -v\r\nruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]\r\n$ gem build hutch.gemspec\r\n  Successfully built RubyGem\r\n  Name: hutch\r\n  Version: 0.19.0\r\n  File: hutch-0.19.0.gem\r\n\r\n$ ruby -v\r\njruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [darwin-x86_64]\r\n$ gem build hutch.gemspec\r\n  Successfully built RubyGem\r\n  Name: hutch\r\n  Version: 0.19.0\r\n  File: hutch-0.19.0-java.gem\r\n\r\n$ ls hutch-*.gem\r\nhutch-0.19.0-java.gem hutch-0.19.0.gem\r\n\r\n$ gem push hutch-0.19.0.gem\r\n$ gem push hutch-0.19.0-java.gem\r\n```"}}