basic_temperature 0.2.1 → 0.2.2
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 +4 -4
- data/.codeclimate.yml +33 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +12 -0
- data/.travis.yml +2 -1
- data/README.md +223 -9
- data/basic_temperature.gemspec +6 -1
- data/bin/console +4 -4
- data/docs/apple-touch-icon.png +0 -0
- data/docs/classes/BasicTemperature.html +1227 -0
- data/docs/classes/BasicTemperature/InitializationArgumentsError.html +94 -0
- data/docs/classes/BasicTemperature/InvalidDegreesError.html +94 -0
- data/docs/classes/BasicTemperature/InvalidNumericOrTemperatureError.html +94 -0
- data/docs/classes/BasicTemperature/InvalidScaleError.html +94 -0
- data/docs/classes/Object.html +274 -0
- data/docs/classes/Temperature.html +1227 -0
- data/docs/created.rid +4 -0
- data/docs/css/github.css +123 -0
- data/docs/css/main.css +374 -0
- data/docs/css/panel.css +361 -0
- data/docs/css/reset.css +48 -0
- data/docs/favicon.ico +0 -0
- data/docs/files/lib/basic_temperature/temperature_rb.html +73 -0
- data/docs/files/lib/basic_temperature/version_rb.html +84 -0
- data/docs/files/lib/basic_temperature_rb.html +112 -0
- data/docs/i/arrow-down.svg +8 -0
- data/docs/i/arrow-right.svg +8 -0
- data/docs/i/search.svg +12 -0
- data/docs/i/tree_bg.svg +8 -0
- data/docs/index.html +11 -0
- data/docs/js/highlight.pack.js +1 -0
- data/docs/js/jquery-1.3.2.min.js +19 -0
- data/docs/js/main.js +25 -0
- data/docs/js/navigation.js +105 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searchdoc.js +465 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/panel/index.html +47 -0
- data/docs/panel/links.html +12 -0
- data/docs/panel/tree.js +1 -0
- data/lib/basic_temperature.rb +552 -75
- data/lib/basic_temperature/temperature.rb +5 -0
- data/lib/basic_temperature/version.rb +1 -1
- data/logo.png +0 -0
- metadata +112 -4
- data/Gemfile.lock +0 -54
data/docs/css/panel.css
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
/* Panel (begin) */
|
2
|
+
.panel
|
3
|
+
{
|
4
|
+
position: absolute;
|
5
|
+
width: 100%;
|
6
|
+
height: 100%;
|
7
|
+
top: 0;
|
8
|
+
left: 0;
|
9
|
+
background: #FFF;
|
10
|
+
z-index: 2;
|
11
|
+
font-family: "Helvetica Neue", "Arial", sans-serif;
|
12
|
+
overflow-x: hidden;
|
13
|
+
}
|
14
|
+
|
15
|
+
.panel_tree .results,
|
16
|
+
.panel_results .tree
|
17
|
+
{
|
18
|
+
display: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* Header with search box (begin) */
|
22
|
+
.panel .header
|
23
|
+
{
|
24
|
+
background: white url(../i/search.svg) no-repeat;
|
25
|
+
background-position: 5px;
|
26
|
+
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
|
27
|
+
height: 40px;
|
28
|
+
width: 100%;
|
29
|
+
position: absolute;
|
30
|
+
left: 0; top: 0;
|
31
|
+
z-index: 300;
|
32
|
+
overflow: hidden;
|
33
|
+
}
|
34
|
+
|
35
|
+
.panel .header input
|
36
|
+
{
|
37
|
+
border: 0;
|
38
|
+
box-sizing: border-box;
|
39
|
+
display: inline-block;
|
40
|
+
font-size: 14px;
|
41
|
+
height: 40px;
|
42
|
+
width: 100%;
|
43
|
+
padding: 0 5px;
|
44
|
+
margin: 0;
|
45
|
+
margin-left: 25px;
|
46
|
+
outline: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
/* Header with search box (end) */
|
50
|
+
|
51
|
+
|
52
|
+
/* Results (begin) */
|
53
|
+
.panel .result
|
54
|
+
{
|
55
|
+
position: absolute;
|
56
|
+
top: 40px;
|
57
|
+
bottom: 0;
|
58
|
+
left: 0;
|
59
|
+
width: 100%;
|
60
|
+
overflow-y: scroll;
|
61
|
+
overflow-x: hidden;
|
62
|
+
z-index: 2;
|
63
|
+
}
|
64
|
+
|
65
|
+
.panel .result ul
|
66
|
+
{
|
67
|
+
font-size: 0.8em;
|
68
|
+
width: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
.panel .result ul li
|
72
|
+
{
|
73
|
+
height: 46px;
|
74
|
+
overflow: hidden;
|
75
|
+
padding: 4px 10px 0 10px;
|
76
|
+
cursor: pointer;
|
77
|
+
}
|
78
|
+
|
79
|
+
.panel .result ul li:nth-child(2n) {
|
80
|
+
background: #F0EFEF;
|
81
|
+
}
|
82
|
+
|
83
|
+
.panel .result ul li h1
|
84
|
+
{
|
85
|
+
font-size: 13px;
|
86
|
+
font-weight: normal;
|
87
|
+
color: #333;
|
88
|
+
margin-bottom: 2px;
|
89
|
+
white-space: nowrap;
|
90
|
+
}
|
91
|
+
|
92
|
+
.panel .result ul li p
|
93
|
+
{
|
94
|
+
font-size: 11px;
|
95
|
+
color: #333;
|
96
|
+
margin-bottom: 2px;
|
97
|
+
white-space: nowrap;
|
98
|
+
}
|
99
|
+
|
100
|
+
.panel .result ul li h1 i,
|
101
|
+
.panel .result ul li p.snippet
|
102
|
+
{
|
103
|
+
color: #777;
|
104
|
+
}
|
105
|
+
|
106
|
+
.panel .result ul li b
|
107
|
+
{
|
108
|
+
color: #000;
|
109
|
+
}
|
110
|
+
|
111
|
+
.panel .result ul li.current
|
112
|
+
{
|
113
|
+
background: #B61D1D;
|
114
|
+
}
|
115
|
+
|
116
|
+
.panel .result ul li.current h1,
|
117
|
+
.panel .result ul li.current p
|
118
|
+
{
|
119
|
+
color: #D9D9D9;
|
120
|
+
}
|
121
|
+
|
122
|
+
.panel .result ul li.current h1 i,
|
123
|
+
.panel .result ul li.current p.snippet
|
124
|
+
{
|
125
|
+
color: #ACACAC;
|
126
|
+
}
|
127
|
+
|
128
|
+
.panel .result ul li.current b
|
129
|
+
{
|
130
|
+
color: #FFF;
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
.panel .result ul li:hover,
|
135
|
+
.panel .result ul li.selected
|
136
|
+
{
|
137
|
+
background: #d0d0d0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.panel .result ul li.current:hover
|
141
|
+
{
|
142
|
+
background: #B61D1D;
|
143
|
+
}
|
144
|
+
|
145
|
+
.panel .result ul li .badge
|
146
|
+
{
|
147
|
+
margin-right: 0.4em;
|
148
|
+
margin-left: -0.2em;
|
149
|
+
padding: 0 0.2em;
|
150
|
+
color: #000;
|
151
|
+
border-radius: 3px;
|
152
|
+
}
|
153
|
+
|
154
|
+
.panel .result ul li .badge_1
|
155
|
+
{
|
156
|
+
background: #ACDBF4;
|
157
|
+
}
|
158
|
+
|
159
|
+
.panel .result ul li.current .badge_1
|
160
|
+
{
|
161
|
+
background: #97BFD7;
|
162
|
+
}
|
163
|
+
|
164
|
+
.panel .result ul li .badge_2
|
165
|
+
{
|
166
|
+
background: #ACF3C3;
|
167
|
+
}
|
168
|
+
|
169
|
+
.panel .result ul li.current .badge_2
|
170
|
+
{
|
171
|
+
background: #98D7AC;
|
172
|
+
}
|
173
|
+
|
174
|
+
.panel .result ul li .badge_3
|
175
|
+
{
|
176
|
+
background: #E0F3AC;
|
177
|
+
}
|
178
|
+
|
179
|
+
.panel .result ul li.current .badge_3
|
180
|
+
{
|
181
|
+
background: #C4D798;
|
182
|
+
}
|
183
|
+
|
184
|
+
.panel .result ul li .badge_4
|
185
|
+
{
|
186
|
+
background: #D7CA98;
|
187
|
+
}
|
188
|
+
|
189
|
+
.panel .result ul li.current .badge_4
|
190
|
+
{
|
191
|
+
background: #A6B0AC;
|
192
|
+
}
|
193
|
+
|
194
|
+
.panel .result ul li .badge_5
|
195
|
+
{
|
196
|
+
background: #F3C8AC;
|
197
|
+
}
|
198
|
+
|
199
|
+
.panel .result ul li.current .badge_5
|
200
|
+
{
|
201
|
+
background: #D7B198;
|
202
|
+
}
|
203
|
+
|
204
|
+
.panel .result ul li .badge_6
|
205
|
+
{
|
206
|
+
background: #F3ACC3;
|
207
|
+
}
|
208
|
+
|
209
|
+
.panel .result ul li.current .badge_6
|
210
|
+
{
|
211
|
+
background: #D798AB;
|
212
|
+
}
|
213
|
+
|
214
|
+
/* Results (end) */
|
215
|
+
|
216
|
+
/* Tree (begin) */ /**/
|
217
|
+
.panel .tree
|
218
|
+
{
|
219
|
+
background: white;
|
220
|
+
position: absolute;
|
221
|
+
top: 40px;
|
222
|
+
bottom: 0;
|
223
|
+
left: 0;
|
224
|
+
width: 100%;
|
225
|
+
overflow-y: scroll;
|
226
|
+
overflow-x: hidden;
|
227
|
+
z-index: 30;
|
228
|
+
}
|
229
|
+
|
230
|
+
.panel .tree ul:first-child
|
231
|
+
{
|
232
|
+
background: url(../i/tree_bg.svg);
|
233
|
+
background-size: 1px 60px;
|
234
|
+
}
|
235
|
+
|
236
|
+
.panel .tree li
|
237
|
+
{
|
238
|
+
cursor: pointer;
|
239
|
+
overflow: hidden;
|
240
|
+
height: 30px;
|
241
|
+
line-height: 100%;
|
242
|
+
}
|
243
|
+
|
244
|
+
|
245
|
+
.panel .tree li .content
|
246
|
+
{
|
247
|
+
padding-left: 18px;
|
248
|
+
padding-top: 5px;
|
249
|
+
height: 18px;
|
250
|
+
overflow: hidden;
|
251
|
+
position: relative;
|
252
|
+
}
|
253
|
+
|
254
|
+
.panel .tree li .icon
|
255
|
+
{
|
256
|
+
width: 10px;
|
257
|
+
height: 9px;
|
258
|
+
background: url(../i/arrow-down.svg);
|
259
|
+
background-size: 10px;
|
260
|
+
position: absolute;
|
261
|
+
left: 1px;
|
262
|
+
top: 8px;
|
263
|
+
cursor: default;
|
264
|
+
}
|
265
|
+
|
266
|
+
.panel .tree li.closed .icon
|
267
|
+
{
|
268
|
+
background: url(../i/arrow-right.svg);
|
269
|
+
background-size: 10px;
|
270
|
+
}
|
271
|
+
|
272
|
+
.panel .tree ul li h1
|
273
|
+
{
|
274
|
+
font-size: 13px;
|
275
|
+
font-weight: normal;
|
276
|
+
color: #000;
|
277
|
+
margin-bottom: 2px;
|
278
|
+
white-space: nowrap;
|
279
|
+
}
|
280
|
+
|
281
|
+
.panel .tree ul li p
|
282
|
+
{
|
283
|
+
font-size: 11px;
|
284
|
+
color: #666;
|
285
|
+
margin-bottom: 2px;
|
286
|
+
white-space: nowrap;
|
287
|
+
}
|
288
|
+
|
289
|
+
.panel .tree ul li h1 i
|
290
|
+
{
|
291
|
+
color: #999;
|
292
|
+
font-style: normal;
|
293
|
+
}
|
294
|
+
|
295
|
+
.panel .tree ul li.current h1 i
|
296
|
+
{
|
297
|
+
color: #CCC;
|
298
|
+
}
|
299
|
+
|
300
|
+
.panel .tree ul li.empty
|
301
|
+
{
|
302
|
+
cursor: text;
|
303
|
+
}
|
304
|
+
|
305
|
+
.panel .tree ul li.empty h1,
|
306
|
+
.panel .tree ul li.empty p
|
307
|
+
{
|
308
|
+
color: #666;
|
309
|
+
font-style: italic;
|
310
|
+
}
|
311
|
+
|
312
|
+
.panel .tree ul li.current
|
313
|
+
{
|
314
|
+
background: #B61D1D;
|
315
|
+
}
|
316
|
+
|
317
|
+
.panel .tree ul li.current .icon
|
318
|
+
{
|
319
|
+
background: url(../i/arrow-right.svg);
|
320
|
+
background-size: 10px;
|
321
|
+
}
|
322
|
+
|
323
|
+
.panel .tree ul li.current.closed .icon
|
324
|
+
{
|
325
|
+
background: url(../i/arrow-down.svg);
|
326
|
+
background-size: 10px;
|
327
|
+
}
|
328
|
+
|
329
|
+
.panel .tree ul li.current h1
|
330
|
+
{
|
331
|
+
color: #FFF;
|
332
|
+
}
|
333
|
+
|
334
|
+
.panel .tree ul li.current p
|
335
|
+
{
|
336
|
+
color: #CCC;
|
337
|
+
}
|
338
|
+
|
339
|
+
.panel .tree ul li.current.empty h1,
|
340
|
+
.panel .tree ul li.current.empty p
|
341
|
+
{
|
342
|
+
color: #999;
|
343
|
+
}
|
344
|
+
|
345
|
+
.panel .tree ul li:hover
|
346
|
+
{
|
347
|
+
background: #d0d0d0;
|
348
|
+
}
|
349
|
+
|
350
|
+
.panel .tree ul li.current:hover
|
351
|
+
{
|
352
|
+
background: #B61D1D;
|
353
|
+
}
|
354
|
+
|
355
|
+
.panel .tree .stopper
|
356
|
+
{
|
357
|
+
display: none;
|
358
|
+
}
|
359
|
+
/* Tree (end) */ /**/
|
360
|
+
|
361
|
+
/* Panel (end) */
|
data/docs/css/reset.css
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/ */
|
2
|
+
/* v1.0 | 20080212 */
|
3
|
+
|
4
|
+
html, body, div, span, applet, object, iframe,
|
5
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
6
|
+
a, abbr, acronym, address, big, cite, code,
|
7
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
8
|
+
small, strike, strong, sub, sup, tt, var,
|
9
|
+
b, u, i, center,
|
10
|
+
dl, dt, dd, ol, ul, li,
|
11
|
+
fieldset, form, label, legend,
|
12
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
border: 0;
|
16
|
+
outline: 0;
|
17
|
+
font-size: 100%;
|
18
|
+
vertical-align: baseline;
|
19
|
+
background: transparent;
|
20
|
+
}
|
21
|
+
body {
|
22
|
+
line-height: 1;
|
23
|
+
}
|
24
|
+
ol, ul {
|
25
|
+
list-style: none;
|
26
|
+
}
|
27
|
+
blockquote, q {
|
28
|
+
quotes: none;
|
29
|
+
}
|
30
|
+
blockquote:before, blockquote:after,
|
31
|
+
q:before, q:after {
|
32
|
+
content: '';
|
33
|
+
content: none;
|
34
|
+
}
|
35
|
+
|
36
|
+
/* remember to highlight inserts somehow! */
|
37
|
+
ins {
|
38
|
+
text-decoration: none;
|
39
|
+
}
|
40
|
+
del {
|
41
|
+
text-decoration: line-through;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* tables still need 'cellspacing="0"' in the markup */
|
45
|
+
table {
|
46
|
+
border-collapse: collapse;
|
47
|
+
border-spacing: 0;
|
48
|
+
}
|
data/docs/favicon.ico
ADDED
Binary file
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>temperature.rb</title>
|
5
|
+
<meta charset="UTF-8" />
|
6
|
+
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
|
7
|
+
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
|
8
|
+
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
|
9
|
+
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
<div class="banner">
|
17
|
+
|
18
|
+
<h1>
|
19
|
+
temperature.rb
|
20
|
+
</h1>
|
21
|
+
<ul class="files">
|
22
|
+
|
23
|
+
<li>
|
24
|
+
lib/basic_temperature/temperature.rb
|
25
|
+
|
26
|
+
</li>
|
27
|
+
<li>Last modified: 2020-03-19 21:16:10 +0200</li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="bodyContent">
|
32
|
+
<div id="content">
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
<!-- Methods -->
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
</div>
|
70
|
+
|
71
|
+
</div>
|
72
|
+
</body>
|
73
|
+
</html>
|