sparkql 1.3.1 → 1.3.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: 0f8f460c07a1a833cd0a80040f686b12a9579db3bc0ae60d1cc7aa1c73fe644d
4
- data.tar.gz: 66a6701ad74dc5454d9e4dd2a14c0ea133715e10ba5babb676c90aed62e917bd
3
+ metadata.gz: d4f82b65f3fa050b24c53c7c5cb1e4a113d99e5e4ada4510695179c100aac711
4
+ data.tar.gz: 6fb9758b1883beadbbf9f864a9b1b782bfbc6f29b1a0061f9f66f33e1a0ed0b3
5
5
  SHA512:
6
- metadata.gz: 661e847ae1aa0f336706d94129c0afdc7d0ba040c0c8f62b7a6e9248dcc990d8f0179ef153355e050bae2b8a2f676c7e358081280418986c6c0bbf27393ac572
7
- data.tar.gz: 4b64da6af2453236ec0b9c0e240238241609c79e0d4b8cca2c126ecc9b5e3b7e9c585836cc0dceb9a5136cb9decb993bffdef0145720de8dd734b2b2f291f340
6
+ metadata.gz: 9752471d2b83c520c9ac52fa6fbc0219ffd914648bd8801f7953f41799a31ecd3de242e9a62e89cf5a7752c29337e85b14cba254779583ad914ac3cc4c06dc5b
7
+ data.tar.gz: 3ccd9092e28b7fd3064768deb46eb4d7d5205be213adad251bb568958d4975e109080a74759613fb6c0e425a0ddda0ca7af37253b71bbe2ce18fd57891e0f6e3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ v1.3.2, 2025-08-06
2
+ -------------------
3
+ * [BUGFIX] More Evaluator fixes
4
+ * [BUGFIX] fixed the build.
5
+
1
6
  v1.3.1, 2025-08-06
2
7
  -------------------
3
8
  * [BUGFIX] Evaluator fix for Not expressions
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -60,20 +60,22 @@ class Sparkql::Evaluator
60
60
  # with a level -1 here to turn the top level expressions into a block
61
61
  # group for processing.
62
62
  current_level = level
63
+ last_block_group = block_group
63
64
  while current_level >= 0
64
65
  current_level -= 1
65
66
  levels[current_level] ||= []
66
67
  last_block_group_id = levels[current_level].last
67
68
  if last_block_group_id
68
- block_groups[last_block_group_id][:expressions] << block_group
69
+ block_groups[last_block_group_id][:expressions] << last_block_group
69
70
  break
70
71
  else
71
72
  block_id = "placeholder_for_#{block}_#{current_level}"
72
- placeholder_block = block_builder(block_group, current_level)
73
- placeholder_block[:expressions] << block_group
73
+ placeholder_block = block_builder(last_block_group, current_level)
74
+ placeholder_block[:expressions] << last_block_group
74
75
 
75
76
  levels[current_level] << block_id
76
77
  block_groups[block_id] = placeholder_block
78
+ last_block_group = placeholder_block
77
79
  end
78
80
  end
79
81
  end
@@ -81,6 +81,10 @@ class EvaluatorTest < Test::Unit::TestCase
81
81
  assert !sample("Test Eq true And ((Test Eq true And Test Eq false) Or Test Eq false) And Test Eq true")
82
82
  assert !sample("Test Eq true And ((Test Eq true And Test Eq false) Or Test Eq false) Or Test Eq false")
83
83
  assert sample("Test Eq true And ((Test Eq true And Test Eq false) Or Test Eq false) Or Test Eq true")
84
+ assert !sample("(Test Eq true Or Test Eq true) And Test Eq false")
85
+ assert !sample("(Test Eq true Or Test Eq true) And (Test Eq false)")
86
+ assert sample("(Test Eq true Or Test Eq true) And (Test Eq false Or Test Eq true)")
87
+ assert !sample("(Test Eq true Or Test Eq true) And (Test Eq false Or Test Eq false)")
84
88
  end
85
89
 
86
90
  def test_nots
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wade McEwen