algolia 3.36.0 → 3.36.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/models/search/rule.rb +13 -4
- data/lib/algolia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e508e18e233030b8a952305e808430e77ffae2806df0b98d74f1bb1ca5e9206
|
|
4
|
+
data.tar.gz: c774b7ffe0a502df62406e74556375f3200ff5aa79f24ff65b16a708d42eb863
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 182001191af6c15e4d4aa88ad175cde7d8e90d16b83209fb86401b33ef362a159437ce5aebb995c7a9cf70b3772469e87893dc773ceb503b0b2497655be6c656
|
|
7
|
+
data.tar.gz: e5bd0ee1d22fcecbd075e2803cc66781664affe17891800588baa4665d15b61b446dc46343ed830eca38dc6f1864a9ec17cccdb4e4c2dc3713f7273e753b4f21
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [3.36.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.36.0...3.36.1)
|
|
2
|
+
|
|
3
|
+
- [505136c9d](https://github.com/algolia/api-clients-automation/commit/505136c9d) fix(specs): add deprecated field `condition` in rule schemas ([#5983](https://github.com/algolia/api-clients-automation/pull/5983)) by [@MarioAlexandruDan](https://github.com/MarioAlexandruDan/)
|
|
4
|
+
|
|
1
5
|
## [3.36.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.35.1...3.36.0)
|
|
2
6
|
|
|
3
7
|
- [93c834fee](https://github.com/algolia/api-clients-automation/commit/93c834fee) feat(specs): add optional feedID to composition result set ([#5991](https://github.com/algolia/api-clients-automation/pull/5991)) by [@gavinwade12](https://github.com/gavinwade12/)
|
data/Gemfile.lock
CHANGED
|
@@ -30,6 +30,8 @@ module Algolia
|
|
|
30
30
|
|
|
31
31
|
attr_accessor :scope
|
|
32
32
|
|
|
33
|
+
attr_accessor :condition
|
|
34
|
+
|
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
36
|
def self.attribute_map
|
|
35
37
|
{
|
|
@@ -40,7 +42,8 @@ module Algolia
|
|
|
40
42
|
:enabled => :enabled,
|
|
41
43
|
:validity => :validity,
|
|
42
44
|
:tags => :tags,
|
|
43
|
-
:scope => :scope
|
|
45
|
+
:scope => :scope,
|
|
46
|
+
:condition => :condition
|
|
44
47
|
}
|
|
45
48
|
end
|
|
46
49
|
|
|
@@ -54,7 +57,8 @@ module Algolia
|
|
|
54
57
|
:enabled => :"Boolean",
|
|
55
58
|
:validity => :"Array<TimeRange>",
|
|
56
59
|
:tags => :"Array<String>",
|
|
57
|
-
:scope => :"String"
|
|
60
|
+
:scope => :"String",
|
|
61
|
+
:condition => :"Condition"
|
|
58
62
|
}
|
|
59
63
|
end
|
|
60
64
|
|
|
@@ -126,6 +130,10 @@ module Algolia
|
|
|
126
130
|
if attributes.key?(:scope)
|
|
127
131
|
self.scope = attributes[:scope]
|
|
128
132
|
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:condition)
|
|
135
|
+
self.condition = attributes[:condition]
|
|
136
|
+
end
|
|
129
137
|
end
|
|
130
138
|
|
|
131
139
|
# Checks equality by comparing each attribute.
|
|
@@ -140,7 +148,8 @@ module Algolia
|
|
|
140
148
|
enabled == other.enabled &&
|
|
141
149
|
validity == other.validity &&
|
|
142
150
|
tags == other.tags &&
|
|
143
|
-
scope == other.scope
|
|
151
|
+
scope == other.scope &&
|
|
152
|
+
condition == other.condition
|
|
144
153
|
end
|
|
145
154
|
|
|
146
155
|
# @see the `==` method
|
|
@@ -152,7 +161,7 @@ module Algolia
|
|
|
152
161
|
# Calculates hash code according to all attributes.
|
|
153
162
|
# @return [Integer] Hash code
|
|
154
163
|
def hash
|
|
155
|
-
[algolia_object_id, conditions, consequence, description, enabled, validity, tags, scope].hash
|
|
164
|
+
[algolia_object_id, conditions, consequence, description, enabled, validity, tags, scope, condition].hash
|
|
156
165
|
end
|
|
157
166
|
|
|
158
167
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED