authentasaurus 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/CHANGELIST +2 -6
  2. data/TODO +0 -5
  3. data/app/controllers/areas_controller.rb +1 -1
  4. data/app/controllers/groups_controller.rb +1 -1
  5. data/app/controllers/permissions_controller.rb +1 -1
  6. data/app/controllers/recoveries_controller.rb +1 -1
  7. data/app/controllers/registrations_controller.rb +1 -1
  8. data/app/controllers/sessions_controller.rb +2 -2
  9. data/app/controllers/user_invitations_controller.rb +1 -1
  10. data/app/controllers/users_controller.rb +1 -1
  11. data/app/controllers/validations_controller.rb +1 -1
  12. data/app/models/area.rb +1 -1
  13. data/app/models/authentasaurus_emailer.rb +6 -6
  14. data/app/models/group.rb +1 -1
  15. data/app/models/permission.rb +1 -1
  16. data/app/models/recovery.rb +1 -1
  17. data/app/models/user_invitation.rb +1 -1
  18. data/app/models/validation.rb +1 -1
  19. data/app/views/authentasaurus_emailer/invitation_mail.html.erb +2 -2
  20. data/app/views/authentasaurus_emailer/recovery_mail.html.erb +2 -2
  21. data/app/views/authentasaurus_emailer/validation_mail.html.erb +2 -2
  22. data/lib/authentasaurus.rb +18 -52
  23. metadata +2 -136
  24. data/app/models/authentasaurus_session.rb +0 -3
  25. data/lib/authentasaurus/ac/acts_as_overrider.rb +0 -48
  26. data/lib/authentasaurus/ac/controllers/areas_controller.rb +0 -75
  27. data/lib/authentasaurus/ac/controllers/groups_controller.rb +0 -77
  28. data/lib/authentasaurus/ac/controllers/permissions_controller.rb +0 -76
  29. data/lib/authentasaurus/ac/controllers/recoveries_controller.rb +0 -67
  30. data/lib/authentasaurus/ac/controllers/registrations_controller.rb +0 -40
  31. data/lib/authentasaurus/ac/controllers/sessions_controller.rb +0 -57
  32. data/lib/authentasaurus/ac/controllers/user_invitations_controller.rb +0 -45
  33. data/lib/authentasaurus/ac/controllers/users_controller.rb +0 -75
  34. data/lib/authentasaurus/ac/controllers/validations_controller.rb +0 -48
  35. data/lib/authentasaurus/ac/routing.rb +0 -86
  36. data/lib/authentasaurus/ar/acts_as_authenticatable.rb +0 -107
  37. data/lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb +0 -35
  38. data/lib/authentasaurus/ar/acts_as_overrider.rb +0 -49
  39. data/lib/authentasaurus/ar/authenticatable.rb +0 -64
  40. data/lib/authentasaurus/ar/migrations.rb +0 -165
  41. data/lib/authentasaurus/ar/models/recovery.rb +0 -34
  42. data/lib/authentasaurus/ar/models/session.rb +0 -78
  43. data/lib/authentasaurus/ar/models/user_invitation.rb +0 -30
  44. data/lib/authentasaurus/ar/models/validation.rb +0 -27
  45. data/lib/authentasaurus/arel/acts_as_authenticatable.rb +0 -67
  46. data/lib/authentasaurus/arel/authenticatable.rb +0 -21
  47. data/lib/authentasaurus/authorization.rb +0 -344
  48. data/lib/authentasaurus/configuration.rb +0 -30
  49. data/lib/authentasaurus/railtie.rb +0 -10
  50. data/lib/generators/authentasaurus/install/USAGE +0 -5
  51. data/lib/generators/authentasaurus/install/install_generator.rb +0 -10
  52. data/lib/generators/authentasaurus/install/templates/authentasaurus_tasks.rake +0 -48
  53. data/lib/generators/authentasaurus/install/templates/defaults.yml +0 -57
  54. data/lib/generators/authentasaurus/views/USAGE +0 -13
  55. data/lib/generators/authentasaurus/views/templates/areas/edit.html.erb +0 -7
  56. data/lib/generators/authentasaurus/views/templates/areas/index.html.erb +0 -11
  57. data/lib/generators/authentasaurus/views/templates/areas/new.html.erb +0 -7
  58. data/lib/generators/authentasaurus/views/templates/areas/show.html.erb +0 -7
  59. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb +0 -4
  60. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb +0 -7
  61. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb +0 -6
  62. data/lib/generators/authentasaurus/views/templates/groups/edit.html.erb +0 -7
  63. data/lib/generators/authentasaurus/views/templates/groups/index.html.erb +0 -11
  64. data/lib/generators/authentasaurus/views/templates/groups/new.html.erb +0 -7
  65. data/lib/generators/authentasaurus/views/templates/groups/show.html.erb +0 -7
  66. data/lib/generators/authentasaurus/views/templates/permissions/edit.html.erb +0 -19
  67. data/lib/generators/authentasaurus/views/templates/permissions/index.html.erb +0 -17
  68. data/lib/generators/authentasaurus/views/templates/permissions/new.html.erb +0 -19
  69. data/lib/generators/authentasaurus/views/templates/permissions/show.html.erb +0 -7
  70. data/lib/generators/authentasaurus/views/templates/recoveries/edit.html.erb +0 -24
  71. data/lib/generators/authentasaurus/views/templates/recoveries/new.html.erb +0 -15
  72. data/lib/generators/authentasaurus/views/templates/registrations/new.html.erb +0 -21
  73. data/lib/generators/authentasaurus/views/templates/sessions/new.html.erb +0 -41
  74. data/lib/generators/authentasaurus/views/templates/sessions/no_access.html.erb +0 -1
  75. data/lib/generators/authentasaurus/views/templates/user_invitations/index.html.erb +0 -14
  76. data/lib/generators/authentasaurus/views/templates/user_invitations/new.html.erb +0 -9
  77. data/lib/generators/authentasaurus/views/templates/users/edit.html.erb +0 -27
  78. data/lib/generators/authentasaurus/views/templates/users/index.html.erb +0 -19
  79. data/lib/generators/authentasaurus/views/templates/users/new.html.erb +0 -27
  80. data/lib/generators/authentasaurus/views/templates/users/show.html.erb +0 -11
  81. data/lib/generators/authentasaurus/views/templates/validations/resend_validation_email.html.erb +0 -6
  82. data/lib/generators/authentasaurus/views/templates/validations/validate.html.erb +0 -6
  83. data/lib/generators/authentasaurus/views/views_generator.rb +0 -76
  84. data/rdoc/apple-touch-icon.png +0 -0
  85. data/rdoc/classes/Authentasaurus.html +0 -65
  86. data/rdoc/classes/Authentasaurus/Ac.html +0 -72
  87. data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider.html +0 -104
  88. data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider/ClassMethods.html +0 -397
  89. data/rdoc/classes/Authentasaurus/Ac/Routing.html +0 -61
  90. data/rdoc/classes/Authentasaurus/Ac/Routing/InstanceMethods.html +0 -390
  91. data/rdoc/classes/Authentasaurus/Ar.html +0 -77
  92. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable.html +0 -107
  93. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/ClassMethods.html +0 -168
  94. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/InstanceMethods.html +0 -357
  95. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable.html +0 -109
  96. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/ClassMethods.html +0 -113
  97. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/InstanceMethods.html +0 -54
  98. data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider.html +0 -104
  99. data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider/ClassMethods.html +0 -320
  100. data/rdoc/classes/Authentasaurus/Ar/Authenticatable.html +0 -104
  101. data/rdoc/classes/Authentasaurus/Ar/Authenticatable/ClassMethods.html +0 -182
  102. data/rdoc/classes/Authentasaurus/Ar/Migrations.html +0 -63
  103. data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns.html +0 -68
  104. data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns/InstanceMethods.html +0 -106
  105. data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables.html +0 -68
  106. data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables/InstanceMethods.html +0 -703
  107. data/rdoc/classes/Authentasaurus/Arel.html +0 -65
  108. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable.html +0 -107
  109. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/ClassMethods.html +0 -139
  110. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/InstanceMethods.html +0 -113
  111. data/rdoc/classes/Authentasaurus/Arel/Authenticatable.html +0 -105
  112. data/rdoc/classes/Authentasaurus/Arel/Authenticatable/ClassMethods.html +0 -119
  113. data/rdoc/classes/Authentasaurus/Authorization.html +0 -230
  114. data/rdoc/classes/Authentasaurus/Authorization/ActionController.html +0 -63
  115. data/rdoc/classes/Authentasaurus/Authorization/ActionController/ClassMethods.html +0 -263
  116. data/rdoc/classes/Authentasaurus/Authorization/ActionController/InstanceMethods.html +0 -54
  117. data/rdoc/classes/Authentasaurus/Authorization/ActionView.html +0 -54
  118. data/rdoc/classes/Authentasaurus/Authorization/CommonInstanceMethods.html +0 -240
  119. data/rdoc/created.rid +0 -1
  120. data/rdoc/css/main.css +0 -278
  121. data/rdoc/css/panel.css +0 -383
  122. data/rdoc/css/reset.css +0 -53
  123. data/rdoc/favicon.ico +0 -0
  124. data/rdoc/files/README_rdoc.html +0 -366
  125. data/rdoc/files/TODO.html +0 -64
  126. data/rdoc/files/lib/authentasaurus/ac/acts_as_overrider_rb.html +0 -52
  127. data/rdoc/files/lib/authentasaurus/ac/routing_rb.html +0 -60
  128. data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_rb.html +0 -52
  129. data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html +0 -52
  130. data/rdoc/files/lib/authentasaurus/ar/acts_as_overrider_rb.html +0 -52
  131. data/rdoc/files/lib/authentasaurus/ar/authenticatable_rb.html +0 -52
  132. data/rdoc/files/lib/authentasaurus/ar/migrations_rb.html +0 -52
  133. data/rdoc/files/lib/authentasaurus/arel/acts_as_authenticatable_rb.html +0 -52
  134. data/rdoc/files/lib/authentasaurus/arel/authenticatable_rb.html +0 -72
  135. data/rdoc/files/lib/authentasaurus/authorization_rb.html +0 -208
  136. data/rdoc/i/arrows.png +0 -0
  137. data/rdoc/i/results_bg.png +0 -0
  138. data/rdoc/i/tree_bg.png +0 -0
  139. data/rdoc/index.html +0 -15
  140. data/rdoc/js/jquery-1.3.2.min.js +0 -19
  141. data/rdoc/js/jquery-effect.js +0 -593
  142. data/rdoc/js/main.js +0 -22
  143. data/rdoc/js/searchdoc.js +0 -628
  144. data/rdoc/panel/index.html +0 -71
  145. data/rdoc/panel/search_index.js +0 -1
  146. data/rdoc/panel/tree.js +0 -1
data/CHANGELIST CHANGED
@@ -1,7 +1,3 @@
1
- =Version 0.8.4 > 0.8.5
1
+ =Version 0.4.14 > 0.5.4
2
2
 
3
- * Convert mixins to use ActiveSupport::Concern
4
- * Improved configuration access
5
- * Added user_model option to specify the default user model application wide
6
- * Changed views generator template path to app instead of lib/generators/authentasaurus/views/templates
7
- * Prefixed session model and routes with authentasaurus to avoid name collisions
3
+ * Improved inheritance of models by adding _model to all models in the libs folder
data/TODO CHANGED
@@ -1,8 +1,3 @@
1
- * Integrate with ActiveModel instead of ActiveRecord
2
- * Complete documentation
3
- * Add HAML support
4
- --
5
- * Convert mixins to use ActiveSupport::Concern [DONE]
6
1
  * Update views to use the new flash convention [DONE]
7
2
  * flash[:notice] for information messages [DONE]
8
3
  * flash[:alert] for error messages [DONE]
@@ -1,5 +1,5 @@
1
1
  class AreasController < ApplicationController
2
- acts_as_areas
2
+ include Authentasaurus::AreasController
3
3
  require_read :index, :show
4
4
  require_write :new, :create, :edit, :update, :destroy
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class GroupsController < ApplicationController
2
- acts_as_groups
2
+ include Authentasaurus::GroupsController
3
3
  require_read :index, :show
4
4
  require_write :new, :create, :edit, :update, :destroy
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class PermissionsController < ApplicationController
2
- acts_as_permissions
2
+ include Authentasaurus::PermissionsController
3
3
  require_read :index, :show
4
4
  require_write :new, :create, :edit, :update, :destroy
5
5
  end
@@ -1,3 +1,3 @@
1
1
  class RecoveriesController < ApplicationController
2
- acts_as_recoveries
2
+ include Authentasaurus::RecoveriesController
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class RegistrationsController < ApplicationController
2
- acts_as_registrations
2
+ include Authentasaurus::RegistrationsController
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class SessionsController < ApplicationController
2
- acts_as_sessions
3
- end
2
+ include Authentasaurus::SessionsController
3
+ end
@@ -1,5 +1,5 @@
1
1
  class UserInvitationsController < ApplicationController
2
- acts_as_user_invitations
2
+ include Authentasaurus::UserInvitationsController
3
3
  require_read :index
4
4
  require_write :new, :create, :destroy
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class UsersController < ApplicationController
2
- acts_as_users
2
+ include Authentasaurus::UsersController
3
3
  require_read :index, :show
4
4
  require_write :new, :create, :edit, :update, :destroy
5
5
  end
@@ -1,3 +1,3 @@
1
1
  class ValidationsController < ApplicationController
2
- acts_as_validations
2
+ include Authentasaurus::ValidationsController
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class Area < ActiveRecord::Base
2
- acts_as_area
2
+ include Authentasaurus::Models::Area
3
3
  end
@@ -1,8 +1,8 @@
1
1
  class AuthentasaurusEmailer < ActionMailer::Base
2
2
  def validation_mail(name, email, validation_code, sent_at = Time.now)
3
- subject Authentasaurus::Configuration.instance.configuration[:modules][:validatable][:mail_subject]
3
+ subject AUTHENTASAURUS[:modules][:validatable][:mail_subject]
4
4
  recipients email
5
- from Authentasaurus::Configuration.instance.configuration[:modules][:validatable][:mail_from]
5
+ from AUTHENTASAURUS[:modules][:validatable][:mail_from]
6
6
  sent_on sent_at
7
7
 
8
8
  body :name => name, :vcode => validation_code
@@ -10,9 +10,9 @@ class AuthentasaurusEmailer < ActionMailer::Base
10
10
  end
11
11
 
12
12
  def recovery_mail(user, token, sent_at = Time.now)
13
- subject Authentasaurus::Configuration.instance.configuration[:modules][:recoverable][:mail_subject]
13
+ subject AUTHENTASAURUS[:modules][:recoverable][:mail_subject]
14
14
  recipients user.email
15
- from Authentasaurus::Configuration.instance.configuration[:modules][:recoverable][:mail_from] # dont forget to change me
15
+ from AUTHENTASAURUS[:modules][:recoverable][:mail_from] # dont forget to change me
16
16
  sent_on sent_at
17
17
 
18
18
  body :name => user.name, :token => token
@@ -20,9 +20,9 @@ class AuthentasaurusEmailer < ActionMailer::Base
20
20
  end
21
21
 
22
22
  def invitation_mail(email, token, sent_at = Time.now)
23
- subject Authentasaurus::Configuration.instance.configuration[:modules][:invitable][:mail_subject]
23
+ subject AUTHENTASAURUS[:modules][:invitable][:mail_subject]
24
24
  recipients email
25
- from Authentasaurus::Configuration.instance.configuration[:modules][:invitable][:mail_from]
25
+ from AUTHENTASAURUS[:modules][:invitable][:mail_from]
26
26
  sent_on sent_at
27
27
 
28
28
  body :token => token
@@ -1,3 +1,3 @@
1
1
  class Group < ActiveRecord::Base
2
- acts_as_group
2
+ include Authentasaurus::Models::Group
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class Permission < ActiveRecord::Base
2
- acts_as_permission
2
+ include Authentasaurus::Models::Permission
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class Recovery < ActiveRecord::Base
2
- acts_as_recovery
2
+ include Authentasaurus::Models::Recovery
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class UserInvitation < ActiveRecord::Base
2
- acts_as_user_invitation
2
+ include Authentasaurus::Models::UserInvitation
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class Validation < ActiveRecord::Base
2
- acts_as_validation
2
+ include Authentasaurus::Models::Validation
3
3
  end
@@ -1,4 +1,4 @@
1
- <p>You've been invited to create an account at <%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> follow this <%= link_to "link", new_registrations_url(:host => Authentasaurus::Configuration.instance.configuration[:mail][:host], :token => @token) %> to respond to the invitation.</p>
1
+ <p>You've been invited to create an account at <%= AUTHENTASAURUS[:mail][:host] %> follow this <%= link_to "link", new_registrations_url(:host => AUTHENTASAURUS[:mail][:host], :token => @token) %> to respond to the invitation.</p>
2
2
 
3
3
  <p>Best Regards,</p>
4
- <p><%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> Team</p>
4
+ <p><%= AUTHENTASAURUS[:mail][:host] %> Team</p>
@@ -1,7 +1,7 @@
1
1
  <p>Dear <%= @name %>,</p>
2
2
 
3
3
  <p>A request has been made to recover your account's password.</p>
4
- <p>Please visit this <%= link_to "link", recover_password_url(:host => Authentasaurus::Configuration.instance.configuration[:mail][:host], :token => @token) %> and follow the instructions.</p>
4
+ <p>Please visit this <%= link_to "link", recover_password_url(:host => AUTHENTASAURUS[:mail][:host], :token => @token) %> and follow the instructions.</p>
5
5
 
6
6
  <p>Best Regards,</p>
7
- <p><%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> Team</p>
7
+ <p><%= AUTHENTASAURUS[:mail][:host] %> Team</p>
@@ -1,6 +1,6 @@
1
1
  <p>Dear <%= @name %>,</p>
2
2
 
3
- <p>Please validate your account at <%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> by visiting this <%= link_to "link", activate_url(:host => Authentasaurus::Configuration.instance.configuration[:mail][:host] , :code => @vcode) %>.</p>
3
+ <p>Please validate your account at <%= AUTHENTASAURUS[:mail][:host] %> by visiting this <%= link_to "link", activate_url(:host => AUTHENTASAURUS[:mail][:host] , :code => @vcode) %>.</p>
4
4
 
5
5
  <p>Best Regards,</p>
6
- <p><%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> Team</p>
6
+ <p><%= AUTHENTASAURUS[:mail][:host] %> Team</p>
@@ -1,55 +1,21 @@
1
- module Authentasaurus
2
- require 'authentasaurus/configuration'
3
- require 'authentasaurus/railtie' #if defined?(Rails) # NEVER EVER REMOVE THIS LINE !!!
4
- # Authorization Helpers
5
- require 'authentasaurus/authorization'
6
- # Controllers, Views and Routes helpers
7
- require 'authentasaurus/ac/acts_as_overrider'
8
- require 'authentasaurus/ac/routing'
9
- # ActiveRecord And Migrations Helpers
10
- require 'authentasaurus/ar/acts_as_overrider'
11
- require 'authentasaurus/ar/authenticatable'
12
- require 'authentasaurus/ar/migrations'
13
- require 'authentasaurus/ar/acts_as_authenticatable'
14
- require 'authentasaurus/ar/acts_as_authenticatable_validatable'
15
- require 'authentasaurus/arel/acts_as_authenticatable'
16
- # ActiveResource Helpers
17
- require 'authentasaurus/arel/authenticatable'
18
-
19
- if defined?(ActionController)
20
- class ActionController::Base
21
- include Authentasaurus::Authorization::ActionController
22
- include Authentasaurus::Ac::ActsAsOverrider
23
- end
24
-
25
- class ActionView::Base
26
- include Authentasaurus::Authorization::ActionView
27
- end
28
-
29
- class ActionDispatch::Routing::Mapper
30
- include Authentasaurus::Ac::Routing
31
- end
32
- end
33
-
34
- if defined?(ActiveRecord)
35
- class ActiveRecord::Base
36
- include Authentasaurus::Ar::Authenticatable
37
- include Authentasaurus::Ar::ActsAsOverrider
38
- end
39
-
40
- class ActiveRecord::ConnectionAdapters::AbstractAdapter
41
- include Authentasaurus::Ar::Migrations::Tables
42
- end
43
-
44
- class ActiveRecord::ConnectionAdapters::TableDefinition
45
- include Authentasaurus::Ar::Migrations::Columns
46
- end
47
- end
48
-
49
- if defined?(ActiveResource)
50
- class ActiveResource::Base
51
- class_inheritable_accessor :sync, :sync_to
52
- include Authentasaurus::Arel::Authenticatable
1
+ module Authentasaurus
2
+ def self.evaluate_method(method, *args, &block)
3
+ case method
4
+ when Symbol
5
+ object = args.shift
6
+ object.send(method, *args, &block)
7
+ when String
8
+ eval(method, args.first.instance_eval { binding })
9
+ when Proc, Method
10
+ method.call(*args, &block)
11
+ else
12
+ if method == true || method == false
13
+ return method
14
+ else
15
+ raise ArgumentError,
16
+ "Callbacks must be a symbol denoting the method to call, a string to be evaluated, " +
17
+ "a block to be invoked, or a condition."
18
+ end
53
19
  end
54
20
  end
55
21
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 8
9
- - 8
10
- version: 0.8.8
5
+ version: 0.8.9
11
6
  platform: ruby
12
7
  authors:
13
8
  - Omar Mekky
@@ -18,7 +13,7 @@ autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
15
 
21
- date: 2011-03-11 00:00:00 +02:00
16
+ date: 2011-04-10 00:00:00 +02:00
22
17
  default_executable:
23
18
  dependencies: []
24
19
 
@@ -45,7 +40,6 @@ files:
45
40
  - app/controllers/validations_controller.rb
46
41
  - app/models/area.rb
47
42
  - app/models/authentasaurus_emailer.rb
48
- - app/models/authentasaurus_session.rb
49
43
  - app/models/group.rb
50
44
  - app/models/permission.rb
51
45
  - app/models/recovery.rb
@@ -83,128 +77,6 @@ files:
83
77
  - app/views/validations/validate.html.erb
84
78
  - config/locales/en.yml
85
79
  - lib/authentasaurus.rb
86
- - lib/authentasaurus/ac/acts_as_overrider.rb
87
- - lib/authentasaurus/ac/controllers/areas_controller.rb
88
- - lib/authentasaurus/ac/controllers/groups_controller.rb
89
- - lib/authentasaurus/ac/controllers/permissions_controller.rb
90
- - lib/authentasaurus/ac/controllers/recoveries_controller.rb
91
- - lib/authentasaurus/ac/controllers/registrations_controller.rb
92
- - lib/authentasaurus/ac/controllers/sessions_controller.rb
93
- - lib/authentasaurus/ac/controllers/user_invitations_controller.rb
94
- - lib/authentasaurus/ac/controllers/users_controller.rb
95
- - lib/authentasaurus/ac/controllers/validations_controller.rb
96
- - lib/authentasaurus/ac/routing.rb
97
- - lib/authentasaurus/ar/acts_as_authenticatable.rb
98
- - lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb
99
- - lib/authentasaurus/ar/acts_as_overrider.rb
100
- - lib/authentasaurus/ar/authenticatable.rb
101
- - lib/authentasaurus/ar/migrations.rb
102
- - lib/authentasaurus/ar/models/recovery.rb
103
- - lib/authentasaurus/ar/models/session.rb
104
- - lib/authentasaurus/ar/models/user_invitation.rb
105
- - lib/authentasaurus/ar/models/validation.rb
106
- - lib/authentasaurus/arel/acts_as_authenticatable.rb
107
- - lib/authentasaurus/arel/authenticatable.rb
108
- - lib/authentasaurus/authorization.rb
109
- - lib/authentasaurus/configuration.rb
110
- - lib/authentasaurus/railtie.rb
111
- - lib/generators/authentasaurus/install/USAGE
112
- - lib/generators/authentasaurus/install/install_generator.rb
113
- - lib/generators/authentasaurus/install/templates/authentasaurus_tasks.rake
114
- - lib/generators/authentasaurus/install/templates/defaults.yml
115
- - lib/generators/authentasaurus/views/USAGE
116
- - lib/generators/authentasaurus/views/templates/areas/edit.html.erb
117
- - lib/generators/authentasaurus/views/templates/areas/index.html.erb
118
- - lib/generators/authentasaurus/views/templates/areas/new.html.erb
119
- - lib/generators/authentasaurus/views/templates/areas/show.html.erb
120
- - lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb
121
- - lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb
122
- - lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb
123
- - lib/generators/authentasaurus/views/templates/groups/edit.html.erb
124
- - lib/generators/authentasaurus/views/templates/groups/index.html.erb
125
- - lib/generators/authentasaurus/views/templates/groups/new.html.erb
126
- - lib/generators/authentasaurus/views/templates/groups/show.html.erb
127
- - lib/generators/authentasaurus/views/templates/permissions/edit.html.erb
128
- - lib/generators/authentasaurus/views/templates/permissions/index.html.erb
129
- - lib/generators/authentasaurus/views/templates/permissions/new.html.erb
130
- - lib/generators/authentasaurus/views/templates/permissions/show.html.erb
131
- - lib/generators/authentasaurus/views/templates/recoveries/edit.html.erb
132
- - lib/generators/authentasaurus/views/templates/recoveries/new.html.erb
133
- - lib/generators/authentasaurus/views/templates/registrations/new.html.erb
134
- - lib/generators/authentasaurus/views/templates/sessions/new.html.erb
135
- - lib/generators/authentasaurus/views/templates/sessions/no_access.html.erb
136
- - lib/generators/authentasaurus/views/templates/user_invitations/index.html.erb
137
- - lib/generators/authentasaurus/views/templates/user_invitations/new.html.erb
138
- - lib/generators/authentasaurus/views/templates/users/edit.html.erb
139
- - lib/generators/authentasaurus/views/templates/users/index.html.erb
140
- - lib/generators/authentasaurus/views/templates/users/new.html.erb
141
- - lib/generators/authentasaurus/views/templates/users/show.html.erb
142
- - lib/generators/authentasaurus/views/templates/validations/resend_validation_email.html.erb
143
- - lib/generators/authentasaurus/views/templates/validations/validate.html.erb
144
- - lib/generators/authentasaurus/views/views_generator.rb
145
- - rdoc/apple-touch-icon.png
146
- - rdoc/classes/Authentasaurus.html
147
- - rdoc/classes/Authentasaurus/Ac.html
148
- - rdoc/classes/Authentasaurus/Ac/ActsAsOverrider.html
149
- - rdoc/classes/Authentasaurus/Ac/ActsAsOverrider/ClassMethods.html
150
- - rdoc/classes/Authentasaurus/Ac/Routing.html
151
- - rdoc/classes/Authentasaurus/Ac/Routing/InstanceMethods.html
152
- - rdoc/classes/Authentasaurus/Ar.html
153
- - rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable.html
154
- - rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/ClassMethods.html
155
- - rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/InstanceMethods.html
156
- - rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable.html
157
- - rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/ClassMethods.html
158
- - rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/InstanceMethods.html
159
- - rdoc/classes/Authentasaurus/Ar/ActsAsOverrider.html
160
- - rdoc/classes/Authentasaurus/Ar/ActsAsOverrider/ClassMethods.html
161
- - rdoc/classes/Authentasaurus/Ar/Authenticatable.html
162
- - rdoc/classes/Authentasaurus/Ar/Authenticatable/ClassMethods.html
163
- - rdoc/classes/Authentasaurus/Ar/Migrations.html
164
- - rdoc/classes/Authentasaurus/Ar/Migrations/Columns.html
165
- - rdoc/classes/Authentasaurus/Ar/Migrations/Columns/InstanceMethods.html
166
- - rdoc/classes/Authentasaurus/Ar/Migrations/Tables.html
167
- - rdoc/classes/Authentasaurus/Ar/Migrations/Tables/InstanceMethods.html
168
- - rdoc/classes/Authentasaurus/Arel.html
169
- - rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable.html
170
- - rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/ClassMethods.html
171
- - rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/InstanceMethods.html
172
- - rdoc/classes/Authentasaurus/Arel/Authenticatable.html
173
- - rdoc/classes/Authentasaurus/Arel/Authenticatable/ClassMethods.html
174
- - rdoc/classes/Authentasaurus/Authorization.html
175
- - rdoc/classes/Authentasaurus/Authorization/ActionController.html
176
- - rdoc/classes/Authentasaurus/Authorization/ActionController/ClassMethods.html
177
- - rdoc/classes/Authentasaurus/Authorization/ActionController/InstanceMethods.html
178
- - rdoc/classes/Authentasaurus/Authorization/ActionView.html
179
- - rdoc/classes/Authentasaurus/Authorization/CommonInstanceMethods.html
180
- - rdoc/created.rid
181
- - rdoc/css/main.css
182
- - rdoc/css/panel.css
183
- - rdoc/css/reset.css
184
- - rdoc/favicon.ico
185
- - rdoc/files/README_rdoc.html
186
- - rdoc/files/TODO.html
187
- - rdoc/files/lib/authentasaurus/ac/acts_as_overrider_rb.html
188
- - rdoc/files/lib/authentasaurus/ac/routing_rb.html
189
- - rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_rb.html
190
- - rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html
191
- - rdoc/files/lib/authentasaurus/ar/acts_as_overrider_rb.html
192
- - rdoc/files/lib/authentasaurus/ar/authenticatable_rb.html
193
- - rdoc/files/lib/authentasaurus/ar/migrations_rb.html
194
- - rdoc/files/lib/authentasaurus/arel/acts_as_authenticatable_rb.html
195
- - rdoc/files/lib/authentasaurus/arel/authenticatable_rb.html
196
- - rdoc/files/lib/authentasaurus/authorization_rb.html
197
- - rdoc/i/arrows.png
198
- - rdoc/i/results_bg.png
199
- - rdoc/i/tree_bg.png
200
- - rdoc/index.html
201
- - rdoc/js/jquery-1.3.2.min.js
202
- - rdoc/js/jquery-effect.js
203
- - rdoc/js/main.js
204
- - rdoc/js/searchdoc.js
205
- - rdoc/panel/index.html
206
- - rdoc/panel/search_index.js
207
- - rdoc/panel/tree.js
208
80
  - CHANGELIST
209
81
  - MIT-LICENSE
210
82
  - README.rdoc
@@ -223,18 +95,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
95
  requirements:
224
96
  - - ">="
225
97
  - !ruby/object:Gem::Version
226
- hash: 3
227
- segments:
228
- - 0
229
98
  version: "0"
230
99
  required_rubygems_version: !ruby/object:Gem::Requirement
231
100
  none: false
232
101
  requirements:
233
102
  - - ">="
234
103
  - !ruby/object:Gem::Version
235
- hash: 3
236
- segments:
237
- - 0
238
104
  version: "0"
239
105
  requirements: []
240
106
 
@@ -1,3 +0,0 @@
1
- class AuthentasaurusSession
2
- include Authentasaurus::Ar::Models::Session
3
- end
@@ -1,48 +0,0 @@
1
- module Authentasaurus::Ac
2
- Dir[File.dirname(__FILE__) + '/controllers/*.rb'].each {|file| require file }
3
-
4
- module ActsAsOverrider
5
- extend ActiveSupport::Concern
6
-
7
- module ClassMethods
8
- def acts_as_areas
9
- include Authentasaurus::Ac::Controllers::AreasController
10
- end
11
-
12
- def acts_as_groups
13
- include Authentasaurus::Ac::Controllers::GroupsController
14
- end
15
-
16
- def acts_as_permissions
17
- include Authentasaurus::Ac::Controllers::PermissionsController
18
- end
19
-
20
- def acts_as_recoveries
21
- include Authentasaurus::Ac::Controllers::RecoveriesController
22
- end
23
-
24
- def acts_as_registrations
25
- include Authentasaurus::Ac::Controllers::RegistrationsController
26
- end
27
-
28
- def acts_as_sessions(user_model = nil)
29
- cattr_accessor :user_model
30
- self.user_model = user_model || Authentasaurus::Configuration.instance.user_model.to_sym
31
-
32
- include Authentasaurus::Ac::Controllers::SessionsController
33
- end
34
-
35
- def acts_as_user_invitations
36
- include Authentasaurus::Ac::Controllers::UserInvitationsController
37
- end
38
-
39
- def acts_as_users
40
- include Authentasaurus::Ac::Controllers::UsersController
41
- end
42
-
43
- def acts_as_validations
44
- include Authentasaurus::Ac::Controllers::ValidationsController
45
- end
46
- end
47
- end
48
- end