Browse files

shifting filesystem structure to correspond with most gem's filesyste…

…m structure
  • Loading branch information...
1 parent 0d6d24e commit eeaedb8c6c2218e7cd2c370091bbb010c70a383b @atmos atmos committed Oct 30, 2009
View
7 lib/hancock.rb
@@ -12,9 +12,10 @@
require 'json'
require 'rack/contrib/accept_format'
-require File.expand_path(File.join(File.dirname(__FILE__), 'models'))
-require File.expand_path(File.join(File.dirname(__FILE__), 'sso'))
-require File.expand_path(File.join(File.dirname(__FILE__), 'api'))
+lib_dir = File.expand_path(File.join(File.dirname(__FILE__), 'hancock'))
+%w(models sso api).each do |library|
+ require File.join(lib_dir, library)
+end
module Hancock
class ConfigurationError < StandardError; end
View
0 lib/api.rb → lib/hancock/api.rb
File renamed without changes.
View
0 lib/api/consumer.rb → lib/hancock/api/consumer.rb
File renamed without changes.
View
0 lib/api/user.rb → lib/hancock/api/user.rb
File renamed without changes.
View
0 lib/models.rb → lib/hancock/models.rb
File renamed without changes.
View
0 lib/models/consumer.rb → lib/hancock/models/consumer.rb
File renamed without changes.
View
0 lib/models/model.rb → lib/hancock/models/model.rb
File renamed without changes.
View
0 lib/models/user.rb → lib/hancock/models/user.rb
File renamed without changes.
View
0 lib/sso.rb → lib/hancock/sso.rb
File renamed without changes.
View
0 lib/sso/openid_server.rb → lib/hancock/sso/openid_server.rb
File renamed without changes.
View
0 lib/sso/sessions.rb → lib/hancock/sso/sessions.rb
File renamed without changes.
View
0 lib/sso/views/unauthenticated.haml → lib/hancock/sso/views/unauthenticated.haml
File renamed without changes.

0 comments on commit eeaedb8

Please sign in to comment.