amy 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,444 @@
1
+ body{
2
+ font-family: Georgia, Palatino, serif;
3
+ color: #444444;
4
+ line-height: 1;
5
+ background-color: #fff;
6
+ margin: 0;
7
+ }
8
+
9
+ #page {
10
+ width: 100%;
11
+ }
12
+
13
+ #header {
14
+ background-color: #89bf04;
15
+ height: 10%;
16
+ display: table;
17
+ width: 100%;
18
+ }
19
+
20
+ #header .title {
21
+ display: table-cell;
22
+ font-family: 'Fredoka One', cursive;
23
+ color: #b10e2b;
24
+ -moz-user-select: none;
25
+ -khtml-user-select: none;
26
+ -webkit-user-select: none;
27
+ -o-user-select: none;
28
+ padding-left: 10%;
29
+ padding-top: 5px;
30
+ width: 40%;
31
+ }
32
+ #header h1 {
33
+ font-size: 1.5em;
34
+ padding: 0;
35
+ margin: 0;
36
+ }
37
+
38
+ #header h4 {
39
+ font-size: 0.9em;
40
+ padding: 0;
41
+ margin: 0;
42
+ margin-bottom: 5px;
43
+ }
44
+
45
+ #header #selector {
46
+ display: table-cell;
47
+ width: 60%;
48
+ }
49
+
50
+ #header #selector input {
51
+ width: 50%;
52
+ }
53
+
54
+ .resources {
55
+ margin-left: 10%;
56
+ padding-top: 15px;
57
+ margin-right: 10%;
58
+ }
59
+ .resource {
60
+ display: table;
61
+ width: 100%;
62
+ border-top:1px solid #000;
63
+ height: 30px;
64
+ padding-top: 5px;
65
+ }
66
+
67
+ .resource .name {
68
+ display: table-cell;
69
+ width: 25%;
70
+ }
71
+ .resource .title {
72
+ display: table-cell;
73
+ width: 40%;
74
+ }
75
+ .resource .name a {
76
+ color: #999999;
77
+ font-size: 19px;
78
+ font-weight: bold;
79
+ font-family: 'Droid Sans', sans-serif;
80
+ }
81
+ .resource .name a:hover {
82
+ color: black;
83
+ }
84
+ .resource .menu {
85
+ float: right;
86
+ color: #666666;
87
+ font-size: 0.9em;
88
+ }
89
+
90
+ .resource .menu a {
91
+ color: #666;
92
+ }
93
+ .methods {
94
+ margin-left: 5%;
95
+ -moz-user-select: none;
96
+ -khtml-user-select: none;
97
+ -webkit-user-select: none;
98
+ -o-user-select: none;
99
+ }
100
+
101
+ .methods .method {
102
+ display: table;
103
+ width: 100%;
104
+ background-color: #f9f2e9;
105
+ margin-bottom: 5px;
106
+ padding: 5px;
107
+ border: 1px solid #f9f2e9;
108
+ }
109
+ .methods .method .header {
110
+ }
111
+
112
+ .methods .method .name {
113
+ display: table-cell;
114
+ width: 50px;
115
+ font-size: 0.7em;
116
+ background-color: #10a54a;
117
+ padding: 5px;
118
+ color: white;
119
+ font-weight: bold;
120
+ border-radius: 2px;
121
+ -moz-border-radius: 2px;
122
+ -webkit-border-radius: 2px;
123
+ text-decoration: none;
124
+ text-transform: uppercase;
125
+ text-align: center;
126
+ }
127
+
128
+ .methods .create {
129
+ background-color: #f9f2e9;
130
+ border-color: #f0e0ca;
131
+ }
132
+ .methods .method .create {
133
+ background-color: #c5862b;
134
+ }
135
+ .methods .method.create .desc {
136
+ color: #c5862b;
137
+ }
138
+ .create h3 {
139
+ color: #c5862b;
140
+ }
141
+
142
+
143
+ .methods .put {
144
+ background-color: #f9f2e9;
145
+ border-color: #f0e0ca;
146
+ }
147
+ .methods .method .put {
148
+ background-color: #c5862b;
149
+ }
150
+ .methods .method.put .desc {
151
+ color: #c5862b;
152
+ }
153
+ .put h3 {
154
+ color: #c5862b;
155
+ }
156
+
157
+ .methods .get {
158
+ background-color: #e7f0f7;
159
+ border-color: #c3d9ec;
160
+ }
161
+ .methods .method .get {
162
+ background-color: #0f6ab4;
163
+ }
164
+ .methods .method.get .desc {
165
+ color: #0f6ab4;
166
+ }
167
+ .get h3 {
168
+ color: #0f6ab4;
169
+ }
170
+
171
+ .methods .monitor {
172
+ background-color: #e7f0f7;
173
+ border-color: #c3d9ec;
174
+ }
175
+ .methods .method .monitor {
176
+ background-color: #0f6ab4;
177
+ }
178
+ .methods .method.monitor .desc {
179
+ color: #0f6ab4;
180
+ }
181
+ .monitor h3 {
182
+ color: #0f6ab4;
183
+ }
184
+
185
+ .methods .options {
186
+ background-color: #e7f6ec;
187
+ border-color: #c3e8d1;
188
+ }
189
+ .methods .method .options {
190
+ background-color: #10a54a;
191
+ }
192
+ .methods .method.options .desc {
193
+ color: #10a54a;
194
+ }
195
+ .options h3 {
196
+ color: #10a54a;
197
+ }
198
+
199
+ .methods .delete {
200
+ background-color: #f5e8e8;
201
+ border-color: #e8c6c7;
202
+ }
203
+ .methods .method .delete {
204
+ background-color: #a41e22;
205
+ }
206
+ .methods .method.delete .desc {
207
+ color: #a41e22;
208
+ }
209
+
210
+ .delete h3 {
211
+ color: #a41e22;
212
+ }
213
+
214
+ .methods .method .url {
215
+ display: table-cell;
216
+ width: 60%;
217
+ padding-left: 10px;
218
+ }
219
+
220
+ .method .url a {
221
+ color: black;
222
+ text-decoration: none;
223
+ font-weight: bold;
224
+ }
225
+
226
+ .method .url a:hover {
227
+ text-decoration: underline;
228
+ }
229
+
230
+ .methods .method .desc {
231
+ display: table-cell;
232
+ font-size: 15px;
233
+ color: black;
234
+ width: 40%;
235
+ text-align: right;
236
+ }
237
+
238
+ .methods .content {
239
+ font-size: 0.7em !important;
240
+ margin-left: 5%;
241
+ }
242
+
243
+ .footer {
244
+ margin-top: 40px;
245
+ font-size: 0.9em;
246
+ color: #666;
247
+ display: table;
248
+ }
249
+
250
+ .footer .base_url {
251
+ display: table-cell;
252
+ padding-left: 10px;
253
+ padding-right: 10px;
254
+ }
255
+
256
+ .footer .version {
257
+ display: table-cell;
258
+ padding-left: 10px;
259
+ padding-right: 10px;
260
+ }
261
+
262
+ #body {
263
+ padding: 0px;
264
+ }
265
+
266
+ h1, h2, h3, h4, h5, p {
267
+ margin-bottom: 24px;
268
+ padding: 0;
269
+ }
270
+
271
+ h2 {
272
+ font-size: 36px;
273
+ /* The bottom margin is small. It's designed to be used with gray meta text
274
+ * below a post title. */
275
+ margin: 24px 0 6px;
276
+ }
277
+ h3 {
278
+ font-size: 24px;
279
+ }
280
+ h4 {
281
+ font-size: 21px;
282
+ }
283
+ h5 {
284
+ font-size: 18px;
285
+ margin: 0 auto;
286
+ font-family: Georgia, Palatino, serif;
287
+ color: #444444;
288
+ line-height: 1;
289
+ max-width: 960px;
290
+ padding: 30px;
291
+ }
292
+
293
+ .section {
294
+ width: 100%;
295
+ }
296
+
297
+ table.entry {
298
+ width: 100%;
299
+ font-family: 'Fredoka One', cursive;
300
+ font-size: 30px;
301
+
302
+ }
303
+
304
+ table.entry td.toggle a {
305
+ float:right;
306
+ }
307
+
308
+ table.entry .params {
309
+ color: #b10e2b;
310
+ }
311
+
312
+ table.entry .method {
313
+ color: black;
314
+ font-weight:bold;
315
+ width: 100px;
316
+ }
317
+
318
+ table.entry .content {
319
+ font-size: 18px;
320
+ padding-left: 40px;
321
+ }
322
+
323
+ code {
324
+ font-family: Consolas, Monaco, Andale Mono, monospace;
325
+ line-height: 1.5;
326
+ font-size: 13px;
327
+ background-color: white;
328
+ padding: 10px;
329
+ border: 1px #4b4b4d dotted;
330
+ border-radius: 5px;
331
+ -moz-border-radius: 5px;
332
+ -webkit-border-radius: 5px;
333
+ }
334
+
335
+ .button {
336
+ padding: 5px 10px;
337
+ display: inline;
338
+ background: #777 url(../images/button.png) repeat-x bottom;
339
+ border: none;
340
+ color: #fff;
341
+ cursor: pointer;
342
+ font-weight: bold;
343
+ border-radius: 5px;
344
+ -moz-border-radius: 5px;
345
+ -webkit-border-radius: 5px;
346
+ text-shadow: 1px 1px #666;
347
+ text-decoration: none;
348
+ }
349
+ .button:hover {
350
+ background-position: 0 -48px;
351
+ }
352
+ .button:active {
353
+ background-position: 0 top;
354
+ position: relative;
355
+ top: 1px;
356
+ padding: 6px 10px 4px;
357
+ }
358
+ .button.red { background-color: #e50000; }
359
+ .button.purple { background-color: #9400bf; }
360
+ .button.green { background-color: #58aa00; }
361
+ .button.orange { background-color: #ff9c00; }
362
+ .button.blue { background-color: #2c6da0; }
363
+ .button.black { background-color: #333; }
364
+ .button.white { background-color: #fff; color: #000; text-shadow: 1px 1px #fff; }
365
+ .button.small { font-size: 75%; padding: 3px 7px; }
366
+ .button.small:hover { background-position: 0 -50px; }
367
+ .button.small:active { padding: 4px 7px 2px; background-position: 0 top; }
368
+ .button.large { font-size: 125%; padding: 7px 12px; }
369
+ .button.large:hover { background-position: 0 -35px; }
370
+ .button.large:active { padding: 8px 12px 6px; background-position: 0 top; }
371
+
372
+ .form .field label {
373
+ font-size: 16px;
374
+ font-weight: bold;
375
+ }
376
+
377
+ .form {
378
+ display: table;
379
+ /*margin-left: 5%;*/
380
+ width: 75%;
381
+ float:right;
382
+ }
383
+
384
+ .form form a {
385
+ margin-top: 5px;
386
+ }
387
+
388
+ .form form {
389
+ display: table-cell;
390
+ width: 20%;
391
+ float: left;
392
+ }
393
+ .output {
394
+ display: table-cell;
395
+ width: 75%;
396
+ height: 200px;
397
+ float: right;
398
+ }
399
+
400
+ .navigation_bar {
401
+ display: inline;
402
+ -moz-user-select: none;
403
+ -khtml-user-select: none;
404
+ -webkit-user-select: none;
405
+ -o-user-select: none;
406
+ }
407
+
408
+ .navigation_bar li {
409
+ list-style: none;
410
+ display: block;
411
+ float: left;
412
+ margin-top: 3px;
413
+ }
414
+
415
+ .navigation_bar li > a{
416
+ text-shadow: 0 2px 1px rgba(0,0,0,0.5);
417
+ display: block;
418
+ text-decoration: none;
419
+ color: #f0f0f0;
420
+ font-size: 1em;
421
+ margin: 0 .5em;
422
+ }
423
+
424
+ .navigation_bar li h3 {
425
+ text-shadow: 0 2px 1px rgba(0,0,0,0.5);
426
+ display: block;
427
+ text-decoration: none;
428
+ color: #f0f0f0;
429
+ font-size: 1em;
430
+ margin: 0 .5em;
431
+ }
432
+
433
+ .navigation_bar li a:hover {
434
+ margin-top: 2px;
435
+ }
436
+ #navigation_container {
437
+ margin: 0 auto;
438
+ }
439
+
440
+ .navmenu {
441
+ height: 25px;
442
+ background-color: #89bf04;
443
+ margin-top: -15px;
444
+ }
metadata ADDED
@@ -0,0 +1,205 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Pere Urbon-Bayes
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: maruku
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: shoulda
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rdoc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jeweler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.8.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 1.8.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: uglifier
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: json
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: maruku
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Our REST API stenographer
154
+ email: pere.urbon@gmail.com
155
+ executables:
156
+ - amy
157
+ extensions: []
158
+ extra_rdoc_files:
159
+ - LICENSE.txt
160
+ - README.markdown
161
+ files:
162
+ - lib/amy.rb
163
+ - lib/amy/generate.rb
164
+ - lib/amy/parser.rb
165
+ - lib/amy/parser/defs.rb
166
+ - lib/amy/parser/lexer.rb
167
+ - lib/amy/parser/parser.rb
168
+ - lib/amy/parser/tokens.rb
169
+ - lib/amy/templates/main.rb
170
+ - views/js/amy.coffee
171
+ - views/js/amy.js
172
+ - views/js/amy.min.js
173
+ - views/js/form.coffee
174
+ - views/js/resource.coffee
175
+ - views/js/utils.coffee
176
+ - views/main.erb.html
177
+ - views/style/style.css
178
+ - LICENSE.txt
179
+ - README.markdown
180
+ - bin/amy
181
+ homepage: http://github.com/purbon/amy
182
+ licenses:
183
+ - MIT
184
+ metadata: {}
185
+ post_install_message:
186
+ rdoc_options: []
187
+ require_paths:
188
+ - lib
189
+ required_ruby_version: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - '>='
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ required_rubygems_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ requirements: []
200
+ rubyforge_project:
201
+ rubygems_version: 2.0.3
202
+ signing_key:
203
+ specification_version: 4
204
+ summary: Amy is the REST api stenographer
205
+ test_files: []