sy 2.0.25 → 2.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sy.rb +3 -1
  3. data/lib/sy/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24baeaf62c901ccf786273b745e8618c4a1b23b7
4
- data.tar.gz: 39ba8642548ca65e7e90549c12f8f7415688f57d
3
+ metadata.gz: db9e1787d0946b23fe62607d1e84cd6ba29f65eb
4
+ data.tar.gz: a5b370d1208617685000f4193b66c2528b70aea4
5
5
  SHA512:
6
- metadata.gz: b402d3d0e1e6caa97a717680ee62fd00b0f47452fa07e39fd75dd50be421c71754e9ba505b4ee15c3b4853bd05faa33ba338658c58f6f5de5c84290e062a54c8
7
- data.tar.gz: ec3ad67eccf83dd9e0034c9f6734616defb5ea20e74e709f9a7150cf3cd43d17da5efe9d0324f30cb7f559cec5c8dae76925fdf5ad13d1eb11ae3cd32ee58de0
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: 9_460_730_472_580_800 * METRE
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
@@ -1,5 +1,5 @@
1
1
  module SY
2
- VERSION = "2.0.25"
2
+ VERSION = "2.0.26"
3
3
  DEBUG = false # debug mode switch - sometimes there are lines like
4
4
  # puts "something" if SY::DEBUG
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.25
4
+ version: 2.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris