innetra-easy_authentication 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +3 -3
- data/Rakefile +4 -2
- data/easy_authentication.gemspec +3 -3
- data/generators/easy_authentication/easy_authentication_generator.rb +12 -0
- data/{tasks → generators/easy_authentication/templates/tasks}/rights.rake +0 -0
- data/{tasks → generators/easy_authentication/templates/tasks}/sysadmin.rake +0 -0
- data/init.rb +3 -0
- data/lib/controller_methods.rb +0 -2
- data/lib/easy_authentication.rb +9 -0
- data/lib/helper_methods.rb +0 -2
- metadata +6 -6
data/Manifest
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
easy_authentication.gemspec
|
2
1
|
Manifest
|
3
|
-
tasks/sysadmin.rake
|
4
|
-
tasks/rights.rake
|
5
2
|
generators/easy_authentication/templates/stylesheets/users.css
|
6
3
|
generators/easy_authentication/templates/stylesheets/login.css
|
7
4
|
generators/easy_authentication/templates/stylesheets/roles.css
|
@@ -9,6 +6,8 @@ generators/easy_authentication/templates/stylesheets/default.css
|
|
9
6
|
generators/easy_authentication/templates/helpers/shadowbox_helper.rb
|
10
7
|
generators/easy_authentication/templates/helpers/form_helper.rb
|
11
8
|
generators/easy_authentication/templates/migrations/easy_authentication.rb
|
9
|
+
generators/easy_authentication/templates/tasks/sysadmin.rake
|
10
|
+
generators/easy_authentication/templates/tasks/rights.rake
|
12
11
|
generators/easy_authentication/templates/views/user_roles/edit.html.erb
|
13
12
|
generators/easy_authentication/templates/views/user_password/edit.html.erb
|
14
13
|
generators/easy_authentication/templates/views/user_password/reset_password.html.erb
|
@@ -45,6 +44,7 @@ test/easy_authentication_test.rb
|
|
45
44
|
Rakefile
|
46
45
|
init.rb
|
47
46
|
lib/user_methods.rb
|
47
|
+
lib/easy_authentication.rb
|
48
48
|
lib/password_authentication.rb
|
49
49
|
lib/helper_methods.rb
|
50
50
|
lib/controller_methods.rb
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('easy_authentication', '
|
5
|
+
Echoe.new('easy_authentication', '2.0.0') do |e|
|
6
6
|
e.description = "Easy Role Authentication for Ruby on Rails 2.2 (i18n)"
|
7
7
|
e.url = "http://github.com/innetra/easy_authentication"
|
8
8
|
e.author = "Ivan Torres"
|
@@ -11,4 +11,6 @@ Echoe.new('easy_authentication', '1.0.0') do |e|
|
|
11
11
|
e.development_dependencies = []
|
12
12
|
end
|
13
13
|
|
14
|
-
|
14
|
+
# When loading a plugin via rubygems, rake tasks aren't included:
|
15
|
+
# http://rails.lighthouseapp.com/projects/8994/tickets/59-when-loading-a-plugin-via-rubygems-rake-tasks-aren-t-included
|
16
|
+
# Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].each { |f| load f }
|
data/easy_authentication.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{easy_authentication}
|
5
|
-
s.version = "
|
5
|
+
s.version = "2.0.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ivan Torres"]
|
9
9
|
s.date = %q{2009-01-23}
|
10
10
|
s.description = %q{Easy Role Authentication for Ruby on Rails 2.2 (i18n)}
|
11
11
|
s.email = %q{mexpolk@gmail.com}
|
12
|
-
s.extra_rdoc_files = ["
|
13
|
-
s.files = ["
|
12
|
+
s.extra_rdoc_files = ["lib/user_methods.rb", "lib/easy_authentication.rb", "lib/password_authentication.rb", "lib/helper_methods.rb", "lib/controller_methods.rb", "lib/cookie_authentication.rb"]
|
13
|
+
s.files = ["Manifest", "generators/easy_authentication/templates/stylesheets/users.css", "generators/easy_authentication/templates/stylesheets/login.css", "generators/easy_authentication/templates/stylesheets/roles.css", "generators/easy_authentication/templates/stylesheets/default.css", "generators/easy_authentication/templates/helpers/shadowbox_helper.rb", "generators/easy_authentication/templates/helpers/form_helper.rb", "generators/easy_authentication/templates/migrations/easy_authentication.rb", "generators/easy_authentication/templates/tasks/sysadmin.rake", "generators/easy_authentication/templates/tasks/rights.rake", "generators/easy_authentication/templates/views/user_roles/edit.html.erb", "generators/easy_authentication/templates/views/user_password/edit.html.erb", "generators/easy_authentication/templates/views/user_password/reset_password.html.erb", "generators/easy_authentication/templates/views/user_password/forgot_password.html.erb", "generators/easy_authentication/templates/views/sessions/new.html.erb", "generators/easy_authentication/templates/views/users/index.html.erb", "generators/easy_authentication/templates/views/users/show.html.erb", "generators/easy_authentication/templates/views/users/_user.html.erb", "generators/easy_authentication/templates/views/users/edit.html.erb", "generators/easy_authentication/templates/views/users/new.html.erb", "generators/easy_authentication/templates/views/users/_form.html.erb", "generators/easy_authentication/templates/views/roles/index.html.erb", "generators/easy_authentication/templates/views/roles/show.html.erb", "generators/easy_authentication/templates/views/roles/edit.html.erb", "generators/easy_authentication/templates/views/roles/new.html.erb", "generators/easy_authentication/templates/views/roles/_form.html.erb", "generators/easy_authentication/templates/site_keys.rb", "generators/easy_authentication/templates/models/user_mailer.rb", "generators/easy_authentication/templates/models/right.rb", "generators/easy_authentication/templates/models/user.rb", "generators/easy_authentication/templates/models/role.rb", "generators/easy_authentication/templates/controllers/user_roles_controller.rb", "generators/easy_authentication/templates/controllers/sessions_controller.rb", "generators/easy_authentication/templates/controllers/roles_controller.rb", "generators/easy_authentication/templates/controllers/user_password_controller.rb", "generators/easy_authentication/templates/controllers/users_controller.rb", "generators/easy_authentication/templates/locales/en.easy_authentication.yml", "generators/easy_authentication/templates/locales/es-MX.easy_authentication.yml", "generators/easy_authentication/templates/layouts/easy_authentication_login.erb", "generators/easy_authentication/templates/layouts/easy_authentication.erb", "generators/easy_authentication/easy_authentication_generator.rb", "test/test_helper.rb", "test/easy_authentication_test.rb", "Rakefile", "init.rb", "lib/user_methods.rb", "lib/easy_authentication.rb", "lib/password_authentication.rb", "lib/helper_methods.rb", "lib/controller_methods.rb", "lib/cookie_authentication.rb", "easy_authentication.gemspec"]
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.homepage = %q{http://github.com/innetra/easy_authentication}
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Easy_authentication"]
|
@@ -59,12 +59,20 @@ class EasyAuthenticationGenerator < Rails::Generator::Base
|
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
62
|
+
|
62
63
|
# Locales
|
63
64
|
m.template "locales/en.easy_authentication.yml",
|
64
65
|
"config/locales/en.easy_authentication.yml"
|
65
66
|
m.template "locales/es-MX.easy_authentication.yml",
|
66
67
|
"config/locales/es-MX.easy_authentication.yml"
|
67
68
|
|
69
|
+
# Rake Tasks
|
70
|
+
m.directory("lib/tasks")
|
71
|
+
tasks.each do |task_name|
|
72
|
+
m.template "tasks/#{task_name}.rake",
|
73
|
+
File.join("lib/tasks", "#{task_name}.rake")
|
74
|
+
end
|
75
|
+
|
68
76
|
# Necessary Routes
|
69
77
|
unless options[:skip_routes]
|
70
78
|
generate_routes
|
@@ -116,6 +124,10 @@ class EasyAuthenticationGenerator < Rails::Generator::Base
|
|
116
124
|
"Usage: #{$0} easy_authentication"
|
117
125
|
end
|
118
126
|
|
127
|
+
def tasks
|
128
|
+
%w[ rights sysadmin ]
|
129
|
+
end
|
130
|
+
|
119
131
|
def add_options!(opt)
|
120
132
|
opt.separator ""
|
121
133
|
opt.separator "Options:"
|
File without changes
|
File without changes
|
data/init.rb
CHANGED
@@ -3,3 +3,6 @@ require File.dirname(__FILE__) + '/lib/password_authentication'
|
|
3
3
|
require File.dirname(__FILE__) + '/lib/user_methods'
|
4
4
|
require File.dirname(__FILE__) + '/lib/helper_methods'
|
5
5
|
require File.dirname(__FILE__) + '/lib/controller_methods'
|
6
|
+
|
7
|
+
ActionController::Base.send :include, EasyAuthentication::ControllerMethods
|
8
|
+
ActionController::Base.send :include, EasyAuthentication::HelperMethods
|
data/lib/controller_methods.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'cookie_authentication'
|
3
|
+
require 'password_authentication'
|
4
|
+
require 'user_methods'
|
5
|
+
require 'helper_methods'
|
6
|
+
require 'controller_methods'
|
7
|
+
|
8
|
+
ActionController::Base.send :include, EasyAuthentication::ControllerMethods
|
9
|
+
ActionController::Base.send :include, EasyAuthentication::HelperMethods
|
data/lib/helper_methods.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: innetra-easy_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Torres
|
@@ -20,18 +20,14 @@ executables: []
|
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
23
|
-
- tasks/sysadmin.rake
|
24
|
-
- tasks/rights.rake
|
25
23
|
- lib/user_methods.rb
|
24
|
+
- lib/easy_authentication.rb
|
26
25
|
- lib/password_authentication.rb
|
27
26
|
- lib/helper_methods.rb
|
28
27
|
- lib/controller_methods.rb
|
29
28
|
- lib/cookie_authentication.rb
|
30
29
|
files:
|
31
|
-
- easy_authentication.gemspec
|
32
30
|
- Manifest
|
33
|
-
- tasks/sysadmin.rake
|
34
|
-
- tasks/rights.rake
|
35
31
|
- generators/easy_authentication/templates/stylesheets/users.css
|
36
32
|
- generators/easy_authentication/templates/stylesheets/login.css
|
37
33
|
- generators/easy_authentication/templates/stylesheets/roles.css
|
@@ -39,6 +35,8 @@ files:
|
|
39
35
|
- generators/easy_authentication/templates/helpers/shadowbox_helper.rb
|
40
36
|
- generators/easy_authentication/templates/helpers/form_helper.rb
|
41
37
|
- generators/easy_authentication/templates/migrations/easy_authentication.rb
|
38
|
+
- generators/easy_authentication/templates/tasks/sysadmin.rake
|
39
|
+
- generators/easy_authentication/templates/tasks/rights.rake
|
42
40
|
- generators/easy_authentication/templates/views/user_roles/edit.html.erb
|
43
41
|
- generators/easy_authentication/templates/views/user_password/edit.html.erb
|
44
42
|
- generators/easy_authentication/templates/views/user_password/reset_password.html.erb
|
@@ -75,10 +73,12 @@ files:
|
|
75
73
|
- Rakefile
|
76
74
|
- init.rb
|
77
75
|
- lib/user_methods.rb
|
76
|
+
- lib/easy_authentication.rb
|
78
77
|
- lib/password_authentication.rb
|
79
78
|
- lib/helper_methods.rb
|
80
79
|
- lib/controller_methods.rb
|
81
80
|
- lib/cookie_authentication.rb
|
81
|
+
- easy_authentication.gemspec
|
82
82
|
has_rdoc: true
|
83
83
|
homepage: http://github.com/innetra/easy_authentication
|
84
84
|
post_install_message:
|