Skip to content

Commit de6ea59

Browse files
committed
Bump to 2.10.0 and release
1 parent 46f51db commit de6ea59

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# 2.10.0
1+
## 2.10.0 - 2026-04-24
22

33
* Add support for compiling `Predicate.native` to Sequel, if the
44
operand respond to :sql or :sql_literal
55

6-
# 2.9.0 - 2025-04-03
6+
## 2.9.0 - 2025-04-03
77

88
* Add Predicate#to_hashes that returns a pair of positive and
99
negative hashes. Generalization of to_hash where neq are used.
1010

11-
# 2.8.0 - 2023-06-09
11+
## 2.8.0 - 2023-06-09
1212

1313
* BREAKING: removed support for ruby < 2.7 and upgraded sexpr
1414
to 1.1.x
@@ -18,18 +18,18 @@
1818
Implementation is fuly functional, yet error messages will
1919
be improved in the future by a better usage of minitest itself.
2020

21-
# 2.7.1 - 2022-04-21
21+
## 2.7.1 - 2022-04-21
2222

2323
* Add shadow support for Exists tree nodes, that are used by
2424
Bmg for some `restrict -> WHERE` translations.
2525

26-
# 2.7.0 - 2022-02-10
26+
## 2.7.0 - 2022-02-10
2727

2828
* Add (experimental) support for translation of `empty` and
2929
`intersect` on arrays to usage of PostgreSQL's `pg_array`
3030
operators (`overlaps` in particular).
3131

32-
# 2.6.0 - 2021-12-11
32+
## 2.6.0 - 2021-12-11
3333

3434
* Upgraded `sexpr` to 1.0
3535

@@ -45,7 +45,7 @@
4545
Predicate.h(:x => [2,3], ...) # in(:x, [2,2]) & ...
4646
Predicate.h(:x => /a-z/, ...) # match(:x, /a-z/) & ...
4747

48-
# 2.5.0 - 2020-12-30
48+
## 2.5.0 - 2020-12-30
4949

5050
* Add `Predicate.dsl` for building complex expressions without having
5151
to prefix factory methods with `Predicate.` all the time.
@@ -75,31 +75,31 @@
7575
* Enhanced README, specified the public API, add jeny code blocks to
7676
help contributors providing new predicates.
7777

78-
# 2.4.0 / 2020-07-23
78+
## 2.4.0 / 2020-07-23
7979

8080
* Add Predicate#to_hash that allows getting back a Hash object
8181
representing the same predicate as of `Predicate.coerce` semantics.
8282
The method raises an ArgumentError if the predicate cannot be
8383
simplified so as to preserve the semantics.
8484

85-
# 2.3.3 / 2020-07-08
85+
## 2.3.3 / 2020-07-08
8686

8787
* Add Predicate#unqualify that transforms all qualified identifiers to
8888
normal identifiers. The resulting predicate might not be semantically
8989
equivalent.
9090

91-
# 2.3.2 / 2020-07-08
91+
## 2.3.2 / 2020-07-08
9292

9393
* Fix Predicate#& when using qualified identifier. The qualifier was not
9494
correctly taken into account, yielding conjunctions wrongly loosing
9595
terms.
9696

97-
# 2.3.1 / 2020-04-29
97+
## 2.3.1 / 2020-04-29
9898

9999
* Fix #eq against #in having a placeholder. Yields a undefined method
100100
`include?`.
101101

102-
# 2.3.0 / 2020-04-20
102+
## 2.3.0 / 2020-04-20
103103

104104
* Add an experimental support for literal placeholders. The aim is to let
105105
build complex expressions with unknown literals, to be bound later using
@@ -113,12 +113,12 @@
113113

114114
* Fix Predicate.intersect having wrong #constants_variables logic.
115115

116-
# 2.2.1 / 2020-01-21
116+
## 2.2.1 / 2020-01-21
117117

118118
* Fix `in(:x, [2, 3]) & eq(:x, 1)` begin wrongly optimized as `eq(:x, 1)`
119119
while it must yield a contradiction.
120120

121-
# 2.2.0 / 2019-06-07
121+
## 2.2.0 / 2019-06-07
122122

123123
* Fix SQL compilation of `Predicate#in` where the list of values
124124
contains nil, including edge cases (e.g. where only nil is present).
@@ -127,13 +127,13 @@
127127
* Add `Predicate#call` alias to `Predicate#evaluate` in order to let
128128
client write simpler expressions.
129129

130-
# 2.1
130+
## 2.1
131131

132132
* Introduction of an `opaque` node kind to help with pseudo-literals
133133
used in IN expressions. IN expressions now accept any right term,
134134
instead of an array of values.
135135

136-
# 2.0 - 2018-05-28
136+
## 2.0 - 2018-05-28
137137

138138
* Add `Predicate#match` to match attributes against strings and
139139
regular expressions.
@@ -143,25 +143,25 @@
143143
also because they tend to be dangerous to use from a security point
144144
of view (allowing end user code injection).
145145

146-
# 1.3.4 / 2018-03-30
146+
## 1.3.4 / 2018-03-30
147147

148148
* `Predicate.in` now returns a contradiction when the set of values
149149
is known to be empty.
150150

151-
# 1.3.3 / 2018-03-16
151+
## 1.3.3 / 2018-03-16
152152

153153
* Add `Predicate#to_s` and `#inspect` with a more readable predicate
154154
representation.
155155

156-
# 1.3.2 / 2018-03-14
156+
## 1.3.2 / 2018-03-14
157157

158158
* Fix `#evaluate` on `Predicate.in`.
159159

160-
# 1.3.1 / 2018-03-13
160+
## 1.3.1 / 2018-03-13
161161

162162
* Fix `#evaluate` on `Predicate.intersect`.
163163

164-
# 1.3 / 2018-03-13
164+
## 1.3 / 2018-03-13
165165

166166
* Add various & optimizations, typically those yielding tautologies
167167
and contradictions.
@@ -177,7 +177,7 @@
177177
* Changed `Predicate#evaluate` to avoid relying on an unsafe ruby
178178
code generation.
179179

180-
# 1.2 / 2018-03-09
180+
## 1.2 / 2018-03-09
181181

182182
* Add `Predicate#intersect` that has same limitations than `#in`
183183
(only `identifier OP values` is supported) but an array/set
@@ -200,22 +200,22 @@
200200
is a Sequel compatible literal, that is, an object responding to
201201
`:sql_literal`.
202202

203-
# 1.1.3 / 2018-03-07
203+
## 1.1.3 / 2018-03-07
204204

205205
* Document `and_split` and review all actual implementations to make sure
206206
of their correctness. Let Native implement the specification without
207207
throwing a NotSupportedError.
208208

209-
# 1.1.2 / 2018-03-06
209+
## 1.1.2 / 2018-03-06
210210

211211
* Fix error raised by Sequel when trying to compile a Native predicate.
212212
Predicate::NotSupportedError must be raised, not NotImplementedError.
213213

214-
# 1.1.1 / 2018-03-03
214+
## 1.1.1 / 2018-03-03
215215

216216
* Removed unnecessary & unused 'path' dependency.
217217

218-
# 1.1.0 / 2018-03-03
218+
## 1.1.0 / 2018-03-03
219219

220220
* Adds `Predicate.from_hash(x: 12, y: ['foo', 'bar'])`, also supported
221221
by `Predicate.coerce(...)`, with `x = 12 and y in ('foo','bar')`
@@ -226,7 +226,7 @@
226226
must be required by the user. `Predicate.to_sequel` is only available
227227
if `require 'predicate/sequel'` is done first.
228228

229-
# 1.0.0 / 2018-03-03
229+
## 1.0.0 / 2018-03-03
230230

231231
Predicate 1.0.0, extracted & refactored from alf-core.
232232

lib/predicate/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Predicate
22
module Version
33
MAJOR = 2
4-
MINOR = 9
4+
MINOR = 10
55
TINY = 0
66
end
77
VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"

0 commit comments

Comments
 (0)