snowman-io 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/README.md +3 -17
  4. data/bin/snowman +1 -0
  5. data/lib/snowman-io/api/public/README.md +36 -0
  6. data/lib/snowman-io/api/public/bootstrap/css/bootstrap-theme.css +470 -0
  7. data/lib/snowman-io/api/public/bootstrap/css/bootstrap-theme.css.map +1 -0
  8. data/lib/snowman-io/api/public/bootstrap/css/bootstrap-theme.min.css +5 -0
  9. data/lib/snowman-io/api/public/bootstrap/css/bootstrap.css +6332 -0
  10. data/lib/snowman-io/api/public/bootstrap/css/bootstrap.css.map +1 -0
  11. data/lib/snowman-io/api/public/bootstrap/css/bootstrap.min.css +5 -0
  12. data/lib/snowman-io/api/public/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  13. data/lib/snowman-io/api/public/bootstrap/fonts/glyphicons-halflings-regular.svg +229 -0
  14. data/lib/snowman-io/api/public/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  15. data/lib/snowman-io/api/public/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  16. data/lib/snowman-io/api/public/bootstrap/js/bootstrap.js +2320 -0
  17. data/lib/snowman-io/api/public/bootstrap/js/bootstrap.min.js +7 -0
  18. data/lib/snowman-io/api/public/bootstrap/js/npm.js +13 -0
  19. data/lib/snowman-io/api/public/css/normalize.css +406 -0
  20. data/lib/snowman-io/api/public/css/style.css +4 -0
  21. data/lib/snowman-io/api/public/js/app.js +13 -0
  22. data/lib/snowman-io/api/public/js/libs/ember-1.8.1.js +49740 -0
  23. data/lib/snowman-io/api/public/js/libs/handlebars-v1.3.0.js +2746 -0
  24. data/lib/snowman-io/api/public/js/libs/jquery-1.10.2.js +9789 -0
  25. data/lib/snowman-io/api/public/tests/runner.css +14 -0
  26. data/lib/snowman-io/api/public/tests/runner.js +13 -0
  27. data/lib/snowman-io/api/public/tests/tests.js +30 -0
  28. data/lib/snowman-io/api/public/tests/vendor/qunit-1.12.0.css +244 -0
  29. data/lib/snowman-io/api/public/tests/vendor/qunit-1.12.0.js +2212 -0
  30. data/lib/snowman-io/api/views/index.erb +26 -0
  31. data/lib/snowman-io/api/views/layout.erb +24 -0
  32. data/lib/snowman-io/api/views/login.erb +21 -0
  33. data/lib/snowman-io/api/views/unpacking.erb +21 -0
  34. data/lib/snowman-io/api.rb +61 -1
  35. data/lib/snowman-io/check.rb +49 -0
  36. data/lib/snowman-io/check_result.rb +15 -0
  37. data/lib/snowman-io/checks/hosted_graphite.rb +23 -0
  38. data/lib/snowman-io/handler.rb +27 -0
  39. data/lib/snowman-io/launcher.rb +24 -0
  40. data/lib/snowman-io/notifiers/slack.rb +76 -0
  41. data/lib/snowman-io/options.rb +3 -14
  42. data/lib/snowman-io/processor.rb +32 -0
  43. data/lib/snowman-io/scheduler.rb +42 -0
  44. data/lib/snowman-io/version.rb +1 -1
  45. data/lib/snowman-io.rb +34 -5
  46. data/snowman-io.gemspec +9 -2
  47. metadata +131 -10
@@ -0,0 +1,14 @@
1
+ #ember-testing-container {
2
+ position: absolute;
3
+ bottom: 0;
4
+ right: 0;
5
+ width: 640px;
6
+ height: 384px;
7
+ overflow: auto;
8
+ z-index: 9999;
9
+ border: 1px solid #ccc;
10
+ background: white;
11
+ }
12
+ #ember-testing {
13
+ zoom: 50%;
14
+ }
@@ -0,0 +1,13 @@
1
+ if (window.location.search.indexOf("?test") !== -1) {
2
+ document.write(
3
+ '<div id="qunit"></div>' +
4
+ '<div id="qunit-fixture"></div>' +
5
+ '<div id="ember-testing-container">' +
6
+ ' <div id="ember-testing"></div>' +
7
+ '</div>' +
8
+ '<link rel="stylesheet" href="tests/runner.css">' +
9
+ '<link rel="stylesheet" href="tests/vendor/qunit-1.12.0.css">' +
10
+ '<script src="tests/vendor/qunit-1.12.0.js"></script>' +
11
+ '<script src="tests/tests.js"></script>'
12
+ )
13
+ }
@@ -0,0 +1,30 @@
1
+ // in order to see the app running inside the QUnit runner
2
+ App.rootElement = '#ember-testing';
3
+
4
+ // Common test setup
5
+ App.setupForTesting();
6
+ App.injectTestHelpers();
7
+
8
+ // common QUnit module declaration
9
+ module("Integration tests", {
10
+ setup: function() {
11
+ // before each test, ensure the application is ready to run.
12
+ Ember.run(App, App.advanceReadiness);
13
+ },
14
+
15
+ teardown: function() {
16
+ // reset the application state between each test
17
+ App.reset();
18
+ }
19
+ });
20
+
21
+ // QUnit test case
22
+ test("/", function() {
23
+ // async helper telling the application to go to the '/' route
24
+ visit("/");
25
+
26
+ // helper waiting the application is idle before running the callback
27
+ andThen(function() {
28
+ equal(find("h2").text(), "Welcome to SnowmanIO", "Application header is rendered");
29
+ });
30
+ });
@@ -0,0 +1,244 @@
1
+ /**
2
+ * QUnit v1.12.0 - A JavaScript Unit Testing Framework
3
+ *
4
+ * http://qunitjs.com
5
+ *
6
+ * Copyright 2012 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ */
10
+
11
+ /** Font Family and Sizes */
12
+
13
+ #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
14
+ font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
15
+ }
16
+
17
+ #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
18
+ #qunit-tests { font-size: smaller; }
19
+
20
+
21
+ /** Resets */
22
+
23
+ #qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
24
+ margin: 0;
25
+ padding: 0;
26
+ }
27
+
28
+
29
+ /** Header */
30
+
31
+ #qunit-header {
32
+ padding: 0.5em 0 0.5em 1em;
33
+
34
+ color: #8699a4;
35
+ background-color: #0d3349;
36
+
37
+ font-size: 1.5em;
38
+ line-height: 1em;
39
+ font-weight: normal;
40
+
41
+ border-radius: 5px 5px 0 0;
42
+ -moz-border-radius: 5px 5px 0 0;
43
+ -webkit-border-top-right-radius: 5px;
44
+ -webkit-border-top-left-radius: 5px;
45
+ }
46
+
47
+ #qunit-header a {
48
+ text-decoration: none;
49
+ color: #c2ccd1;
50
+ }
51
+
52
+ #qunit-header a:hover,
53
+ #qunit-header a:focus {
54
+ color: #fff;
55
+ }
56
+
57
+ #qunit-testrunner-toolbar label {
58
+ display: inline-block;
59
+ padding: 0 .5em 0 .1em;
60
+ }
61
+
62
+ #qunit-banner {
63
+ height: 5px;
64
+ }
65
+
66
+ #qunit-testrunner-toolbar {
67
+ padding: 0.5em 0 0.5em 2em;
68
+ color: #5E740B;
69
+ background-color: #eee;
70
+ overflow: hidden;
71
+ }
72
+
73
+ #qunit-userAgent {
74
+ padding: 0.5em 0 0.5em 2.5em;
75
+ background-color: #2b81af;
76
+ color: #fff;
77
+ text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
78
+ }
79
+
80
+ #qunit-modulefilter-container {
81
+ float: right;
82
+ }
83
+
84
+ /** Tests: Pass/Fail */
85
+
86
+ #qunit-tests {
87
+ list-style-position: inside;
88
+ }
89
+
90
+ #qunit-tests li {
91
+ padding: 0.4em 0.5em 0.4em 2.5em;
92
+ border-bottom: 1px solid #fff;
93
+ list-style-position: inside;
94
+ }
95
+
96
+ #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
97
+ display: none;
98
+ }
99
+
100
+ #qunit-tests li strong {
101
+ cursor: pointer;
102
+ }
103
+
104
+ #qunit-tests li a {
105
+ padding: 0.5em;
106
+ color: #c2ccd1;
107
+ text-decoration: none;
108
+ }
109
+ #qunit-tests li a:hover,
110
+ #qunit-tests li a:focus {
111
+ color: #000;
112
+ }
113
+
114
+ #qunit-tests li .runtime {
115
+ float: right;
116
+ font-size: smaller;
117
+ }
118
+
119
+ .qunit-assert-list {
120
+ margin-top: 0.5em;
121
+ padding: 0.5em;
122
+
123
+ background-color: #fff;
124
+
125
+ border-radius: 5px;
126
+ -moz-border-radius: 5px;
127
+ -webkit-border-radius: 5px;
128
+ }
129
+
130
+ .qunit-collapsed {
131
+ display: none;
132
+ }
133
+
134
+ #qunit-tests table {
135
+ border-collapse: collapse;
136
+ margin-top: .2em;
137
+ }
138
+
139
+ #qunit-tests th {
140
+ text-align: right;
141
+ vertical-align: top;
142
+ padding: 0 .5em 0 0;
143
+ }
144
+
145
+ #qunit-tests td {
146
+ vertical-align: top;
147
+ }
148
+
149
+ #qunit-tests pre {
150
+ margin: 0;
151
+ white-space: pre-wrap;
152
+ word-wrap: break-word;
153
+ }
154
+
155
+ #qunit-tests del {
156
+ background-color: #e0f2be;
157
+ color: #374e0c;
158
+ text-decoration: none;
159
+ }
160
+
161
+ #qunit-tests ins {
162
+ background-color: #ffcaca;
163
+ color: #500;
164
+ text-decoration: none;
165
+ }
166
+
167
+ /*** Test Counts */
168
+
169
+ #qunit-tests b.counts { color: black; }
170
+ #qunit-tests b.passed { color: #5E740B; }
171
+ #qunit-tests b.failed { color: #710909; }
172
+
173
+ #qunit-tests li li {
174
+ padding: 5px;
175
+ background-color: #fff;
176
+ border-bottom: none;
177
+ list-style-position: inside;
178
+ }
179
+
180
+ /*** Passing Styles */
181
+
182
+ #qunit-tests li li.pass {
183
+ color: #3c510c;
184
+ background-color: #fff;
185
+ border-left: 10px solid #C6E746;
186
+ }
187
+
188
+ #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
189
+ #qunit-tests .pass .test-name { color: #366097; }
190
+
191
+ #qunit-tests .pass .test-actual,
192
+ #qunit-tests .pass .test-expected { color: #999999; }
193
+
194
+ #qunit-banner.qunit-pass { background-color: #C6E746; }
195
+
196
+ /*** Failing Styles */
197
+
198
+ #qunit-tests li li.fail {
199
+ color: #710909;
200
+ background-color: #fff;
201
+ border-left: 10px solid #EE5757;
202
+ white-space: pre;
203
+ }
204
+
205
+ #qunit-tests > li:last-child {
206
+ border-radius: 0 0 5px 5px;
207
+ -moz-border-radius: 0 0 5px 5px;
208
+ -webkit-border-bottom-right-radius: 5px;
209
+ -webkit-border-bottom-left-radius: 5px;
210
+ }
211
+
212
+ #qunit-tests .fail { color: #000000; background-color: #EE5757; }
213
+ #qunit-tests .fail .test-name,
214
+ #qunit-tests .fail .module-name { color: #000000; }
215
+
216
+ #qunit-tests .fail .test-actual { color: #EE5757; }
217
+ #qunit-tests .fail .test-expected { color: green; }
218
+
219
+ #qunit-banner.qunit-fail { background-color: #EE5757; }
220
+
221
+
222
+ /** Result */
223
+
224
+ #qunit-testresult {
225
+ padding: 0.5em 0.5em 0.5em 2.5em;
226
+
227
+ color: #2b81af;
228
+ background-color: #D2E0E6;
229
+
230
+ border-bottom: 1px solid white;
231
+ }
232
+ #qunit-testresult .module-name {
233
+ font-weight: bold;
234
+ }
235
+
236
+ /** Fixture */
237
+
238
+ #qunit-fixture {
239
+ position: absolute;
240
+ top: -10000px;
241
+ left: -10000px;
242
+ width: 1000px;
243
+ height: 1000px;
244
+ }