Fix undefined variable in gateway
Update gemspec