calabash_drishyam 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE +21 -0
  8. data/README.md +41 -0
  9. data/Rakefile +6 -0
  10. data/bin/.DS_Store +0 -0
  11. data/bin/calabash_drishyam +29 -0
  12. data/calabash_drishyam.gemspec +35 -0
  13. data/calabash_drishyam.output +1113 -0
  14. data/lib/.DS_Store +0 -0
  15. data/lib/calabash_drishyam.rb +43 -0
  16. data/lib/calabash_drishyam/.DS_Store +0 -0
  17. data/lib/calabash_drishyam/assets/bg.gif +0 -0
  18. data/lib/calabash_drishyam/assets/bullet.gif +0 -0
  19. data/lib/calabash_drishyam/assets/calabash_inspector.js +22 -0
  20. data/lib/calabash_drishyam/assets/calabash_symbiote_screenshot_92.png +0 -0
  21. data/lib/calabash_drishyam/assets/footerbg.gif +0 -0
  22. data/lib/calabash_drishyam/assets/headerbg.gif +0 -0
  23. data/lib/calabash_drishyam/assets/query.json +1 -0
  24. data/lib/calabash_drishyam/assets/spy.jpg +0 -0
  25. data/lib/calabash_drishyam/assets/style.css +338 -0
  26. data/lib/calabash_drishyam/assets/tableft.gif +0 -0
  27. data/lib/calabash_drishyam/assets/tabright.gif +0 -0
  28. data/lib/calabash_drishyam/images/.DS_Store +0 -0
  29. data/lib/calabash_drishyam/images/.keep +0 -0
  30. data/lib/calabash_drishyam/images/Image_1.png +0 -0
  31. data/lib/calabash_drishyam/images/bg.gif +0 -0
  32. data/lib/calabash_drishyam/images/bullet.gif +0 -0
  33. data/lib/calabash_drishyam/images/footerbg.gif +0 -0
  34. data/lib/calabash_drishyam/images/headerbg.gif +0 -0
  35. data/lib/calabash_drishyam/images/query.json +1 -0
  36. data/lib/calabash_drishyam/images/spy.jpg +0 -0
  37. data/lib/calabash_drishyam/images/tableft.gif +0 -0
  38. data/lib/calabash_drishyam/images/tabright.gif +0 -0
  39. data/lib/calabash_drishyam/javascripts/.DS_Store +0 -0
  40. data/lib/calabash_drishyam/javascripts/application.js +16 -0
  41. data/lib/calabash_drishyam/javascripts/calabash_inspector.js +25 -0
  42. data/lib/calabash_drishyam/stylesheets/.DS_Store +0 -0
  43. data/lib/calabash_drishyam/stylesheets/style.css +122 -0
  44. data/lib/calabash_drishyam/stylesheets/style1.scss +345 -0
  45. data/lib/calabash_drishyam/version.rb +3 -0
  46. data/lib/calabash_drishyam/views/home.erb +97 -0
  47. data/lib/calabash_drishyam/views/layout.erb +28 -0
  48. metadata +219 -0
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,25 @@
1
+ function highlightViewInScreenShot(image_path, x, y, width, height)
2
+ {
3
+
4
+ var newImg = new Image();
5
+ newImg.onload = function() {
6
+
7
+ var canvas = document.getElementById('canvas');
8
+ var context = canvas.getContext("2d");
9
+
10
+ context.clearRect ( 0 , 0 , canvas.width, canvas.height );
11
+
12
+ canvas.width = 320;
13
+ canvas.height = 568;
14
+ context.drawImage(this,0,0,this.width,this.height,0,0,320,568)
15
+ context.globalAlpha = 0.3;
16
+ context.fillStyle = "green";
17
+ context.fillRect(x, y, width, height);
18
+ context.stroke();
19
+
20
+ }
21
+
22
+ newImg.src = image_path;
23
+
24
+ }
25
+
@@ -0,0 +1,122 @@
1
+ body {
2
+ margin: 35px auto;
3
+ width: 640px;
4
+ color: #009933;
5
+ background-image: url("bg3.png");
6
+ }
7
+
8
+ header {
9
+ text-align: center;
10
+ margin: 0 0 20px;
11
+ }
12
+
13
+ header h1 {
14
+ text-shadow: 1px 0px #eee, 0px 0.5px #ccc,
15
+ 2px 1px #eee, 1px 2px #ccc,
16
+ 3px 2px #eee, 2px 3px #ccc,
17
+ 4px 3px #eee, 3px 4px #ccc,
18
+ 5px 4px #eee, 4px 5px #ccc,
19
+ 6px 5px #eee, 5px 6px #ccc,
20
+ 7px 6px #eee, 6px 7px #ccc,
21
+ 8px 7px #eee, 7px 8px #ccc,
22
+ 8px 8px #eee;
23
+ font-size:40px;
24
+ }
25
+
26
+ header h1 a:link, header h1 a:visited {
27
+ color: #33CC33;
28
+ text-decoration: none;
29
+ }
30
+
31
+ header h2 {
32
+ font-size: 16px;
33
+ font-style: italic;
34
+ color: #333300;
35
+ }
36
+
37
+ #main {
38
+ margin: 0 0 20px;
39
+ }
40
+
41
+ #add {
42
+ margin: 0 0 20px;
43
+ }
44
+
45
+ #add textarea {
46
+ height: 30px;
47
+ width: 510px;
48
+ padding: 10px;
49
+ border: 1px solid #ddd;
50
+ }
51
+
52
+ #add input {
53
+ height: 50px;
54
+ width: 100px;
55
+ margin: -50px 0 0;
56
+ border: 1px solid #ddd;
57
+ background: white;
58
+ }
59
+
60
+ #edit textarea {
61
+ height: 30px;
62
+ width: 480px;
63
+ padding: 10px;
64
+ border: 1px solid #ddd;
65
+ }
66
+
67
+ #edit input[type=submit] {
68
+ height: 50px;
69
+ width: 100px;
70
+ margin: -50px 0 0;
71
+ border: 1px solid #ddd;
72
+ background: white;
73
+ }
74
+
75
+ #edit input[type=checkbox] {
76
+ height: 50px;
77
+ width: 20px;
78
+ }
79
+
80
+ article {
81
+ border: 1px solid #eee;
82
+ border-top: none;
83
+ padding: 15px 10px;
84
+ }
85
+
86
+ article:first-of-type {
87
+ border: 1px solid #eee;
88
+ }
89
+
90
+ article:nth-child(even) {
91
+ background: #fafafa;
92
+ }
93
+
94
+ article.complete {
95
+ background: #fedae3;
96
+ }
97
+
98
+ article span {
99
+ font-size: 0.8em;
100
+ }
101
+
102
+ p {
103
+ margin: 0 0 5px;
104
+ }
105
+
106
+ .meta {
107
+ font-size: 0.8em;
108
+ font-style: italic;
109
+ color: #333300;
110
+ }
111
+
112
+ .links {
113
+ font-size: 1.8em;
114
+ line-height: 0.8em;
115
+ float: right;
116
+ margin: -10px 0 0;
117
+ }
118
+
119
+ .links a {
120
+ display: block;
121
+ text-decoration: none;
122
+ }
@@ -0,0 +1,345 @@
1
+
2
+ /********************************************
3
+ HTML ELEMENTS
4
+ ********************************************/
5
+
6
+ /* top elements */
7
+ * { margin: 0; padding: 0; }
8
+
9
+ body {
10
+ margin: 0; padding: 0;
11
+ font: 70%/1.5 Verdana, Tahoma, Arial, Helvetica, sans-serif;
12
+ color: #333;
13
+ background: #FFF image-url("bg.gif") repeat-x;
14
+ }
15
+
16
+ /* links */
17
+ a {
18
+ color: #003366;
19
+ background-color: inherit;
20
+ text-decoration: none;
21
+ }
22
+ a:hover {
23
+ color: #CC0001;
24
+ background-color: inherit;
25
+ }
26
+
27
+ /* headers */
28
+ h1, h2, h3, pre {
29
+ font-family: Arial, 'Trebuchet MS', Sans-Serif, Sans-Serif;
30
+ font-weight: bold;
31
+ color: #333;
32
+ }
33
+ h1 {
34
+ font-size: 120%;
35
+ letter-spacing: .5px;
36
+ text-align: center
37
+ }
38
+ h2 {
39
+ font-size: 115%;
40
+ text-transform: uppercase;
41
+ }
42
+ h3 {
43
+ font-size: 115%;
44
+ color: #003366;
45
+ }
46
+ pre {
47
+ font-size: 115%;
48
+ color: #003366;
49
+ }
50
+
51
+ /* images */
52
+ img {
53
+ border: 2px solid #CCC;
54
+ }
55
+ img.float-right {
56
+ margin: 5px 0px 10px 10px;
57
+ }
58
+ img.float-left {
59
+ margin: 5px 10px 10px 0px;
60
+ }
61
+
62
+ h1, h2, h3, p {
63
+ padding: 0;
64
+ margin: 10px;
65
+ }
66
+
67
+ ul, ol {
68
+ margin: 10px 20px;
69
+ padding: 0 20px;
70
+ }
71
+
72
+ code {
73
+ margin: 10px 0;
74
+ padding: 10px;
75
+ text-align: left;
76
+ display: block;
77
+ overflow: auto;
78
+ font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace;
79
+ /* white-space: pre; */
80
+ background: #FAFAFA;
81
+ border: 1px solid #f2f2f2;
82
+ border-left: 4px solid #CC0000;
83
+ }
84
+ acronym {
85
+ cursor: help;
86
+ border-bottom: 1px solid #777;
87
+ }
88
+ blockquote {
89
+ margin: 10px;
90
+ padding: 0 0 0 32px;
91
+ background: #FAFAFA image-url("quote.gif") no-repeat 5px 10px !important;
92
+ background-position: 8px 10px;
93
+ border: 1px solid #f2f2f2;
94
+ border-left: 4px solid #CC0000;
95
+ font-weight: bold;
96
+ }
97
+
98
+ /* form elements */
99
+ form {
100
+ margin:10px; padding: 0 5px;
101
+ border: 1px solid #f2f2f2;
102
+ background-color: #FAFAFA;
103
+ }
104
+ label {
105
+ display:block;
106
+ font-weight:bold;
107
+ margin:5px 0;
108
+ }
109
+ input {
110
+ padding: 2px;
111
+ border:1px solid #eee;
112
+ font: normal 1em Verdana, sans-serif;
113
+ color:#777;
114
+ }
115
+ textarea {
116
+ width:400px;
117
+ padding:2px;
118
+ font: normal 1em Verdana, sans-serif;
119
+ border:1px solid #eee;
120
+ height:100px;
121
+ display:block;
122
+ color:#777;
123
+ }
124
+ input.button {
125
+ margin: 0;
126
+ font: bolder 12px Arial, Sans-serif;
127
+ border: 1px solid #CCC;
128
+ padding: 1px;
129
+ background: #FFF;
130
+ color: #CC0000;
131
+ }
132
+ /* search form */
133
+ form.search {
134
+ position: absolute;
135
+ top: 5px; right: 5px;
136
+ padding: 0; margin: 0;
137
+ border: none;
138
+ background-color: transparent;
139
+ }
140
+ form.search input.textbox {
141
+ margin: 0;
142
+ width: 120px;
143
+ border: 1px solid #CCC;
144
+ background: #FFF;
145
+ color: #333;
146
+ }
147
+ form.search input.searchbutton {
148
+ margin: 0;
149
+ font-size: 100%;
150
+ font-family: Arial, Sans-serif;
151
+ border: 1px solid #CCC;
152
+ background: #FFFFFF image-url("headerbg.gif") repeat-x bottom left;
153
+ padding: 1px;
154
+ font-weight: bold;
155
+ height: 23px;
156
+ color: #333;
157
+ width: 60px;
158
+ }
159
+
160
+ /**********************************
161
+ LAYOUT
162
+ ***********************************/
163
+ #wrap {
164
+ margin: 0 auto;
165
+ width: 95%;
166
+ }
167
+
168
+ /* header */
169
+ #header {
170
+ position: relative;
171
+ margin: 0; padding: 0;
172
+ height: 60px;
173
+ }
174
+
175
+ #header #logo {
176
+ position: absolute;
177
+ top: 9px; left: 5px;
178
+ font: bold 30px "trebuchet MS", Arial, Tahoma, Sans-Serif;
179
+ margin: 0; padding: 0;
180
+ letter-spacing: -1px;
181
+ color: #000;
182
+ }
183
+
184
+ #header #slogan {
185
+ position: absolute;
186
+ top: 40px; left: 90px;
187
+ font: bold 15px "trebuchet MS", Arial, Tahoma, Sans-Serif;
188
+ margin: 0; padding: 0;
189
+ letter-spacing: -1px;
190
+ color: #000;
191
+ }
192
+
193
+ #header-logo {
194
+ position: relative;
195
+ clear: both;
196
+ height: 50px;
197
+ margin: 0; padding: 0;
198
+ }
199
+ #header-logo #logo {
200
+ position: absolute;
201
+ top: 3px; left: 5px;
202
+ font: bold 30px "trebuchet MS", Arial, Tahoma, Sans-Serif;
203
+ margin: 0; padding: 0;
204
+ letter-spacing: -1px;
205
+ color: #000;
206
+ }
207
+
208
+ /* navigation tabs */
209
+ #header ul {
210
+ position: absolute;
211
+ margin:0;
212
+ list-style:none;
213
+ right:-18px ; bottom: 3px;
214
+ font: bold 13px 'Trebuchet MS', Arial, Sans-serif;
215
+ }
216
+ #header li {
217
+ display:inline;
218
+ margin:0; padding:0;
219
+ }
220
+ #header a {
221
+ float:left;
222
+ background: image-url("tableft.gif") no-repeat left top;
223
+ margin:0;
224
+ padding:0 0 0 4px;
225
+ text-decoration:none;
226
+ }
227
+ #header a span {
228
+ float:left;
229
+ display:block;
230
+ background: image-url("tabright.gif") no-repeat right top;
231
+ padding:5px 15px 4px 6px;
232
+ color:#FFF;
233
+ }
234
+ /* Commented Backslash Hack hides rule from IE5-Mac \*/
235
+ #header a span {float:none;}
236
+ /* End IE5-Mac hack */
237
+ #header a:hover span {
238
+ color:#FFF;
239
+ }
240
+ #header a:hover {
241
+ background-position:0% -42px;
242
+ }
243
+ #header a:hover span {
244
+ background-position:100% -42px;
245
+ }
246
+ #header #current a {
247
+ background-position:0% -42px;
248
+ }
249
+ #header #current a span {
250
+ background-position:100% -42px;
251
+ }
252
+
253
+ /* main column */
254
+ #main {
255
+ float: right;
256
+ margin: 0; padding: 0;
257
+ width: 65%;
258
+ }
259
+ #main h1 {
260
+ margin: 10px 0;
261
+ padding: 4px 0 4px 8px;
262
+ font-size: 105%;
263
+ color: #FFF;
264
+ text-transform: uppercase;
265
+ background-color: #CC0000;
266
+ letter-spacing: .5px;
267
+ }
268
+
269
+ #main canvas
270
+ {
271
+ margin: 20px 0;
272
+ text-align:center;
273
+
274
+ }
275
+
276
+ /* sidebar */
277
+ #sidebar {
278
+ float: left;
279
+ width: 33%;
280
+ margin: 0; padding: 0;
281
+ background-color: #FFFFFF;
282
+ }
283
+ #sidebar h1 {
284
+ margin: 10px 0 0 0;
285
+ padding: 4px 0 4px 8px;
286
+ font: bold 105% Arial, Sans-Serif;
287
+ color: #FFF;
288
+ text-transform: uppercase;
289
+ background: #333;
290
+ letter-spacing: 1px;
291
+ }
292
+ #sidebar .left-box {
293
+ border: 1px solid #EBEBEB;
294
+ margin: 0 0 5px 0;
295
+ background: #FFF;
296
+ }
297
+ #sidebar ul.sidemenu {
298
+ list-style: none;
299
+ text-align: left;
300
+ margin: 3px 0px 8px 0; padding: 0;
301
+ text-decoration: none;
302
+ }
303
+ #sidebar ul.sidemenu li {
304
+ border-bottom: 1px solid #f2f2f2;
305
+ background: image-url("bullet.gif") no-repeat 3px 20px;
306
+ padding: 3px 5px 3px 25px;
307
+ margin: 0;
308
+ }
309
+ #sidebar ul.sidemenu a {
310
+ font-weight: bolder;
311
+ padding: 3px 0px;
312
+ background: none;
313
+ }
314
+
315
+ /* footer */
316
+ .footer {
317
+ clear: both;
318
+ border-top: 1px solid #f2f2f2;
319
+ background: #FFF image-url("footerbg.gif") repeat-x;
320
+ padding: 2px 0 10px 0;
321
+ text-align: center;
322
+ line-height: 1.5em;
323
+ font-size: 95%;
324
+ }
325
+ .footer a {
326
+ text-decoration: none;
327
+ font-weight: bold;
328
+ }
329
+
330
+ /* alignment classes */
331
+ .float-left { float: left; }
332
+ .float-right { float: right; }
333
+ .align-left { text-align: left; }
334
+ .align-right { text-align: right; }
335
+
336
+ /* display and additional classes */
337
+ .clear { clear: both; }
338
+ .red { color: #CC0000; }
339
+ .white { color: #FFFFFF; }
340
+ .comments {
341
+ margin: 20px 10px 5px 10px;
342
+ padding: 3px 0;
343
+ border-bottom: 1px dashed #EFF0F1;
344
+ border-top: 1px dashed #EFF0F1;
345
+ }