authentasaurus 0.6.21 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/app/models/authentasaurus_emailer.rb +6 -6
  2. data/app/views/authentasaurus_emailer/invitation_mail.html.erb +2 -2
  3. data/app/views/authentasaurus_emailer/recovery_mail.html.erb +2 -2
  4. data/app/views/authentasaurus_emailer/validation_mail.html.erb +2 -2
  5. data/lib/action_controller/authorization.rb +1 -1
  6. data/lib/active_record/acts_as_authenticatable.rb +2 -2
  7. data/lib/active_record/authenticatable.rb +1 -1
  8. data/lib/active_resource/authenticatable.rb +4 -4
  9. data/lib/authentasaurus.rb +61 -17
  10. data/lib/authentasaurus/models/area.rb +17 -15
  11. data/lib/authentasaurus/models/group.rb +15 -13
  12. data/lib/authentasaurus/models/permission.rb +20 -18
  13. data/lib/authentasaurus/models/recovery.rb +34 -32
  14. data/lib/authentasaurus/models/session.rb +63 -56
  15. data/lib/authentasaurus/models/user_invitation.rb +27 -25
  16. data/lib/authentasaurus/models/validation.rb +26 -24
  17. data/lib/authentasaurus/railtie.rb +13 -0
  18. data/lib/authentasaurus/sessions_controller.rb +0 -1
  19. data/lib/generators/authentasaurus/install/USAGE +5 -0
  20. data/lib/generators/authentasaurus/install/install_generator.rb +11 -0
  21. data/{generators/authentasaurus → lib/generators/authentasaurus/install}/templates/authentasaurus_tasks.rake +2 -2
  22. data/{generators/authentasaurus → lib/generators/authentasaurus/install}/templates/defaults.yml +0 -0
  23. data/lib/generators/authentasaurus/install/templates/initializer.rb +3 -0
  24. data/{generators/authentasaurus_views → lib/generators/authentasaurus/views}/USAGE +1 -0
  25. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/areas/edit.html.erb +0 -0
  26. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/areas/index.html.erb +0 -0
  27. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/areas/new.html.erb +0 -0
  28. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/areas/show.html.erb +0 -0
  29. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb +4 -0
  30. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb +7 -0
  31. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb +6 -0
  32. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/groups/edit.html.erb +0 -0
  33. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/groups/index.html.erb +0 -0
  34. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/groups/new.html.erb +0 -0
  35. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/groups/show.html.erb +0 -0
  36. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/permissions/edit.html.erb +0 -0
  37. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/permissions/index.html.erb +0 -0
  38. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/permissions/new.html.erb +0 -0
  39. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/permissions/show.html.erb +0 -0
  40. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/recoveries/edit.html.erb +0 -0
  41. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/recoveries/new.html.erb +0 -0
  42. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/registrations/new.html.erb +0 -0
  43. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/sessions/new.html.erb +0 -0
  44. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/sessions/no_access.html.erb +0 -0
  45. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/user_invitations/index.html.erb +0 -0
  46. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/user_invitations/new.html.erb +0 -0
  47. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/users/edit.html.erb +0 -0
  48. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/users/index.html.erb +0 -0
  49. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/users/new.html.erb +0 -0
  50. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/users/show.html.erb +0 -0
  51. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/validations/resend_validation_email.html.erb +0 -0
  52. data/{generators/authentasaurus_views/templates/views → lib/generators/authentasaurus/views/templates}/validations/validate.html.erb +0 -0
  53. data/lib/generators/authentasaurus/views/views_generator.rb +76 -0
  54. data/lib/helpers/migrations.rb +1 -1
  55. data/lib/helpers/routing.rb +18 -22
  56. metadata +67 -56
  57. data/generators/authentasaurus/USAGE +0 -2
  58. data/generators/authentasaurus/authentasaurus_generator.rb +0 -9
  59. data/generators/authentasaurus/templates/initializer.rb +0 -3
  60. data/generators/authentasaurus_views/authentasaurus_views_generator.rb +0 -91
  61. data/generators/authentasaurus_views/templates/views/authentasaurus_emailer/invitation_mail.html.erb +0 -4
  62. data/generators/authentasaurus_views/templates/views/authentasaurus_emailer/recovery_mail.html.erb +0 -7
  63. data/generators/authentasaurus_views/templates/views/authentasaurus_emailer/validation_mail.html.erb +0 -6
  64. data/rails/init.rb +0 -41
@@ -1,31 +1,33 @@
1
- module Authentasaurus::Models::UserInvitation
2
- def self.included(base) # :nodoc:
3
- base.send :extend, ClassMethods
4
- base.send :include, InstanceMethods
5
-
6
- base.send :require, 'digest/sha2'
7
- base.send :validates_presence_of, :email
8
- base.send :validates_uniqueness_of, :email, :scope => :token
9
- base.send :validates_format_of, :email, :with => %r{[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}}
1
+ module Authentasaurus::Models
2
+ module UserInvitation
3
+ def self.included(base) # :nodoc:
4
+ base.send :extend, ClassMethods
5
+ base.send :include, InstanceMethods
6
+
7
+ base.send :require, 'digest/sha2'
8
+ base.send :validates_presence_of, :email
9
+ base.send :validates_uniqueness_of, :email, :scope => :token
10
+ base.send :validates_format_of, :email, :with => %r{[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}}
11
+
12
+ base.send :before_validation, :create_token
13
+ #send email
14
+ base.send :after_create, :send_invitation
15
+ end
10
16
 
11
- base.send :before_validation, :create_token
12
- #send email
13
- base.send :after_create, :send_invitation
14
- end
15
-
16
- module ClassMethods
17
- end
18
-
19
- module InstanceMethods
20
- def send_invitation
21
- AuthentasaurusEmailer.deliver_invitation_mail(self.email, self.token) if AUTHENTASAURUS[:modules][:invitable][:send_email]
17
+ module ClassMethods
22
18
  end
23
19
 
24
- private
25
- def create_token
26
- return if self.email.nil? || self.email.blank?
27
- string_to_hash=self.email + "invitable.olation" + self.email.hash.to_s
28
- self.token = Digest::SHA2.hexdigest(string_to_hash)
20
+ module InstanceMethods
21
+ def send_invitation
22
+ AuthentasaurusEmailer.deliver_invitation_mail(self.email, self.token) if Rails.application.config.authentasaurus[:modules][:invitable][:send_email]
23
+ end
24
+
25
+ private
26
+ def create_token
27
+ return if self.email.nil? || self.email.blank?
28
+ string_to_hash=self.email + "invitable.olation" + self.email.hash.to_s
29
+ self.token = Digest::SHA2.hexdigest(string_to_hash)
30
+ end
29
31
  end
30
32
  end
31
33
  end
@@ -1,28 +1,30 @@
1
- module Authentasaurus::Models::Validation
2
- def self.included(base) # :nodoc:
3
- base.send :extend, ClassMethods
4
- base.send :include, InstanceMethods
1
+ module Authentasaurus::Models
2
+ module Validation
3
+ def self.included(base) # :nodoc:
4
+ base.send :extend, ClassMethods
5
+ base.send :include, InstanceMethods
6
+
7
+ base.send :belongs_to, :user, :polymorphic => true
8
+
9
+ # Check that everything is there
10
+ base.send :validates_presence_of, :user_id, :validation_code, :user_type, :email
11
+ # Check foreign keys
12
+ base.send :validates_associated, :user
13
+ # Check unique user
14
+ base.send :validates_uniqueness_of, :user_id, :scope => [:user_type, :email]
15
+ base.send :validates_uniqueness_of, :validation_code
16
+
17
+ #send email
18
+ base.send :after_create, :send_validation
19
+ end
5
20
 
6
- base.send :belongs_to, :user, :polymorphic => true
7
-
8
- # Check that everything is there
9
- base.send :validates_presence_of, :user_id, :validation_code, :user_type, :email
10
- # Check foreign keys
11
- base.send :validates_associated, :user
12
- # Check unique user
13
- base.send :validates_uniqueness_of, :user_id, :scope => [:user_type, :email]
14
- base.send :validates_uniqueness_of, :validation_code
15
-
16
- #send email
17
- base.send :after_create, :send_validation
18
- end
19
-
20
- module ClassMethods
21
- end
22
-
23
- module InstanceMethods
24
- def send_validation
25
- AuthentasaurusEmailer.deliver_validation_mail(self.user.name, self.email, self.validation_code) if AUTHENTASAURUS[:modules][:validatable][:send_email]
21
+ module ClassMethods
22
+ end
23
+
24
+ module InstanceMethods
25
+ def send_validation
26
+ AuthentasaurusEmailer.deliver_validation_mail(self.user.name, self.email, self.validation_code) if Rails.application.config.authentasaurus[:modules][:validatable][:send_email]
27
+ end
26
28
  end
27
29
  end
28
30
  end
@@ -0,0 +1,13 @@
1
+ require 'authentasaurus'
2
+ require 'rails'
3
+
4
+ module Authentasaurus
5
+ class Railtie < Rails::Engine
6
+ ActiveSupport.on_load(:before_initialize) do
7
+ Rails.application.config.authentasaurus = {}
8
+ require 'active_record/acts_as_authenticatable'
9
+ require 'active_record/acts_as_authenticatable_validatable'
10
+ require 'active_resource/acts_as_authenticatable'
11
+ end
12
+ end
13
+ end
@@ -39,7 +39,6 @@ module Authentasaurus::SessionsController
39
39
  def destroy
40
40
  session[:user_id] = nil
41
41
  session[:user_permissions] = nil
42
- session[:original_url] = nil
43
42
  cookies.delete :remember_me_token
44
43
 
45
44
  respond_to do |format|
@@ -0,0 +1,5 @@
1
+ Description:
2
+ Generates configuration files for Authentasaurus.
3
+
4
+ Example:
5
+ rails generate authentasaurus:install
@@ -0,0 +1,11 @@
1
+ module Authentasaurus
2
+ class InstallGenerator < Rails::Generators::Base
3
+ source_root File.expand_path('../templates', __FILE__)
4
+
5
+ def install
6
+ copy_file "defaults.yml", "config/authentasaurus.yml"
7
+ copy_file "authentasaurus_tasks.rake", "lib/tasks/authentasaurus_tasks.rake"
8
+ copy_file "initializer.rb", "config/initializers/authentasaurus.rb"
9
+ end
10
+ end
11
+ end
@@ -12,11 +12,11 @@ namespace :authentasaurus do
12
12
  Permission.create! :area_id => area.id, :group_id => group.id, :write => true, :read => true
13
13
  puts "- Creating default user"
14
14
  User.create! :username=> "admin" ,:password => "Pass@123",:password_confirmation => "Pass@123",:name=> "admin",
15
- :email=> AUTHENTASAURUS[:mail][:email], :active => true, :group_id => group.id
15
+ :email=> Rails.application.config.authentasaurus[:mail][:email], :active => true, :group_id => group.id
16
16
  else
17
17
  puts "- Creating default user"
18
18
  User.create! :username=> "admin" ,:password => "Pass@123",:password_confirmation => "Pass@123",:name=> "admin",
19
- :email=> AUTHENTASAURUS[:mail][:email], :active => true
19
+ :email=> Rails.application.config.authentasaurus[:mail][:email], :active => true
20
20
  end
21
21
 
22
22
  puts "Created admin user, you can now login with the following credentials:"
@@ -0,0 +1,3 @@
1
+ # Loads the system configuration
2
+ # Usage: Rails.application.config.authentasaurus[:section][:key]
3
+ Rails.application.config.authentasaurus = YAML.load(File.read(Rails.root.join("config", "authentasaurus.yml")))[RAILS_ENV]
@@ -5,6 +5,7 @@ Examples:
5
5
  `./script/generate authentasaurus_views users`
6
6
 
7
7
  creates views for Authentasaurus with main user model named "user" and controller named "users"
8
+ and places the user views under app/views/users
8
9
 
9
10
  `./script/generate authentasaurus_views users --authorizable --validatable --invitable
10
11
 
@@ -0,0 +1,4 @@
1
+ <p>You've been invited to create an account at <%= Rails.application.config.authentasaurus[:mail][:host] %> follow this <%= link_to "link", new_registrations_url(:host => Rails.application.config.authentasaurus[:mail][:host], :token => @token) %> to respond to the invitation.</p>
2
+
3
+ <p>Best Regards,</p>
4
+ <p><%= Rails.application.config.authentasaurus[:mail][:host] %> Team</p>
@@ -0,0 +1,7 @@
1
+ <p>Dear <%= @name %>,</p>
2
+
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 => Rails.application.config.authentasaurus[:mail][:host], :token => @token) %> and follow the instructions.</p>
5
+
6
+ <p>Best Regards,</p>
7
+ <p><%= Rails.application.config.authentasaurus[:mail][:host] %> Team</p>
@@ -0,0 +1,6 @@
1
+ <p>Dear <%= @name %>,</p>
2
+
3
+ <p>Please validate your account at <%= Rails.application.config.authentasaurus[:mail][:host] %> by visiting this <%= link_to "link", activate_url(:host => Rails.application.config.authentasaurus[:mail][:host] , :code => @vcode) %>.</p>
4
+
5
+ <p>Best Regards,</p>
6
+ <p><%= Rails.application.config.authentasaurus[:mail][:host] %> Team</p>
@@ -0,0 +1,76 @@
1
+ module Authentasaurus
2
+ class ViewsGenerator < Rails::Generators::NamedBase
3
+ source_root File.expand_path('../templates', __FILE__)
4
+ class_option :authorization, :type => :boolean, :default => true, :desc => "Generates views for authorization"
5
+ class_option :validation, :type => :boolean, :default => true, :desc => "Generates views for user validation"
6
+ class_option :invitation, :type => :boolean, :default => true, :desc => "Generates views for user invitation"
7
+
8
+ # Generate Users Views
9
+ def generate_users
10
+ copy_file "users/edit.html.erb", "app/views/#{name.underscore.pluralize}/edit.html.erb"
11
+ copy_file "users/index.html.erb", "app/views/#{name.underscore.pluralize}/index.html.erb"
12
+ copy_file "users/new.html.erb", "app/views/#{name.underscore.pluralize}/new.html.erb"
13
+ copy_file "users/show.html.erb", "app/views/#{name.underscore.pluralize}/show.html.erb"
14
+ end
15
+
16
+ # Generate Sessions Views
17
+ def generate_sessions
18
+ copy_file "sessions/new.html.erb", "app/views/#{class_path}/sessions/new.html.erb"
19
+ copy_file "sessions/no_access.html.erb", "app/views/#{class_path}/sessions/no_access.html.erb"
20
+ end
21
+
22
+ # Generate recoveries Views
23
+ def generate_recoveries
24
+ copy_file "recoveries/edit.html.erb", "app/views/#{class_path}/recoveries/edit.html.erb"
25
+ copy_file "recoveries/new.html.erb", "app/views/#{class_path}/recoveries/new.html.erb"
26
+ copy_file "authentasaurus_emailer/recovery_mail.html.erb", "app/views/#{class_path}/authentasaurus_emailer/recovery_mail.html.erb"
27
+ end
28
+
29
+ # Generate Authorization Views
30
+ def generate_authorization
31
+ if options.authorization?
32
+ # Areas
33
+ copy_file "areas/edit.html.erb", "app/views/#{class_path}/areas/edit.html.erb"
34
+ copy_file "areas/index.html.erb", "app/views/#{class_path}/areas/index.html.erb"
35
+ copy_file "areas/new.html.erb", "app/views/#{class_path}/areas/new.html.erb"
36
+ copy_file "areas/show.html.erb", "app/views/#{class_path}/areas/show.html.erb"
37
+
38
+ # Groups
39
+ copy_file "groups/edit.html.erb", "app/views/#{class_path}/groups/edit.html.erb"
40
+ copy_file "groups/index.html.erb", "app/views/#{class_path}/groups/index.html.erb"
41
+ copy_file "groups/new.html.erb", "app/views/#{class_path}/groups/new.html.erb"
42
+ copy_file "groups/show.html.erb", "app/views/#{class_path}/groups/show.html.erb"
43
+
44
+ # Permissions
45
+ copy_file "permissions/edit.html.erb", "app/views/#{class_path}/permissions/edit.html.erb"
46
+ copy_file "permissions/index.html.erb", "app/views/#{class_path}/permissions/index.html.erb"
47
+ copy_file "permissions/new.html.erb", "app/views/#{class_path}/permissions/new.html.erb"
48
+ copy_file "permissions/show.html.erb", "app/views/#{class_path}/permissions/show.html.erb"
49
+ end
50
+ end
51
+
52
+ # Generate Validation Views
53
+ def generate_validation
54
+ if options.validation?
55
+ # Validations
56
+ copy_file "validations/resend_validation_email.html.erb", "app/views/#{class_path}/validations/resend_validation_email.html.erb"
57
+ copy_file "validations/validate.html.erb", "app/views/#{class_path}/validations/validate.html.erb"
58
+ # Validation email
59
+ copy_file "authentasaurus_emailer/validation_mail.html.erb", "app/views/#{class_path}/authentasaurus_emailer/validation_mail.html.erb"
60
+ end
61
+ end
62
+
63
+ # Generate Invitation Views
64
+ def generate_invitation
65
+ if options.invitation?
66
+ # User Invitations
67
+ copy_file "user_invitations/index.html.erb", "app/views/#{class_path}/user_invitations/index.html.erb"
68
+ copy_file "user_invitations/new.html.erb", "app/views/#{class_path}/user_invitations/new.html.erb"
69
+ # Registrations
70
+ copy_file "registrations/new.html.erb", "app/views/#{class_path}/registrations/new.html.erb"
71
+ # Invitation email
72
+ copy_file "authentasaurus_emailer/invitation_mail.html.erb", "app/views/#{class_path}/authentasaurus_emailer/invitation_mail.html.erb"
73
+ end
74
+ end
75
+ end
76
+ end
@@ -1,4 +1,4 @@
1
- module Helpers::Migrations
1
+ module Migrations
2
2
  # Extends ActiveRecord::ConnectionAdapters::SchemaStatements
3
3
  module Tables
4
4
  def self.included(base) # :nodoc:
@@ -1,5 +1,5 @@
1
1
  ## Authentasaurus routes helper
2
- module Helpers::Routing
2
+ module Routing
3
3
  def self.included(base) # :nodoc:
4
4
  base.send :include, InstanceMethods
5
5
  end
@@ -13,20 +13,20 @@ module Helpers::Routing
13
13
  authentasaurus_sessions options.dup
14
14
  authentasaurus_users options.dup
15
15
  # Recoverable
16
- authentasaurus_recoverable options.dup
16
+ authentasaurus_recoverable
17
17
 
18
18
  # Authorizable
19
- if opts.include?(:authorizable)
19
+ if opts.include?(:authorization)
20
20
  authentasaurus_authorizable options.dup
21
21
  end
22
22
 
23
23
  # Validatable
24
- if opts.include?(:validatable)
25
- authentasaurus_validatable options.dup
24
+ if opts.include?(:validation)
25
+ authentasaurus_validatable
26
26
  end
27
27
 
28
28
  # Invitable
29
- if opts.include?(:invitable)
29
+ if opts.include?(:invitation)
30
30
  authentasaurus_invitable options.dup
31
31
  authentasaurus_invitable_public
32
32
  end
@@ -56,13 +56,11 @@ module Helpers::Routing
56
56
  end
57
57
 
58
58
  # TODO: add documentation here
59
- def authentasaurus_validatable(*opts)
60
- options = opts.extract_options!
61
-
62
- validate "/validate", options.dup.merge({:controller => :validations, :action => :validate})
63
- activate "/activate", options.dup.merge({:controller => :validations, :action => :activate})
64
- resend_validation_email "/resend-validation", options.dup.merge({:controller => :validations, :action => :resend_validation_email, :conditions => {:method => :get}})
65
- do_resend_validation_email "/resend-validation", options.dup.merge({:controller => :validations, :action => :do_resend_validation_email, :conditions => {:method => :post}})
59
+ def authentasaurus_validatable
60
+ match "/validate" => "validations#validate", :as => 'validate'
61
+ match "/activate" => "validations#activate", :as => 'activate'
62
+ match "/resend-validation" => "validations#resend_validation_email", :via => :get, :as => 'recover_password'
63
+ match "/resend-validation" => "validations#do_resend_validation_email", :via => :post, :as => 'do_recover_password'
66
64
  end
67
65
 
68
66
  # TODO: add documentation here
@@ -71,7 +69,7 @@ module Helpers::Routing
71
69
 
72
70
  resources :user_invitations, options.dup.merge({:except => [:show, :edit, :update]})
73
71
  end
74
-
72
+
75
73
  def authentasaurus_invitable_public(*opts)
76
74
  options = opts.extract_options!
77
75
 
@@ -79,13 +77,11 @@ module Helpers::Routing
79
77
  end
80
78
 
81
79
  # TODO: add documentation here
82
- def authentasaurus_recoverable(*opts)
83
- options = opts.extract_options!
84
-
85
- forgot_password "/forgot-password", options.dup.merge({ :controller => :recoveries, :action => :new, :conditions => { :method => :get } })
86
- do_forgot_password "/forgot-password", options.dup.merge({ :controller => :recoveries, :action => :create, :conditions => { :method => :post } })
87
- recover_password "/recover-password/:token", options.dup.merge({ :controller => :recoveries, :action => :edit, :conditions => { :method => :get } })
88
- do_recover_password "/recover-password/:token", options.dup.merge({ :controller => :recoveries, :action => :destroy, :conditions => { :method => :delete } })
89
- end
80
+ def authentasaurus_recoverable
81
+ match "/forgot-password" => "recoveries#new", :via => :get, :as => 'forgot_password'
82
+ match "/forgot-password" => "recoveries#create", :via => :post, :as => 'do_forgot_password'
83
+ match "/recover-password/:token" => "recoveries#edit", :via => :get, :as => 'recover_password'
84
+ match "/recover-password/:token" => "recoveries#destroy", :via => :delete, :as => 'do_recover_password'
85
+ end
90
86
  end
91
87
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 45
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 6
9
- - 21
10
- version: 0.6.21
8
+ - 7
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky
@@ -18,10 +18,23 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-10-30 00:00:00 +02:00
21
+ date: 2010-10-02 00:00:00 +02:00
22
22
  default_executable:
23
- dependencies: []
24
-
23
+ dependencies:
24
+ - !ruby/object:Gem::Dependency
25
+ name: thoughtbot-shoulda
26
+ prerelease: false
27
+ requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ hash: 3
33
+ segments:
34
+ - 0
35
+ version: "0"
36
+ type: :development
37
+ version_requirements: *id001
25
38
  description: Simple and easy dynamic restful group/permission based authentication and authorization engine plugin for Rails
26
39
  email: info@mashsolvents.com
27
40
  executables: []
@@ -29,10 +42,10 @@ executables: []
29
42
  extensions: []
30
43
 
31
44
  extra_rdoc_files:
45
+ - CHANGELIST
32
46
  - MIT-LICENSE
33
47
  - README.rdoc
34
48
  - TODO
35
- - CHANGELIST
36
49
  files:
37
50
  - app/controllers/areas_controller.rb
38
51
  - app/controllers/groups_controller.rb
@@ -79,44 +92,9 @@ files:
79
92
  - app/views/users/index.html.erb
80
93
  - app/views/users/new.html.erb
81
94
  - app/views/users/show.html.erb
82
- - app/views/validations/validate.html.erb
83
95
  - app/views/validations/resend_validation_email.html.erb
96
+ - app/views/validations/validate.html.erb
84
97
  - config/locales/en.yml
85
- - generators/authentasaurus/authentasaurus_generator.rb
86
- - generators/authentasaurus/USAGE
87
- - generators/authentasaurus/templates/authentasaurus_tasks.rake
88
- - generators/authentasaurus/templates/defaults.yml
89
- - generators/authentasaurus/templates/initializer.rb
90
- - generators/authentasaurus_views/authentasaurus_views_generator.rb
91
- - generators/authentasaurus_views/USAGE
92
- - generators/authentasaurus_views/templates/views/areas/edit.html.erb
93
- - generators/authentasaurus_views/templates/views/areas/index.html.erb
94
- - generators/authentasaurus_views/templates/views/areas/new.html.erb
95
- - generators/authentasaurus_views/templates/views/areas/show.html.erb
96
- - generators/authentasaurus_views/templates/views/authentasaurus_emailer/invitation_mail.html.erb
97
- - generators/authentasaurus_views/templates/views/authentasaurus_emailer/recovery_mail.html.erb
98
- - generators/authentasaurus_views/templates/views/authentasaurus_emailer/validation_mail.html.erb
99
- - generators/authentasaurus_views/templates/views/groups/edit.html.erb
100
- - generators/authentasaurus_views/templates/views/groups/index.html.erb
101
- - generators/authentasaurus_views/templates/views/groups/new.html.erb
102
- - generators/authentasaurus_views/templates/views/groups/show.html.erb
103
- - generators/authentasaurus_views/templates/views/permissions/edit.html.erb
104
- - generators/authentasaurus_views/templates/views/permissions/index.html.erb
105
- - generators/authentasaurus_views/templates/views/permissions/new.html.erb
106
- - generators/authentasaurus_views/templates/views/permissions/show.html.erb
107
- - generators/authentasaurus_views/templates/views/recoveries/edit.html.erb
108
- - generators/authentasaurus_views/templates/views/recoveries/new.html.erb
109
- - generators/authentasaurus_views/templates/views/registrations/new.html.erb
110
- - generators/authentasaurus_views/templates/views/sessions/new.html.erb
111
- - generators/authentasaurus_views/templates/views/sessions/no_access.html.erb
112
- - generators/authentasaurus_views/templates/views/user_invitations/index.html.erb
113
- - generators/authentasaurus_views/templates/views/user_invitations/new.html.erb
114
- - generators/authentasaurus_views/templates/views/users/edit.html.erb
115
- - generators/authentasaurus_views/templates/views/users/index.html.erb
116
- - generators/authentasaurus_views/templates/views/users/new.html.erb
117
- - generators/authentasaurus_views/templates/views/users/show.html.erb
118
- - generators/authentasaurus_views/templates/views/validations/validate.html.erb
119
- - generators/authentasaurus_views/templates/views/validations/resend_validation_email.html.erb
120
98
  - lib/action_controller/authorization.rb
121
99
  - lib/action_view/authorization.rb
122
100
  - lib/active_record/acts_as_authenticatable.rb
@@ -124,6 +102,9 @@ files:
124
102
  - lib/active_record/authenticatable.rb
125
103
  - lib/active_resource/acts_as_authenticatable.rb
126
104
  - lib/active_resource/authenticatable.rb
105
+ - lib/authentasaurus.rb
106
+ - lib/authentasaurus/areas_controller.rb
107
+ - lib/authentasaurus/groups_controller.rb
127
108
  - lib/authentasaurus/models/area.rb
128
109
  - lib/authentasaurus/models/group.rb
129
110
  - lib/authentasaurus/models/permission.rb
@@ -131,30 +112,62 @@ files:
131
112
  - lib/authentasaurus/models/session.rb
132
113
  - lib/authentasaurus/models/user_invitation.rb
133
114
  - lib/authentasaurus/models/validation.rb
134
- - lib/authentasaurus/areas_controller.rb
135
- - lib/authentasaurus/groups_controller.rb
136
115
  - lib/authentasaurus/permissions_controller.rb
116
+ - lib/authentasaurus/railtie.rb
137
117
  - lib/authentasaurus/recoveries_controller.rb
138
118
  - lib/authentasaurus/registrations_controller.rb
139
119
  - lib/authentasaurus/sessions_controller.rb
140
120
  - lib/authentasaurus/user_invitations_controller.rb
141
121
  - lib/authentasaurus/users_controller.rb
142
122
  - lib/authentasaurus/validations_controller.rb
123
+ - lib/generators/authentasaurus/install/USAGE
124
+ - lib/generators/authentasaurus/install/install_generator.rb
125
+ - lib/generators/authentasaurus/install/templates/authentasaurus_tasks.rake
126
+ - lib/generators/authentasaurus/install/templates/defaults.yml
127
+ - lib/generators/authentasaurus/install/templates/initializer.rb
128
+ - lib/generators/authentasaurus/views/USAGE
129
+ - lib/generators/authentasaurus/views/templates/areas/edit.html.erb
130
+ - lib/generators/authentasaurus/views/templates/areas/index.html.erb
131
+ - lib/generators/authentasaurus/views/templates/areas/new.html.erb
132
+ - lib/generators/authentasaurus/views/templates/areas/show.html.erb
133
+ - lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb
134
+ - lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb
135
+ - lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb
136
+ - lib/generators/authentasaurus/views/templates/groups/edit.html.erb
137
+ - lib/generators/authentasaurus/views/templates/groups/index.html.erb
138
+ - lib/generators/authentasaurus/views/templates/groups/new.html.erb
139
+ - lib/generators/authentasaurus/views/templates/groups/show.html.erb
140
+ - lib/generators/authentasaurus/views/templates/permissions/edit.html.erb
141
+ - lib/generators/authentasaurus/views/templates/permissions/index.html.erb
142
+ - lib/generators/authentasaurus/views/templates/permissions/new.html.erb
143
+ - lib/generators/authentasaurus/views/templates/permissions/show.html.erb
144
+ - lib/generators/authentasaurus/views/templates/recoveries/edit.html.erb
145
+ - lib/generators/authentasaurus/views/templates/recoveries/new.html.erb
146
+ - lib/generators/authentasaurus/views/templates/registrations/new.html.erb
147
+ - lib/generators/authentasaurus/views/templates/sessions/new.html.erb
148
+ - lib/generators/authentasaurus/views/templates/sessions/no_access.html.erb
149
+ - lib/generators/authentasaurus/views/templates/user_invitations/index.html.erb
150
+ - lib/generators/authentasaurus/views/templates/user_invitations/new.html.erb
151
+ - lib/generators/authentasaurus/views/templates/users/edit.html.erb
152
+ - lib/generators/authentasaurus/views/templates/users/index.html.erb
153
+ - lib/generators/authentasaurus/views/templates/users/new.html.erb
154
+ - lib/generators/authentasaurus/views/templates/users/show.html.erb
155
+ - lib/generators/authentasaurus/views/templates/validations/resend_validation_email.html.erb
156
+ - lib/generators/authentasaurus/views/templates/validations/validate.html.erb
157
+ - lib/generators/authentasaurus/views/views_generator.rb
143
158
  - lib/helpers/migrations.rb
144
159
  - lib/helpers/routing.rb
145
- - lib/authentasaurus.rb
146
- - rails/init.rb
160
+ - CHANGELIST
147
161
  - MIT-LICENSE
148
162
  - README.rdoc
149
163
  - TODO
150
- - CHANGELIST
151
164
  has_rdoc: true
152
- homepage: http://github.com/cousine/Authentasuarus-2
165
+ homepage: http://github.com/cousine/Authentasaurus-2
153
166
  licenses: []
154
167
 
155
168
  post_install_message:
156
- rdoc_options: []
157
-
169
+ rdoc_options:
170
+ - --charset=UTF-8
158
171
  require_paths:
159
172
  - lib
160
173
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -171,12 +184,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
184
  requirements:
172
185
  - - ">="
173
186
  - !ruby/object:Gem::Version
174
- hash: 27
187
+ hash: 3
175
188
  segments:
176
- - 1
177
- - 3
178
189
  - 0
179
- version: 1.3.0
190
+ version: "0"
180
191
  requirements: []
181
192
 
182
193
  rubyforge_project: