pakyow-core 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pakyow-core/{CHANGES → CHANGELOG.md} +37 -10
- data/pakyow-core/{MIT-LICENSE → LICENSE} +2 -2
- data/pakyow-core/README.md +34 -0
- data/pakyow-core/lib/core/app.rb +50 -39
- data/pakyow-core/lib/core/base.rb +6 -2
- data/pakyow-core/lib/core/config/app.rb +8 -4
- data/pakyow-core/lib/core/config.rb +8 -5
- data/pakyow-core/lib/core/helpers.rb +5 -5
- data/pakyow-core/lib/core/middleware/logger.rb +3 -55
- data/pakyow-core/lib/core/request.rb +5 -1
- data/pakyow-core/lib/core/response.rb +115 -0
- data/pakyow-core/lib/core/route_eval.rb +33 -263
- data/pakyow-core/lib/core/route_expansion_eval.rb +115 -0
- data/pakyow-core/lib/core/route_lookup.rb +1 -8
- data/pakyow-core/lib/core/route_template_defaults.rb +12 -2
- data/pakyow-core/lib/core/route_template_eval.rb +72 -0
- data/pakyow-core/lib/core/router.rb +8 -2
- data/pakyow-core/lib/pakyow-core.rb +1 -3
- data/pakyow-core/lib/views/errors/404.html +13 -77
- data/pakyow-core/lib/views/errors/500.html +12 -53
- metadata +32 -17
- data/pakyow-core/README +0 -1
@@ -1,77 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
</
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
h1 {
|
16
|
-
font-size:20px;
|
17
|
-
color:#333;
|
18
|
-
}
|
19
|
-
|
20
|
-
h2 {
|
21
|
-
font-weight:normal;
|
22
|
-
font-size:13px;
|
23
|
-
color:#FF0000;
|
24
|
-
}
|
25
|
-
|
26
|
-
code {
|
27
|
-
font-size:13px;
|
28
|
-
display:block;
|
29
|
-
margin:20px;
|
30
|
-
color:#333;
|
31
|
-
}
|
32
|
-
|
33
|
-
hr {
|
34
|
-
height:1px;
|
35
|
-
background:#ccc;
|
36
|
-
border:0;
|
37
|
-
}
|
38
|
-
|
39
|
-
.wrapper {
|
40
|
-
width:700px;
|
41
|
-
margin:60px auto 0;
|
42
|
-
}
|
43
|
-
|
44
|
-
.instruct {
|
45
|
-
font-size:15px;
|
46
|
-
margin:30px 0;
|
47
|
-
color:#777;
|
48
|
-
}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<body>
|
52
|
-
<div class="wrapper">
|
53
|
-
<h1>
|
54
|
-
Pakyow couldn't find a route or view for this request path.
|
55
|
-
</h1>
|
56
|
-
|
57
|
-
<p class="instruct">
|
58
|
-
For Pakyow to fulfill this request, create a view at '{view_path}'.
|
59
|
-
</p>
|
60
|
-
|
61
|
-
<hr>
|
62
|
-
|
63
|
-
<p class="instruct">
|
64
|
-
If you want back-end code to execute for this path, create
|
65
|
-
a route; maybe something like this:
|
66
|
-
|
67
|
-
<code>
|
68
|
-
get '{route_path}' do
|
69
|
-
<br>
|
70
|
-
# your code goes here
|
71
|
-
<br>
|
72
|
-
end
|
73
|
-
</code>
|
74
|
-
</p>
|
75
|
-
</div>
|
76
|
-
</body>
|
77
|
-
</html>
|
1
|
+
<h1>
|
2
|
+
Pakyow couldn't find anything to do :(
|
3
|
+
</h1>
|
4
|
+
|
5
|
+
<p class="lead">
|
6
|
+
If you want back-end code to execute for this request, create a route in <code>app/lib/routes.rb</code>:
|
7
|
+
</p>
|
8
|
+
|
9
|
+
<pre>
|
10
|
+
<code><span class="n">get</span> <span class="s1">'{route_path}'</span> <span class="k">do</span>
|
11
|
+
<span class="c1"># your code goes here</span>
|
12
|
+
<span class="k">end</span></code>
|
13
|
+
</pre>
|
@@ -1,56 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<title>
|
5
|
-
Pakyow: 500
|
6
|
-
</title>
|
1
|
+
<h1>
|
2
|
+
Pakyow found something wrong :(
|
3
|
+
</h1>
|
7
4
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
line-height:1.35em;
|
12
|
-
color:#333;
|
13
|
-
}
|
5
|
+
<p class="lead">
|
6
|
+
The error originated on line {line} of <code>{file}</code>.
|
7
|
+
</p>
|
14
8
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
9
|
+
<h5 class="error">
|
10
|
+
{msg}
|
11
|
+
</h5>
|
19
12
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
color:#FF0000;
|
24
|
-
}
|
25
|
-
|
26
|
-
.wrapper {
|
27
|
-
width:900px;
|
28
|
-
margin:60px auto 0;
|
29
|
-
}
|
30
|
-
|
31
|
-
.instruct {
|
32
|
-
font-size:15px;
|
33
|
-
margin:30px 0;
|
34
|
-
color:#777;
|
35
|
-
}
|
36
|
-
</style>
|
37
|
-
</head>
|
38
|
-
<body>
|
39
|
-
<div class="wrapper">
|
40
|
-
<h1>
|
41
|
-
Pakyow found something wrong.
|
42
|
-
</h1>
|
43
|
-
|
44
|
-
<p class="instruct">
|
45
|
-
The error originated on line {line} of '{file}'
|
46
|
-
and generated the following stack trace:
|
47
|
-
</p>
|
48
|
-
|
49
|
-
<h2>
|
50
|
-
{msg}
|
51
|
-
</h2>
|
52
|
-
|
53
|
-
{trace}
|
54
|
-
</div>
|
55
|
-
</body>
|
56
|
-
</html>
|
13
|
+
<pre>
|
14
|
+
<code>{trace}</code>
|
15
|
+
</pre>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pakyow-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pakyow-support
|
@@ -17,51 +17,65 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.10.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.10.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rack
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '1.
|
34
|
+
version: '1.6'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
41
|
+
version: '1.6'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '5.
|
48
|
+
version: '5.6'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '5.
|
56
|
-
|
55
|
+
version: '5.6'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.2'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.2'
|
70
|
+
description: Core routing functionality for Pakyow
|
57
71
|
email: bryan@metabahn.com
|
58
72
|
executables: []
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
62
|
-
- pakyow-core/
|
63
|
-
- pakyow-core/
|
64
|
-
- pakyow-core/README
|
76
|
+
- pakyow-core/CHANGELOG.md
|
77
|
+
- pakyow-core/LICENSE
|
78
|
+
- pakyow-core/README.md
|
65
79
|
- pakyow-core/lib/core/app.rb
|
66
80
|
- pakyow-core/lib/core/app_context.rb
|
67
81
|
- pakyow-core/lib/core/base.rb
|
@@ -80,16 +94,18 @@ files:
|
|
80
94
|
- pakyow-core/lib/core/request.rb
|
81
95
|
- pakyow-core/lib/core/response.rb
|
82
96
|
- pakyow-core/lib/core/route_eval.rb
|
97
|
+
- pakyow-core/lib/core/route_expansion_eval.rb
|
83
98
|
- pakyow-core/lib/core/route_lookup.rb
|
84
99
|
- pakyow-core/lib/core/route_merger.rb
|
85
100
|
- pakyow-core/lib/core/route_module.rb
|
86
101
|
- pakyow-core/lib/core/route_set.rb
|
87
102
|
- pakyow-core/lib/core/route_template_defaults.rb
|
103
|
+
- pakyow-core/lib/core/route_template_eval.rb
|
88
104
|
- pakyow-core/lib/core/router.rb
|
89
105
|
- pakyow-core/lib/pakyow-core.rb
|
90
106
|
- pakyow-core/lib/views/errors/404.html
|
91
107
|
- pakyow-core/lib/views/errors/500.html
|
92
|
-
homepage: http://pakyow.
|
108
|
+
homepage: http://pakyow.org
|
93
109
|
licenses:
|
94
110
|
- MIT
|
95
111
|
metadata: {}
|
@@ -108,10 +124,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
124
|
- !ruby/object:Gem::Version
|
109
125
|
version: '0'
|
110
126
|
requirements: []
|
111
|
-
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
127
|
+
rubyforge_project:
|
128
|
+
rubygems_version: 2.4.5
|
113
129
|
signing_key:
|
114
130
|
specification_version: 4
|
115
|
-
summary:
|
131
|
+
summary: Pakyow Core
|
116
132
|
test_files: []
|
117
|
-
has_rdoc:
|
data/pakyow-core/README
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
TODO
|