casful_authentication_generator 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -57,6 +57,11 @@ By default, the access_denied method will be called if the user supplied by CAS
57
57
 
58
58
  == History
59
59
 
60
+
61
+ === 0.2.1 = June 17th, 2010
62
+ * Fixed a nasty bug preventing the current_user variable from being returned correctly
63
+ * Fixed a method name bug in the generator.
64
+
60
65
  === 0.1.0 = May 26th, 2009
61
66
  Initial release
62
67
 
data/Rakefile CHANGED
@@ -57,3 +57,29 @@ Rake::RDocTask.new do |rdoc|
57
57
  rdoc.rdoc_files.include('lib/**/*.rb')
58
58
  end
59
59
 
60
+ # These are new tasks
61
+ begin
62
+ require 'rake/contrib/sshpublisher'
63
+ namespace :rubyforge do
64
+
65
+ desc "Release gem and RDoc documentation to RubyForge"
66
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
67
+
68
+ namespace :release do
69
+ desc "Publish RDoc to RubyForge."
70
+ task :docs => [:rdoc] do
71
+ config = YAML.load(
72
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
73
+ )
74
+
75
+ host = "#{config['username']}@rubyforge.org"
76
+ remote_dir = "/var/www/gforge-projects/casfulauth/"
77
+ local_dir = 'rdoc'
78
+
79
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
80
+ end
81
+ end
82
+ end
83
+ rescue LoadError
84
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
85
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.1
@@ -29,8 +29,12 @@ module CasAuthentication
29
29
  return unless session[:cas_user]
30
30
  end
31
31
  # look them up in our system - based on restful_auth's login_from_session
32
- self.current_user = locate_<%=singular_name %>
33
- access_denied if self.current_<%=singular_name %>.nil?
32
+ self.current_<%=singular_name %> = locate_<%=singular_name %>
33
+ if self.current_<%=singular_name %>.nil?
34
+ access_denied
35
+ else
36
+ self.current_<%=singular_name %>
37
+ end
34
38
  end
35
39
 
36
40
  # override this in your own controller
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casful_authentication_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 1
9
+ version: 0.2.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Brian Hogan
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-05-26 00:00:00 -05:00
17
+ date: 2010-06-17 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -32,6 +37,8 @@ files:
32
37
  - templates/cas_authentication.rb
33
38
  has_rdoc: true
34
39
  homepage: http://github.com/napcs/casful_authentication_generator
40
+ licenses: []
41
+
35
42
  post_install_message:
36
43
  rdoc_options:
37
44
  - --charset=UTF-8
@@ -41,21 +48,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
48
  requirements:
42
49
  - - ">="
43
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
44
53
  version: "0"
45
- version:
46
54
  required_rubygems_version: !ruby/object:Gem::Requirement
47
55
  requirements:
48
56
  - - ">="
49
57
  - !ruby/object:Gem::Version
58
+ segments:
59
+ - 0
50
60
  version: "0"
51
- version:
52
61
  requirements: []
53
62
 
54
63
  rubyforge_project: casfulauth
55
- rubygems_version: 1.3.1
64
+ rubygems_version: 1.3.6
56
65
  signing_key:
57
66
  specification_version: 2
58
- summary: TODO
67
+ summary: Generator to quickly put CAS authentication on your Rails application. Provides a currnet_user method to controllers and views to make it work like Restful Authentication and other plugins.
59
68
  test_files:
60
69
  - test/casful_authentication_generator_test.rb
61
70
  - test/test_helper.rb