From 2cefdbb535a2883f514e1b3482eefbe072976be3 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 9 Apr 2015 13:36:05 -0400 Subject: [PATCH] Move lib/gitlab/oauth to lib/gitlab/o_auth Lets Rails autoload these files by name --- lib/gitlab/ldap/user.rb | 2 +- lib/gitlab/{oauth => o_auth}/auth_hash.rb | 0 lib/gitlab/{oauth => o_auth}/user.rb | 0 spec/lib/gitlab/{oauth => o_auth}/auth_hash_spec.rb | 0 spec/lib/gitlab/{oauth => o_auth}/user_spec.rb | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename lib/gitlab/{oauth => o_auth}/auth_hash.rb (100%) rename lib/gitlab/{oauth => o_auth}/user.rb (100%) rename spec/lib/gitlab/{oauth => o_auth}/auth_hash_spec.rb (100%) rename spec/lib/gitlab/{oauth => o_auth}/user_spec.rb (100%) diff --git a/lib/gitlab/ldap/user.rb b/lib/gitlab/ldap/user.rb index cfa8692659d..b04f5b4ac37 100644 --- a/lib/gitlab/ldap/user.rb +++ b/lib/gitlab/ldap/user.rb @@ -1,4 +1,4 @@ -require 'gitlab/oauth/user' +require 'gitlab/o_auth/user' # LDAP extension for User model # diff --git a/lib/gitlab/oauth/auth_hash.rb b/lib/gitlab/o_auth/auth_hash.rb similarity index 100% rename from lib/gitlab/oauth/auth_hash.rb rename to lib/gitlab/o_auth/auth_hash.rb diff --git a/lib/gitlab/oauth/user.rb b/lib/gitlab/o_auth/user.rb similarity index 100% rename from lib/gitlab/oauth/user.rb rename to lib/gitlab/o_auth/user.rb diff --git a/spec/lib/gitlab/oauth/auth_hash_spec.rb b/spec/lib/gitlab/o_auth/auth_hash_spec.rb similarity index 100% rename from spec/lib/gitlab/oauth/auth_hash_spec.rb rename to spec/lib/gitlab/o_auth/auth_hash_spec.rb diff --git a/spec/lib/gitlab/oauth/user_spec.rb b/spec/lib/gitlab/o_auth/user_spec.rb similarity index 100% rename from spec/lib/gitlab/oauth/user_spec.rb rename to spec/lib/gitlab/o_auth/user_spec.rb