CloudSesame 0.7.5 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -12
  3. data/Guardfile +2 -2
  4. data/cloud_sesame.gemspec +2 -2
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +1363 -248
  7. data/lib/cloud_sesame/domain/base.rb +1 -1
  8. data/lib/cloud_sesame/query/ast/abstract/multi_expression_operator.rb +3 -4
  9. data/lib/cloud_sesame/query/ast/abstract/value.rb +10 -2
  10. data/lib/cloud_sesame/query/ast/date_value.rb +1 -4
  11. data/lib/cloud_sesame/query/ast/literal.rb +20 -12
  12. data/lib/cloud_sesame/query/ast/{field_array.rb → multi_expression_operator_children.rb} +8 -2
  13. data/lib/cloud_sesame/query/ast/not.rb +1 -7
  14. data/lib/cloud_sesame/query/ast/range_value.rb +43 -28
  15. data/lib/cloud_sesame/query/ast/root.rb +2 -4
  16. data/lib/cloud_sesame/query/ast/value.rb +1 -9
  17. data/lib/cloud_sesame/query/builder.rb +9 -11
  18. data/lib/cloud_sesame/query/domain/block.rb +1 -3
  19. data/lib/cloud_sesame/query/domain/chaining_block.rb +3 -4
  20. data/lib/cloud_sesame/query/domain/literal.rb +1 -3
  21. data/lib/cloud_sesame/query/dsl/bind_caller.rb +13 -6
  22. data/lib/cloud_sesame/query/dsl/{field_array_methods.rb → literal_chaining_methods.rb} +1 -6
  23. data/lib/cloud_sesame/query/dsl/{field_accessors.rb → literal_methods.rb} +1 -1
  24. data/lib/cloud_sesame/query/node/fuzziness.rb +1 -1
  25. data/lib/cloud_sesame.rb +4 -3
  26. data/spec/cloud_sesame/query/ast/abstract/multi_expression_operator_spec.rb +5 -1
  27. data/spec/cloud_sesame/query/ast/field_array_spec.rb +57 -0
  28. data/spec/cloud_sesame/query/ast/literal_spec.rb +136 -0
  29. data/spec/cloud_sesame/query/ast/not_spec.rb +30 -0
  30. data/spec/cloud_sesame/query/ast/phrase_spec.rb +20 -0
  31. data/spec/cloud_sesame/query/ast/range_value_spec.rb +245 -30
  32. data/spec/cloud_sesame/query/ast/string_value_spec.rb +39 -0
  33. data/spec/cloud_sesame/query/ast/term_spec.rb +20 -0
  34. data/spec/cloud_sesame/query/ast/value_spec.rb +109 -0
  35. data/spec/cloud_sesame/query/builder_spec.rb +4 -4
  36. data/spec/cloud_sesame/query/domain/block_spec.rb +3 -3
  37. data/spec/cloud_sesame/query/dsl/{field_array_methods_spec.rb → literal_chaining_methods_spec.rb} +1 -1
  38. data/spec/cloud_sesame/query/dsl/{field_accessors_spec.rb → literal_methods_spec.rb} +3 -3
  39. data/spec/cloud_sesame/query/node/query_spec.rb +22 -0
  40. data/spec/profiling_spec.rb +155 -155
  41. metadata +23 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ab94072ee3b748f9e506097855c298d71a1b0a1
4
- data.tar.gz: 86d85840a5b461d2932a42491bd94be41dbcbd42
3
+ metadata.gz: ef9924ed7e365bb70422a7e0e395d441667072b7
4
+ data.tar.gz: 2d06963d91a257e2b8ca1422483c1ccab56bafdd
5
5
  SHA512:
6
- metadata.gz: 1331b77c6c3b3b6028a49db62033ec7a9f878bae81db7ec437c2bcb47043258818b4e2d4a48d30cea6e42a9744791aadbe1788ef0fdc13d39a6fc1602c46a4ab
7
- data.tar.gz: 4e4c0fbabbf66190678572e024437148a39da35c08e5f12fc6c04021c64e1e7f30fc7ac76f269521c6b83cb33882be0df6ddc183251f77125593f3fbc03f102d
6
+ metadata.gz: ef1471103b8b7cd58572a42a4f25cdd051952960d364fb8c54c289b3ffd207c0cd515113a5a06970adafcadd726e7b671c28eb811b7edde885965789cb2665c5
7
+ data.tar.gz: 1da75efe4c85f02e7c69eb20c942735464c8456c1fd111ebe627b102b197cea0767d55cb0e7949da348b135fed9f163d47f58e34ff7f3656640e33add6a983fb
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- CloudSesame (0.7.5)
4
+ CloudSesame (0.7.7)
5
5
  aws-sdk (~> 2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.2.0)
11
- aws-sdk (2.2.26)
12
- aws-sdk-resources (= 2.2.26)
13
- aws-sdk-core (2.2.26)
11
+ aws-sdk (2.2.31)
12
+ aws-sdk-resources (= 2.2.31)
13
+ aws-sdk-core (2.2.31)
14
14
  jmespath (~> 1.0)
15
- aws-sdk-resources (2.2.26)
16
- aws-sdk-core (= 2.2.26)
15
+ aws-sdk-resources (2.2.31)
16
+ aws-sdk-core (= 2.2.31)
17
17
  codeclimate-test-reporter (0.5.0)
18
18
  simplecov (>= 0.7.1, < 1.0.0)
19
19
  coderay (1.1.1)
@@ -31,15 +31,17 @@ GEM
31
31
  shellany (~> 0.0)
32
32
  thor (>= 0.18.1)
33
33
  guard-compat (1.2.1)
34
- guard-rspec (4.6.4)
34
+ guard-rspec (4.6.5)
35
35
  guard (~> 2.1)
36
36
  guard-compat (~> 1.1)
37
37
  rspec (>= 2.99.0, < 4.0)
38
38
  guard-rubocop (1.2.0)
39
39
  guard (~> 2.0)
40
40
  rubocop (~> 0.20)
41
- jmespath (1.1.3)
41
+ jmespath (1.2.3)
42
+ json_pure (>= 1.8.1)
42
43
  json (1.8.3)
44
+ json_pure (1.8.3)
43
45
  listen (3.0.6)
44
46
  rb-fsevent (>= 0.9.3)
45
47
  rb-inotify (>= 0.9.7)
@@ -49,7 +51,7 @@ GEM
49
51
  notiffany (0.0.8)
50
52
  nenv (~> 0.1)
51
53
  shellany (~> 0.0)
52
- parser (2.3.0.6)
54
+ parser (2.3.0.7)
53
55
  ast (~> 2.2)
54
56
  powerpack (0.1.1)
55
57
  pry (0.10.3)
@@ -73,8 +75,8 @@ GEM
73
75
  diff-lcs (>= 1.2.0, < 2.0)
74
76
  rspec-support (~> 3.4.0)
75
77
  rspec-support (3.4.1)
76
- rubocop (0.38.0)
77
- parser (>= 2.3.0.6, < 3.0)
78
+ rubocop (0.39.0)
79
+ parser (>= 2.3.0.7, < 3.0)
78
80
  powerpack (~> 0.1)
79
81
  rainbow (>= 1.99.1, < 3.0)
80
82
  ruby-progressbar (~> 1.7)
@@ -89,7 +91,7 @@ GEM
89
91
  simplecov-html (0.10.0)
90
92
  slop (3.6.0)
91
93
  thor (0.19.1)
92
- unicode-display_width (1.0.2)
94
+ unicode-display_width (1.0.3)
93
95
 
94
96
  PLATFORMS
95
97
  ruby
data/Guardfile CHANGED
@@ -24,8 +24,8 @@
24
24
  # * zeus: 'zeus rspec' (requires the server to be started separately)
25
25
  # * 'just' rspec: 'rspec'
26
26
 
27
- # guard :rspec, cmd: "CODECLIMATE_REPO_TOKEN=f80e30cc893d8c6a41550e747e1d838c6123e9cc53f088bf4bc1337d40b3e581 bundle exec rspec" do
28
- guard :rspec, cmd: "bundle exec rspec" do
27
+ guard :rspec, cmd: "CODECLIMATE_REPO_TOKEN=f80e30cc893d8c6a41550e747e1d838c6123e9cc53f088bf4bc1337d40b3e581 bundle exec rspec" do
28
+ # guard :rspec, cmd: "bundle exec rspec" do
29
29
  require "guard/rspec/dsl"
30
30
  dsl = Guard::RSpec::Dsl.new(self)
31
31
 
data/cloud_sesame.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'CloudSesame'
3
- s.version = '0.7.5'
4
- s.date = '2016-03-15'
3
+ s.version = '0.7.7'
4
+ s.date = '2016-04-04'
5
5
  s.summary = "AWS CloudSearch Query DSL"
6
6
  s.description = "AWS CloudSearch Query DSL"
7
7
  s.authors = [
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "covered_percent": 59.25
3
+ "covered_percent": 89.89
4
4
  }
5
5
  }