unit_measurements 5.11.0 → 5.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/base.rb +18 -0
- data/lib/unit_measurements/version.rb +1 -1
- data/lib/unit_measurements.rb +0 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 299b2e4f1e3ebfedd82a18f0010b1aef87e464a00b17bb0fdccbd3d1d1d43807
|
4
|
+
data.tar.gz: a80df705e041ae39d0008e8f4e58b792850fc0b5cd74c4983846e02a371b7216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c01c9a8d9b7fd6f3315b8befea0d852cb3e9c8ba8b2866975f60055c697f5fbb8af8fb7844f94144ca1b3919107bc8fb4570945974a1a62568febe1d665cd61
|
7
|
+
data.tar.gz: 880f955b5cf1ff30c51247ed3338a68ed78b4a9d416d9f7a594ca377b403749f5c3fad8b1515c56b2cf5b2656ddaa7b4759bad8ca38e8b383043b12b1853b597
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## [5.11.1](https://github.com/shivam091/unit_measurements/compare/v5.11.0...v5.11.1) - 2023-11-16
|
2
|
+
|
3
|
+
### What's changed
|
4
|
+
|
5
|
+
- Moved `BaseError` to base file for removing uninitialized constant error in reverse dependencies viz.
|
6
|
+
[unit_measurements-rails](https://rubygems.org/gems/unit_measurements-rails) and
|
7
|
+
[composite_unit_measurements](https://rubygems.org/gems/composite_unit_measurements).
|
8
|
+
|
9
|
+
----------
|
10
|
+
|
1
11
|
## [5.11.0](https://github.com/shivam091/unit_measurements/compare/v5.10.0...v5.11.0) - 2023-11-11
|
2
12
|
|
3
13
|
### What's new
|
data/Gemfile.lock
CHANGED
@@ -5,7 +5,25 @@
|
|
5
5
|
require "active_support/all"
|
6
6
|
require "unit_measurements/version"
|
7
7
|
|
8
|
+
# The +UnitMeasurements+ module serves as a container for various functionalities
|
9
|
+
# related to unit measurements. It provides methods for creating custom unit
|
10
|
+
# groups, defining units, performing arithmetic operations, comparison between
|
11
|
+
# measurements, conversions, normalization of input strings, parsing measurements
|
12
|
+
# from strings, and more. It is a fundamental part of the unit measurements library.
|
13
|
+
#
|
14
|
+
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
|
15
|
+
# @since 0.1.0
|
8
16
|
module UnitMeasurements
|
17
|
+
# This is the base class for custom errors in the +UnitMeasurements+ module.
|
18
|
+
#
|
19
|
+
# @see ParseError
|
20
|
+
# @see PrimitiveUnitAlreadySetError
|
21
|
+
# @see UnitAlreadyDefinedError
|
22
|
+
# @see UnitError
|
23
|
+
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
|
24
|
+
# @since 1.1.0
|
25
|
+
class BaseError < StandardError; end
|
26
|
+
|
9
27
|
class << self
|
10
28
|
# Allows setting an instance of +Configuration+ containing values of desired
|
11
29
|
# configurable options.
|
data/lib/unit_measurements.rb
CHANGED
@@ -2,26 +2,6 @@
|
|
2
2
|
# -*- frozen_string_literal: true -*-
|
3
3
|
# -*- warn_indent: true -*-
|
4
4
|
|
5
|
-
# The +UnitMeasurements+ module serves as a container for various functionalities
|
6
|
-
# related to unit measurements. It provides methods for creating custom unit
|
7
|
-
# groups, defining units, performing arithmetic operations, comparison between
|
8
|
-
# measurements, conversions, normalization of input strings, parsing measurements
|
9
|
-
# from strings, and more. It is a fundamental part of the unit measurements library.
|
10
|
-
#
|
11
|
-
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
|
12
|
-
# @since 0.1.0
|
13
|
-
module UnitMeasurements
|
14
|
-
# This is the base class for custom errors in the +UnitMeasurements+ module.
|
15
|
-
#
|
16
|
-
# @see ParseError
|
17
|
-
# @see PrimitiveUnitAlreadySetError
|
18
|
-
# @see UnitAlreadyDefinedError
|
19
|
-
# @see UnitError
|
20
|
-
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
|
21
|
-
# @since 1.1.0
|
22
|
-
class BaseError < StandardError; end
|
23
|
-
end
|
24
|
-
|
25
5
|
require "unit_measurements/base"
|
26
6
|
|
27
7
|
require "unit_measurements/unit_groups/all"
|
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: 5.11.
|
4
|
+
version: 5.11.1
|
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-11-
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|