Skip to content
Browse files

using latest sweetloader for now load strategy

  • Loading branch information...
1 parent 5495e90 commit 2a5b06a27ade4407033adc522b91c50262a63972 Kristian Mandrup committed Nov 29, 2011
View
6 Gemfile
@@ -1,10 +1,10 @@
source :rubygems
group :default do
- gem 'rails', '>= 3.1'
+ gem 'rails', '>= 3.1'
gem 'sugar-high', '>= 0.6.0'
- gem 'sweetloader', '~> 0.1.0'
- gem 'hashie'
+ gem 'sweetloader', '~> 0.1.3'
+ gem 'hashie', '~> 0.4.0'
gem 'cantango-config', :git => 'git://github.com/kristianmandrup/cantango-config.git'
end
View
16 Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/kristianmandrup/cantango-config.git
- revision: c11aead6e1325c9bc2ae6c459df0f8187667cbd4
+ revision: e17a6646e319b013255ccf37b9815ad8fdbe6a94
specs:
cantango-config (0.1.2)
cantango-core
@@ -56,24 +56,24 @@ GEM
database_cleaner (0.7.0)
diff-lcs (1.1.3)
erubis (2.7.0)
- factory_girl (2.3.1)
+ factory_girl (2.3.2)
activesupport
forgery (0.5.0)
git (1.2.5)
- hashie (1.2.0)
+ hashie (0.4.0)
hike (1.2.1)
i18n (0.6.0)
jeweler (1.6.4)
bundler (~> 1.0)
git (>= 1.2.5)
rake
- json (1.6.1)
+ json (1.6.2)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.17.2)
- multi_json (1.0.3)
+ multi_json (1.0.4)
polyglot (0.3.3)
rack (1.3.5)
rack-cache (1.1)
@@ -120,7 +120,7 @@ GEM
sqlite3 (1.3.4)
sugar-high (0.6.0)
activesupport (>= 3.0.1)
- sweetloader (0.1.1)
+ sweetloader (0.1.3)
activesupport (>= 3.0.1)
i18n
thor (0.14.6)
@@ -140,7 +140,7 @@ DEPENDENCIES
database_cleaner
factory_girl
forgery
- hashie
+ hashie (~> 0.4.0)
jeweler (>= 1.6.4)
rails (>= 3.1)
rcov
@@ -149,4 +149,4 @@ DEPENDENCIES
spork
sqlite3
sugar-high (>= 0.6.0)
- sweetloader (~> 0.1.0)
+ sweetloader (~> 0.1.3)
View
6 lib/cantango/roles.rb
@@ -6,8 +6,10 @@
require 'cantango/core'
require 'cantango/config'
-AutoLoader.namespaces = {:CanTango => 'cantango'}
+AutoLoader.mode = :require
module CanTango
- autoload_modules :Configuration, :Filter, :Helpers
+ autoload_scope :ns => {:CanTango => 'cantango/roles'} do
+ autoload_modules :Configuration, :Filter, :Helpers
+ end
end
View
0 lib/cantango/ability/helper/role.rb → lib/cantango/roles/ability/helper/role.rb
File renamed without changes.
View
0 lib/cantango/ability/helper/role_group.rb → ...ntango/roles/ability/helper/role_group.rb
File renamed without changes.
View
0 lib/cantango/builder/permit/role.rb → lib/cantango/roles/builder/permit/role.rb
File renamed without changes.
View
0 lib/cantango/builder/permit/role_group.rb → ...ntango/roles/builder/permit/role_group.rb
File renamed without changes.
View
0 lib/cantango/configuration.rb → lib/cantango/roles/configuration.rb
File renamed without changes.
View
0 lib/cantango/configuration/registry/role.rb → ...ango/roles/configuration/registry/role.rb
File renamed without changes.
View
0 lib/cantango/configuration/role_groups.rb → ...ntango/roles/configuration/role_groups.rb
File renamed without changes.
View
0 lib/cantango/configuration/roles.rb → lib/cantango/roles/configuration/roles.rb
File renamed without changes.
View
0 lib/cantango/configuration/system.rb → lib/cantango/roles/configuration/system.rb
File renamed without changes.
View
0 lib/cantango/engine/permits.rb → lib/cantango/roles/engine/permits.rb
File renamed without changes.
View
0 lib/cantango/filter.rb → lib/cantango/roles/filter.rb
File renamed without changes.
View
0 lib/cantango/filter/role.rb → lib/cantango/roles/filter/role.rb
File renamed without changes.
View
0 lib/cantango/filter/role_group.rb → lib/cantango/roles/filter/role_group.rb
File renamed without changes.
View
0 lib/cantango/helpers.rb → lib/cantango/roles/helpers.rb
File renamed without changes.
View
0 lib/cantango/helpers/role.rb → lib/cantango/roles/helpers/role.rb
File renamed without changes.
View
0 lib/cantango/helpers/role_group.rb → lib/cantango/roles/helpers/role_group.rb
File renamed without changes.
View
0 lib/cantango/permit/helper/role_matcher.rb → ...tango/roles/permit/helper/role_matcher.rb
File renamed without changes.
View
0 lib/cantango/permit/role.rb → lib/cantango/roles/permit/role.rb
File renamed without changes.
View
0 lib/cantango/permit/role_group.rb → lib/cantango/roles/permit/role_group.rb
File renamed without changes.

0 comments on commit 2a5b06a

Please sign in to comment.
Something went wrong with that request. Please try again.