strelka 0.0.1.pre.234 → 0.0.1.pre.239
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/bin/strelka +1 -1
- data/lib/strelka/app.rb +1 -4
- data/lib/strelka/authprovider.rb +4 -16
- data/lib/strelka.rb +3 -2
- data.tar.gz.sig +2 -2
- metadata +18 -2
- metadata.gz.sig +0 -0
data/Rakefile
CHANGED
@@ -32,6 +32,7 @@ hoespec = Hoe.spec 'strelka' do
|
|
32
32
|
self.dependency 'configurability', '~> 1.0'
|
33
33
|
self.dependency 'pluginfactory', '~> 1.0'
|
34
34
|
self.dependency 'loggability', '~> 0.2'
|
35
|
+
self.dependency 'foreman', '~> 0.46'
|
35
36
|
|
36
37
|
self.dependency 'hoe-deveiate', '~> 0.1', :developer
|
37
38
|
self.dependency 'hoe-manualgen', '~> 0.3', :developer
|
data/bin/strelka
CHANGED
@@ -298,8 +298,8 @@ class Strelka::CLICommand
|
|
298
298
|
]
|
299
299
|
fork do
|
300
300
|
self.log.debug " in the child."
|
301
|
-
Strelka.load_config( self.options.config ) if self.options.config
|
302
301
|
apps = Strelka::App.load( path )
|
302
|
+
Strelka.load_config( self.options.config ) if self.options.config
|
303
303
|
self.log.debug " loaded: %p" % [ apps ]
|
304
304
|
apps.first.run
|
305
305
|
end
|
data/lib/strelka/app.rb
CHANGED
@@ -13,6 +13,7 @@ require 'strelka/plugins'
|
|
13
13
|
|
14
14
|
|
15
15
|
# The Strelka HTTP application base class.
|
16
|
+
#
|
16
17
|
class Strelka::App < Mongrel2::Handler
|
17
18
|
extend Loggability,
|
18
19
|
Configurability,
|
@@ -66,10 +67,6 @@ class Strelka::App < Mongrel2::Handler
|
|
66
67
|
### already.
|
67
68
|
def self::run( appid=nil )
|
68
69
|
appid ||= self.default_appid
|
69
|
-
|
70
|
-
Loggability.level = :debug if self.devmode?
|
71
|
-
Loggability.format_with( :color ) if $stderr.tty?
|
72
|
-
|
73
70
|
self.log.info "Starting up with appid %p." % [ appid ]
|
74
71
|
super( appid )
|
75
72
|
end
|
data/lib/strelka/authprovider.rb
CHANGED
@@ -11,7 +11,7 @@ require 'strelka/mixins'
|
|
11
11
|
# This is the abstract base class for authentication and/or authorization providers
|
12
12
|
# for the {:auth plugin}[Strelka::App::Auth].
|
13
13
|
#
|
14
|
-
# To define your own
|
14
|
+
# To define your own authentication provider, you'll need to inherit this class (either
|
15
15
|
# directly or via a subclass), name it <tt>Strelka::AuthProvider::{Something}</tt>,
|
16
16
|
# save it in a file named <tt>strelka/authprovider/{something}.rb</tt>, and
|
17
17
|
# override the required methods.
|
@@ -22,22 +22,10 @@ require 'strelka/mixins'
|
|
22
22
|
# == Authentication Providers
|
23
23
|
#
|
24
24
|
# Authentication providers should override either one or both of the following methods,
|
25
|
-
# depending on whether they will provide
|
26
|
-
#
|
27
|
-
# * #[]
|
28
|
-
# * #[]=
|
29
|
-
# * #save
|
30
|
-
# * #delete
|
31
|
-
# * #key?
|
32
|
-
# * #namespace=
|
33
|
-
# * #namespace
|
34
|
-
#
|
35
|
-
# These methods provide basic functionality, but you might find it more efficient
|
36
|
-
# to override them:
|
37
|
-
#
|
38
|
-
# * self.load_or_create
|
39
|
-
# * self.load
|
25
|
+
# depending on whether they will provide authentication, authorization, or both:
|
40
26
|
#
|
27
|
+
# * #authenticate
|
28
|
+
# * #authorize
|
41
29
|
#
|
42
30
|
class Strelka::AuthProvider
|
43
31
|
extend Loggability,
|
data/lib/strelka.rb
CHANGED
@@ -27,7 +27,7 @@ module Strelka
|
|
27
27
|
VERSION = '0.0.1'
|
28
28
|
|
29
29
|
# Version-control revision constant
|
30
|
-
REVISION = %q$Revision:
|
30
|
+
REVISION = %q$Revision: 5288bf325ace $
|
31
31
|
|
32
32
|
require 'strelka/constants'
|
33
33
|
include Strelka::Constants
|
@@ -72,7 +72,8 @@ module Strelka
|
|
72
72
|
### and install it.
|
73
73
|
def self::load_config( configfile, defaults=nil )
|
74
74
|
defaults ||= Configurability.gather_defaults
|
75
|
-
self.log.info "Loading universal config from %p." %
|
75
|
+
self.log.info "Loading universal config from %p with defaults for sections: %p." %
|
76
|
+
[ configfile, defaults.keys ]
|
76
77
|
self.config = Configurability::Config.load( configfile, defaults )
|
77
78
|
self.config.install
|
78
79
|
end
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
C
|
1
|
+
5,!a]M�}��x~@Y�x�cR1BXz��*� |��ۼ�uB;Y(J�8rꁣ��k������qZʡ�7�a�3�0�����t���xj��r �^��|B��Y6��+�G��E8�+�)��Ff�',��ݻ�[�'x��_u��U��\Dzɫ1��_.����9�F����5�m�<�,x}���*��S�m!�)�LC)�Α.�!-zC��&y���I�+��c��R��$u�WD
|
2
|
+
�&��hŅd�����C+_ɡ
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strelka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.
|
4
|
+
version: 0.0.1.pre.239
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
37
37
|
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
38
38
|
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2012-05-
|
39
|
+
date: 2012-05-17 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: trollop
|
@@ -198,6 +198,22 @@ dependencies:
|
|
198
198
|
- - ~>
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0.2'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: foreman
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
none: false
|
205
|
+
requirements:
|
206
|
+
- - ~>
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0.46'
|
209
|
+
type: :runtime
|
210
|
+
prerelease: false
|
211
|
+
version_requirements: !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
213
|
+
requirements:
|
214
|
+
- - ~>
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0.46'
|
201
217
|
- !ruby/object:Gem::Dependency
|
202
218
|
name: hoe-mercurial
|
203
219
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|