tmm1 / gctools

profiler/logger/oobgc for rgengc in ruby 2.1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong argument type Class (expected Module)

jmccartie opened this issue · comments

Added code snippet to config.ru:

# This file is used by Rack-based servers to start the application.

require 'gctools/oobgc'
if defined?(Unicorn::HttpRequest)
  use GC::OOB::UnicornMiddleware
end

require ::File.expand_path('../config/environment',  __FILE__)
run AwesomeApp::Application

When starting up, I get the following error:

.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/gctools-0.2.2/lib/gctools/oobgc/unicorn_middleware.rb:8:in `extend': wrong argument type Class (expected Module) (TypeError)

Any ideas on what I'm missing?

unicorn (4.5.0)
gctools (0.2.2)

Yep, I get this too:

unicorn (4.8.1)
gctools (0.2.2)

Me as well:

unicorn (4.8.0)
gctools (0.2.2)

Same here.

Verified it fixed for me! Thanks for the very quick fix!

Fantastic, thanks so much!

👍