CloudSesame 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/cloud_sesame.gemspec +1 -1
- data/lib/cloud_sesame/query/builder.rb +3 -3
- data/spec/cloud_sesame/query/dsl/block_chaining_methods_spec.rb +0 -2
- data/spec/cloud_sesame/query/dsl/block_methods_spec.rb +0 -2
- data/spec/cloud_sesame/query/dsl/field_array_methods_spec.rb +0 -2
- data/spec/cloud_sesame/query/dsl/field_methods_spec.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c4c9374c039f8cdab3da4ec22d17706baa23a4
|
4
|
+
data.tar.gz: 9600876e639d302f4138da57c116e947087afd43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc23ba7626029370ac200ddac02a57b0731cdb695d7023f8388774f116cff99a583a6c930240f12d95ac3c702b71ecc5598d0ee82304d96c958b883ec7476383
|
7
|
+
data.tar.gz: 7316b4b97c6bebe8beba9320df8e2e2fde31a797ec788b2257b2922e566ac17dedc61bc576417d00a5b131d73514c2d5144e63a53ffb996277e4a23404029216
|
data/Gemfile.lock
CHANGED
data/cloud_sesame.gemspec
CHANGED
@@ -21,12 +21,12 @@ module CloudSesame
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def request
|
24
|
-
@request ||= Node::Request.new
|
24
|
+
@request ||= Node::Request.new(context.dup)
|
25
25
|
end
|
26
26
|
|
27
27
|
def response
|
28
28
|
@response ||= search
|
29
|
-
|
29
|
+
end
|
30
30
|
|
31
31
|
def compile
|
32
32
|
request.compile
|
@@ -58,7 +58,7 @@ module CloudSesame
|
|
58
58
|
def search
|
59
59
|
compiled = request.compile
|
60
60
|
raise Error::MissingQuery.new("Query or FilterQuery can not be empty!") if !compiled[:query] || compiled[:query].empty?
|
61
|
-
@response =
|
61
|
+
@response = client.search compiled
|
62
62
|
end
|
63
63
|
|
64
64
|
private
|
@@ -16,8 +16,6 @@ module CloudSesame
|
|
16
16
|
|
17
17
|
subject(:cloudsearch) { Product.cloudsearch.builder }
|
18
18
|
|
19
|
-
after { subject.clear_request }
|
20
|
-
|
21
19
|
shared_examples_for 'single_expression_operator' do |operation, klass, operator_weight|
|
22
20
|
|
23
21
|
it "should save the class #{ klass } into parents at index #{ operator_weight }" do
|
@@ -16,8 +16,6 @@ module CloudSesame
|
|
16
16
|
|
17
17
|
subject(:cloudsearch) { Product.cloudsearch.builder }
|
18
18
|
|
19
|
-
after { subject.clear_request }
|
20
|
-
|
21
19
|
context 'when field is registered' do
|
22
20
|
it 'should create a literal node' do
|
23
21
|
expect(AST::Literal).to receive(:new).with(:name, "my name", {})
|