bin/oauth2-server in rack-oauth2-server-1.4.0 vs bin/oauth2-server in rack-oauth2-server-1.4.1
- old
+ new
@@ -9,10 +9,10 @@
url = ARGV[i + 1]
uri = URI.parse(url)
uri = URI.parse("mongo://#{url}") if uri.opaque
db = uri.path.sub(/^\//, "")
conn = Mongo::Connection.new(uri.host, uri.port)
- coon.add_auth db, uri.user, uri.password if uri.user
+ conn.add_auth db, uri.user, uri.password if uri.user
Server.database = conn[db]
ARGV[i,2] = []
end