megatron 0.1.38 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1a70b56c726c705ac9e3b45815e69a27f54e014
4
- data.tar.gz: 5caff956a4da9e412ee9fd2e8c5dc7974048020a
3
+ metadata.gz: 864b42d7d2870b44343ec28aef0a93f37beb32e0
4
+ data.tar.gz: 18c35038a59287503047cacccadd33bc97ba64c7
5
5
  SHA512:
6
- metadata.gz: 9cc58be069f95df6aa054eb5b1c11395b49eca44477c6036b17d2b84661f9c407c557f5352edc8a94ebcea8ce4bfb0249af4e4b22db25ec99f7a05f5383f046d
7
- data.tar.gz: 1ac6c5a5f591051b071c4e68a116afea85b545507db43cd6d8a2ff7544064ad3b88aec8b8f1b12e6bc7f2d2a7ae497a7dfc0336c2de1089078961d14372ca148
6
+ metadata.gz: 4dd4af4ed31bac0ead788ddc5820384b62dea8dc88a0fe0d89aaa870689f264bf56162f9032ff9688e1eff371ce6c3e5323144c26e284149cf4e73b3005f4f73
7
+ data.tar.gz: 7777e7a75a00f2e1fa44f2731abef08e3004df7d1f84548a82dea3155387a078e125513ea630db3677c725fcec625879d88636626ea896a55fb1effc28e70e25
data/Rakefile CHANGED
@@ -81,10 +81,10 @@ namespace :megatron do
81
81
  require 'listen'
82
82
 
83
83
  listener = Listen.to('app/assets/stylesheets/megatron/', only: /\.scss$/) do |modified, added, removed|
84
- build_css
84
+ build_megatron_css
85
85
  end
86
86
 
87
- build_css
87
+ build_megatron_css
88
88
 
89
89
  puts "Initial CSS build, done. Listening for changes..."
90
90
 
@@ -94,7 +94,7 @@ namespace :megatron do
94
94
  end
95
95
 
96
96
  task :build do
97
- build_css
97
+ build_megatron_css
98
98
  end
99
99
 
100
100
  task :gzip do
@@ -128,11 +128,29 @@ namespace :megatron do
128
128
 
129
129
  end
130
130
 
131
+ # Run the server first, then run this rake task to write error messages to disk
132
+ #
133
+ task :build_errors do
134
+ dir = 'server/tmp/error_pages'
135
+ zip = 'error_pages.zip'
136
+ FileUtils.mkdir_p(dir)
137
+ FileUtils.rm(zip) if File.exist?(zip)
138
+ [408, 502, 503, 504].each do |code|
139
+ system "curl http://localhost:5000/errors/#{code} > #{dir}/#{code}.html"
140
+ system "zip -r -X #{zip} #{dir}"
141
+ end
142
+ end
143
+
144
+ end
145
+
146
+ def build_megatron_css
147
+ build_css("megatron")
148
+ build_css('megatron-error-pages', 'compressed', 'none')
131
149
  end
132
150
 
133
- def build_css
134
- destination = "public/assets/megatron/megatron-#{Megatron::VERSION}.css"
135
- system "bundle exec sass app/assets/stylesheets/megatron/megatron.scss:#{destination}"
151
+ def build_css(file, style='nested', sourcemap='auto')
152
+ destination = "public/assets/megatron/#{file}-#{Megatron::VERSION}.css"
153
+ system "bundle exec sass app/assets/stylesheets/megatron/#{file}.scss:#{destination} --style #{style} --sourcemap=#{sourcemap}"
136
154
  system "./node_modules/postcss-cli/bin/postcss --use autoprefixer #{destination} -o #{destination}"
137
155
  puts "Built: #{destination}"
138
156
  end
@@ -0,0 +1,410 @@
1
+ <!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In -->
2
+ <svg version="1.1"
3
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
4
+ x="0px" y="0px" width="310.6px" height="174px" viewBox="0 0 310.6 174" enable-background="new 0 0 310.6 174"
5
+ xml:space="preserve">
6
+ <defs>
7
+ </defs>
8
+ <g>
9
+ <g>
10
+ <g>
11
+ <g>
12
+ <path fill="#1D2125" d="M210.6,0l-20,11.2v22.4l20,11.2l20-11.2V11.2L210.6,0z"/>
13
+ </g>
14
+ <g>
15
+ <g>
16
+ <path fill="#DADEDE" d="M210.6,5.3l-15.3,8.5l15.3,8.6l15.3-8.6L210.6,5.3"/>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ <g>
22
+ <g>
23
+ <g>
24
+ <path fill="#1D2125" d="M190.6,11.2l-20,11.2v22.4l20,11.2l20-11.2V22.4L190.6,11.2z"/>
25
+ </g>
26
+ <g>
27
+ <g>
28
+ <path fill="#DADEDE" d="M190.6,16.5L175.3,25l15.3,8.6l15.3-8.6L190.6,16.5"/>
29
+ </g>
30
+ </g>
31
+ </g>
32
+ </g>
33
+ <g>
34
+ <g>
35
+ <g>
36
+ <path fill="#1D2125" d="M170.6,22.4l-20,11.2V56l20,11.2l20-11.2V33.6L170.6,22.4z"/>
37
+ </g>
38
+ <g>
39
+ <g>
40
+ <path fill="#DADEDE" d="M170.6,27.7l-15.3,8.5l15.3,8.6l15.3-8.6L170.6,27.7"/>
41
+ </g>
42
+ </g>
43
+ </g>
44
+ </g>
45
+ <g>
46
+ <g>
47
+ <g>
48
+ <path fill="#1D2125" d="M230.6,11.2l-20,11.2v22.4l20,11.2l20-11.2V22.4L230.6,11.2z"/>
49
+ </g>
50
+ <g>
51
+ <g>
52
+ <path fill="#DADEDE" d="M230.6,16.5L215.3,25l15.3,8.6l15.3-8.6L230.6,16.5"/>
53
+ </g>
54
+ </g>
55
+ </g>
56
+ </g>
57
+ <g>
58
+ <g>
59
+ <g>
60
+ <path fill="#1D2125" d="M250.6,22.4l-20,11.2V56l20,11.2l20-11.2V33.6L250.6,22.4z"/>
61
+ </g>
62
+ <g>
63
+ <g>
64
+ <path fill="#DADEDE" d="M250.6,27.7l-15.3,8.5l15.3,8.6l15.3-8.6L250.6,27.7"/>
65
+ </g>
66
+ </g>
67
+ </g>
68
+ </g>
69
+ <g>
70
+ <g>
71
+ <g>
72
+ <path fill="#1D2125" d="M190.6,33.6l-20,11.2v22.4l20,11.2l20-11.2V44.8L190.6,33.6z"/>
73
+ </g>
74
+ <g>
75
+ <g>
76
+ <path fill="#DADEDE" d="M190.6,38.9l-15.3,8.5l15.3,8.6l15.3-8.6L190.6,38.9"/>
77
+ </g>
78
+ </g>
79
+ </g>
80
+ </g>
81
+ <g>
82
+ <g>
83
+ <g>
84
+ <path fill="#1D2125" d="M210.6,44.8l-20,11.2v22.4l20,11.2l20-11.2V56L210.6,44.8z"/>
85
+ </g>
86
+ <g>
87
+ <g>
88
+ <path fill="#DADEDE" d="M210.6,50.1l-15.3,8.5l15.3,8.6l15.3-8.6L210.6,50.1"/>
89
+ </g>
90
+ </g>
91
+ </g>
92
+ </g>
93
+ <g>
94
+ <g>
95
+ <g>
96
+ <path fill="#1D2125" d="M230.6,56l-20,11.2v22.4l20,11.2l20-11.2V67.2L230.6,56z"/>
97
+ </g>
98
+ <g>
99
+ <g>
100
+ <path fill="#DADEDE" d="M230.6,61.3l-15.3,8.5l15.3,8.6l15.3-8.6L230.6,61.3"/>
101
+ </g>
102
+ </g>
103
+ </g>
104
+ </g>
105
+ <g>
106
+ <g>
107
+ <g>
108
+ <path fill="#1D2125" d="M270.6,33.6l-20,11.2v22.4l20,11.2l20-11.2V44.8L270.6,33.6z"/>
109
+ </g>
110
+ <g>
111
+ <g>
112
+ <path fill="#DADEDE" d="M270.6,38.9l-15.3,8.5l15.3,8.6l15.3-8.6L270.6,38.9"/>
113
+ </g>
114
+ </g>
115
+ </g>
116
+ </g>
117
+ <g>
118
+ <g>
119
+ <g>
120
+ <path fill="#1D2125" d="M290.6,44.8l-20,11.2v22.4l20,11.2l20-11.2V56L290.6,44.8z"/>
121
+ </g>
122
+ <g>
123
+ <g>
124
+ <path fill="#DADEDE" d="M290.6,50.1l-15.3,8.5l15.3,8.6l15.3-8.6L290.6,50.1"/>
125
+ </g>
126
+ </g>
127
+ </g>
128
+ </g>
129
+ <g>
130
+ <g>
131
+ <g>
132
+ <path fill="#1D2125" d="M270.6,56l-20,11.2v22.4l20,11.2l20-11.2V67.2L270.6,56z"/>
133
+ </g>
134
+ <g>
135
+ <g>
136
+ <path fill="#DADEDE" d="M270.6,61.3l-15.3,8.5l15.3,8.6l15.3-8.6L270.6,61.3"/>
137
+ </g>
138
+ </g>
139
+ </g>
140
+ </g>
141
+ <g>
142
+ <g>
143
+ <g>
144
+ <path fill="#1D2125" d="M250.6,67.2l-20,11.2v22.4l20,11.2l20-11.2V78.4L250.6,67.2z"/>
145
+ </g>
146
+ <g>
147
+ <g>
148
+ <path fill="#DADEDE" d="M250.6,72.5L235.3,81l15.3,8.6l15.3-8.6L250.6,72.5"/>
149
+ </g>
150
+ </g>
151
+ </g>
152
+ </g>
153
+ </g>
154
+ <g>
155
+ <g>
156
+ <g>
157
+ <g>
158
+ <path fill="#1D2125" d="M135.3,42.2l-20,11.2v22.4l20,11.2l20-11.2V53.4L135.3,42.2z"/>
159
+ </g>
160
+ <g>
161
+ <g>
162
+ <path fill="#DADEDE" d="M135.3,47.5L120,56l15.3,8.6l15.3-8.6L135.3,47.5"/>
163
+ </g>
164
+ </g>
165
+ </g>
166
+ </g>
167
+ <g>
168
+ <g>
169
+ <g>
170
+ <path fill="#1D2125" d="M115.3,53.4l-20,11.2V87l20,11.2l20-11.2V64.6L115.3,53.4z"/>
171
+ </g>
172
+ <g>
173
+ <g>
174
+ <path fill="#DADEDE" d="M115.3,58.7L100,67.2l15.3,8.6l15.3-8.6L115.3,58.7"/>
175
+ </g>
176
+ </g>
177
+ </g>
178
+ </g>
179
+ <g>
180
+ <g>
181
+ <g>
182
+ <path fill="#1D2125" d="M95.3,64.6l-20,11.2v22.4l20,11.2l20-11.2V75.8L95.3,64.6z"/>
183
+ </g>
184
+ <g>
185
+ <g>
186
+ <path fill="#DADEDE" d="M95.3,69.9L80,78.4L95.3,87l15.3-8.6L95.3,69.9"/>
187
+ </g>
188
+ </g>
189
+ </g>
190
+ </g>
191
+ <g>
192
+ <g>
193
+ <g>
194
+ <path fill="#1D2125" d="M155.3,53.4l-20,11.2V87l20,11.2l20-11.2V64.6L155.3,53.4z"/>
195
+ </g>
196
+ <g>
197
+ <g>
198
+ <path fill="#DADEDE" d="M155.3,58.7L140,67.2l15.3,8.6l15.3-8.6L155.3,58.7"/>
199
+ </g>
200
+ </g>
201
+ </g>
202
+ </g>
203
+ <g>
204
+ <g>
205
+ <g>
206
+ <path fill="#1D2125" d="M175.3,64.6l-20,11.2v22.4l20,11.2l20-11.2V75.8L175.3,64.6z"/>
207
+ </g>
208
+ <g>
209
+ <g>
210
+ <path fill="#DADEDE" d="M175.3,69.9L160,78.4l15.3,8.6l15.3-8.6L175.3,69.9"/>
211
+ </g>
212
+ </g>
213
+ </g>
214
+ </g>
215
+ <g>
216
+ <g>
217
+ <g>
218
+ <path fill="#1D2125" d="M115.3,75.8L95.3,87v22.4l20,11.2l20-11.2V87L115.3,75.8z"/>
219
+ </g>
220
+ <g>
221
+ <g>
222
+ <path fill="#DADEDE" d="M115.3,81.1L100,89.6l15.3,8.6l15.3-8.6L115.3,81.1"/>
223
+ </g>
224
+ </g>
225
+ </g>
226
+ </g>
227
+ <g>
228
+ <g>
229
+ <g>
230
+ <path fill="#1D2125" d="M135.3,87l-20,11.2v22.4l20,11.2l20-11.2V98.2L135.3,87z"/>
231
+ </g>
232
+ <g>
233
+ <g>
234
+ <path fill="#DADEDE" d="M135.3,92.3l-15.3,8.5l15.3,8.6l15.3-8.6L135.3,92.3"/>
235
+ </g>
236
+ </g>
237
+ </g>
238
+ </g>
239
+ <g>
240
+ <g>
241
+ <g>
242
+ <path fill="#1D2125" d="M155.3,98.2l-20,11.2v22.4l20,11.2l20-11.2v-22.4L155.3,98.2z"/>
243
+ </g>
244
+ <g>
245
+ <g>
246
+ <path fill="#DADEDE" d="M155.3,103.5L140,112l15.3,8.6l15.3-8.6L155.3,103.5"/>
247
+ </g>
248
+ </g>
249
+ </g>
250
+ </g>
251
+ <g>
252
+ <g>
253
+ <g>
254
+ <path fill="#1D2125" d="M195.3,75.8l-20,11.2v22.4l20,11.2l20-11.2V87L195.3,75.8z"/>
255
+ </g>
256
+ <g>
257
+ <g>
258
+ <path fill="#DADEDE" d="M195.3,81.1L180,89.6l15.3,8.6l15.3-8.6L195.3,81.1"/>
259
+ </g>
260
+ </g>
261
+ </g>
262
+ </g>
263
+ <g>
264
+ <g>
265
+ <g>
266
+ <path fill="#1D2125" d="M215.3,87l-20,11.2v22.4l20,11.2l20-11.2V98.2L215.3,87z"/>
267
+ </g>
268
+ <g>
269
+ <g>
270
+ <path fill="#DADEDE" d="M215.3,92.3l-15.3,8.5l15.3,8.6l15.3-8.6L215.3,92.3"/>
271
+ </g>
272
+ </g>
273
+ </g>
274
+ </g>
275
+ <g>
276
+ <g>
277
+ <g>
278
+ <path fill="#1D2125" d="M195.3,98.2l-20,11.2v22.4l20,11.2l20-11.2v-22.4L195.3,98.2z"/>
279
+ </g>
280
+ <g>
281
+ <g>
282
+ <path fill="#DADEDE" d="M195.3,103.5L180,112l15.3,8.6l15.3-8.6L195.3,103.5"/>
283
+ </g>
284
+ </g>
285
+ </g>
286
+ </g>
287
+ <g>
288
+ <g>
289
+ <g>
290
+ <path fill="#1D2125" d="M175.3,109.4l-20,11.2V143l20,11.2l20-11.2v-22.4L175.3,109.4z"/>
291
+ </g>
292
+ <g>
293
+ <g>
294
+ <path fill="#DADEDE" d="M175.3,114.7l-15.3,8.5l15.3,8.6l15.3-8.6L175.3,114.7"/>
295
+ </g>
296
+ </g>
297
+ </g>
298
+ </g>
299
+ </g>
300
+ <g>
301
+ <g>
302
+ <g>
303
+ <g>
304
+ <path fill="#1D2125" d="M60,84.4L40,95.6V118l20,11.2L80,118V95.6L60,84.4z"/>
305
+ </g>
306
+ <g>
307
+ <g>
308
+ <path fill="#DADEDE" d="M60,89.7l-15.3,8.5l15.3,8.6l15.3-8.6L60,89.7"/>
309
+ </g>
310
+ </g>
311
+ </g>
312
+ </g>
313
+ <g>
314
+ <g>
315
+ <g>
316
+ <path fill="#1D2125" d="M20,106.8L0,118v22.4l20,11.2l20-11.2V118L20,106.8z"/>
317
+ </g>
318
+ <g>
319
+ <g>
320
+ <path fill="#DADEDE" d="M20,112.1l-15.3,8.5l15.3,8.6l15.3-8.6L20,112.1"/>
321
+ </g>
322
+ </g>
323
+ </g>
324
+ </g>
325
+ <g>
326
+ <g>
327
+ <g>
328
+ <path fill="#1D2125" d="M80,95.6l-20,11.2v22.4l20,11.2l20-11.2v-22.4L80,95.6z"/>
329
+ </g>
330
+ <g>
331
+ <g>
332
+ <path fill="#DADEDE" d="M80,100.9l-15.3,8.5L80,118l15.3-8.6L80,100.9"/>
333
+ </g>
334
+ </g>
335
+ </g>
336
+ </g>
337
+ <g>
338
+ <g>
339
+ <g>
340
+ <path fill="#1D2125" d="M100,106.8L80,118v22.4l20,11.2l20-11.2V118L100,106.8z"/>
341
+ </g>
342
+ <g>
343
+ <g>
344
+ <path fill="#DADEDE" d="M100,112.1l-15.3,8.5l15.3,8.6l15.3-8.6L100,112.1"/>
345
+ </g>
346
+ </g>
347
+ </g>
348
+ </g>
349
+ <g>
350
+ <g>
351
+ <g>
352
+ <path fill="#1D2125" d="M40,118l-20,11.2v22.4l20,11.2l20-11.2v-22.4L40,118z"/>
353
+ </g>
354
+ <g>
355
+ <g>
356
+ <path fill="#DADEDE" d="M40,123.3l-15.3,8.5l15.3,8.6l15.3-8.6L40,123.3"/>
357
+ </g>
358
+ </g>
359
+ </g>
360
+ </g>
361
+ <g>
362
+ <g>
363
+ <g>
364
+ <path fill="#1D2125" d="M80,118l-20,11.2v22.4l20,11.2l20-11.2v-22.4L80,118z"/>
365
+ </g>
366
+ <g>
367
+ <g>
368
+ <path fill="#DADEDE" d="M80,123.3l-15.3,8.5l15.3,8.6l15.3-8.6L80,123.3"/>
369
+ </g>
370
+ </g>
371
+ </g>
372
+ </g>
373
+ <g>
374
+ <g>
375
+ <g>
376
+ <path fill="#1D2125" d="M60,129.2l-20,11.2v22.4L60,174l20-11.2v-22.4L60,129.2z"/>
377
+ </g>
378
+ <g>
379
+ <g>
380
+ <path fill="#DADEDE" d="M60,134.5L44.7,143l15.3,8.6l15.3-8.6L60,134.5"/>
381
+ </g>
382
+ </g>
383
+ </g>
384
+ </g>
385
+ <g>
386
+ <g>
387
+ <g>
388
+ <path fill="#1D2125" d="M120,118l-20,11.2v22.4l20,11.2l20-11.2v-22.4L120,118z"/>
389
+ </g>
390
+ <g>
391
+ <g>
392
+ <path fill="#DADEDE" d="M120,123.3l-15.3,8.5l15.3,8.6l15.3-8.6L120,123.3"/>
393
+ </g>
394
+ </g>
395
+ </g>
396
+ </g>
397
+ <g>
398
+ <g>
399
+ <g>
400
+ <path fill="#1D2125" d="M140,129.2l-20,11.2v22.4l20,11.2l20-11.2v-22.4L140,129.2z"/>
401
+ </g>
402
+ <g>
403
+ <g>
404
+ <path fill="#DADEDE" d="M140,134.5l-15.3,8.5l15.3,8.6l15.3-8.6L140,134.5"/>
405
+ </g>
406
+ </g>
407
+ </g>
408
+ </g>
409
+ </g>
410
+ </svg>