closer 0.0.2 → 0.0.3

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: 888b571920106db6a242535d0e180b0a88bf619d
4
- data.tar.gz: a61a7eeb00eb7232e69e53b05ea590149a67b7f8
3
+ metadata.gz: 7007303ea27edbaeedcbe91bf89be0dd14385479
4
+ data.tar.gz: 315d2b17e79f879d80bd9042c2540e6c0a00b898
5
5
  SHA512:
6
- metadata.gz: bb9c3fe0c284b328759651c0d3711839b0a2fe92f335a9da400f04d375ae3bd3395bd4d83db60f6eca87b0ee92d31b8bd1c4e5780e8265f86af84a24ccfaf38e
7
- data.tar.gz: e8b2e6d86d364207dc82dac229239aa08da30fdb1c85eadb52fae3430aa291a626a2ca6d639d55c41bb5f8f885cffe745643b2ee909705ab0ffb5a97cea04a20
6
+ metadata.gz: b8c53ad87fe4fb848c207d50d3fae6ca1e685e4983466611d318110762a2d9b7e0d3b5c0bad9b81dfce7a425d99e9cf8ce8bc8903464de75d1af55d17bcc7079
7
+ data.tar.gz: 4a68cfe3d7cb3e3a9f528d3fe857ec83f442d28ecca34a70f2104fc16808398e22722d80f3722db9f4f0313839f68def2a3bb72c2280a4ce1abe11ffb0969e6f
@@ -0,0 +1,190 @@
1
+
2
+ .cucumber .scenario h3, td .scenario h3, th .scenario h3, .background h3 {
3
+ font-size: 1.2em;
4
+ margin: 0;
5
+ background: #FFFFFF;
6
+ color: #000000;
7
+ font-weight: bold;
8
+ }
9
+
10
+ .cucumber ol li.step, td ol li.step, th ol li.step {
11
+ padding: 3px 3px 3px 10px;
12
+ margin: 5px 0px 5px 1.2em;
13
+ }
14
+
15
+ .cucumber ol li.passed,
16
+ td ol li.passed,
17
+ th ol li.passed,
18
+ .scenario.outline .step.skipped {
19
+ border-left: none;
20
+ border-bottom: none;
21
+ background: #FFFFFF;
22
+ color: #000000;
23
+ }
24
+ .examples .step.passed {
25
+ border-left: solid 1px #999999;
26
+ border-bottom: solid 1px #999999;
27
+ padding-left: 10px;
28
+ padding-right: 10px;
29
+ background: #FFFFFF;
30
+ color: #000000;
31
+ }
32
+ .cucumber ol li.expand:hover, td ol li.expand:hover, th ol li.expand:hover {
33
+ background: #F0F8FF;
34
+ }
35
+
36
+ .cucumber ol li.message, td ol li.message, th ol li.message {
37
+ border-left: 5px solid #999999;
38
+ border-bottom: 1px solid #999999;
39
+ background: #F0F8FF;
40
+ color: #001111;
41
+ margin: 5px 0px 5px 1.2em;
42
+ padding: 3px 15px 3px 10px;
43
+ }
44
+
45
+ .feature_dir {
46
+ font-size: 1.2em;
47
+ font-weight: bold;
48
+ padding: 2px;
49
+ margin: 10px 10px 0px 10px;
50
+ }
51
+
52
+ div.feature_dir span {
53
+ cursor: pointer;
54
+ }
55
+
56
+ div.feature h2 {
57
+ font-size: 1.2em;
58
+ }
59
+
60
+ .step_contents {
61
+ display: none;
62
+ background: #FFFFFF;
63
+ border: solid 1px #999999;
64
+ margin-left: 1.2em;
65
+ padding: 1em;
66
+ }
67
+
68
+ div.background {
69
+ margin-left: 20px;
70
+ }
71
+
72
+ div.background ol {
73
+ margin-left: 20px;
74
+ }
75
+
76
+ div.contents {
77
+ padding-top: 10px;
78
+ }
79
+
80
+ div.feature .narrative {
81
+ margin: 1.2em;
82
+ line-height: 1.5em;
83
+ font-size: 1.2em;
84
+ }
85
+
86
+ div.feature .narrative > div {
87
+ margin-left: 10px;
88
+ }
89
+
90
+ div.feature .narrative > pre {
91
+ border: solid 1px #999999;
92
+ border-radius: 5px;
93
+ padding: 1em 0;
94
+ }
95
+
96
+ div.scenario {
97
+ margin: 10px 10px 10px 1.2em;
98
+ }
99
+
100
+ div.scenario.faild h3,
101
+ div.scenario.faild .scenario_file {
102
+ background: #C40D0D;
103
+ color: #FFFFFF;
104
+ }
105
+
106
+ div.scenario.pending h3,
107
+ div.scenario.pending .scenario_file {
108
+ background: #FAF834;
109
+ color: #000000;
110
+ }
111
+
112
+ div.scenario ol {
113
+ margin-top: 1em;
114
+ margin-left: 5px;
115
+ }
116
+
117
+ div.scenario table {
118
+ margin: 10px 0;
119
+ }
120
+
121
+ div.scenario td {
122
+ border: solid 1px #999999;
123
+ padding: 5px;
124
+ }
125
+
126
+ span.feature_subtitle {
127
+ margin-left: 20px;
128
+ color: #999999;
129
+ font-size: 0.9em;
130
+ }
131
+
132
+ span.scenario_file {
133
+ padding: 3px;
134
+ line-height: 1.2em;
135
+ }
136
+
137
+ span.new {
138
+ color: #006400;
139
+ font-weight: bold;
140
+ }
141
+
142
+ span.edit {
143
+ color: #006400;
144
+ font-weight: bold;
145
+ }
146
+
147
+ span.auto {
148
+ color: #006400;
149
+ font-weight: bold;
150
+ }
151
+
152
+ ins.differ {
153
+ text-decoration: none;
154
+ background: #90EE90;
155
+ }
156
+
157
+ del.differ {
158
+ text-decoration: none;
159
+ background: #FFB6C1;
160
+ }
161
+
162
+ .screenshot {
163
+ border: solid 1px #999999;
164
+ border-radius: 5px 5px;
165
+ margin: 5px 0;
166
+ padding: 5px;
167
+ background: #ffffff;
168
+ width: 48%;
169
+ height: 48%;
170
+ max-width: 98%;
171
+ max-height: 98%;
172
+ cursor: pointer;
173
+ }
174
+
175
+ #screenshot_viewer img {
176
+ display: block;
177
+ border: solid 3px #555555;
178
+ border-radius: 5px 5px;
179
+ box-shadow: 5px 5px 5px 5px rgba(0,0,0,0.3);
180
+ margin: 4%;
181
+ padding: 1%;
182
+ background: #ffffff;
183
+ max-width: 90%;
184
+ }
185
+
186
+ blockquote {
187
+ border: solid 1px #999999;
188
+ border-radius: 5px 5px;
189
+ padding: 5px;
190
+ }
@@ -0,0 +1,19 @@
1
+ function toggle_feature_dir(feature_dir) {
2
+ $(feature_dir).parent('div.feature_dir').nextUntil('div.feature_dir').toggle(250);
3
+ };
4
+
5
+ function toggle_step_file(step_file) {
6
+ $(step_file).closest('li').next('.step_contents').toggle(250);
7
+ event.stopPropagation();
8
+ };
9
+
10
+ $(document).ready(function() {
11
+ $('li.step').each(function() {
12
+ var messages = $(this).nextUntil('li.step').filter('.message');
13
+ if (messages.length > 0) {
14
+ $(this).css('cursor', 'pointer').click(function() {
15
+ messages.toggle(250);
16
+ });
17
+ }
18
+ });
19
+ });
@@ -0,0 +1,59 @@
1
+ require 'erb'
2
+
3
+ module Closer
4
+ module Formatter
5
+ module CloserHtml
6
+
7
+ def ruby_version_dir
8
+ unless @_ruby_version_dir
9
+ @_ruby_version_dir = RUBY_VERSION.split('.')[0..1].join('.') + '.0'
10
+ end
11
+ @_ruby_version_dir
12
+ end
13
+
14
+ def feature_id
15
+ @feature.file.gsub(/(\/|\.|\\)/, '_')
16
+ end
17
+
18
+ def feature_dir(feature, short = false)
19
+ ret = ''
20
+
21
+ split = feature.file.split(File::SEPARATOR)
22
+ split.reverse[1..-2].each_with_index do |dir, i|
23
+ break if dir == '仕様書' or dir == '開発日記'
24
+
25
+ if i == 0
26
+ if short
27
+ ret = dir.split('.').first + '.'
28
+ else
29
+ ret = dir
30
+ end
31
+ else
32
+ ret = dir.split('.').first + '.' + ret
33
+ end
34
+ end
35
+
36
+ ret
37
+ end
38
+
39
+ def should_expand
40
+ ['t', 'true'].include?(ENV['EXPAND'].to_s.downcase)
41
+ end
42
+
43
+ def magic_comment?(comment_line)
44
+ comment = comment_line.to_s
45
+
46
+ ['language', 'format'].each do |magic|
47
+ return true if /#\s*#{magic}\s*:.*/ =~ comment
48
+ end
49
+
50
+ false
51
+ end
52
+
53
+ def current_time_string
54
+ Time.now.instance_eval{ '%s%03d' % [strftime('%Y%m%d%H%M%S'), (usec / 1000.0).round] }
55
+ end
56
+
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,285 @@
1
+ /* cucumber.css is generated from cucumber.sass */
2
+ /* Regenerate with rake sass */
3
+ body {
4
+ font-size: 0px;
5
+ color: white;
6
+ margin: 0px;
7
+ padding: 0px;
8
+ }
9
+
10
+ .cucumber, td, th {
11
+ font: normal 11px "Lucida Grande", Helvetica, sans-serif;
12
+ background: white;
13
+ color: black;
14
+ }
15
+ .cucumber #cucumber-header, td #cucumber-header, th #cucumber-header {
16
+ background: #65c400;
17
+ color: white;
18
+ height: 6em;
19
+ }
20
+ .cucumber #cucumber-header #expand-collapse p, td #cucumber-header #expand-collapse p, th #cucumber-header #expand-collapse p {
21
+ float: right;
22
+ margin: 0 0 0 10px;
23
+ }
24
+ .cucumber .scenario h3, td .scenario h3, th .scenario h3, .background h3 {
25
+ font-size: 11px;
26
+ padding: 3px;
27
+ margin: 0;
28
+ background: #65c400;
29
+ color: white;
30
+ font-weight: bold;
31
+ }
32
+
33
+ .background h3 {
34
+ font-size: 1.2em;
35
+ background: #666;
36
+ }
37
+
38
+ .cucumber h1, td h1, th h1 {
39
+ margin: 0px 10px 0px 10px;
40
+ padding: 10px;
41
+ font-family: "Lucida Grande", Helvetica, sans-serif;
42
+ font-size: 2em;
43
+ position: absolute;
44
+ }
45
+ .cucumber h4, td h4, th h4 {
46
+ margin-bottom: 2px;
47
+ }
48
+ .cucumber div.feature, td div.feature, th div.feature {
49
+ padding: 2px;
50
+ margin: 0px 10px 5px 10px;
51
+ }
52
+ .cucumber div.examples, td div.examples, th div.examples {
53
+ padding: 0em 0em 0em 1em;
54
+ }
55
+ .cucumber .stats, td .stats, th .stats {
56
+ margin: 2em;
57
+ }
58
+ .cucumber .summary ul.features li, td .summary ul.features li, th .summary ul.features li {
59
+ display: inline;
60
+ }
61
+ .cucumber .step_name, td .step_name, th .step_name {
62
+ float: left;
63
+ }
64
+ .cucumber .step_file, td .step_file, th .step_file {
65
+ text-align: right;
66
+ color: #999999;
67
+ }
68
+ .cucumber .step_file a, td .step_file a, th .step_file a {
69
+ color: #999999;
70
+ }
71
+ .cucumber .scenario_file, td .scenario_file, th .scenario_file {
72
+ float: right;
73
+ color: #999999;
74
+ }
75
+ .cucumber .tag, td .tag, th .tag {
76
+ font-weight: bold;
77
+ color: #246ac1;
78
+ }
79
+ .cucumber .backtrace, td .backtrace, th .backtrace {
80
+ margin-top: 0;
81
+ margin-bottom: 0;
82
+ margin-left: 1em;
83
+ color: black;
84
+ }
85
+ .cucumber a, td a, th a {
86
+ text-decoration: none;
87
+ color: #be5c00;
88
+ }
89
+ .cucumber a:hover, td a:hover, th a:hover {
90
+ text-decoration: underline;
91
+ }
92
+ .cucumber a:visited, td a:visited, th a:visited {
93
+ font-weight: normal;
94
+ }
95
+ .cucumber a div.examples, td a div.examples, th a div.examples {
96
+ margin: 5px 0px 5px 15px;
97
+ color: black;
98
+ }
99
+ .cucumber .outline table, td .outline table, th .outline table {
100
+ margin: 0px 0px 5px 10px;
101
+ }
102
+ .cucumber table, td table, th table {
103
+ border-collapse: collapse;
104
+ }
105
+ .cucumber table td, td table td, th table td {
106
+ padding: 3px 3px 3px 5px;
107
+ }
108
+ .cucumber table td.failed, .cucumber table td.passed, .cucumber table td.skipped, .cucumber table td.pending, .cucumber table td.undefined, td table td.failed, td table td.passed, td table td.skipped, td table td.pending, td table td.undefined, th table td.failed, th table td.passed, th table td.skipped, th table td.pending, th table td.undefined {
109
+ padding-left: 18px;
110
+ padding-right: 10px;
111
+ }
112
+ .cucumber table td.failed, td table td.failed, th table td.failed {
113
+ border-left: 5px solid #c20000;
114
+ border-bottom: 1px solid #c20000;
115
+ background: #fffbd3;
116
+ color: #c20000;
117
+ }
118
+ .cucumber table td.passed, td table td.passed, th table td.passed {
119
+ border-left: 5px solid #65c400;
120
+ border-bottom: 1px solid #65c400;
121
+ background: #dbffb4;
122
+ color: #3d7700;
123
+ }
124
+ .cucumber table td.skipped, td table td.skipped, th table td.skipped {
125
+ border-left: 5px solid aqua;
126
+ border-bottom: 1px solid aqua;
127
+ background: #e0ffff;
128
+ color: #001111;
129
+ }
130
+ .cucumber table td.pending, td table td.pending, th table td.pending {
131
+ border-left: 5px solid #faf834;
132
+ border-bottom: 1px solid #faf834;
133
+ background: #fcfb98;
134
+ color: #131313;
135
+ }
136
+ .cucumber table td.undefined, td table td.undefined, th table td.undefined {
137
+ border-left: 5px solid #faf834;
138
+ border-bottom: 1px solid #faf834;
139
+ background: #fcfb98;
140
+ color: #131313;
141
+ }
142
+ .cucumber table td.message, td table td.message, th table td.message {
143
+ border-left: 5px solid aqua;
144
+ border-bottom: 1px solid aqua;
145
+ background: #e0ffff;
146
+ color: #001111;
147
+ }
148
+ .cucumber ol, td ol, th ol {
149
+ list-style: none;
150
+ margin: 0px;
151
+ padding: 0px;
152
+ }
153
+ .cucumber ol li.step, td ol li.step, th ol li.step {
154
+ padding: 3px 3px 3px 18px;
155
+ margin: 5px 0px 5px 5px;
156
+ }
157
+ .cucumber ol li, td ol li, th ol li {
158
+ margin: 0em 0em 0em 1em;
159
+ padding: 0em 0em 0em 0.2em;
160
+ }
161
+ .cucumber ol li span.param, td ol li span.param, th ol li span.param {
162
+ font-weight: bold;
163
+ }
164
+ .cucumber ol li.failed, td ol li.failed, th ol li.failed {
165
+ border-left: 5px solid #c20000;
166
+ border-bottom: 1px solid #c20000;
167
+ background: #fffbd3;
168
+ color: #c20000;
169
+ }
170
+ .cucumber ol li.passed, td ol li.passed, th ol li.passed {
171
+ border-left: 5px solid #65c400;
172
+ border-bottom: 1px solid #65c400;
173
+ background: #dbffb4;
174
+ color: #3d7700;
175
+ }
176
+ .cucumber ol li.skipped, td ol li.skipped, th ol li.skipped {
177
+ border-left: 5px solid aqua;
178
+ border-bottom: 1px solid aqua;
179
+ background: #e0ffff;
180
+ color: #001111;
181
+ }
182
+ .cucumber ol li.pending, td ol li.pending, th ol li.pending {
183
+ border-left: 5px solid #faf834;
184
+ border-bottom: 1px solid #faf834;
185
+ background: #fcfb98;
186
+ color: #131313;
187
+ }
188
+ .cucumber ol li.undefined, td ol li.undefined, th ol li.undefined {
189
+ border-left: 5px solid #faf834;
190
+ border-bottom: 1px solid #faf834;
191
+ background: #fcfb98;
192
+ color: #131313;
193
+ }
194
+ .cucumber ol li.message, td ol li.message, th ol li.message {
195
+ border-left: 5px solid aqua;
196
+ border-bottom: 1px solid aqua;
197
+ background: #e0ffff;
198
+ color: #001111;
199
+ margin-left: 10px;
200
+ }
201
+ .cucumber #summary, td #summary, th #summary {
202
+ margin: 0px;
203
+ padding: 5px 10px;
204
+ text-align: right;
205
+ top: 0px;
206
+ right: 0px;
207
+ float: right;
208
+ }
209
+ .cucumber #summary p, td #summary p, th #summary p {
210
+ margin: 0 0 0 2px;
211
+ }
212
+ .cucumber #summary #totals, td #summary #totals, th #summary #totals {
213
+ font-size: 1.2em;
214
+ }
215
+
216
+ .ruby {
217
+ font-size: 12px;
218
+ font-family: monospace;
219
+ color: white;
220
+ background: black;
221
+ padding: 0.1em 0 0.2em 0;
222
+ }
223
+ .ruby .keyword {
224
+ color: #ff6600;
225
+ }
226
+ .ruby .constant {
227
+ color: #339999;
228
+ }
229
+ .ruby .attribute {
230
+ color: white;
231
+ }
232
+ .ruby .global {
233
+ color: white;
234
+ }
235
+ .ruby .module {
236
+ color: white;
237
+ }
238
+ .ruby .class {
239
+ color: white;
240
+ }
241
+ .ruby .string {
242
+ color: #66ff00;
243
+ }
244
+ .ruby .ident {
245
+ color: white;
246
+ }
247
+ .ruby .method {
248
+ color: #ffcc00;
249
+ }
250
+ .ruby .number {
251
+ color: white;
252
+ }
253
+ .ruby .char {
254
+ color: white;
255
+ }
256
+ .ruby .comment {
257
+ color: #9933cc;
258
+ }
259
+ .ruby .symbol {
260
+ color: white;
261
+ }
262
+ .ruby .regex {
263
+ color: #44b4cc;
264
+ }
265
+ .ruby .punct {
266
+ color: white;
267
+ }
268
+ .ruby .escape {
269
+ color: white;
270
+ }
271
+ .ruby .interp {
272
+ color: white;
273
+ }
274
+ .ruby .expr {
275
+ color: white;
276
+ }
277
+ .ruby .offending {
278
+ background: #333333;
279
+ }
280
+ .ruby .linenum {
281
+ width: 75px;
282
+ padding: 0.1em 1em 0.2em 0;
283
+ color: black;
284
+ background: #fffbd3;
285
+ }