determinator 2.9.1 → 2.9.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 227a75590dfa088f7096c65a51ab2d2950f9605ed3f29c7d62119df86e2c3721
4
- data.tar.gz: 77c7e9ae41428c7e898f3dca7464d6987210379723bd8bc73906a8c73cbd62d2
3
+ metadata.gz: 14629ea70bc6ef083ef707b43a00dcf3b5cb1e8234ad91c202efd5a70b1e6dac
4
+ data.tar.gz: a7b8af30577d40b93c948e0ff726ac12236fee899ae5be8f9b165e1e934a93d0
5
5
  SHA512:
6
- metadata.gz: 59fcec1ac83528e76f9ccdfb5985732d336fc6bb177055a4d5c02a4929f20c98b1a6052c96fa3397430c40d40733b4b8fb2fb801db041a3a125db64bd68276cf
7
- data.tar.gz: dc73504e3e55e79d10a0939e3a32f16525523b8e480da280aae2a0400b578b3e04cb893ef593967767ffab88370ef118310d37b7df906cc48ea547dcb8570e91
6
+ metadata.gz: 4daeb35cd313579c5916e1a88300062e99b4185d6dab9fa5e825e1de56d65d8d2028ba37d22da398b730103f9d6f7ca3725d331b42b90e204d2c016eacce43ae
7
+ data.tar.gz: 6fc1b952241c2a8d58a94cdc0fe5f7c9255d41ed1e1228f5b35da4a16bebd94539388b1b1f4b0f7bec4ec17f1e17569006443e0ba787df5d9a54e822db68759e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 2.9.2
2
+
3
+ Bug fix:
4
+ - Fix parsing fixed determinations when the variant is an empty string
5
+
1
6
  # 2.9.1
2
7
 
3
8
  Feature:
@@ -100,10 +100,10 @@ module Determinator
100
100
  return fixed_determination if fixed_determination.is_a? FixedDetermination
101
101
 
102
102
  variant = fixed_determination['variant']
103
- return nil if variant && !variants.keys.include?(variant)
103
+ return nil if variant.present? && !variants.keys.include?(variant)
104
104
 
105
105
  # if a variant is present the fixed determination should always be on
106
- return nil if variant && !fixed_determination['feature_on']
106
+ return nil if variant.present? && !fixed_determination['feature_on']
107
107
 
108
108
  constraints = fixed_determination['constraints'].to_h
109
109
 
@@ -1,3 +1,3 @@
1
1
  module Determinator
2
- VERSION = '2.9.1'
2
+ VERSION = '2.9.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: determinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Hastings-Spital
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday