echocas-client 2.1.1 → 2.1.2
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/Rakefile +6 -6
- data/examples/merb/README.textile +12 -0
- data/examples/merb/Rakefile +35 -0
- data/examples/merb/merb.thor +2020 -0
- data/examples/merb/merb_auth_cas.rb +67 -0
- data/examples/merb/spec/spec_helper.rb +24 -0
- data/lib/casclient/frameworks/merb/filter.rb +105 -0
- data/lib/casclient/frameworks/rails/filter.rb +76 -71
- data/lib/casclient/version.rb +1 -1
- metadata +53 -16
data/Rakefile
CHANGED
@@ -11,16 +11,16 @@ require 'hoe'
|
|
11
11
|
include FileUtils
|
12
12
|
require File.join(File.dirname(__FILE__), 'lib', 'casclient', 'version')
|
13
13
|
|
14
|
-
AUTHOR = ["Matt Zukowski", "Matt Walker"] # can also be an array of Authors
|
14
|
+
AUTHOR = ["Matt Zukowski", "Matt Walker", "Niklas E. Cathor"] # can also be an array of Authors
|
15
15
|
EMAIL = "matt at roughest dot net"
|
16
|
-
DESCRIPTION = "Client library for the Central Authentication Service (CAS) protocol."
|
17
|
-
GEM_NAME = "
|
16
|
+
DESCRIPTION = "Client library for the Central Authentication Service (CAS) protocol. (this version specially prepared for echologic)"
|
17
|
+
GEM_NAME = "echocas-client" # what ppl will type to install your gem
|
18
18
|
RUBYFORGE_PROJECT = "rubycas-client" # The unix name for your project
|
19
19
|
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
20
20
|
|
21
21
|
ENV['NODOT'] = '1'
|
22
22
|
|
23
|
-
NAME = "
|
23
|
+
NAME = "echocas-client"
|
24
24
|
REV = nil
|
25
25
|
#REV = `svn info`[/Revision: (\d+)/, 1] rescue nil
|
26
26
|
VERS = ENV['VERSION'] || (CASClient::VERSION::STRING + (REV ? ".#{REV}" : ""))
|
@@ -58,6 +58,6 @@ end
|
|
58
58
|
|
59
59
|
desc 'Build and install rubycas-client'
|
60
60
|
task :install do
|
61
|
-
system "gem build
|
62
|
-
system "sudo gem install
|
61
|
+
system "gem build echocas-client.gemspec"
|
62
|
+
system "sudo gem install echocas-client-#{VERS}.gem"
|
63
63
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
h1. Very flat merb app with casclient support
|
2
|
+
|
3
|
+
Run rubycas-server or other CAS server on localhost:7777
|
4
|
+
|
5
|
+
Then type this:
|
6
|
+
<pre><code>
|
7
|
+
merb -I merb_auth_cas.rb
|
8
|
+
</code></pre>
|
9
|
+
|
10
|
+
Then point your web browser to http://localhost:4000.
|
11
|
+
You should be redirected to the CAS login screen, then
|
12
|
+
to your Merb application showing your username.
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake/rdoctask'
|
3
|
+
|
4
|
+
require 'merb-core'
|
5
|
+
require 'merb-core/tasks/merb'
|
6
|
+
|
7
|
+
include FileUtils
|
8
|
+
|
9
|
+
# Load the basic runtime dependencies; this will include
|
10
|
+
# any plugins and therefore plugin rake tasks.
|
11
|
+
init_env = ENV['MERB_ENV'] || 'rake'
|
12
|
+
Merb.load_dependencies(:environment => init_env)
|
13
|
+
|
14
|
+
# Get Merb plugins and dependencies
|
15
|
+
Merb::Plugins.rakefiles.each { |r| require r }
|
16
|
+
|
17
|
+
# Load any app level custom rakefile extensions from lib/tasks
|
18
|
+
tasks_path = File.join(File.dirname(__FILE__), "lib", "tasks")
|
19
|
+
rake_files = Dir["#{tasks_path}/*.rake"]
|
20
|
+
rake_files.each{|rake_file| load rake_file }
|
21
|
+
|
22
|
+
desc "Start runner environment"
|
23
|
+
task :merb_env do
|
24
|
+
Merb.start_environment(:environment => init_env, :adapter => 'runner')
|
25
|
+
end
|
26
|
+
|
27
|
+
require 'spec/rake/spectask'
|
28
|
+
require 'merb-core/test/tasks/spectasks'
|
29
|
+
desc 'Default: run spec examples'
|
30
|
+
task :default => 'spec'
|
31
|
+
|
32
|
+
##############################################################################
|
33
|
+
# ADD YOUR CUSTOM TASKS IN /lib/tasks
|
34
|
+
# NAME YOUR RAKE FILES file_name.rake
|
35
|
+
##############################################################################
|