strelka 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +24 -0
- data/IDEAS.rdoc +0 -1
- data/README.rdoc +12 -6
- data/Rakefile +4 -94
- data/lib/strelka.rb +1 -1
- data/lib/strelka/app.rb +2 -3
- data/lib/strelka/app/parameters.rb +3 -12
- data/lib/strelka/app/restresources.rb +0 -3
- data/lib/strelka/cookie.rb +1 -1
- data/lib/strelka/mixins.rb +1 -1
- data/lib/strelka/multirunner.rb +34 -11
- data/lib/strelka/paramvalidator.rb +22 -45
- data/lib/strelka/session/default.rb +1 -1
- data/spec/strelka/app/parameters_spec.rb +1 -27
- data/spec/strelka/app_spec.rb +0 -12
- data/spec/strelka/mixins_spec.rb +0 -10
- data/spec/strelka/paramvalidator_spec.rb +4 -54
- metadata +51 -143
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
- data/ChangeLog +0 -3824
- data/MILESTONES.rdoc +0 -24
- data/Manifest.txt +0 -144
- data/contrib/hoetemplate/History.rdoc.erb +0 -4
- data/contrib/hoetemplate/Manifest.txt.erb +0 -8
- data/contrib/hoetemplate/README.rdoc.erb +0 -35
- data/contrib/hoetemplate/Rakefile.erb +0 -24
- data/contrib/hoetemplate/data/project/apps/file_name_app +0 -37
- data/contrib/hoetemplate/data/project/templates/layout.tmpl.erb +0 -13
- data/contrib/hoetemplate/data/project/templates/top.tmpl.erb +0 -8
- data/contrib/hoetemplate/lib/file_name.rb.erb +0 -15
- data/contrib/hoetemplate/spec/file_name_spec.rb.erb +0 -21
- data/contrib/strelka-dogs/doggie6.svg +0 -271
- data/contrib/strelka-dogs/doggie7.svg +0 -49
- data/examples/Procfile +0 -9
- data/examples/apps/auth-demo +0 -29
- data/examples/apps/auth-demo2 +0 -37
- data/examples/apps/hello-world +0 -30
- data/examples/apps/sessions-demo +0 -42
- data/examples/apps/upload-demo +0 -74
- data/examples/apps/ws-chat +0 -69
- data/examples/apps/ws-echo +0 -61
- data/examples/config.yml +0 -33
- data/examples/gen-config.rb +0 -52
- data/examples/static/examples.css +0 -4
- data/examples/static/examples.html +0 -33
- data/examples/strelka.conf.example +0 -51
- data/examples/templates/auth-form.tmpl +0 -14
- data/examples/templates/auth-success.tmpl +0 -5
- data/examples/templates/layout.tmpl +0 -31
- data/examples/templates/upload-form.tmpl +0 -17
- data/examples/templates/upload-success.tmpl +0 -13
@@ -1,33 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
-
|
8
|
-
<title>Strelka Examples</title>
|
9
|
-
|
10
|
-
<link rel="shortcut icon" type="image/png" href="/images/21d1-16.png" />
|
11
|
-
<link rel="stylesheet" href="/examples.css" type="text/css" media="screen"
|
12
|
-
title="no title" charset="utf-8" />
|
13
|
-
|
14
|
-
</head>
|
15
|
-
<body>
|
16
|
-
|
17
|
-
<header>
|
18
|
-
<hgroup>
|
19
|
-
<h1>Strelka Examples</h1>
|
20
|
-
</hgroup>
|
21
|
-
</header>
|
22
|
-
|
23
|
-
<ul>
|
24
|
-
<li><a href="/hello">Hello World</a> - A super-basic handler.</li>
|
25
|
-
<li><a href="/sessions">Sessions Demo</a> - Demo of the <code>:sessions</code> plugin.</li>
|
26
|
-
<li><a href="/auth">Auth Demo</a> - Demo of the <code>:auth</code> plugin.</li>
|
27
|
-
<li><a href="/formauth">Form Auth Demo</a> - Demo of the <code>:auth</code> plugin with the :errors plugin for auth failure management.</li>
|
28
|
-
<li><a href="/upload">Upload Demo</a> - Demo of <tt>multipart/form-data</tt> support, Mongrel2 async upload support for larger files.</li>
|
29
|
-
</ul>
|
30
|
-
|
31
|
-
</body>
|
32
|
-
</html>
|
33
|
-
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# vim: set sta et ts=4 sw=4 ft=yaml:
|
2
|
-
|
3
|
-
### This is an example configuration file for a Strelka application. It
|
4
|
-
### includes options for creating the Mongrel2 settings database, along with
|
5
|
-
### behavioral knobs for specific Strelka components.
|
6
|
-
|
7
|
-
# The location on disk where the sqlite database will be stored.
|
8
|
-
mongrel2:
|
9
|
-
configdb: amalgalite://mongrel2.sqlite
|
10
|
-
|
11
|
-
# Use the Basic authentication provider for
|
12
|
-
# any routes that require user validation.
|
13
|
-
auth:
|
14
|
-
provider: basic
|
15
|
-
|
16
|
-
# Configuration for the Basic auth provider.
|
17
|
-
basicauth:
|
18
|
-
realm: Examples
|
19
|
-
users:
|
20
|
-
ged: "dn44fsIrKF6KmBw0im4GIJktSpM="
|
21
|
-
jblack: "1pAnQNSVtpL1z88QwXV4sG8NMP8="
|
22
|
-
kmurgen: "MZj9+VhZ8C9+aJhmwp+kWBL76Vs="
|
23
|
-
|
24
|
-
# Use built in (in-process) session storage.
|
25
|
-
sessions:
|
26
|
-
type: default
|
27
|
-
|
28
|
-
# Configuration for the built in session provider.
|
29
|
-
defaultsession:
|
30
|
-
cookie_name: "session-demo"
|
31
|
-
cookie_options:
|
32
|
-
expires: +5m
|
33
|
-
|
34
|
-
# Inversion templating.
|
35
|
-
templates:
|
36
|
-
template_paths:
|
37
|
-
- templates
|
38
|
-
ignore_unknown_tags: true
|
39
|
-
on_render_error: ignore
|
40
|
-
debugging_comments: false
|
41
|
-
strip_tag_lines: false
|
42
|
-
stat_delay: 300
|
43
|
-
|
44
|
-
# Logging behaviors for classes that are extended with Loggability.
|
45
|
-
logging:
|
46
|
-
strelka: debug (color)
|
47
|
-
inversion: info (color)
|
48
|
-
configurability: debug (color)
|
49
|
-
mongrel2: debug (color)
|
50
|
-
|
51
|
-
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<?import request ?>
|
2
|
-
|
3
|
-
<?publish title ?>Please Log In<?end publish ?>
|
4
|
-
|
5
|
-
<form action="[?call request.uri ?]" method="post" accept-charset="utf-8">
|
6
|
-
<label for="username">Username</label>
|
7
|
-
<input type="text" name="username" value="" id="username-input" />
|
8
|
-
|
9
|
-
<label for="password">Password</label>
|
10
|
-
<input type="password" name="password" value="" id="password-input" />
|
11
|
-
|
12
|
-
<p><input type="submit" value="Login →"></p>
|
13
|
-
</form>
|
14
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title><?subscribe title || Demo ?></title>
|
6
|
-
|
7
|
-
<style type="text/css" media="screen">
|
8
|
-
html {
|
9
|
-
background: #eee;
|
10
|
-
color: #333;
|
11
|
-
margin: 0;
|
12
|
-
padding: 4em 2em;
|
13
|
-
font-family: sans-serif;
|
14
|
-
}
|
15
|
-
</style>
|
16
|
-
</head>
|
17
|
-
<body>
|
18
|
-
|
19
|
-
<header>
|
20
|
-
<h1><?subscribe title || Demo ?></h1>
|
21
|
-
</header>
|
22
|
-
|
23
|
-
<section id="body"><?attr body ?></section>
|
24
|
-
|
25
|
-
<footer>
|
26
|
-
<p>Copyright © 2012, Michael Granger</p>
|
27
|
-
</footer>
|
28
|
-
|
29
|
-
</body>
|
30
|
-
</html>
|
31
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<?import request ?>
|
2
|
-
|
3
|
-
<?publish title ?>Upload/Multipart-FormData Demo<?end publish ?>
|
4
|
-
|
5
|
-
<form action="[?call request.uri ?]" method="post" accept-charset="utf-8" enctype="multipart/form-data">
|
6
|
-
|
7
|
-
<label for="uploadfile">Upload a file:</label>
|
8
|
-
<input type="file" name="uploadfile" value="" id="uploadfile-input">
|
9
|
-
|
10
|
-
<br />
|
11
|
-
|
12
|
-
<label for="description">Description</label>
|
13
|
-
<input type="text" name="description" value="" id="description-input">
|
14
|
-
|
15
|
-
<p><input type="submit" value="Upload →"></p>
|
16
|
-
</form>
|
17
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<?import request ?>
|
2
|
-
|
3
|
-
<h2>Upload Successful</h2>
|
4
|
-
|
5
|
-
<p>You successfully uploaded a file: <tt><?call upload.filename ?></tt>
|
6
|
-
(<?call "%0.2fK" % upload.content_length / 1024.0 ?> of
|
7
|
-
'<?call upload.content_type ?>' data) with a description of
|
8
|
-
<tt><?escape description ?></tt></p>
|
9
|
-
|
10
|
-
<hr />
|
11
|
-
|
12
|
-
<?include upload-form.tmpl ?>
|
13
|
-
|