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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca26bc8965c93c692a72e788ab2577f2bad297909372a72d3cc2fec93a45b5bd
4
- data.tar.gz: 581d716cb56cf59c89eeb69d01095c4c0c14054006dc6bb0822580e3d6750ffd
3
+ metadata.gz: 299b2e4f1e3ebfedd82a18f0010b1aef87e464a00b17bb0fdccbd3d1d1d43807
4
+ data.tar.gz: a80df705e041ae39d0008e8f4e58b792850fc0b5cd74c4983846e02a371b7216
5
5
  SHA512:
6
- metadata.gz: ed994225ecb853f8ce577e0b53a863b0f091980ee33f054b50f69d156ad0a7e393a4a59d962d665aa52fa6cdc077f19f42bc27d0b1d8e7413f359dbde8e6a9fb
7
- data.tar.gz: 889e45c784390c89a46079067ca9493253e638b1117ee88c16c5ab2ed60db89a855a11bf487f2a6536b1729a2704983fbfcb5fa60959a2b8eed79dae4957d920
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit_measurements (5.11.0)
4
+ unit_measurements (5.11.1)
5
5
  activesupport (~> 7.0)
6
6
 
7
7
  GEM
@@ -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.
@@ -4,5 +4,5 @@
4
4
 
5
5
  module UnitMeasurements
6
6
  # Current stable version.
7
- VERSION = "5.11.0"
7
+ VERSION = "5.11.1"
8
8
  end
@@ -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.0
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 00:00:00.000000000 Z
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport