Skip to content

Commit

Permalink
Merge pull request #64 from shivam091/5.11.1
Browse files Browse the repository at this point in the history
5.11.1
  • Loading branch information
shivam091 authored Nov 16, 2023
2 parents 6aeb4c1 + 15b9aad commit 594e1b0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 22 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [5.11.1](https://github.com/shivam091/unit_measurements/compare/v5.11.0...v5.11.1) - 2023-11-16

### What's changed

- Moved `BaseError` to base file for removing uninitialized constant error in reverse dependencies viz.
[unit_measurements-rails](https://rubygems.org/gems/unit_measurements-rails) and
[composite_unit_measurements](https://rubygems.org/gems/composite_unit_measurements).

----------

## [5.11.0](https://github.com/shivam091/unit_measurements/compare/v5.10.0...v5.11.0) - 2023-11-11

### What's new
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
unit_measurements (5.11.0)
unit_measurements (5.11.1)
activesupport (~> 7.0)

GEM
Expand Down
20 changes: 0 additions & 20 deletions lib/unit_measurements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,6 @@
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

# The +UnitMeasurements+ module serves as a container for various functionalities
# related to unit measurements. It provides methods for creating custom unit
# groups, defining units, performing arithmetic operations, comparison between
# measurements, conversions, normalization of input strings, parsing measurements
# from strings, and more. It is a fundamental part of the unit measurements library.
#
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
# @since 0.1.0
module UnitMeasurements
# This is the base class for custom errors in the +UnitMeasurements+ module.
#
# @see ParseError
# @see PrimitiveUnitAlreadySetError
# @see UnitAlreadyDefinedError
# @see UnitError
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
# @since 1.1.0
class BaseError < StandardError; end
end

require "unit_measurements/base"

require "unit_measurements/unit_groups/all"
18 changes: 18 additions & 0 deletions lib/unit_measurements/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,25 @@
require "active_support/all"
require "unit_measurements/version"

# The +UnitMeasurements+ module serves as a container for various functionalities
# related to unit measurements. It provides methods for creating custom unit
# groups, defining units, performing arithmetic operations, comparison between
# measurements, conversions, normalization of input strings, parsing measurements
# from strings, and more. It is a fundamental part of the unit measurements library.
#
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
# @since 0.1.0
module UnitMeasurements
# This is the base class for custom errors in the +UnitMeasurements+ module.
#
# @see ParseError
# @see PrimitiveUnitAlreadySetError
# @see UnitAlreadyDefinedError
# @see UnitError
# @author {Harshal V. Ladhe}[https://shivam091.github.io/]
# @since 1.1.0
class BaseError < StandardError; end

class << self
# Allows setting an instance of +Configuration+ containing values of desired
# configurable options.
Expand Down
2 changes: 1 addition & 1 deletion lib/unit_measurements/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

module UnitMeasurements
# Current stable version.
VERSION = "5.11.0"
VERSION = "5.11.1"
end

0 comments on commit 594e1b0

Please sign in to comment.