sy 2.0.24 → 2.0.25

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 +11 -0
  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: 8c9e614d2d346279f645193a867cb1aed5a1dca5
4
- data.tar.gz: dcab52ad5abbe1f34e6a7a99f7fcb4e633bb638c
3
+ metadata.gz: 24baeaf62c901ccf786273b745e8618c4a1b23b7
4
+ data.tar.gz: 39ba8642548ca65e7e90549c12f8f7415688f57d
5
5
  SHA512:
6
- metadata.gz: 22b5eade297ddabd143d6c9b1912380991562d8a00d7296dede53420ffa8da375658af9818b8261d288c3460feed779fc1375bb918af45536f1b86aee02171ca
7
- data.tar.gz: eacf691c4b3de194d644454d6e541c20a6e5d4ec41d3a6a52d0ad54b2024e4ace3985653bbf51974199454c8cc106fafd8a1c69f42a8c0ebd41ce3f17b113c3b
6
+ metadata.gz: b402d3d0e1e6caa97a717680ee62fd00b0f47452fa07e39fd75dd50be421c71754e9ba505b4ee15c3b4853bd05faa33ba338658c58f6f5de5c84290e062a54c8
7
+ data.tar.gz: ec3ad67eccf83dd9e0034c9f6734616defb5ea20e74e709f9a7150cf3cd43d17da5efe9d0324f30cb7f559cec5c8dae76925fdf5ad13d1eb11ae3cd32ee58de0
data/lib/sy.rb CHANGED
@@ -124,6 +124,14 @@ module SY
124
124
  MINUTE = Unit.of Time, short: "min", amount: 60 * SECOND
125
125
  # And SY::HOUR another:
126
126
  HOUR = Unit.of Time, short: "h", amount: 60 * MINUTE
127
+ # SY::DAY is defined in accordance with SI as 86_400.second
128
+ DAY = Unit.of Time, amount: 24 * HOUR
129
+ # SY::WEEK means exactly seven days
130
+ WEEK = Unit.of Time, amount: 7 * DAY
131
+ # Average lunar month.
132
+ SYNODIC_MONTH = 29.530589 * DAY
133
+ # Julian year.
134
+ YEAR = JULIAN_YEAR = 365.25 * DAY
127
135
 
128
136
  # === Basic dimension Q
129
137
 
@@ -274,6 +282,9 @@ module SY
274
282
  # Common constant
275
283
  SPEED_OF_LIGHT = 299_792_458 * METRE / SECOND
276
284
 
285
+ # Supplementary unit of length.
286
+ LIGHTYEAR = Unit.of Length, short: "ly", amount: 9_460_730_472_580_800 * METRE
287
+
277
288
  # Similar for SY::Acceleration:
278
289
  Acceleration = ( Speed / Time ).standard!
279
290
 
@@ -1,5 +1,5 @@
1
1
  module SY
2
- VERSION = "2.0.24"
2
+ VERSION = "2.0.25"
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.24
4
+ version: 2.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris