strelka 0.0.1.pre.252 → 0.0.1.pre.253
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/strelka/app/auth.rb +1 -1
- data/lib/strelka/app/sessions.rb +6 -6
- data/lib/strelka/app.rb +9 -9
- data/lib/strelka.rb +1 -11
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
data/lib/strelka/app/auth.rb
CHANGED
@@ -262,7 +262,7 @@ module Strelka::App::Auth
|
|
262
262
|
[ config.provider, self.extended_apps ]
|
263
263
|
self.extended_apps.each {|app| app.auth_provider = config.provider }
|
264
264
|
else
|
265
|
-
self.log.
|
265
|
+
self.log.warn "Setting up the default AuthProvider for apps %p" % [ self.extended_apps ]
|
266
266
|
self.extended_apps.each {|app| app.auth_provider = DEFAULT_AUTH_PROVIDER }
|
267
267
|
end
|
268
268
|
end
|
data/lib/strelka/app/sessions.rb
CHANGED
@@ -137,6 +137,12 @@ module Strelka::App::Sessions
|
|
137
137
|
singleton_attr_reader :session_class
|
138
138
|
|
139
139
|
|
140
|
+
### Get the configured session class (Strelka::Session subclass)
|
141
|
+
def self::session_class=( newclass )
|
142
|
+
@session_class = Strelka::Session.get_subclass( newclass )
|
143
|
+
end
|
144
|
+
|
145
|
+
|
140
146
|
### Configurability API -- set up session type and options with values from
|
141
147
|
### the +config+.
|
142
148
|
def self::configure( config=nil )
|
@@ -150,12 +156,6 @@ module Strelka::App::Sessions
|
|
150
156
|
end
|
151
157
|
|
152
158
|
|
153
|
-
### Get the configured session class (Strelka::Session subclass)
|
154
|
-
def self::session_class=( newclass )
|
155
|
-
@session_class = Strelka::Session.get_subclass( newclass )
|
156
|
-
end
|
157
|
-
|
158
|
-
|
159
159
|
### Extension callback -- extend the HTTPRequest classes with Session
|
160
160
|
### support when this plugin is loaded.
|
161
161
|
def self::included( object )
|
data/lib/strelka/app.rb
CHANGED
@@ -73,6 +73,15 @@ class Strelka::App < Mongrel2::Handler
|
|
73
73
|
singleton_attr_accessor :local_data_dirs
|
74
74
|
|
75
75
|
|
76
|
+
### Returns +true+ if the application has been configured to run in 'developer mode'.
|
77
|
+
### Developer mode is mostly informational by default (it just makes logging more
|
78
|
+
### verbose), but plugins and such might alter their behavior based on this setting.
|
79
|
+
def self::devmode?
|
80
|
+
return @devmode
|
81
|
+
end
|
82
|
+
singleton_method_alias :in_devmode?, :devmode?
|
83
|
+
|
84
|
+
|
76
85
|
### Configure the App. Override this if you wish to add additional configuration
|
77
86
|
### to the 'app' section of the config that will be passed to you when the config
|
78
87
|
### is loaded.
|
@@ -91,15 +100,6 @@ class Strelka::App < Mongrel2::Handler
|
|
91
100
|
end
|
92
101
|
|
93
102
|
|
94
|
-
### Returns +true+ if the application has been configured to run in 'developer mode'.
|
95
|
-
### Developer mode is mostly informational by default (it just makes logging more
|
96
|
-
### verbose), but plugins and such might alter their behavior based on this setting.
|
97
|
-
def self::devmode?
|
98
|
-
return @devmode
|
99
|
-
end
|
100
|
-
singleton_method_alias :in_devmode?, :devmode?
|
101
|
-
|
102
|
-
|
103
103
|
### Inheritance callback -- add subclasses to @subclasses so .load can figure out which
|
104
104
|
### classes correspond to which files.
|
105
105
|
def self::inherited( subclass )
|
data/lib/strelka.rb
CHANGED
@@ -27,22 +27,12 @@ module Strelka
|
|
27
27
|
VERSION = '0.0.1'
|
28
28
|
|
29
29
|
# Version-control revision constant
|
30
|
-
REVISION = %q$Revision:
|
30
|
+
REVISION = %q$Revision: 3c639d92e751 $
|
31
31
|
|
32
32
|
require 'strelka/constants'
|
33
33
|
require 'strelka/exceptions'
|
34
34
|
include Strelka::Constants
|
35
35
|
|
36
|
-
autoload :AuthProvider, 'strelka/authprovider'
|
37
|
-
autoload :Cookie, 'strelka/cookie'
|
38
|
-
autoload :CookieSet, 'strelka/cookieset'
|
39
|
-
autoload :ParamValidator, 'strelka/httpresponse'
|
40
|
-
autoload :Plugin, 'strelka/plugins'
|
41
|
-
autoload :PluginLoader, 'strelka/plugins'
|
42
|
-
autoload :PluginRegistry, 'strelka/plugins'
|
43
|
-
autoload :Router, 'strelka/router'
|
44
|
-
autoload :Session, 'strelka/session'
|
45
|
-
|
46
36
|
require 'strelka/app'
|
47
37
|
require 'strelka/httprequest'
|
48
38
|
require 'strelka/httpresponse'
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|