pakyow 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/server.rb +2 -2
- data/lib/generators/pakyow/app/app_generator.rb +5 -3
- data/lib/generators/pakyow/app/templates/Gemfile +1 -1
- data/lib/generators/pakyow/app/templates/README.md +17 -9
- data/lib/generators/pakyow/app/templates/Rakefile +3 -0
- data/lib/generators/pakyow/app/templates/app.rb +5 -4
- data/lib/generators/pakyow/app/templates/config.ru +1 -1
- data/lib/generators/pakyow/app/templates/public/pakyow-css/CHANGES +4 -0
- data/lib/generators/pakyow/app/templates/public/pakyow-css/VERSION +1 -1
- data/lib/generators/pakyow/app/templates/public/pakyow-css/examples/structure-fluid.html +1 -0
- data/lib/generators/pakyow/app/templates/public/pakyow-css/examples/structure.html +1 -0
- data/lib/generators/pakyow/app/templates/public/pakyow-css/reset.css +23 -25
- data/lib/generators/pakyow/app/templates/public/pakyow-css/structure.css +63 -128
- data/lib/generators/pakyow/app/templates/public/pakyow-css/style.css +121 -147
- data/lib/generators/pakyow/app/templates/public/pakyow-css/syntax.css +270 -81
- data/lib/pakyow.rb +1 -0
- metadata +45 -16
- data/lib/generators/pakyow/app/templates/rakefile +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d0c2adf1fe1eabb056f1103a17e9af619ead0e9
|
4
|
+
data.tar.gz: f70de89cacaef88ac55188b337ba332132b6245f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3353a1d496e3900e972c9fa9de22bea6a6d679e1844c257a1b59821de6e89aba9d7f17575ec7fb540db191320e074845473f7d75dd01acb23d3cf73718d01df1
|
7
|
+
data.tar.gz: 4e445bcf74c3e8db288278d909fbb78b36ccaa5370f24256b59427ceba0bb4cdd29c75e23aaedc5b0469dd2d1d75217e2f51d71c6614dbd2e957ded5d15d731b
|
data/lib/commands/server.rb
CHANGED
@@ -8,14 +8,14 @@ else
|
|
8
8
|
valid_args = true
|
9
9
|
if port_arg = ARGV.index("-p")
|
10
10
|
if ARGV[port_arg + 1] =~ /^\d{1,5}$/
|
11
|
-
Pakyow::Config
|
11
|
+
Pakyow::Config.server.port = ARGV[port_arg + 1]
|
12
12
|
ARGV.delete_at(port_arg + 1)
|
13
13
|
ARGV.delete_at(port_arg)
|
14
14
|
else
|
15
15
|
valid_args = false
|
16
16
|
end
|
17
17
|
elsif port_arg = ARGV.index {|a| a =~ /^--port=\d{1,5}$/}
|
18
|
-
Pakyow::Config
|
18
|
+
Pakyow::Config.server.port = ARGV[port_arg].gsub(/--port=/, '')
|
19
19
|
ARGV.delete_at(port_arg)
|
20
20
|
end
|
21
21
|
|
@@ -38,7 +38,7 @@ module Pakyow
|
|
38
38
|
end
|
39
39
|
|
40
40
|
exec
|
41
|
-
puts "Done!"
|
41
|
+
puts "Done! Run `cd #{@dest}; pakyow server` to get started!"
|
42
42
|
end
|
43
43
|
|
44
44
|
protected
|
@@ -50,8 +50,10 @@ module Pakyow
|
|
50
50
|
|
51
51
|
# performs and other setup (e.g. bundle install)
|
52
52
|
def exec
|
53
|
-
|
54
|
-
|
53
|
+
FileUtils.cd(@dest) do
|
54
|
+
puts "Running `bundle install` in #{Dir.pwd}"
|
55
|
+
system("bundle install")
|
56
|
+
end
|
55
57
|
end
|
56
58
|
end
|
57
59
|
end
|
@@ -1,20 +1,28 @@
|
|
1
|
-
This
|
2
|
-
|
3
|
-
---
|
1
|
+
This is a Pakyow v0.9 app.
|
4
2
|
|
5
3
|
# Getting Started
|
6
4
|
|
7
|
-
Start the server:
|
5
|
+
Start the app server:
|
8
6
|
|
9
7
|
`pakyow server`
|
10
8
|
|
11
|
-
|
9
|
+
You'll find your app running at [http://localhost:3000](http://localhost:3000)!
|
10
|
+
|
11
|
+
Need to interact with your app? Fire up a console:
|
12
12
|
|
13
13
|
`pakyow console`
|
14
14
|
|
15
|
-
#
|
15
|
+
# Next Steps
|
16
|
+
|
17
|
+
The following resources might be handy:
|
18
|
+
|
19
|
+
- [Website](http://pakyow.com)
|
20
|
+
- [Warmup](http://pakyow.com/warmup)
|
21
|
+
- [Docs](http://pakyow.com/docs)
|
22
|
+
- [Code](http://github.com/metabahn/pakyow)
|
16
23
|
|
17
|
-
|
24
|
+
Want to keep up with the latest development? Follow along:
|
18
25
|
|
19
|
-
|
20
|
-
|
26
|
+
- [Blog](http://pakyow.com/blog)
|
27
|
+
- [Mailing List](http://groups.google.com/group/pakyow)
|
28
|
+
- [Twitter](http://twitter.com/pakyow)
|
@@ -5,6 +5,7 @@ require 'pakyow'
|
|
5
5
|
Pakyow::App.define do
|
6
6
|
configure :global do
|
7
7
|
# put global config here and they'll be available across environments
|
8
|
+
app.name = 'Pakyow'
|
8
9
|
end
|
9
10
|
|
10
11
|
configure :development do
|
@@ -16,11 +17,11 @@ Pakyow::App.define do
|
|
16
17
|
app.ignore_routes = true
|
17
18
|
end
|
18
19
|
|
19
|
-
configure :
|
20
|
-
#
|
21
|
-
|
22
|
-
app.errors_in_browser = false
|
20
|
+
configure :staging do
|
21
|
+
# put your staging config here
|
22
|
+
end
|
23
23
|
|
24
|
+
configure :production do
|
24
25
|
# put your production config here
|
25
26
|
end
|
26
27
|
end
|
@@ -1 +1 @@
|
|
1
|
-
0.1
|
1
|
+
0.1.1
|
@@ -2,7 +2,6 @@
|
|
2
2
|
v2.0 | 20110126
|
3
3
|
License: none (public domain)
|
4
4
|
*/
|
5
|
-
|
6
5
|
html, body, div, span, applet, object, iframe,
|
7
6
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
8
7
|
a, abbr, acronym, address, big, cite, code,
|
@@ -12,37 +11,36 @@ b, u, i, center,
|
|
12
11
|
dl, dt, dd, ol, ul, li,
|
13
12
|
fieldset, form, label, legend,
|
14
13
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
15
|
-
article, aside, canvas, details, embed,
|
16
|
-
figure, figcaption, footer, header, hgroup,
|
14
|
+
article, aside, canvas, details, embed,
|
15
|
+
figure, figcaption, footer, header, hgroup,
|
17
16
|
menu, nav, output, ruby, section, summary,
|
18
17
|
time, mark, audio, video {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
border: 0;
|
21
|
+
font-size: 100%;
|
22
|
+
font: inherit;
|
23
|
+
vertical-align: baseline; }
|
24
|
+
|
26
25
|
/* HTML5 display-role reset for older browsers */
|
27
|
-
article, aside, details, figcaption, figure,
|
26
|
+
article, aside, details, figcaption, figure,
|
28
27
|
footer, header, hgroup, menu, nav, section {
|
29
|
-
|
30
|
-
|
28
|
+
display: block; }
|
29
|
+
|
31
30
|
body {
|
32
|
-
|
33
|
-
|
31
|
+
line-height: 1; }
|
32
|
+
|
34
33
|
ol, ul {
|
35
|
-
|
36
|
-
|
34
|
+
list-style: none; }
|
35
|
+
|
37
36
|
blockquote, q {
|
38
|
-
|
39
|
-
|
37
|
+
quotes: none; }
|
38
|
+
|
40
39
|
blockquote:before, blockquote:after,
|
41
40
|
q:before, q:after {
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
content: '';
|
42
|
+
content: none; }
|
43
|
+
|
45
44
|
table {
|
46
|
-
|
47
|
-
|
48
|
-
}
|
45
|
+
border-collapse: collapse;
|
46
|
+
border-spacing: 0; }
|
@@ -1,264 +1,199 @@
|
|
1
1
|
/*****************************
|
2
2
|
Positioning
|
3
3
|
*****************************/
|
4
|
-
|
5
4
|
.float-right, .float-r {
|
6
|
-
float: right;
|
7
|
-
}
|
5
|
+
float: right; }
|
8
6
|
|
9
7
|
.float-left, .float-l {
|
10
|
-
float: left;
|
11
|
-
}
|
8
|
+
float: left; }
|
12
9
|
|
13
10
|
.align-right, .align-r {
|
14
|
-
text-align: right;
|
15
|
-
}
|
11
|
+
text-align: right; }
|
16
12
|
|
17
13
|
.align-left, .align-l {
|
18
|
-
text-align: left;
|
19
|
-
}
|
14
|
+
text-align: left; }
|
20
15
|
|
21
16
|
.align-center, .align-c {
|
22
|
-
text-align:center;
|
23
|
-
}
|
17
|
+
text-align: center; }
|
24
18
|
|
25
19
|
.hidden {
|
26
|
-
display: none;
|
27
|
-
}
|
20
|
+
display: none; }
|
28
21
|
|
29
22
|
.clear {
|
30
|
-
clear: both;
|
31
|
-
}
|
23
|
+
clear: both; }
|
32
24
|
|
33
25
|
.clear-left, .clear-l {
|
34
|
-
clear: left;
|
35
|
-
}
|
26
|
+
clear: left; }
|
36
27
|
|
37
28
|
.clear-right, .clear-r {
|
38
|
-
clear: right;
|
39
|
-
}
|
29
|
+
clear: right; }
|
40
30
|
|
41
31
|
/*****************************
|
42
32
|
Relational
|
43
33
|
*****************************/
|
44
|
-
|
45
34
|
.margin {
|
46
|
-
margin:20px;
|
47
|
-
}
|
35
|
+
margin: 20px; }
|
48
36
|
|
49
37
|
.margin-t {
|
50
|
-
margin-top:20px;
|
51
|
-
}
|
38
|
+
margin-top: 20px; }
|
52
39
|
|
53
40
|
.margin-b {
|
54
|
-
margin-bottom:20px;
|
55
|
-
}
|
41
|
+
margin-bottom: 20px; }
|
56
42
|
|
57
43
|
.margin-r {
|
58
|
-
margin-right:20px;
|
59
|
-
}
|
44
|
+
margin-right: 20px; }
|
60
45
|
|
61
46
|
.margin-l {
|
62
|
-
margin-left:20px;
|
63
|
-
}
|
47
|
+
margin-left: 20px; }
|
64
48
|
|
65
49
|
/*****************************
|
66
50
|
Structure
|
67
51
|
*****************************/
|
68
|
-
|
69
52
|
*[class*="container"] {
|
70
|
-
width:940px;
|
71
|
-
margin-left:auto;
|
72
|
-
margin-right:auto;
|
73
|
-
}
|
53
|
+
width: 940px;
|
54
|
+
margin-left: auto;
|
55
|
+
margin-right: auto; }
|
74
56
|
|
75
57
|
*[class*="container"]:before, *[class*="container"]:after {
|
76
58
|
display: table;
|
77
|
-
content: "";
|
78
|
-
}
|
59
|
+
content: ""; }
|
79
60
|
|
80
61
|
*[class*="container"]:after {
|
81
|
-
clear: both;
|
82
|
-
}
|
62
|
+
clear: both; }
|
83
63
|
|
84
64
|
*[class*="container"] .col, .container-1 .col {
|
85
|
-
width:940px;
|
86
|
-
}
|
65
|
+
width: 940px; }
|
87
66
|
|
88
67
|
.container-2 [class*="col"] {
|
89
|
-
width:460px;
|
90
|
-
}
|
68
|
+
width: 460px; }
|
91
69
|
|
92
70
|
.container-3 .col {
|
93
|
-
width:300px;
|
94
|
-
}
|
71
|
+
width: 300px; }
|
95
72
|
|
96
73
|
.container-4 .col {
|
97
|
-
width:220px;
|
98
|
-
}
|
74
|
+
width: 220px; }
|
99
75
|
|
100
76
|
.container-5 .col {
|
101
|
-
width:172px;
|
102
|
-
}
|
77
|
+
width: 172px; }
|
103
78
|
|
104
79
|
*[class*="col"] {
|
105
|
-
float:left;
|
106
|
-
margin-left:20px;
|
107
|
-
}
|
80
|
+
float: left;
|
81
|
+
margin-left: 20px; }
|
108
82
|
|
109
83
|
*[class*="col"]:first-child {
|
110
|
-
margin-left:0;
|
111
|
-
}
|
84
|
+
margin-left: 0; }
|
112
85
|
|
113
86
|
/* Resized Columns */
|
114
|
-
|
115
87
|
.col.r-3-1 {
|
116
|
-
width:300px;
|
117
|
-
}
|
88
|
+
width: 300px; }
|
118
89
|
|
119
90
|
.col.r-3-2 {
|
120
|
-
width:620px;
|
121
|
-
}
|
91
|
+
width: 620px; }
|
122
92
|
|
123
93
|
.col.r-4-1 {
|
124
|
-
width:220px;
|
125
|
-
}
|
94
|
+
width: 220px; }
|
126
95
|
|
127
96
|
.col.r-4-2 {
|
128
|
-
width:460px;
|
129
|
-
}
|
97
|
+
width: 460px; }
|
130
98
|
|
131
99
|
.col.r-4-3 {
|
132
|
-
width:700px;
|
133
|
-
}
|
100
|
+
width: 700px; }
|
134
101
|
|
135
102
|
.col.r-5-1 {
|
136
|
-
width:172px;
|
137
|
-
}
|
103
|
+
width: 172px; }
|
138
104
|
|
139
105
|
.col.r-5-2 {
|
140
|
-
width:364px;
|
141
|
-
}
|
106
|
+
width: 364px; }
|
142
107
|
|
143
108
|
.col.r-5-3 {
|
144
|
-
width:556px;
|
145
|
-
}
|
109
|
+
width: 556px; }
|
146
110
|
|
147
111
|
.col.r-5-4 {
|
148
|
-
width:748px;
|
149
|
-
}
|
112
|
+
width: 748px; }
|
150
113
|
|
151
114
|
/*****************************
|
152
115
|
Fluid Structure
|
153
116
|
*****************************/
|
154
|
-
|
155
117
|
*[class*="container"].fluid, .fluid *[class*="container"] {
|
156
|
-
width:auto;
|
157
|
-
}
|
118
|
+
width: auto; }
|
158
119
|
|
159
120
|
*[class*="container"].fluid {
|
160
|
-
padding:0 20px;
|
161
|
-
}
|
121
|
+
padding: 0 20px; }
|
162
122
|
|
163
123
|
*[class*="container"].fluid *[class*="col"] {
|
164
|
-
margin-left:1.94%;
|
165
|
-
}
|
124
|
+
margin-left: 1.94%; }
|
166
125
|
|
167
126
|
*[class*="container"].fluid *[class*="col"]:first-child {
|
168
|
-
margin-left:0;
|
169
|
-
float:left !important;
|
170
|
-
}
|
127
|
+
margin-left: 0;
|
128
|
+
float: left !important; }
|
171
129
|
|
172
130
|
/*
|
173
131
|
Since percentage calculations aren't pixel-accurate, widths are always a little
|
174
132
|
shy of correct. Aligning the last column to the right makes everything line up.
|
175
133
|
*/
|
176
134
|
.fluid *[class*="col"]:last-child {
|
177
|
-
float:right;
|
178
|
-
}
|
135
|
+
float: right; }
|
179
136
|
|
180
137
|
.container.fluid .col, .fluid .container .col {
|
181
|
-
width:100%;
|
182
|
-
}
|
138
|
+
width: 100%; }
|
183
139
|
|
184
140
|
.container-1.fluid .col, .fluid .container-1 .col {
|
185
|
-
width:100%;
|
186
|
-
}
|
141
|
+
width: 100%; }
|
187
142
|
|
188
143
|
.container-2.fluid .col, .fluid .container-2 .col {
|
189
|
-
width:49.03%;
|
190
|
-
}
|
144
|
+
width: 49.03%; }
|
191
145
|
|
192
146
|
.container-3.fluid .col, .fluid .container-3 .col {
|
193
|
-
width:32.02%;
|
194
|
-
}
|
147
|
+
width: 32.02%; }
|
195
148
|
|
196
149
|
.container-4.fluid .col, .fluid .container-4 .col {
|
197
|
-
width:23.52%;
|
198
|
-
}
|
150
|
+
width: 23.52%; }
|
199
151
|
|
200
152
|
.container-5.fluid .col, .fluid .container-5 .col {
|
201
|
-
width:18.43%;
|
202
|
-
}
|
153
|
+
width: 18.43%; }
|
203
154
|
|
204
155
|
/* Resized Columns */
|
205
|
-
|
206
156
|
.fluid .col.r-3-1 {
|
207
|
-
width:32.02%;
|
208
|
-
}
|
157
|
+
width: 32.02%; }
|
209
158
|
|
210
159
|
.fluid .col.r-3-2 {
|
211
|
-
width:65.98%;
|
212
|
-
}
|
160
|
+
width: 65.98%; }
|
213
161
|
|
214
162
|
.fluid .col.r-4-1 {
|
215
|
-
width:23.52%;
|
216
|
-
}
|
163
|
+
width: 23.52%; }
|
217
164
|
|
218
165
|
.fluid .col.r-4-2 {
|
219
|
-
width:48.98%;
|
220
|
-
}
|
166
|
+
width: 48.98%; }
|
221
167
|
|
222
168
|
.fluid .col.r-4-3 {
|
223
|
-
width:74.45%;
|
224
|
-
}
|
169
|
+
width: 74.45%; }
|
225
170
|
|
226
171
|
.fluid .col.r-5-1 {
|
227
|
-
width:18.43%;
|
228
|
-
}
|
172
|
+
width: 18.43%; }
|
229
173
|
|
230
174
|
.fluid .col.r-5-2 {
|
231
|
-
width:38.80%;
|
232
|
-
}
|
175
|
+
width: 38.80%; }
|
233
176
|
|
234
177
|
.fluid .col.r-5-3 {
|
235
|
-
width:59.17%;
|
236
|
-
}
|
178
|
+
width: 59.17%; }
|
237
179
|
|
238
180
|
.fluid .col.r-5-4 {
|
239
|
-
width:79.54%;
|
240
|
-
}
|
181
|
+
width: 79.54%; }
|
241
182
|
|
242
183
|
/*****************************
|
243
184
|
Flows
|
244
185
|
*****************************/
|
245
|
-
|
246
186
|
.container.flow .col {
|
247
|
-
width:auto;
|
248
|
-
}
|
187
|
+
width: auto; }
|
249
188
|
|
250
189
|
/*****************************
|
251
190
|
Fixed Structure
|
252
191
|
*****************************/
|
253
|
-
|
254
192
|
.container.fixed {
|
255
|
-
position:fixed;
|
256
|
-
}
|
193
|
+
position: fixed; }
|
257
194
|
|
258
195
|
.container.fixed.fluid {
|
259
|
-
width:100%;
|
260
|
-
|
261
|
-
-
|
262
|
-
|
263
|
-
box-sizing:border-box;
|
264
|
-
}
|
196
|
+
width: 100%;
|
197
|
+
-webkit-box-sizing: border-box;
|
198
|
+
-moz-box-sizing: border-box;
|
199
|
+
box-sizing: border-box; }
|