auom 0.3.0 → 0.3.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: 9a7dad47d0763bd36fc51452be282e6770defd02dd2456d25283f96306183569
4
- data.tar.gz: 9cfdfe4738323f4e8ad3213fcd07e808cfa9afb9a0b09932ac6fc855a36e10f5
3
+ metadata.gz: d36a4cfaf5c76cba2e1e9bef3292870e60e009f6838431e47275386bfebee64f
4
+ data.tar.gz: 062bb45aeff1423b43968b041172baa6ef635f217422a1d1946354a439253bfb
5
5
  SHA512:
6
- metadata.gz: b93ce51d8b7f5f90ca353f001dbd87ec4cefdbc12c008c2a3cb658527ef9199e35ba5dcf6561795251ff1c5c86ba4631c2b6aca781c8ce1dd11a394143ac4cdf
7
- data.tar.gz: 5c52401f2362f4d16f038634627fc6be09973392e9e33e18cb4415da5a088be04088a603e95d1b618016546e9a6f92a057779ba7cd09dbd7a6f0df7f02027d87
6
+ metadata.gz: 34cc2ebe32091b3108f148ec4f4a7c9e8965fcf75d712ee1214bc01a019d4b9ba14b761b6aff0151e524846875b70d628f127dc7e7eb7daf34975b5fe9204e74
7
+ data.tar.gz: 0714c5f9a04dd6a42653a930f3498c64c28483da943ae46e47a6980305e6e512bbc97e66f5fe5f8b8ec7c1b0e641363465801eaafead250e76b9d43076560578
@@ -1,3 +1,7 @@
1
+ # v0.3.1 2018-11-10
2
+
3
+ * Fix to provide operators for real ;)
4
+
1
5
  # v0.3.0 2018-11-10
2
6
 
3
7
  * [breaking-change] Change to provide all relational operators, remove named ones
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'auom'
5
- gem.version = '0.3.0'
5
+ gem.version = '0.3.1'
6
6
 
7
7
  gem.authors = ['Markus Schirp']
8
8
  gem.email = 'mbj@schirp-dso.com'
@@ -3,6 +3,8 @@
3
3
  module AUOM
4
4
  # Mixin to add relational operators
5
5
  module Relational
6
+ include Comparable
7
+
6
8
  # Perform comparison operation
7
9
  #
8
10
  # @param [Unit] other
@@ -5,9 +5,9 @@ module AUOM
5
5
  class Unit
6
6
  include Equalizer.new(:scalar, :numerators, :denominators)
7
7
  include Algebra
8
- include Equalization
9
8
  include Inspection
10
9
  include Relational
10
+ include Equalization
11
11
 
12
12
  # Return scalar
13
13
  #
@@ -36,4 +36,10 @@ describe AUOM::Relational do
36
36
  it_should_behave_like 'an incompatible operation'
37
37
  end
38
38
  end
39
+
40
+ describe 'Comparable inclusion' do
41
+ specify do
42
+ expect(AUOM::Unit < Comparable).to be(true)
43
+ end
44
+ end
39
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp