ruby-alsa 0.7 → 0.8

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/refs/alsa_player DELETED
Binary file
Binary file
data/spec.html DELETED
@@ -1,244 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <title>RSpec results</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
- <meta http-equiv="Expires" content="-1" />
10
- <meta http-equiv="Pragma" content="no-cache" />
11
- <style type="text/css">
12
- body {
13
- margin: 0;
14
- padding: 0;
15
- background: #fff;
16
- font-size: 80%;
17
- }
18
- </style>
19
- <script type="text/javascript">
20
- // <![CDATA[
21
- function moveProgressBar(percentDone) {
22
- document.getElementById("rspec-header").style.width = percentDone +"%";
23
- }
24
- function makeRed(element_id) {
25
- document.getElementById(element_id).style.background = '#C40D0D';
26
- document.getElementById(element_id).style.color = '#FFFFFF';
27
- }
28
-
29
- function makeYellow(element_id) {
30
- if (element_id == "rspec-header" && document.getElementById(element_id).style.background != '#C40D0D')
31
- {
32
- document.getElementById(element_id).style.background = '#FAF834';
33
- document.getElementById(element_id).style.color = '#000000';
34
- }
35
- else
36
- {
37
- document.getElementById(element_id).style.background = '#FAF834';
38
- document.getElementById(element_id).style.color = '#000000';
39
- }
40
- }
41
-
42
- // ]]>
43
- </script>
44
- <style type="text/css">
45
- #rspec-header {
46
- background: #65C400; color: #fff; height: 4em;
47
- }
48
-
49
- .rspec-report h1 {
50
- margin: 0px 10px 0px 10px;
51
- padding: 10px;
52
- font-family: "Lucida Grande", Helvetica, sans-serif;
53
- font-size: 1.8em;
54
- position: absolute;
55
- }
56
-
57
- #summary {
58
- margin: 0; padding: 5px 10px;
59
- font-family: "Lucida Grande", Helvetica, sans-serif;
60
- text-align: right;
61
- top: 0px;
62
- right: 0px;
63
- float:right;
64
- }
65
-
66
- #summary p {
67
- margin: 0 0 0 2px;
68
- }
69
-
70
- #summary #totals {
71
- font-size: 1.2em;
72
- }
73
-
74
- .example_group {
75
- margin: 0 10px 5px;
76
- background: #fff;
77
- }
78
-
79
- dl {
80
- margin: 0; padding: 0 0 5px;
81
- font: normal 11px "Lucida Grande", Helvetica, sans-serif;
82
- }
83
-
84
- dt {
85
- padding: 3px;
86
- background: #65C400;
87
- color: #fff;
88
- font-weight: bold;
89
- }
90
-
91
- dd {
92
- margin: 5px 0 5px 5px;
93
- padding: 3px 3px 3px 18px;
94
- }
95
-
96
- dd.spec.passed {
97
- border-left: 5px solid #65C400;
98
- border-bottom: 1px solid #65C400;
99
- background: #DBFFB4; color: #3D7700;
100
- }
101
-
102
- dd.spec.failed {
103
- border-left: 5px solid #C20000;
104
- border-bottom: 1px solid #C20000;
105
- color: #C20000; background: #FFFBD3;
106
- }
107
-
108
- dd.spec.not_implemented {
109
- border-left: 5px solid #FAF834;
110
- border-bottom: 1px solid #FAF834;
111
- background: #FCFB98; color: #131313;
112
- }
113
-
114
- dd.spec.pending_fixed {
115
- border-left: 5px solid #0000C2;
116
- border-bottom: 1px solid #0000C2;
117
- color: #0000C2; background: #D3FBFF;
118
- }
119
-
120
- .backtrace {
121
- color: #000;
122
- font-size: 12px;
123
- }
124
-
125
- a {
126
- color: #BE5C00;
127
- }
128
-
129
- /* Ruby code, style similar to vibrant ink */
130
- .ruby {
131
- font-size: 12px;
132
- font-family: monospace;
133
- color: white;
134
- background-color: black;
135
- padding: 0.1em 0 0.2em 0;
136
- }
137
-
138
- .ruby .keyword { color: #FF6600; }
139
- .ruby .constant { color: #339999; }
140
- .ruby .attribute { color: white; }
141
- .ruby .global { color: white; }
142
- .ruby .module { color: white; }
143
- .ruby .class { color: white; }
144
- .ruby .string { color: #66FF00; }
145
- .ruby .ident { color: white; }
146
- .ruby .method { color: #FFCC00; }
147
- .ruby .number { color: white; }
148
- .ruby .char { color: white; }
149
- .ruby .comment { color: #9933CC; }
150
- .ruby .symbol { color: white; }
151
- .ruby .regex { color: #44B4CC; }
152
- .ruby .punct { color: white; }
153
- .ruby .escape { color: white; }
154
- .ruby .interp { color: white; }
155
- .ruby .expr { color: white; }
156
-
157
- .ruby .offending { background-color: gray; }
158
- .ruby .linenum {
159
- width: 75px;
160
- padding: 0.1em 1em 0.2em 0;
161
- color: #000000;
162
- background-color: #FFFBD3;
163
- }
164
-
165
- </style>
166
- </head>
167
- <body>
168
- <div class="rspec-report">
169
-
170
- <div id="rspec-header">
171
- <div id="label">
172
- <h1>RSpec Code Examples</h1>
173
- </div>
174
-
175
- <div id="summary">
176
- <p id="totals">&nbsp;</p>
177
- <p id="duration">&nbsp;</p>
178
- </div>
179
- </div>
180
-
181
- <div class="results">
182
- <div class="example_group">
183
- <dl>
184
- <dt id="example_group_1">ALSA::PCM::Native</dt>
185
- <script type="text/javascript">moveProgressBar('9.0');</script>
186
- <dd class="spec passed"><span class="passed_spec_name">should provide the STREAM_CAPTURE constant</span></dd>
187
- </dl>
188
- </div>
189
- <div class="example_group">
190
- <dl>
191
- <dt id="example_group_2">ALSA::PCM::Capture.open</dt>
192
- <script type="text/javascript">moveProgressBar('18.1');</script>
193
- <dd class="spec passed"><span class="passed_spec_name">should create a Capture instance</span></dd>
194
- <script type="text/javascript">moveProgressBar('27.2');</script>
195
- <dd class="spec passed"><span class="passed_spec_name">should create the Capture instance with given arguments</span></dd>
196
- </dl>
197
- </div>
198
- <div class="example_group">
199
- <dl>
200
- <dt id="example_group_3">ALSA logger</dt>
201
- <script type="text/javascript">moveProgressBar('36.3');</script>
202
- <dd class="spec passed"><span class="passed_spec_name">should have a default value</span></dd>
203
- </dl>
204
- </div>
205
- <div class="example_group">
206
- <dl>
207
- <dt id="example_group_4">ALSA::Native.error_code?</dt>
208
- <script type="text/javascript">moveProgressBar('45.4');</script>
209
- <dd class="spec passed"><span class="passed_spec_name">should return true when given value is negative</span></dd>
210
- <script type="text/javascript">moveProgressBar('54.5');</script>
211
- <dd class="spec passed"><span class="passed_spec_name">should return false when given value is zero</span></dd>
212
- <script type="text/javascript">moveProgressBar('63.6');</script>
213
- <dd class="spec passed"><span class="passed_spec_name">should return false when given value is positive</span></dd>
214
- </dl>
215
- </div>
216
- <div class="example_group">
217
- <dl>
218
- <dt id="example_group_5">ALSA::Native.strerror</dt>
219
- <script type="text/javascript">moveProgressBar('72.7');</script>
220
- <dd class="spec passed"><span class="passed_spec_name">should invoke snd_strerror function</span></dd>
221
- </dl>
222
- </div>
223
- <div class="example_group">
224
- <dl>
225
- <dt id="example_group_6">ALSA try_to</dt>
226
- <script type="text/javascript">moveProgressBar('81.8');</script>
227
- <dd class="spec passed"><span class="passed_spec_name">should log in debug the given message</span></dd>
228
- <script type="text/javascript">moveProgressBar('90.9');</script>
229
- <dd class="spec passed"><span class="passed_spec_name">should execute the given block and return its value</span></dd>
230
- </dl>
231
- </div>
232
- <div class="example_group">
233
- <dl>
234
- <dt id="example_group_7">ALSA try_to when block returns a negative value</dt>
235
- <script type="text/javascript">moveProgressBar('100.0');</script>
236
- <dd class="spec passed"><span class="passed_spec_name">should raise an error (with strerror of error code)</span></dd>
237
- </dl>
238
- </div>
239
- <script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0.037272 seconds</strong>";</script>
240
- <script type="text/javascript">document.getElementById('totals').innerHTML = "11 examples, 0 failures";</script>
241
- </div>
242
- </div>
243
- </body>
244
- </html>