unit_measurements 4.6.0 → 4.8.0
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/CHANGELOG.md +19 -0
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/unit_groups/all.rb +5 -0
- data/lib/unit_measurements/unit_groups/magnetomotive_force.rb +15 -0
- data/lib/unit_measurements/unit_groups/radiation_absorbed_dose.rb +16 -0
- data/lib/unit_measurements/unit_groups/radiation_equivalent_dose.rb +15 -0
- data/lib/unit_measurements/unit_groups/radiation_exposure.rb +15 -0
- data/lib/unit_measurements/unit_groups/radioactivity.rb +14 -0
- data/lib/unit_measurements/version.rb +1 -1
- data/units.md +48 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8046d5e04114b1fabaf68f3a7961194998256eef079e08e39b9eb45dbe9b0d5
|
4
|
+
data.tar.gz: 6bfcdc706fec4ffb18ff7ee9b983e171619e7db43106df66806f0059944cfcde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9afeec8751cbe6565209413c52313d6c1c4381da9932cc302d023f2d22f6e27454032b91b2a38d15b56bd4528687c67adf161fb71c3bcb9accd2dabc6b6b5ea2
|
7
|
+
data.tar.gz: a47be79f33254b948e09b2417f60259f6433e0738e5619316512b08f1257afea9be32cad68bd64dea4d78385ff87e07d6644afb06a3b6a84ab1fa7ff9f4d193e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
## [4.8.0](https://github.com/shivam091/unit_measurements/compare/v4.7.0...v4.8.0) - 2023-10-11
|
2
|
+
|
3
|
+
### What's new
|
4
|
+
|
5
|
+
- Added unit group for `radiation exposure` units.
|
6
|
+
- Added unit group for `radiation absorbed dose` units.
|
7
|
+
- Added unit group for `radiation equivalent dose` units.
|
8
|
+
|
9
|
+
----------
|
10
|
+
|
11
|
+
## [4.7.0](https://github.com/shivam091/unit_measurements/compare/v4.6.0...v4.7.0) - 2023-10-11
|
12
|
+
|
13
|
+
### What's new
|
14
|
+
|
15
|
+
- Added unit group for `magnetomotive force` units.
|
16
|
+
- Added unit group for `radioactivity` units.
|
17
|
+
|
18
|
+
----------
|
19
|
+
|
1
20
|
## [4.6.0](https://github.com/shivam091/unit_measurements/compare/v4.5.0...v4.6.0) - 2023-10-10
|
2
21
|
|
3
22
|
### What's new
|
data/Gemfile.lock
CHANGED
@@ -45,6 +45,11 @@ require_relative "power"
|
|
45
45
|
require_relative "energy"
|
46
46
|
require_relative "dynamic_viscosity"
|
47
47
|
require_relative "kinetic_viscosity"
|
48
|
+
require_relative "magnetomotive_force"
|
49
|
+
require_relative "radioactivity"
|
50
|
+
require_relative "radiation_exposure"
|
51
|
+
require_relative "radiation_absorbed_dose"
|
52
|
+
require_relative "radiation_equivalent_dose"
|
48
53
|
|
49
54
|
## Other units
|
50
55
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::MagnetomotiveForce = UnitMeasurements.build do
|
6
|
+
primitive "A⋅t"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
unit "A⋅t", aliases: ["A*t", "ampere-turn"]
|
10
|
+
end
|
11
|
+
|
12
|
+
system :centimetre_gram_second do
|
13
|
+
unit "Gb", value: [Rational(10, (4 * Math::PI)), "A⋅t"], aliases: ["Gi", "gilbert", "gilberts"]
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::RadiationAbsorbedDose = UnitMeasurements.build do
|
6
|
+
primitive "Gy"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
si_unit "Gy", aliases: ["gray", "grays"]
|
10
|
+
end
|
11
|
+
|
12
|
+
system :centimetre_gram_second do
|
13
|
+
unit "erg/g", value: "1e-4 Gy", aliases: ["erg per gram", "erg per gramme", "ergs per gram", "ergs per gramme"]
|
14
|
+
unit "rad", value: "0.01 Gy", aliases: ["radiation absorbed dose"]
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::RadiationEquivalentDose = UnitMeasurements.build do
|
6
|
+
primitive "Sv"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
si_unit "Sv", aliases: ["sievert", "sieverts"]
|
10
|
+
end
|
11
|
+
|
12
|
+
system :centimetre_gram_second do
|
13
|
+
unit "rem", value: "0.01 Sv", aliases: ["röntgen equivalent man", "roentgen equivalent man"]
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::RadiationExposure = UnitMeasurements.build do
|
6
|
+
primitive "C/kg"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
si_unit "C/kg", aliases: ["coulomb per kilogram", "coulomb per kilogramme", "coulombs per kilogram", "coulombs per kilogramme"]
|
10
|
+
end
|
11
|
+
|
12
|
+
system :legacy_units do
|
13
|
+
unit "R", value: "0.000258 C/kg", aliases: ["röntgen", "roentgen", "roentgens"]
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Radioactivity = UnitMeasurements.build do
|
6
|
+
primitive "Bq"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
si_unit "Bq", aliases: ["becquerel", "becquerels"]
|
10
|
+
end
|
11
|
+
|
12
|
+
unit "Ci", value: "3.7e+10 Bq", aliases: ["curie", "curies"]
|
13
|
+
unit "Rd", value: "1e+6 Bq", aliases: ["rutherford", "rutherfords"]
|
14
|
+
end
|
data/units.md
CHANGED
@@ -5,7 +5,7 @@ bundled units before converting your measurements.
|
|
5
5
|
|
6
6
|
**Notes:**
|
7
7
|
1. Unit names suffixed with `*` support all [SI prefixes](README.md#support-for-si-decimal-prefixes).
|
8
|
-
2. Primitive unit of the unit group is in
|
8
|
+
2. Primitive unit of the unit group is in _emphasised typeface_.
|
9
9
|
|
10
10
|
## 1. Length/Distance
|
11
11
|
|
@@ -506,3 +506,50 @@ These units are defined in `UnitMeasurements::KineticViscosity`.
|
|
506
506
|
| 2 | St | strokes |
|
507
507
|
| 3 | ft²/s | ft^2/s, square foot per second, square feet per second |
|
508
508
|
| 4 | in²/s | in^2/s, square inch per second, square inches per second |
|
509
|
+
|
510
|
+
## 43. Magnetomotive force
|
511
|
+
|
512
|
+
These units are defined in `UnitMeasurements::MagnetomotiveForce`.
|
513
|
+
|
514
|
+
| # | Name | Aliases |
|
515
|
+
|:--|:--|:--|
|
516
|
+
| _1_ | _A⋅t_ | _A*t, ampere-turn_ |
|
517
|
+
| 2 | Gb | Gi, gilbert, gilberts |
|
518
|
+
|
519
|
+
## 44. Radioactivity
|
520
|
+
|
521
|
+
These units are defined in `UnitMeasurements::Radioactivity`.
|
522
|
+
|
523
|
+
| # | Name | Aliases |
|
524
|
+
|:--|:--|:--|
|
525
|
+
| _1_ | _Bq*_ | _becquerel, becquerels_ |
|
526
|
+
| 2 | Ci | curie, curies |
|
527
|
+
| 3 | Rd | rutherford, rutherfords |
|
528
|
+
|
529
|
+
## 45. Radiation exposure
|
530
|
+
|
531
|
+
These units are defined in `UnitMeasurements::RadiationExposure`.
|
532
|
+
|
533
|
+
| # | Name | Aliases |
|
534
|
+
|:--|:--|:--|
|
535
|
+
| _1_ | _C/kg*_ | _coulomb per kilogram, coulomb per kilogramme, coulombs per kilogram, coulombs per kilogramme_ |
|
536
|
+
| 2 | R | röntgen, roentgen, roentgens |
|
537
|
+
|
538
|
+
## 46. Radiation absorbed dose
|
539
|
+
|
540
|
+
These units are defined in `UnitMeasurements::RadiationAbsorbedDose`.
|
541
|
+
|
542
|
+
| # | Name | Aliases |
|
543
|
+
|:--|:--|:--|
|
544
|
+
| _1_ | _Gy*_ | _gray, grays_ |
|
545
|
+
| 2 | erg/g | erg per gram, erg per gramme, ergs per gram, ergs per gramme |
|
546
|
+
| 3 | rad | radiation absorbed dose |
|
547
|
+
|
548
|
+
## 47. Radiation equivalent dose
|
549
|
+
|
550
|
+
These units are defined in `UnitMeasurements::RadiationEquivalentDose`.
|
551
|
+
|
552
|
+
| # | Name | Aliases |
|
553
|
+
|:--|:--|:--|
|
554
|
+
| _1_ | _Sv*_ | _sievert, sieverts_ |
|
555
|
+
| 2 | rem | röntgen equivalent man, roentgen equivalent man |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unit_measurements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harshal LADHE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -150,10 +150,15 @@ files:
|
|
150
150
|
- lib/unit_measurements/unit_groups/magnetic_field.rb
|
151
151
|
- lib/unit_measurements/unit_groups/magnetic_flux.rb
|
152
152
|
- lib/unit_measurements/unit_groups/magnetic_induction.rb
|
153
|
+
- lib/unit_measurements/unit_groups/magnetomotive_force.rb
|
153
154
|
- lib/unit_measurements/unit_groups/plane_angle.rb
|
154
155
|
- lib/unit_measurements/unit_groups/power.rb
|
155
156
|
- lib/unit_measurements/unit_groups/pressure.rb
|
156
157
|
- lib/unit_measurements/unit_groups/quantity.rb
|
158
|
+
- lib/unit_measurements/unit_groups/radiation_absorbed_dose.rb
|
159
|
+
- lib/unit_measurements/unit_groups/radiation_equivalent_dose.rb
|
160
|
+
- lib/unit_measurements/unit_groups/radiation_exposure.rb
|
161
|
+
- lib/unit_measurements/unit_groups/radioactivity.rb
|
157
162
|
- lib/unit_measurements/unit_groups/solid_angle.rb
|
158
163
|
- lib/unit_measurements/unit_groups/sound_level.rb
|
159
164
|
- lib/unit_measurements/unit_groups/temperature.rb
|