red 4.1.0 → 4.1.1
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.
- data/Manifest.txt +25 -0
- data/lib/red/version.rb +1 -1
- data/lib/source/redshift/accessors.rb +580 -0
- data/lib/source/redshift/browser.rb +150 -0
- data/lib/source/redshift/chainable.rb +75 -0
- data/lib/source/redshift/code_events.rb +204 -0
- data/lib/source/redshift/cookie.rb +142 -0
- data/lib/source/redshift/document.rb +216 -0
- data/lib/source/redshift/element.rb +417 -0
- data/lib/source/redshift/event.rb +312 -0
- data/lib/source/redshift/redshift.red +5 -0
- data/lib/source/redshift/request.rb +276 -0
- data/lib/source/redshift/selectors.rb +374 -0
- data/lib/source/redshift/situated.rb +328 -0
- data/lib/source/redshift/store.rb +48 -0
- data/lib/source/redshift/transform.rb +199 -0
- data/lib/source/redshift/tween.rb +66 -0
- data/lib/source/redshift/user_events.rb +215 -0
- data/lib/source/redshift/validator.rb +21 -0
- data/lib/source/redshift/window.rb +11 -0
- data/lib/source/redspec/index.html +11 -0
- data/lib/source/redspec/lib/red_spec/red_spec.red +525 -0
- data/lib/source/redspec/lib/stylesheets/specs.sass +290 -0
- metadata +27 -2
@@ -0,0 +1,290 @@
|
|
1
|
+
// RedSpec Official Stylesheet, with influence from MooTools JSSpec stylesheet.
|
2
|
+
// (cc) http://creativecommons.org/licenses/by/3.0/us/
|
3
|
+
|
4
|
+
// The colors of RedSpec
|
5
|
+
!official = #CC0404
|
6
|
+
!canvas = #F3F1F1
|
7
|
+
!dashboard = #41464D
|
8
|
+
!unrun_bg = #D0C8C8
|
9
|
+
!unrun_text = #8A7575
|
10
|
+
!success_text = #657528
|
11
|
+
!exception_text = #B33F3F
|
12
|
+
!pending_bg = #F9FF70
|
13
|
+
!pending_text = !pending_bg - #7D70AA
|
14
|
+
!number_data = #D2E0E6
|
15
|
+
|
16
|
+
// mixin for an element that needs to take up the entire window
|
17
|
+
=full_screen
|
18
|
+
:width 100%
|
19
|
+
:height 100%
|
20
|
+
:overflow hidden
|
21
|
+
|
22
|
+
body
|
23
|
+
:font 11px/1.5 Lucida Grande, Helvetica, Arial, sans-serif
|
24
|
+
:background= !canvas
|
25
|
+
:color= !dashboard
|
26
|
+
+full_screen
|
27
|
+
|
28
|
+
#container
|
29
|
+
+full_screen
|
30
|
+
|
31
|
+
|
32
|
+
// Reset
|
33
|
+
*
|
34
|
+
:margin 0
|
35
|
+
:padding 0
|
36
|
+
|
37
|
+
|
38
|
+
a
|
39
|
+
:text-decoration none
|
40
|
+
|
41
|
+
ul
|
42
|
+
:list-style none
|
43
|
+
|
44
|
+
html
|
45
|
+
:overflow hidden
|
46
|
+
|
47
|
+
|
48
|
+
// The dashboard runs accross the top of the specs log
|
49
|
+
// and contains the following data:
|
50
|
+
// h1 - RedSpec name/link
|
51
|
+
// ul of completion time, % done, # of errors, # of failures, and # of total examples
|
52
|
+
#dashboard
|
53
|
+
:position absolute
|
54
|
+
:top 0
|
55
|
+
:left 0
|
56
|
+
:width 100%
|
57
|
+
:padding 5px 0
|
58
|
+
:background= !dashboard
|
59
|
+
:color= !canvas
|
60
|
+
:height 30px
|
61
|
+
|
62
|
+
// RedSpec name
|
63
|
+
h1
|
64
|
+
:font 25px/1.1 Arial, sans-serif
|
65
|
+
:font-weight bolder
|
66
|
+
:float left
|
67
|
+
:margin 1px 0 2px 20px
|
68
|
+
:text-shadow 0 2px 2px rgba(0,0,0,0.5)
|
69
|
+
|
70
|
+
// the dashboard data list
|
71
|
+
ul
|
72
|
+
:margin-right 20px
|
73
|
+
li
|
74
|
+
:font-weight bold
|
75
|
+
:font-size 12px
|
76
|
+
:float right
|
77
|
+
:margin 10px 5px 0
|
78
|
+
// wrapped around numerical data points of the dashboard data list
|
79
|
+
span
|
80
|
+
:color= !number_data
|
81
|
+
|
82
|
+
|
83
|
+
// The list of Specs, by name
|
84
|
+
#list
|
85
|
+
:position absolute
|
86
|
+
:width 30%
|
87
|
+
:overflow-y auto
|
88
|
+
:overflow-x hidden
|
89
|
+
:top 40px
|
90
|
+
:left 0
|
91
|
+
:bottom 0
|
92
|
+
:height expression(document.body.clientHeight-40)
|
93
|
+
|
94
|
+
|
95
|
+
.exception
|
96
|
+
h3
|
97
|
+
:color= !exception_text
|
98
|
+
:background #EED8D8
|
99
|
+
.success
|
100
|
+
h3
|
101
|
+
:color= !success_text
|
102
|
+
:background-color #E2E5D2
|
103
|
+
.pending
|
104
|
+
h3
|
105
|
+
:color= !pending_text
|
106
|
+
:background-color #E2E5D2
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
// the list of examples, grouped by spec name
|
111
|
+
#log
|
112
|
+
:position absolute
|
113
|
+
:top 40px
|
114
|
+
:right 0
|
115
|
+
:bottom 0
|
116
|
+
:overflow-y auto
|
117
|
+
:overflow-x hidden
|
118
|
+
:width 70%
|
119
|
+
:height expression(document.body.clientHeight-40)
|
120
|
+
|
121
|
+
.pending
|
122
|
+
h3
|
123
|
+
:color= !pending_text
|
124
|
+
:background-color= !pending_bg
|
125
|
+
h4
|
126
|
+
:color= !pending_text
|
127
|
+
:background= !pending_bg
|
128
|
+
:cursor pointer
|
129
|
+
.exception
|
130
|
+
h3
|
131
|
+
:color= !exception_text
|
132
|
+
:background #EE9A9A
|
133
|
+
h4
|
134
|
+
:color= !exception_text
|
135
|
+
:background #EED8D8
|
136
|
+
:cursor pointer
|
137
|
+
|
138
|
+
.success
|
139
|
+
h3
|
140
|
+
:background-color #CFE773
|
141
|
+
:color= !success_text
|
142
|
+
h4
|
143
|
+
:background-color #E2E5D2
|
144
|
+
:color= !success_text
|
145
|
+
:cursor default
|
146
|
+
.stub
|
147
|
+
h4
|
148
|
+
:background-color #E5E5E1
|
149
|
+
:color #A1A87E
|
150
|
+
:cursor default
|
151
|
+
|
152
|
+
span.spc
|
153
|
+
:display block
|
154
|
+
:height 16px
|
155
|
+
|
156
|
+
|
157
|
+
#log-wrapper, #list-wrapper
|
158
|
+
:overflow hidden
|
159
|
+
:padding 4px 4px 0
|
160
|
+
:background #fff
|
161
|
+
|
162
|
+
|
163
|
+
#log-wrapper
|
164
|
+
:margin 16px 16px 0 8px
|
165
|
+
|
166
|
+
|
167
|
+
#list-wrapper
|
168
|
+
:margin 16px 8px 0 16px
|
169
|
+
|
170
|
+
|
171
|
+
.success a:link, .success a:visited
|
172
|
+
:color= !success_text
|
173
|
+
|
174
|
+
|
175
|
+
.exception a:link, .exception a:visited
|
176
|
+
:color= !exception_text
|
177
|
+
|
178
|
+
|
179
|
+
a:link, a:visited
|
180
|
+
:color #528CE0
|
181
|
+
|
182
|
+
|
183
|
+
a:hover, a:active
|
184
|
+
:color #41464D !important
|
185
|
+
:cursor pointer !important
|
186
|
+
|
187
|
+
h2
|
188
|
+
:font-size 14px
|
189
|
+
:background= !unrun_bg
|
190
|
+
:color= !unrun_text
|
191
|
+
:margin-bottom 4px
|
192
|
+
:padding 2px 5px
|
193
|
+
|
194
|
+
|
195
|
+
h2#runner
|
196
|
+
:cursor pointer
|
197
|
+
:background-color #CFE773
|
198
|
+
:color #657528
|
199
|
+
|
200
|
+
|
201
|
+
h2#runner:hover
|
202
|
+
:color #41464D
|
203
|
+
|
204
|
+
|
205
|
+
h2#runner.disabled
|
206
|
+
:color #fff
|
207
|
+
:background #C8CBD0
|
208
|
+
:cursor default
|
209
|
+
|
210
|
+
|
211
|
+
br
|
212
|
+
:display none
|
213
|
+
|
214
|
+
|
215
|
+
h3
|
216
|
+
:font-size 12px
|
217
|
+
:padding 3px 5px 1px
|
218
|
+
:cursor default
|
219
|
+
|
220
|
+
|
221
|
+
h4
|
222
|
+
:font-size 11px
|
223
|
+
:background #C8CBD0
|
224
|
+
:padding 3px 5px 1px
|
225
|
+
:margin-bottom 4px
|
226
|
+
:cursor default
|
227
|
+
|
228
|
+
#list
|
229
|
+
h3
|
230
|
+
:background #D2E0E6
|
231
|
+
:color #528CE0
|
232
|
+
:margin-bottom 4px
|
233
|
+
|
234
|
+
|
235
|
+
#log
|
236
|
+
h3
|
237
|
+
:background= !unrun_bg
|
238
|
+
:color= !unrun_text
|
239
|
+
:margin-bottom 4px
|
240
|
+
li
|
241
|
+
div
|
242
|
+
:overflow hidden
|
243
|
+
:padding 0 4px 4px
|
244
|
+
|
245
|
+
|
246
|
+
p
|
247
|
+
:color #575D67
|
248
|
+
|
249
|
+
|
250
|
+
p.uri
|
251
|
+
:float right
|
252
|
+
:margin-top -15px
|
253
|
+
:font-size 10px
|
254
|
+
|
255
|
+
|
256
|
+
p.left, p.uri
|
257
|
+
:font-family Monaco, Courier New, monospace
|
258
|
+
|
259
|
+
|
260
|
+
p#footer
|
261
|
+
:text-align right
|
262
|
+
:padding 10px 16px 0 0
|
263
|
+
|
264
|
+
a.rerun
|
265
|
+
:font-size 11px
|
266
|
+
:color #fff !important
|
267
|
+
|
268
|
+
|
269
|
+
.number_value
|
270
|
+
:color red
|
271
|
+
|
272
|
+
|
273
|
+
.string_value
|
274
|
+
:color green
|
275
|
+
|
276
|
+
|
277
|
+
.regexp_value
|
278
|
+
:color olive
|
279
|
+
|
280
|
+
|
281
|
+
.boolean_value
|
282
|
+
:color red
|
283
|
+
|
284
|
+
|
285
|
+
.dom_value
|
286
|
+
:color purple
|
287
|
+
|
288
|
+
|
289
|
+
.undefined_value, .null_value
|
290
|
+
:color gray
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: red
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Sielaff
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-06 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -80,6 +80,31 @@ files:
|
|
80
80
|
- lib/red/nodes/logic_nodes.rb
|
81
81
|
- lib/red/nodes/variable_nodes.rb
|
82
82
|
- lib/source/ruby.rb
|
83
|
+
- lib/source/redshift
|
84
|
+
- lib/source/redshift/accessors.rb
|
85
|
+
- lib/source/redshift/browser.rb
|
86
|
+
- lib/source/redshift/chainable.rb
|
87
|
+
- lib/source/redshift/code_events.rb
|
88
|
+
- lib/source/redshift/cookie.rb
|
89
|
+
- lib/source/redshift/document.rb
|
90
|
+
- lib/source/redshift/element.rb
|
91
|
+
- lib/source/redshift/event.rb
|
92
|
+
- lib/source/redshift/redshift.red
|
93
|
+
- lib/source/redshift/request.rb
|
94
|
+
- lib/source/redshift/selectors.rb
|
95
|
+
- lib/source/redshift/situated.rb
|
96
|
+
- lib/source/redshift/store.rb
|
97
|
+
- lib/source/redshift/transform.rb
|
98
|
+
- lib/source/redshift/tween.rb
|
99
|
+
- lib/source/redshift/user_events.rb
|
100
|
+
- lib/source/redshift/validator.rb
|
101
|
+
- lib/source/redshift/window.rb
|
102
|
+
- lib/source/redspec
|
103
|
+
- lib/source/redspec/index.html
|
104
|
+
- lib/source/redspec/lib
|
105
|
+
- lib/source/redspec/lib/red_spec
|
106
|
+
- lib/source/redspec/lib/red_spec/red_spec.red
|
107
|
+
- lib/source/redspec/lib/stylesheets/specs.sass
|
83
108
|
- script/console
|
84
109
|
- script/destroy
|
85
110
|
- script/generate
|