{"action":"created","issue":{"url":"https://api.github.com/repos/ohler55/oj/issues/305","repository_url":"https://api.github.com/repos/ohler55/oj","labels_url":"https://api.github.com/repos/ohler55/oj/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/ohler55/oj/issues/305/comments","events_url":"https://api.github.com/repos/ohler55/oj/issues/305/events","html_url":"https://github.com/ohler55/oj/issues/305","id":161200121,"number":305,"title":"Cannot build with Ruby 2.4.0-preview1","user":{"login":"schneems","id":59744,"avatar_url":"https://avatars.githubusercontent.com/u/59744?v=3","gravatar_id":"","url":"https://api.github.com/users/schneems","html_url":"https://github.com/schneems","followers_url":"https://api.github.com/users/schneems/followers","following_url":"https://api.github.com/users/schneems/following{/other_user}","gists_url":"https://api.github.com/users/schneems/gists{/gist_id}","starred_url":"https://api.github.com/users/schneems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schneems/subscriptions","organizations_url":"https://api.github.com/users/schneems/orgs","repos_url":"https://api.github.com/users/schneems/repos","events_url":"https://api.github.com/users/schneems/events{/privacy}","received_events_url":"https://api.github.com/users/schneems/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-20T13:53:08Z","updated_at":"2016-07-11T21:05:35Z","closed_at":"2016-07-08T17:52:36Z","body":"I think this is because Fixnum and Bignum are now simply Integer in Ruby 2.4.0\r\n\r\nHere is the failure I get on Ruby 2.4.0-preview1:\r\n\r\n```\r\n$ gem install oj\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing oj:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    current directory: /Users/richardschneeman/.gem/ruby/2.4.0/gems/oj-2.16.0/ext/oj\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/bin/ruby -r ./siteconf20160620-32521-6nas02.rb extconf.rb\r\n>>>>> Creating Makefile for ruby version 2.4.0 on x86_64-darwin14 <<<<<\r\ncreating Makefile\r\n\r\ncurrent directory: /Users/richardschneeman/.gem/ruby/2.4.0/gems/oj-2.16.0/ext/oj\r\nmake \"DESTDIR=\" clean\r\n\r\ncurrent directory: /Users/richardschneeman/.gem/ruby/2.4.0/gems/oj-2.16.0/ext/oj\r\nmake \"DESTDIR=\"\r\ncompiling cache8.c\r\ncompiling circarray.c\r\ncompiling compat.c\r\ncompiling dump.c\r\ndump.c:570:8: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]\r\n        cnt = RSTRING_LEN(rstr);\r\n            ~ ^~~~~~~~~~~~~~~~~\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/include/ruby-2.4.0/ruby/ruby.h:965:6: note: expanded from macro 'RSTRING_LEN'\r\n     RSTRING_EMBED_LEN(str) : \\\r\n     ^~~~~~~~~~~~~~~~~~~~~~\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/include/ruby-2.4.0/ruby/ruby.h:961:6: note: expanded from macro 'RSTRING_EMBED_LEN'\r\n     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \\\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ndump.c:570:8: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]\r\n        cnt = RSTRING_LEN(rstr);\r\n            ~ ^~~~~~~~~~~~~~~~~\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/include/ruby-2.4.0/ruby/ruby.h:966:28: note: expanded from macro 'RSTRING_LEN'\r\n     RSTRING(str)->as.heap.len)\r\n     ~~~~~~~~~~~~~~~~~~~~~~^~~\r\ndump.c:1929:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]\r\n            int         len = RSTRING_LEN(v);\r\n                        ~~~   ^~~~~~~~~~~~~~\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/include/ruby-2.4.0/ruby/ruby.h:965:6: note: expanded from macro 'RSTRING_LEN'\r\n     RSTRING_EMBED_LEN(str) : \\\r\n     ^~~~~~~~~~~~~~~~~~~~~~\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/include/ruby-2.4.0/ruby/ruby.h:961:6: note: expanded from macro 'RSTRING_EMBED_LEN'\r\n     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \\\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ndump.c:1929:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]\r\n            int         len = RSTRING_LEN(v);\r\n                        ~~~   ^~~~~~~~~~~~~~\r\n/Users/richardschneeman/.rubies/ruby-2.4.0-preview1/include/ruby-2.4.0/ruby/ruby.h:966:28: note: expanded from macro 'RSTRING_LEN'\r\n     RSTRING(str)->as.heap.len)\r\n     ~~~~~~~~~~~~~~~~~~~~~~^~~\r\n4 warnings generated.\r\ncompiling err.c\r\ncompiling fast.c\r\nfast.c:1284:24: error: use of undeclared identifier 'rb_cFixnum'\r\n        case T_FIXNUM:  type = rb_cFixnum;      break;\r\n                               ^\r\n```"},"comment":{"url":"https://api.github.com/repos/ohler55/oj/issues/comments/231864867","html_url":"https://github.com/ohler55/oj/issues/305#issuecomment-231864867","issue_url":"https://api.github.com/repos/ohler55/oj/issues/305","id":231864867,"user":{"login":"ohler55","id":118856,"avatar_url":"https://avatars.githubusercontent.com/u/118856?v=3","gravatar_id":"","url":"https://api.github.com/users/ohler55","html_url":"https://github.com/ohler55","followers_url":"https://api.github.com/users/ohler55/followers","following_url":"https://api.github.com/users/ohler55/following{/other_user}","gists_url":"https://api.github.com/users/ohler55/gists{/gist_id}","starred_url":"https://api.github.com/users/ohler55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohler55/subscriptions","organizations_url":"https://api.github.com/users/ohler55/orgs","repos_url":"https://api.github.com/users/ohler55/repos","events_url":"https://api.github.com/users/ohler55/events{/privacy}","received_events_url":"https://api.github.com/users/ohler55/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T21:05:34Z","updated_at":"2016-07-11T21:05:34Z","body":"Super, thanks."}}
{"actor":{"display_login":"ohler55"}}