sy 2.0.25 → 2.0.26
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/lib/sy.rb +3 -1
- data/lib/sy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db9e1787d0946b23fe62607d1e84cd6ba29f65eb
|
4
|
+
data.tar.gz: a5b370d1208617685000f4193b66c2528b70aea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb1e66300893d4d546cbe0752a174035b5001820e3083b11e55506eecf552a2e59d69e915c5a35a635b3ba5f08185404d36af7d259cd5ab04a5bc199dc6ccd8d
|
7
|
+
data.tar.gz: 6044b36f27ee0fc00d770353ea9445f219f48eb51d828613c6edf75072952a7da10963ce8205abf8ba713e7d3fac95385d5db391b52c0f929394701499d69468
|
data/lib/sy.rb
CHANGED
@@ -157,6 +157,8 @@ module SY
|
|
157
157
|
# at this moment SY is handling this right. But nevertheless:
|
158
158
|
CelsiusTemperature = Quantity.of :Θ, coerces_to: Temperature
|
159
159
|
|
160
|
+
# CELSIUS_MEASURE is an object of SY::Measure class, that captures the
|
161
|
+
# conversion between centigrades and Kelvins.
|
160
162
|
CELSIUS_MEASURE = SY::Measure.simple_offset( TRIPLE_POINT_OF_WATER.to_f )
|
161
163
|
|
162
164
|
# Degree celsius is SY::CELSIUS
|
@@ -283,7 +285,7 @@ module SY
|
|
283
285
|
SPEED_OF_LIGHT = 299_792_458 * METRE / SECOND
|
284
286
|
|
285
287
|
# Supplementary unit of length.
|
286
|
-
LIGHTYEAR = Unit.of Length, short: "ly", amount:
|
288
|
+
LIGHTYEAR = Unit.of Length, short: "ly", amount: SPEED_OF_LIGHT * JULIAN_YEAR
|
287
289
|
|
288
290
|
# Similar for SY::Acceleration:
|
289
291
|
Acceleration = ( Speed / Time ).standard!
|
data/lib/sy/version.rb
CHANGED