picnic 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +5 -0
- data/Rakefile +2 -2
- data/lib/picnic/authentication.rb +11 -6
- metadata +2 -2
data/CHANGELOG.txt
CHANGED
data/Rakefile
CHANGED
@@ -20,8 +20,8 @@ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
|
20
20
|
|
21
21
|
|
22
22
|
NAME = "picnic"
|
23
|
-
REV = nil
|
24
|
-
|
23
|
+
#REV = nil
|
24
|
+
REV = `svn info`[/Revision: (\d+)/, 1] rescue nil
|
25
25
|
VERS = ENV['VERSION'] || (Picnic::VERSION::STRING + (REV ? ".#{REV}" : ""))
|
26
26
|
CLEAN.include ['**/.*.sw?', '*.gem', '.config']
|
27
27
|
RDOC_OPTS = ['--quiet', '--title', "picnic #{VERS} documentation",
|
@@ -58,7 +58,7 @@ module Picnic #:nodoc:
|
|
58
58
|
|
59
59
|
def service(*a)
|
60
60
|
app = Kernel.const_get self.class.name.gsub(/^(\w+)::.+$/, '\1')
|
61
|
-
unless app.
|
61
|
+
unless app.respond_to? :authenticate
|
62
62
|
raise "Basic authentication is enabled but the 'authenticate' method has not been defined."
|
63
63
|
end
|
64
64
|
|
@@ -110,14 +110,19 @@ module Picnic #:nodoc:
|
|
110
110
|
# contents.
|
111
111
|
#
|
112
112
|
module Cas
|
113
|
-
|
113
|
+
# For some reason the Module#included callback is just not working for me, so I had
|
114
|
+
# to resort to overriding append_features(). If anyone has any ideas why, please
|
115
|
+
# let me know!
|
116
|
+
def self.append_features(mod)
|
117
|
+
super
|
118
|
+
|
114
119
|
require 'camping/db'
|
115
120
|
require 'camping/session'
|
121
|
+
|
122
|
+
$: << File.dirname(File.expand_path(__FILE__))+"/../../../rubycas-client2/lib" # for development
|
123
|
+
require 'rubycas-client'
|
116
124
|
end
|
117
|
-
|
118
|
-
$: << File.dirname(File.expand_path(__FILE__))+"/../../../rubycas-client2/lib" # for development
|
119
|
-
require 'rubycas-client'
|
120
|
-
|
125
|
+
|
121
126
|
# app = Kernel.const_get self.name.gsub(/^(\w+)::.+$/, '\1')
|
122
127
|
# raise "Cannot enable CAS authentication because your Camping app does not extend Camping::Session." unless
|
123
128
|
# app.ancestors.include?(Camping::Session)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picnic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zukowski
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-03-06 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|