CloudSesame 0.3.5 → 0.3.6

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
  SHA1:
3
- metadata.gz: a53d5a894fe5a00c4117e7c4b648ca535c62d211
4
- data.tar.gz: bfedbb489b830b6e93b54b03e341ba26beefd58f
3
+ metadata.gz: 37c4c9374c039f8cdab3da4ec22d17706baa23a4
4
+ data.tar.gz: 9600876e639d302f4138da57c116e947087afd43
5
5
  SHA512:
6
- metadata.gz: 53d51c5a5223f3a0b470e196250c4028ea304ebb249fa43b13e6bbb70844c9186d09f3946047a98be39ce45ec0ac0073e92a2d331a7eedddd73e198f9aaaf9f1
7
- data.tar.gz: 067e1609af8fd27b3cee2c319507bd1b777282c19a8efbd721c665f9e451a445db4b44cfbf7d90e3dea77df6f2afb9587c73dce7c18e9526a74d851740d350e3
6
+ metadata.gz: bc23ba7626029370ac200ddac02a57b0731cdb695d7023f8388774f116cff99a583a6c930240f12d95ac3c702b71ecc5598d0ee82304d96c958b883ec7476383
7
+ data.tar.gz: 7316b4b97c6bebe8beba9320df8e2e2fde31a797ec788b2257b2922e566ac17dedc61bc576417d00a5b131d73514c2d5144e63a53ffb996277e4a23404029216
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- CloudSesame (0.3.5)
4
+ CloudSesame (0.3.6)
5
5
  aws-sdk (~> 2)
6
6
 
7
7
  GEM
data/cloud_sesame.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'CloudSesame'
3
- s.version = '0.3.5'
3
+ s.version = '0.3.6'
4
4
  s.date = '2016-01-20'
5
5
  s.summary = "AWS CloudSearch Query DSL"
6
6
  s.description = "AWS CloudSearch Query DSL"
@@ -21,12 +21,12 @@ module CloudSesame
21
21
  end
22
22
 
23
23
  def request
24
- @request ||= Node::Request.new context.dup
24
+ @request ||= Node::Request.new(context.dup)
25
25
  end
26
26
 
27
27
  def response
28
28
  @response ||= search
29
- en
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 = searchable.cloudsearch.client.search compiled
61
+ @response = client.search compiled
62
62
  end
63
63
 
64
64
  private
@@ -13,8 +13,6 @@ module CloudSesame
13
13
 
14
14
  subject(:cloudsearch) { Product.cloudsearch.builder }
15
15
 
16
- after { subject.clear_request }
17
-
18
16
  # NOT
19
17
  # =======================================
20
18
  describe '#not' do
@@ -13,8 +13,6 @@ module CloudSesame
13
13
 
14
14
  subject(:cloudsearch) { Product.cloudsearch.builder }
15
15
 
16
- after { subject.clear_request }
17
-
18
16
  # AND
19
17
  # =======================================================
20
18
  describe '#and' 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
  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", {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CloudSesame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chu