{"action":"created","issue":{"url":"https://api.github.com/repos/tra/spawnling/issues/53","labels_url":"https://api.github.com/repos/tra/spawnling/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/tra/spawnling/issues/53/comments","events_url":"https://api.github.com/repos/tra/spawnling/issues/53/events","html_url":"https://github.com/tra/spawnling/issues/53","id":57946145,"number":53,"title":"Rails 4.x compatibility","user":{"login":"neongrau","id":179209,"avatar_url":"https://avatars.githubusercontent.com/u/179209?v=3","gravatar_id":"","url":"https://api.github.com/users/neongrau","html_url":"https://github.com/neongrau","followers_url":"https://api.github.com/users/neongrau/followers","following_url":"https://api.github.com/users/neongrau/following{/other_user}","gists_url":"https://api.github.com/users/neongrau/gists{/gist_id}","starred_url":"https://api.github.com/users/neongrau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neongrau/subscriptions","organizations_url":"https://api.github.com/users/neongrau/orgs","repos_url":"https://api.github.com/users/neongrau/repos","events_url":"https://api.github.com/users/neongrau/events{/privacy}","received_events_url":"https://api.github.com/users/neongrau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-17T16:29:12Z","updated_at":"2015-06-08T23:59:49Z","closed_at":null,"body":"I just had the issue that on windows there only is threading and in lib/spawnling.rb in sel.frun there is a check for \"allow_concurrency?\" that fails and then the line\r\n@@logger.error(\"spawn(:method=>:thread) only allowed when allow_concurrency=true\")\r\nfails because @@logger isn't there. So all i got was:\r\n\r\nD:/Informer/ruby/lib/ruby/gems/2.0.0/gems/spawnling-2.1.3/lib/spawnling.rb:112:in `run': undefined method `error' for nil:NilClass (NoMethodError)\r\n\r\nThen clean_connections failed at \"verify_active_conenctions!\" strangely so because i'd have expected the \"respond_to?\" check catching that.\r\n\r\nI quickly monkey patched it this way:\r\n\r\nclass Spawnling\r\n  def self.allow_concurrency?\r\n    true\r\n  end\r\n  def self.clean_connections\r\n    ActiveRecord::Base.clear_active_connections!\r\n  end\r\nend\r\n\r\nBut i guess you should check and set allow_concurreny true if rails >= 4.0.0.\r\nAnd the clean_conenctions should somehow call the ConnecteionPool Reaper but i haven't yet figured out myself how to do that."},"comment":{"url":"https://api.github.com/repos/tra/spawnling/issues/comments/110177485","html_url":"https://github.com/tra/spawnling/issues/53#issuecomment-110177485","issue_url":"https://api.github.com/repos/tra/spawnling/issues/53","id":110177485,"user":{"login":"mhuggins","id":169093,"avatar_url":"https://avatars.githubusercontent.com/u/169093?v=3","gravatar_id":"","url":"https://api.github.com/users/mhuggins","html_url":"https://github.com/mhuggins","followers_url":"https://api.github.com/users/mhuggins/followers","following_url":"https://api.github.com/users/mhuggins/following{/other_user}","gists_url":"https://api.github.com/users/mhuggins/gists{/gist_id}","starred_url":"https://api.github.com/users/mhuggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhuggins/subscriptions","organizations_url":"https://api.github.com/users/mhuggins/orgs","repos_url":"https://api.github.com/users/mhuggins/repos","events_url":"https://api.github.com/users/mhuggins/events{/privacy}","received_events_url":"https://api.github.com/users/mhuggins/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T23:59:49Z","updated_at":"2015-06-08T23:59:49Z","body":"I was looking at this repo in consideration for a Rails 4 app as well.  Is this something that might be fixed?"}}