wolas_submission 1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8b65a5f4a0cdfc91300e4f142e151baebe1cac68
4
+ data.tar.gz: 2854f1ebdc1ede2e2667e4193d2d3af8fbe905c4
5
+ SHA512:
6
+ metadata.gz: 6ca6177edaec05a39d30d266bd22453ba507ef8718372936bf8d185dd734682ed9c7430ce3adc0b9c4d62ca94ee6cfd6f2b5dd3fc8568bf7decde64557df4c4f
7
+ data.tar.gz: bada44b6980901129983353029ff7eeeda63ee6f0766a866c990cde963d3b1f1fcadd3b541f2c60b74d2e19f1ec1782fbd4e48528c7b481fe67ba07b275d8478
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format doc
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in wolas_submission.gemspec
4
+ gemspec
5
+
6
+ gem 'httparty'
7
+ gem 'byebug'
data/README.html ADDED
@@ -0,0 +1,1044 @@
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><style>body {
2
+ width: 45em;
3
+ border: 1px solid #ddd;
4
+ outline: 1300px solid #fff;
5
+ margin: 16px auto;
6
+ }
7
+
8
+ body .markdown-body
9
+ {
10
+ padding: 30px;
11
+ }
12
+
13
+ @font-face {
14
+ font-family: fontawesome-mini;
15
+ src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAzUABAAAAAAFNgAAQAAAAA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EFlLsBRSWCGwgFkdsAYrXFhZsBQrAAA=) format('woff');
16
+ }
17
+
18
+ @font-face {
19
+ font-family: octicons-anchor;
20
+ src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAYcAA0AAAAACjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABwAAAAca8vGTk9TLzIAAAFMAAAARAAAAFZG1VHVY21hcAAAAZAAAAA+AAABQgAP9AdjdnQgAAAB0AAAAAQAAAAEACICiGdhc3AAAAHUAAAACAAAAAj//wADZ2x5ZgAAAdwAAADRAAABEKyikaNoZWFkAAACsAAAAC0AAAA2AtXoA2hoZWEAAALgAAAAHAAAACQHngNFaG10eAAAAvwAAAAQAAAAEAwAACJsb2NhAAADDAAAAAoAAAAKALIAVG1heHAAAAMYAAAAHwAAACABEAB2bmFtZQAAAzgAAALBAAAFu3I9x/Nwb3N0AAAF/AAAAB0AAAAvaoFvbwAAAAEAAAAAzBdyYwAAAADP2IQvAAAAAM/bz7t4nGNgZGFgnMDAysDB1Ml0hoGBoR9CM75mMGLkYGBgYmBlZsAKAtJcUxgcPsR8iGF2+O/AEMPsznAYKMwIkgMA5REMOXicY2BgYGaAYBkGRgYQsAHyGMF8FgYFIM0ChED+h5j//yEk/3KoSgZGNgYYk4GRCUgwMaACRoZhDwCs7QgGAAAAIgKIAAAAAf//AAJ4nHWMMQrCQBBF/0zWrCCIKUQsTDCL2EXMohYGSSmorScInsRGL2DOYJe0Ntp7BK+gJ1BxF1stZvjz/v8DRghQzEc4kIgKwiAppcA9LtzKLSkdNhKFY3HF4lK69ExKslx7Xa+vPRVS43G98vG1DnkDMIBUgFN0MDXflU8tbaZOUkXUH0+U27RoRpOIyCKjbMCVejwypzJJG4jIwb43rfl6wbwanocrJm9XFYfskuVC5K/TPyczNU7b84CXcbxks1Un6H6tLH9vf2LRnn8Ax7A5WQAAAHicY2BkYGAA4teL1+yI57f5ysDNwgAC529f0kOmWRiYVgEpDgYmEA8AUzEKsQAA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MLDmZedkABtIBygAAAA==) format('woff');
21
+ }
22
+
23
+ .markdown-body {
24
+ font-family: sans-serif;
25
+ -ms-text-size-adjust: 100%;
26
+ -webkit-text-size-adjust: 100%;
27
+ color: #333333;
28
+ overflow: hidden;
29
+ font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
30
+ font-size: 16px;
31
+ line-height: 1.6;
32
+ word-wrap: break-word;
33
+ }
34
+
35
+ .markdown-body a {
36
+ background: transparent;
37
+ }
38
+
39
+ .markdown-body a:active,
40
+ .markdown-body a:hover {
41
+ outline: 0;
42
+ }
43
+
44
+ .markdown-body b,
45
+ .markdown-body strong {
46
+ font-weight: bold;
47
+ }
48
+
49
+ .markdown-body mark {
50
+ background: #ff0;
51
+ color: #000;
52
+ font-style: italic;
53
+ font-weight: bold;
54
+ }
55
+
56
+ .markdown-body sub,
57
+ .markdown-body sup {
58
+ font-size: 75%;
59
+ line-height: 0;
60
+ position: relative;
61
+ vertical-align: baseline;
62
+ }
63
+ .markdown-body sup {
64
+ top: -0.5em;
65
+ }
66
+ .markdown-body sub {
67
+ bottom: -0.25em;
68
+ }
69
+
70
+ .markdown-body h1 {
71
+ font-size: 2em;
72
+ margin: 0.67em 0;
73
+ }
74
+
75
+ .markdown-body img {
76
+ border: 0;
77
+ }
78
+
79
+ .markdown-body hr {
80
+ -moz-box-sizing: content-box;
81
+ box-sizing: content-box;
82
+ height: 0;
83
+ }
84
+
85
+ .markdown-body pre {
86
+ overflow: auto;
87
+ }
88
+
89
+ .markdown-body code,
90
+ .markdown-body kbd,
91
+ .markdown-body pre,
92
+ .markdown-body samp {
93
+ font-family: monospace, monospace;
94
+ font-size: 1em;
95
+ }
96
+
97
+ .markdown-body input {
98
+ color: inherit;
99
+ font: inherit;
100
+ margin: 0;
101
+ }
102
+
103
+ .markdown-body html input[disabled] {
104
+ cursor: default;
105
+ }
106
+
107
+ .markdown-body input {
108
+ line-height: normal;
109
+ }
110
+
111
+ .markdown-body input[type="checkbox"] {
112
+ box-sizing: border-box;
113
+ padding: 0;
114
+ }
115
+
116
+ .markdown-body table {
117
+ border-collapse: collapse;
118
+ border-spacing: 0;
119
+ }
120
+
121
+ .markdown-body td,
122
+ .markdown-body th {
123
+ padding: 0;
124
+ }
125
+
126
+ .markdown-body .codehilitetable {
127
+ border: 0;
128
+ border-spacing: 0;
129
+ }
130
+
131
+ .markdown-body .codehilitetable tr {
132
+ border: 0;
133
+ }
134
+
135
+ .markdown-body .codehilitetable pre,
136
+ .markdown-body .codehilitetable div.codehilite {
137
+ margin: 0;
138
+ }
139
+
140
+ .markdown-body .linenos,
141
+ .markdown-body .code,
142
+ .markdown-body .codehilitetable td {
143
+ border: 0;
144
+ padding: 0;
145
+ }
146
+
147
+ .markdown-body td:not(.linenos) .linenodiv {
148
+ padding: 0 !important;
149
+ }
150
+
151
+ .markdown-body .code {
152
+ width: 100%;
153
+ }
154
+
155
+ .markdown-body .linenos div pre,
156
+ .markdown-body .linenodiv pre,
157
+ .markdown-body .linenodiv {
158
+ border: 0;
159
+ -webkit-border-radius: 0;
160
+ -moz-border-radius: 0;
161
+ border-radius: 0;
162
+ -webkit-border-top-left-radius: 3px;
163
+ -webkit-border-bottom-left-radius: 3px;
164
+ -moz-border-radius-topleft: 3px;
165
+ -moz-border-radius-bottomleft: 3px;
166
+ border-top-left-radius: 3px;
167
+ border-bottom-left-radius: 3px;
168
+ }
169
+
170
+ .markdown-body .code div pre,
171
+ .markdown-body .code div {
172
+ border: 0;
173
+ -webkit-border-radius: 0;
174
+ -moz-border-radius: 0;
175
+ border-radius: 0;
176
+ -webkit-border-top-right-radius: 3px;
177
+ -webkit-border-bottom-right-radius: 3px;
178
+ -moz-border-radius-topright: 3px;
179
+ -moz-border-radius-bottomright: 3px;
180
+ border-top-right-radius: 3px;
181
+ border-bottom-right-radius: 3px;
182
+ }
183
+
184
+ .markdown-body * {
185
+ -moz-box-sizing: border-box;
186
+ box-sizing: border-box;
187
+ }
188
+
189
+ .markdown-body input {
190
+ font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
191
+ line-height: 1.4;
192
+ }
193
+
194
+ .markdown-body a {
195
+ color: #4183c4;
196
+ text-decoration: none;
197
+ }
198
+
199
+ .markdown-body a:hover,
200
+ .markdown-body a:focus,
201
+ .markdown-body a:active {
202
+ text-decoration: underline;
203
+ }
204
+
205
+ .markdown-body hr {
206
+ height: 0;
207
+ margin: 15px 0;
208
+ overflow: hidden;
209
+ background: transparent;
210
+ border: 0;
211
+ border-bottom: 1px solid #ddd;
212
+ }
213
+
214
+ .markdown-body hr:before,
215
+ .markdown-body hr:after {
216
+ display: table;
217
+ content: " ";
218
+ }
219
+
220
+ .markdown-body hr:after {
221
+ clear: both;
222
+ }
223
+
224
+ .markdown-body h1,
225
+ .markdown-body h2,
226
+ .markdown-body h3,
227
+ .markdown-body h4,
228
+ .markdown-body h5,
229
+ .markdown-body h6 {
230
+ margin-top: 15px;
231
+ margin-bottom: 15px;
232
+ line-height: 1.1;
233
+ }
234
+
235
+ .markdown-body h1 {
236
+ font-size: 30px;
237
+ }
238
+
239
+ .markdown-body h2 {
240
+ font-size: 21px;
241
+ }
242
+
243
+ .markdown-body h3 {
244
+ font-size: 16px;
245
+ }
246
+
247
+ .markdown-body h4 {
248
+ font-size: 14px;
249
+ }
250
+
251
+ .markdown-body h5 {
252
+ font-size: 12px;
253
+ }
254
+
255
+ .markdown-body h6 {
256
+ font-size: 11px;
257
+ }
258
+
259
+ .markdown-body blockquote {
260
+ margin: 0;
261
+ }
262
+
263
+ .markdown-body ul,
264
+ .markdown-body ol {
265
+ padding: 0;
266
+ margin-top: 0;
267
+ margin-bottom: 0;
268
+ }
269
+
270
+ .markdown-body ol ol,
271
+ .markdown-body ul ol {
272
+ list-style-type: lower-roman;
273
+ }
274
+
275
+ .markdown-body ul ul ol,
276
+ .markdown-body ul ol ol,
277
+ .markdown-body ol ul ol,
278
+ .markdown-body ol ol ol {
279
+ list-style-type: lower-alpha;
280
+ }
281
+
282
+ .markdown-body dd {
283
+ margin-left: 0;
284
+ }
285
+
286
+ .markdown-body code,
287
+ .markdown-body pre,
288
+ .markdown-body samp {
289
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
290
+ font-size: 12px;
291
+ }
292
+
293
+ .markdown-body pre {
294
+ margin-top: 0;
295
+ margin-bottom: 0;
296
+ }
297
+
298
+ .markdown-body kbd {
299
+ background-color: #e7e7e7;
300
+ background-image: -moz-linear-gradient(#fefefe, #e7e7e7);
301
+ background-image: -webkit-linear-gradient(#fefefe, #e7e7e7);
302
+ background-image: linear-gradient(#fefefe, #e7e7e7);
303
+ background-repeat: repeat-x;
304
+ border-radius: 2px;
305
+ border: 1px solid #cfcfcf;
306
+ color: #000;
307
+ padding: 3px 5px;
308
+ line-height: 10px;
309
+ font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
310
+ display: inline-block;
311
+ }
312
+
313
+ .markdown-body>*:first-child {
314
+ margin-top: 0 !important;
315
+ }
316
+
317
+ .markdown-body>*:last-child {
318
+ margin-bottom: 0 !important;
319
+ }
320
+
321
+ .markdown-body .headeranchor-link {
322
+ position: absolute;
323
+ top: 0;
324
+ bottom: 0;
325
+ left: 0;
326
+ display: block;
327
+ padding-right: 6px;
328
+ padding-left: 30px;
329
+ margin-left: -30px;
330
+ }
331
+
332
+ .markdown-body .headeranchor-link:focus {
333
+ outline: none;
334
+ }
335
+
336
+ .markdown-body h1,
337
+ .markdown-body h2,
338
+ .markdown-body h3,
339
+ .markdown-body h4,
340
+ .markdown-body h5,
341
+ .markdown-body h6 {
342
+ position: relative;
343
+ margin-top: 1em;
344
+ margin-bottom: 16px;
345
+ font-weight: bold;
346
+ line-height: 1.4;
347
+ }
348
+
349
+ .markdown-body h1 .headeranchor,
350
+ .markdown-body h2 .headeranchor,
351
+ .markdown-body h3 .headeranchor,
352
+ .markdown-body h4 .headeranchor,
353
+ .markdown-body h5 .headeranchor,
354
+ .markdown-body h6 .headeranchor {
355
+ display: none;
356
+ color: #000;
357
+ vertical-align: middle;
358
+ }
359
+
360
+ .markdown-body h1:hover .headeranchor-link,
361
+ .markdown-body h2:hover .headeranchor-link,
362
+ .markdown-body h3:hover .headeranchor-link,
363
+ .markdown-body h4:hover .headeranchor-link,
364
+ .markdown-body h5:hover .headeranchor-link,
365
+ .markdown-body h6:hover .headeranchor-link {
366
+ height: 1em;
367
+ padding-left: 8px;
368
+ margin-left: -30px;
369
+ line-height: 1;
370
+ text-decoration: none;
371
+ }
372
+
373
+ .markdown-body h1:hover .headeranchor-link .headeranchor,
374
+ .markdown-body h2:hover .headeranchor-link .headeranchor,
375
+ .markdown-body h3:hover .headeranchor-link .headeranchor,
376
+ .markdown-body h4:hover .headeranchor-link .headeranchor,
377
+ .markdown-body h5:hover .headeranchor-link .headeranchor,
378
+ .markdown-body h6:hover .headeranchor-link .headeranchor {
379
+ display: inline-block;
380
+ }
381
+
382
+ .markdown-body h1 {
383
+ padding-bottom: 0.3em;
384
+ font-size: 2.25em;
385
+ line-height: 1.2;
386
+ border-bottom: 1px solid #eee;
387
+ }
388
+
389
+ .markdown-body h2 {
390
+ padding-bottom: 0.3em;
391
+ font-size: 1.75em;
392
+ line-height: 1.225;
393
+ border-bottom: 1px solid #eee;
394
+ }
395
+
396
+ .markdown-body h3 {
397
+ font-size: 1.5em;
398
+ line-height: 1.43;
399
+ }
400
+
401
+ .markdown-body h4 {
402
+ font-size: 1.25em;
403
+ }
404
+
405
+ .markdown-body h5 {
406
+ font-size: 1em;
407
+ }
408
+
409
+ .markdown-body h6 {
410
+ font-size: 1em;
411
+ color: #777;
412
+ }
413
+
414
+ .markdown-body p,
415
+ .markdown-body blockquote,
416
+ .markdown-body ul,
417
+ .markdown-body ol,
418
+ .markdown-body dl,
419
+ .markdown-body table,
420
+ .markdown-body pre,
421
+ .markdown-body .admonition {
422
+ margin-top: 0;
423
+ margin-bottom: 16px;
424
+ }
425
+
426
+ .markdown-body hr {
427
+ height: 4px;
428
+ padding: 0;
429
+ margin: 16px 0;
430
+ background-color: #e7e7e7;
431
+ border: 0 none;
432
+ }
433
+
434
+ .markdown-body ul,
435
+ .markdown-body ol {
436
+ padding-left: 2em;
437
+ }
438
+
439
+ .markdown-body ul ul,
440
+ .markdown-body ul ol,
441
+ .markdown-body ol ol,
442
+ .markdown-body ol ul {
443
+ margin-top: 0;
444
+ margin-bottom: 0;
445
+ }
446
+
447
+ .markdown-body li>p {
448
+ margin-top: 16px;
449
+ }
450
+
451
+ .markdown-body dl {
452
+ padding: 0;
453
+ }
454
+
455
+ .markdown-body dl dt {
456
+ padding: 0;
457
+ margin-top: 16px;
458
+ font-size: 1em;
459
+ font-style: italic;
460
+ font-weight: bold;
461
+ }
462
+
463
+ .markdown-body dl dd {
464
+ padding: 0 16px;
465
+ margin-bottom: 16px;
466
+ }
467
+
468
+ .markdown-body blockquote {
469
+ padding: 0 15px;
470
+ color: #777;
471
+ border-left: 4px solid #ddd;
472
+ }
473
+
474
+ .markdown-body blockquote>:first-child {
475
+ margin-top: 0;
476
+ }
477
+
478
+ .markdown-body blockquote>:last-child {
479
+ margin-bottom: 0;
480
+ }
481
+
482
+ .markdown-body table {
483
+ display: block;
484
+ width: 100%;
485
+ overflow: auto;
486
+ word-break: normal;
487
+ word-break: keep-all;
488
+ }
489
+
490
+ .markdown-body table th {
491
+ font-weight: bold;
492
+ }
493
+
494
+ .markdown-body table th,
495
+ .markdown-body table td {
496
+ padding: 6px 13px;
497
+ border: 1px solid #ddd;
498
+ }
499
+
500
+ .markdown-body table tr {
501
+ background-color: #fff;
502
+ border-top: 1px solid #ccc;
503
+ }
504
+
505
+ .markdown-body table tr:nth-child(2n) {
506
+ background-color: #f8f8f8;
507
+ }
508
+
509
+ .markdown-body img {
510
+ max-width: 100%;
511
+ -moz-box-sizing: border-box;
512
+ box-sizing: border-box;
513
+ }
514
+
515
+ .markdown-body code,
516
+ .markdown-body samp {
517
+ padding: 0;
518
+ padding-top: 0.2em;
519
+ padding-bottom: 0.2em;
520
+ margin: 0;
521
+ font-size: 85%;
522
+ background-color: rgba(0,0,0,0.04);
523
+ border-radius: 3px;
524
+ }
525
+
526
+ .markdown-body code:before,
527
+ .markdown-body code:after {
528
+ letter-spacing: -0.2em;
529
+ content: "\00a0";
530
+ }
531
+
532
+ .markdown-body pre>code {
533
+ padding: 0;
534
+ margin: 0;
535
+ font-size: 100%;
536
+ word-break: normal;
537
+ white-space: pre;
538
+ background: transparent;
539
+ border: 0;
540
+ }
541
+
542
+ .markdown-body .codehilite {
543
+ margin-bottom: 16px;
544
+ }
545
+
546
+ .markdown-body .codehilite pre,
547
+ .markdown-body pre {
548
+ padding: 16px;
549
+ overflow: auto;
550
+ font-size: 85%;
551
+ line-height: 1.45;
552
+ background-color: #f7f7f7;
553
+ border-radius: 3px;
554
+ }
555
+
556
+ .markdown-body .codehilite pre {
557
+ margin-bottom: 0;
558
+ word-break: normal;
559
+ }
560
+
561
+ .markdown-body pre {
562
+ word-wrap: normal;
563
+ }
564
+
565
+ .markdown-body pre code {
566
+ display: inline;
567
+ max-width: initial;
568
+ padding: 0;
569
+ margin: 0;
570
+ overflow: initial;
571
+ line-height: inherit;
572
+ word-wrap: normal;
573
+ background-color: transparent;
574
+ border: 0;
575
+ }
576
+
577
+ .markdown-body pre code:before,
578
+ .markdown-body pre code:after {
579
+ content: normal;
580
+ }
581
+
582
+ /* Admonition */
583
+ .markdown-body .admonition {
584
+ -webkit-border-radius: 3px;
585
+ -moz-border-radius: 3px;
586
+ position: relative;
587
+ border-radius: 3px;
588
+ border: 1px solid #e0e0e0;
589
+ border-left: 6px solid #333;
590
+ padding: 10px 10px 10px 30px;
591
+ }
592
+
593
+ .markdown-body .admonition table {
594
+ color: #333;
595
+ }
596
+
597
+ .markdown-body .admonition p {
598
+ padding: 0;
599
+ }
600
+
601
+ .markdown-body .admonition-title {
602
+ font-weight: bold;
603
+ margin: 0;
604
+ }
605
+
606
+ .markdown-body .admonition>.admonition-title {
607
+ color: #333;
608
+ }
609
+
610
+ .markdown-body .attention>.admonition-title {
611
+ color: #a6d796;
612
+ }
613
+
614
+ .markdown-body .caution>.admonition-title {
615
+ color: #d7a796;
616
+ }
617
+
618
+ .markdown-body .hint>.admonition-title {
619
+ color: #96c6d7;
620
+ }
621
+
622
+ .markdown-body .danger>.admonition-title {
623
+ color: #c25f77;
624
+ }
625
+
626
+ .markdown-body .question>.admonition-title {
627
+ color: #96a6d7;
628
+ }
629
+
630
+ .markdown-body .note>.admonition-title {
631
+ color: #d7c896;
632
+ }
633
+
634
+ .markdown-body .admonition:before,
635
+ .markdown-body .attention:before,
636
+ .markdown-body .caution:before,
637
+ .markdown-body .hint:before,
638
+ .markdown-body .danger:before,
639
+ .markdown-body .question:before,
640
+ .markdown-body .note:before {
641
+ font: normal normal 16px fontawesome-mini;
642
+ -moz-osx-font-smoothing: grayscale;
643
+ -webkit-user-select: none;
644
+ -moz-user-select: none;
645
+ -ms-user-select: none;
646
+ user-select: none;
647
+ line-height: 1.5;
648
+ color: #333;
649
+ position: absolute;
650
+ left: 0;
651
+ top: 0;
652
+ padding-top: 10px;
653
+ padding-left: 10px;
654
+ }
655
+
656
+ .markdown-body .admonition:before {
657
+ content: "\f056\00a0";
658
+ color: 333;
659
+ }
660
+
661
+ .markdown-body .attention:before {
662
+ content: "\f058\00a0";
663
+ color: #a6d796;
664
+ }
665
+
666
+ .markdown-body .caution:before {
667
+ content: "\f06a\00a0";
668
+ color: #d7a796;
669
+ }
670
+
671
+ .markdown-body .hint:before {
672
+ content: "\f05a\00a0";
673
+ color: #96c6d7;
674
+ }
675
+
676
+ .markdown-body .danger:before {
677
+ content: "\f057\00a0";
678
+ color: #c25f77;
679
+ }
680
+
681
+ .markdown-body .question:before {
682
+ content: "\f059\00a0";
683
+ color: #96a6d7;
684
+ }
685
+
686
+ .markdown-body .note:before {
687
+ content: "\f040\00a0";
688
+ color: #d7c896;
689
+ }
690
+
691
+ .markdown-body .admonition::after {
692
+ content: normal;
693
+ }
694
+
695
+ .markdown-body .attention {
696
+ border-left: 6px solid #a6d796;
697
+ }
698
+
699
+ .markdown-body .caution {
700
+ border-left: 6px solid #d7a796;
701
+ }
702
+
703
+ .markdown-body .hint {
704
+ border-left: 6px solid #96c6d7;
705
+ }
706
+
707
+ .markdown-body .danger {
708
+ border-left: 6px solid #c25f77;
709
+ }
710
+
711
+ .markdown-body .question {
712
+ border-left: 6px solid #96a6d7;
713
+ }
714
+
715
+ .markdown-body .note {
716
+ border-left: 6px solid #d7c896;
717
+ }
718
+
719
+ .markdown-body .admonition>*:first-child {
720
+ margin-top: 0 !important;
721
+ }
722
+
723
+ .markdown-body .admonition>*:last-child {
724
+ margin-bottom: 0 !important;
725
+ }
726
+
727
+ /* progress bar*/
728
+ .markdown-body .progress {
729
+ display: block;
730
+ width: 300px;
731
+ margin: 10px 0;
732
+ height: 24px;
733
+ -webkit-border-radius: 3px;
734
+ -moz-border-radius: 3px;
735
+ border-radius: 3px;
736
+ background-color: #ededed;
737
+ position: relative;
738
+ box-shadow: inset -1px 1px 3px rgba(0, 0, 0, .1);
739
+ }
740
+
741
+ .markdown-body .progress-label {
742
+ position: absolute;
743
+ text-align: center;
744
+ font-weight: bold;
745
+ width: 100%; margin: 0;
746
+ line-height: 24px;
747
+ color: #333;
748
+ text-shadow: 1px 1px 0 #fefefe, -1px -1px 0 #fefefe, -1px 1px 0 #fefefe, 1px -1px 0 #fefefe, 0 1px 0 #fefefe, 0 -1px 0 #fefefe, 1px 0 0 #fefefe, -1px 0 0 #fefefe, 1px 1px 2px #000;
749
+ -webkit-font-smoothing: antialiased !important;
750
+ white-space: nowrap;
751
+ overflow: hidden;
752
+ }
753
+
754
+ .markdown-body .progress-bar {
755
+ height: 24px;
756
+ float: left;
757
+ -webkit-border-radius: 3px;
758
+ -moz-border-radius: 3px;
759
+ border-radius: 3px;
760
+ background-color: #96c6d7;
761
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .1);
762
+ background-size: 30px 30px;
763
+ background-image: -webkit-linear-gradient(
764
+ 135deg, rgba(255, 255, 255, .4) 27%,
765
+ transparent 27%,
766
+ transparent 52%, rgba(255, 255, 255, .4) 52%,
767
+ rgba(255, 255, 255, .4) 77%,
768
+ transparent 77%, transparent
769
+ );
770
+ background-image: -moz-linear-gradient(
771
+ 135deg,
772
+ rgba(255, 255, 255, .4) 27%, transparent 27%,
773
+ transparent 52%, rgba(255, 255, 255, .4) 52%,
774
+ rgba(255, 255, 255, .4) 77%, transparent 77%,
775
+ transparent
776
+ );
777
+ background-image: -ms-linear-gradient(
778
+ 135deg,
779
+ rgba(255, 255, 255, .4) 27%, transparent 27%,
780
+ transparent 52%, rgba(255, 255, 255, .4) 52%,
781
+ rgba(255, 255, 255, .4) 77%, transparent 77%,
782
+ transparent
783
+ );
784
+ background-image: -o-linear-gradient(
785
+ 135deg,
786
+ rgba(255, 255, 255, .4) 27%, transparent 27%,
787
+ transparent 52%, rgba(255, 255, 255, .4) 52%,
788
+ rgba(255, 255, 255, .4) 77%, transparent 77%,
789
+ transparent
790
+ );
791
+ background-image: linear-gradient(
792
+ 135deg,
793
+ rgba(255, 255, 255, .4) 27%, transparent 27%,
794
+ transparent 52%, rgba(255, 255, 255, .4) 52%,
795
+ rgba(255, 255, 255, .4) 77%, transparent 77%,
796
+ transparent
797
+ );
798
+ }
799
+
800
+ .markdown-body .progress-100plus .progress-bar {
801
+ background-color: #a6d796;
802
+ }
803
+
804
+ .markdown-body .progress-80plus .progress-bar {
805
+ background-color: #c6d796;
806
+ }
807
+
808
+ .markdown-body .progress-60plus .progress-bar {
809
+ background-color: #d7c896;
810
+ }
811
+
812
+ .markdown-body .progress-40plus .progress-bar {
813
+ background-color: #d7a796;
814
+ }
815
+
816
+ .markdown-body .progress-20plus .progress-bar {
817
+ background-color: #d796a6;
818
+ }
819
+
820
+ .markdown-body .progress-0plus .progress-bar {
821
+ background-color: #c25f77;
822
+ }
823
+
824
+ .markdown-body .candystripe-animate .progress-bar{
825
+ -webkit-animation: animate-stripes 3s linear infinite;
826
+ -moz-animation: animate-stripes 3s linear infinite;
827
+ animation: animate-stripes 3s linear infinite;
828
+ }
829
+
830
+ @-webkit-keyframes animate-stripes {
831
+ 0% {
832
+ background-position: 0 0;
833
+ }
834
+
835
+ 100% {
836
+ background-position: 60px 0;
837
+ }
838
+ }
839
+
840
+ @-moz-keyframes animate-stripes {
841
+ 0% {
842
+ background-position: 0 0;
843
+ }
844
+
845
+ 100% {
846
+ background-position: 60px 0;
847
+ }
848
+ }
849
+
850
+ @keyframes animate-stripes {
851
+ 0% {
852
+ background-position: 0 0;
853
+ }
854
+
855
+ 100% {
856
+ background-position: 60px 0;
857
+ }
858
+ }
859
+
860
+ .markdown-body .gloss .progress-bar {
861
+ box-shadow:
862
+ inset 0 4px 12px rgba(255, 255, 255, .7),
863
+ inset 0 -12px 0 rgba(0, 0, 0, .05);
864
+ }
865
+
866
+ /* Multimarkdown Critic Blocks */
867
+ .markdown-body .critic_mark {
868
+ background: #ff0;
869
+ }
870
+
871
+ .markdown-body .critic_delete {
872
+ color: #c82829;
873
+ text-decoration: line-through;
874
+ }
875
+
876
+ .markdown-body .critic_insert {
877
+ color: #718c00 ;
878
+ text-decoration: underline;
879
+ }
880
+
881
+ .markdown-body .critic_comment {
882
+ color: #8e908c;
883
+ font-style: italic;
884
+ }
885
+
886
+ .markdown-body .headeranchor {
887
+ font: normal normal 16px octicons-anchor;
888
+ line-height: 1;
889
+ display: inline-block;
890
+ text-decoration: none;
891
+ -webkit-font-smoothing: antialiased;
892
+ -moz-osx-font-smoothing: grayscale;
893
+ -webkit-user-select: none;
894
+ -moz-user-select: none;
895
+ -ms-user-select: none;
896
+ user-select: none;
897
+ }
898
+
899
+ .headeranchor:before {
900
+ content: '\f05c';
901
+ }
902
+
903
+ .markdown-body .task-list-item {
904
+ list-style-type: none;
905
+ }
906
+
907
+ .markdown-body .task-list-item+.task-list-item {
908
+ margin-top: 3px;
909
+ }
910
+
911
+ .markdown-body .task-list-item input {
912
+ margin: 0 4px 0.25em -20px;
913
+ vertical-align: middle;
914
+ }
915
+
916
+ /* Media */
917
+ @media only screen and (min-width: 480px) {
918
+ .markdown-body {
919
+ font-size:14px;
920
+ }
921
+ }
922
+
923
+ @media only screen and (min-width: 768px) {
924
+ .markdown-body {
925
+ font-size:16px;
926
+ }
927
+ }
928
+
929
+ @media print {
930
+ .markdown-body * {
931
+ background: transparent !important;
932
+ color: black !important;
933
+ filter:none !important;
934
+ -ms-filter: none !important;
935
+ }
936
+
937
+ .markdown-body {
938
+ font-size:12pt;
939
+ max-width:100%;
940
+ outline:none;
941
+ border: 0;
942
+ }
943
+
944
+ .markdown-body a,
945
+ .markdown-body a:visited {
946
+ text-decoration: underline;
947
+ }
948
+
949
+ .markdown-body .headeranchor-link {
950
+ display: none;
951
+ }
952
+
953
+ .markdown-body a[href]:after {
954
+ content: " (" attr(href) ")";
955
+ }
956
+
957
+ .markdown-body abbr[title]:after {
958
+ content: " (" attr(title) ")";
959
+ }
960
+
961
+ .markdown-body .ir a:after,
962
+ .markdown-body a[href^="javascript:"]:after,
963
+ .markdown-body a[href^="#"]:after {
964
+ content: "";
965
+ }
966
+
967
+ .markdown-body pre {
968
+ white-space: pre;
969
+ white-space: pre-wrap;
970
+ word-wrap: break-word;
971
+ }
972
+
973
+ .markdown-body pre,
974
+ .markdown-body blockquote {
975
+ border: 1px solid #999;
976
+ padding-right: 1em;
977
+ page-break-inside: avoid;
978
+ }
979
+
980
+ .markdown-body .progress,
981
+ .markdown-body .progress-bar {
982
+ -moz-box-shadow: none;
983
+ -webkit-box-shadow: none;
984
+ box-shadow: none;
985
+ }
986
+
987
+ .markdown-body .progress {
988
+ border: 1px solid #ddd;
989
+ }
990
+
991
+ .markdown-body .progress-bar {
992
+ height: 22px;
993
+ border-right: 1px solid #ddd;
994
+ }
995
+
996
+ .markdown-body tr,
997
+ .markdown-body img {
998
+ page-break-inside: avoid;
999
+ }
1000
+
1001
+ .markdown-body img {
1002
+ max-width: 100% !important;
1003
+ }
1004
+
1005
+ .markdown-body p,
1006
+ .markdown-body h2,
1007
+ .markdown-body h3 {
1008
+ orphans: 3;
1009
+ widows: 3;
1010
+ }
1011
+
1012
+ .markdown-body h2,
1013
+ .markdown-body h3 {
1014
+ page-break-after: avoid;
1015
+ }
1016
+ }
1017
+ </style><title>README</title></head><body><article class="markdown-body"><h1 id="wolas_submission"><a name="user-content-wolas_submission" href="#wolas_submission" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>wolas_submission</h1>
1018
+ <p>The <code>WolasSubmissions</code> service acts as the access layer to all submission-related data serving raw json reponses</p>
1019
+ <h2 id="installation"><a name="user-content-installation" href="#installation" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Installation</h2>
1020
+ <p>Add this line to your application&rsquo;s Gemfile:</p>
1021
+ <pre><code class="ruby">gem 'wolas_submission'
1022
+ </code></pre>
1023
+
1024
+ <p>And then execute:</p>
1025
+ <p>$ bundle</p>
1026
+ <p>Or install it yourself as:</p>
1027
+ <p>$ gem install wolas_submission</p>
1028
+ <h2 id="usage"><a name="user-content-usage" href="#usage" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Usage</h2>
1029
+ <p>Initialize a new instance of the <code>WolasSubmission</code> class with the tenant_id and revolution api endpoint<br />
1030
+ <pre><code class="ruby">service = WolasSubmission.new(tenant_id, endpoint)
1031
+ response = service.get_submissions
1032
+ </code></pre></p>
1033
+ <h2 id="methods"><a name="user-content-methods" href="#methods" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Methods</h2>
1034
+ <pre><code class="ruby">
1035
+ </code></pre>
1036
+
1037
+ <h2 id="contributing"><a name="user-content-contributing" href="#contributing" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Contributing</h2>
1038
+ <ol>
1039
+ <li>Fork it ( <a href="https://github.com/[my-github-username]/wolas_submission/fork">https://github.com/[my-github-username]/wolas_submission/fork</a> )</li>
1040
+ <li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
1041
+ <li>Commit your changes (<code>git commit -am 'Add some feature'</code>)</li>
1042
+ <li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
1043
+ <li>Create a new Pull Request</li>
1044
+ </ol></article></body></html>
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # WolasSubmission
2
+
3
+ The `WolasSubmission` service acts as the access layer to all submission-related data serving raw json responses through the `HTTParty` gem.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'wolas_submission'
10
+
11
+ ## Usage
12
+
13
+ Initialize a new instance of the `WolasSubmission` class with the tenant_id and revolution api endpoint.
14
+ ```ruby
15
+ service = WolasSubmission.new(1, 'http://yourendpoint.com.au/')
16
+ response = service.some_method
17
+ ```
18
+
19
+ ## Methods
20
+ ```ruby
21
+ def get_submissions(token)
22
+ end
23
+ ```
24
+ This method responds with all submissions inner joining to answers and all child's for the given token, authorises the requested token to ensure that it belongs to the tenant_id the class was initialised with.
25
+
26
+ ## Errors
27
+ The WolasSubmission class can throw one of three errors specific to the cause of the error.
28
+
29
+ * `WolasSubmission::RequestUnsuccessful` Thrown when the HTTParty lib fails to respond with convential status codes related to the HTTP method.
30
+ * `WolasSubmission::RequestFailure` Thrown when the HTTParty lib fails to make a connection to the api endpoint, potential causes can be a malformed URI or a connection timeout.
31
+ * `WolasSubmission::RequestMalformed` Thrown when method parameters are invalid.
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/[my-github-username]/wolas_submission/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "wolas_submission"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,71 @@
1
+ require 'wolas_submission/version'
2
+ require 'httparty'
3
+
4
+ class WolasSubmission
5
+
6
+ # thrown when the HTTParty lib fails to respond with a 200 http status code
7
+ class RequestUnsuccessful < StandardError; end
8
+
9
+ # thrown when either public methods receive invalid parameters
10
+ class RequestMalformed < StandardError; end
11
+
12
+ # thrown when the HTTParty lib fails to make a successful request or
13
+ # responds with an http status code 500.
14
+ class RequestFailure < StandardError; end
15
+
16
+ # initialize the class with a tenant_id to be sent with every request made
17
+ # for identification and security purposes.
18
+ def initialize(tenant_id, endpoint)
19
+ @tenant_id = tenant_id
20
+ @endpoint = endpoint
21
+ end
22
+
23
+ # for a single token gets all submissions inner joining through to answers
24
+ # for a top-level response
25
+ def get_submissions(token)
26
+ connect("#{@endpoint}/submissionservice/submissions?token=#{token}", configure_headers)
27
+ end
28
+
29
+ private
30
+
31
+ # configures the headers required for making http requests to revolution.
32
+ # consists of Token and Tenant keys with values from initialize method.
33
+ def configure_headers
34
+ {
35
+ 'Tenant' => @tenant_id.to_s
36
+ }
37
+ end
38
+
39
+ # uses the get method to make an HTTP request to the url.
40
+ # cases the response code throwing a RequestFailure error for a 500 status
41
+ # code, or a RequestUnsuccessful for any code other than 200.
42
+ # returns the body of the get method on success.
43
+ def connect(url, headers)
44
+ result = get(url, headers)
45
+ if result[:code] == 500
46
+ response = result[:body]
47
+ raise RequestFailure, response['message'] || 'Error'
48
+ end
49
+ if result[:code] != 200
50
+ response = result[:body]
51
+ raise RequestUnsuccessful, response['message'] || 'Error'
52
+ end
53
+ result[:body]
54
+ end
55
+
56
+ # sends an HTTP request through HTTParty gem to the url with given headers.
57
+ # constructs a response object consisting of :body as the parsed_response
58
+ # from the http response, and :code as the http status code.
59
+ def get(url, headers)
60
+ begin
61
+ response = HTTParty.get(url, headers: headers)
62
+ rescue
63
+ raise RequestFailure, 'Host unreachable'
64
+ end
65
+ {
66
+ body: response.parsed_response,
67
+ code: response.code
68
+ }
69
+ end
70
+
71
+ end
@@ -0,0 +1,3 @@
1
+ class WolasSubmission
2
+ VERSION = '1.1.0'
3
+ end
data/rspec.rake ADDED
@@ -0,0 +1,5 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ RSpec::Core::RakeTask.new(:spec)
4
+
5
+ Dir.glob('tasks/**/*.rake').each(&method(:import))
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'wolas_submission/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "wolas_submission"
8
+ spec.version = WolasSubmission::VERSION
9
+ spec.authors = ["wolas"]
10
+ spec.email = ["gems@wolas.com.au"]
11
+
12
+ spec.summary = "WolasSubmission Service"
13
+ spec.description = "The WolasSubmission service acts as the access layer to all submission-related data serving raw json responses through the HTTParty gem"
14
+ spec.homepage = "https://bitbucket.org/wolas-revolution/wolas_submission"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.8"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec"
25
+ spec.add_development_dependency "byebug"
26
+ spec.add_dependency "httparty"
27
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wolas_submission
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - wolas
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
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: byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: httparty
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: The WolasSubmission service acts as the access layer to all submission-related
84
+ data serving raw json responses through the HTTParty gem
85
+ email:
86
+ - gems@wolas.com.au
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - Gemfile
95
+ - README.html
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - lib/wolas_submission.rb
101
+ - lib/wolas_submission/version.rb
102
+ - rspec.rake
103
+ - wolas_submission.gemspec
104
+ homepage: https://bitbucket.org/wolas-revolution/wolas_submission
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.4.6
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: WolasSubmission Service
128
+ test_files: []