{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/ruby-hello-world/issues/47","labels_url":"https://api.github.com/repos/openshift/ruby-hello-world/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/openshift/ruby-hello-world/issues/47/comments","events_url":"https://api.github.com/repos/openshift/ruby-hello-world/issues/47/events","html_url":"https://github.com/openshift/ruby-hello-world/pull/47","id":97900390,"number":47,"title":"Fix Ruby 2.2 compatibility","user":{"login":"voxik","id":14406,"avatar_url":"https://avatars.githubusercontent.com/u/14406?v=3","gravatar_id":"","url":"https://api.github.com/users/voxik","html_url":"https://github.com/voxik","followers_url":"https://api.github.com/users/voxik/followers","following_url":"https://api.github.com/users/voxik/following{/other_user}","gists_url":"https://api.github.com/users/voxik/gists{/gist_id}","starred_url":"https://api.github.com/users/voxik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxik/subscriptions","organizations_url":"https://api.github.com/users/voxik/orgs","repos_url":"https://api.github.com/users/voxik/repos","events_url":"https://api.github.com/users/voxik/events{/privacy}","received_events_url":"https://api.github.com/users/voxik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-29T09:55:12Z","updated_at":"2015-07-29T12:28:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/ruby-hello-world/pulls/47","html_url":"https://github.com/openshift/ruby-hello-world/pull/47","diff_url":"https://github.com/openshift/ruby-hello-world/pull/47.diff","patch_url":"https://github.com/openshift/ruby-hello-world/pull/47.patch"},"body":"json-1.8.1 fails to build with Ruby 2.2:\r\n\r\n~~~\r\n$ gem install json -v 1.8.1\r\nFetching: json-1.8.1.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing json:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /opt/rh/rh-ruby22/root/usr/bin/ruby -r ./siteconf20150729-19319-v9hnj0.rb extconf.rb\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\nrm -f \r\nrm -f generator.so  *.o  *.bak mkmf.log .*.time\r\n\r\nmake \"DESTDIR=\"\r\ngcc -I. -I/opt/rh/rh-ruby22/root/usr/include -I/opt/rh/rh-ruby22/root/usr/include/ruby/backward -I/opt/rh/rh-ruby22/root/usr/include -I. -DJSON_GENERATOR    -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -fPIC -O3 -Wall -O0 -ggdb -m64 -o generator.o -c generator.c\r\nIn file included from /usr/include/stdio.h:27:0,\r\n                 from /opt/rh/rh-ruby22/root/usr/include/ruby/defines.h:26,\r\n                 from /opt/rh/rh-ruby22/root/usr/include/ruby/ruby.h:29,\r\n                 from /opt/rh/rh-ruby22/root/usr/include/ruby.h:33,\r\n                 from ../fbuffer/fbuffer.h:5,\r\n                 from generator.c:1:\r\n/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]\r\n #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)\r\n    ^\r\nIn file included from generator.c:1:0:\r\n../fbuffer/fbuffer.h: In function 'fbuffer_to_s':\r\n../fbuffer/fbuffer.h:175:47: error: macro \"rb_str_new\" requires 2 arguments, but only 1 given\r\n     VALUE result = rb_str_new(FBUFFER_PAIR(fb));\r\n                                               ^\r\n../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [enabled by default]\r\n     VALUE result = rb_str_new(FBUFFER_PAIR(fb));\r\n                    ^\r\nmake: *** [generator.o] Error 1\r\n\r\nmake failed, exit code 2\r\n\r\nGem files will remain installed in /builddir/.gem/ruby/gems/json-1.8.1 for inspection.\r\nResults logged to /builddir/.gem/ruby/extensions/x86_64-linux/json-1.8.1/gem_make.out\r\n~~~\r\n\r\nWhile json-1.8.3 builds just fine."},"comment":{"url":"https://api.github.com/repos/openshift/ruby-hello-world/issues/comments/125935709","html_url":"https://github.com/openshift/ruby-hello-world/pull/47#issuecomment-125935709","issue_url":"https://api.github.com/repos/openshift/ruby-hello-world/issues/47","id":125935709,"user":{"login":"jhadvig","id":1668218,"avatar_url":"https://avatars.githubusercontent.com/u/1668218?v=3","gravatar_id":"","url":"https://api.github.com/users/jhadvig","html_url":"https://github.com/jhadvig","followers_url":"https://api.github.com/users/jhadvig/followers","following_url":"https://api.github.com/users/jhadvig/following{/other_user}","gists_url":"https://api.github.com/users/jhadvig/gists{/gist_id}","starred_url":"https://api.github.com/users/jhadvig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhadvig/subscriptions","organizations_url":"https://api.github.com/users/jhadvig/orgs","repos_url":"https://api.github.com/users/jhadvig/repos","events_url":"https://api.github.com/users/jhadvig/events{/privacy}","received_events_url":"https://api.github.com/users/jhadvig/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T12:28:18Z","updated_at":"2015-07-29T12:28:18Z","body":"LGTM"}}