CloudSesame 0.6.8 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +12 -0
- data/.gitignore +1 -1
- data/Gemfile.lock +13 -13
- data/Guardfile +1 -0
- data/cloud_sesame.gemspec +2 -2
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +679 -591
- data/lib/cloud_sesame/config/credential.rb +6 -6
- data/lib/cloud_sesame/context.rb +0 -5
- data/lib/cloud_sesame/domain/base.rb +147 -128
- data/lib/cloud_sesame/domain/client.rb +25 -25
- data/lib/cloud_sesame/domain/client_module/caching/base.rb +19 -23
- data/lib/cloud_sesame/domain/client_module/caching/no_cache.rb +11 -11
- data/lib/cloud_sesame/domain/client_module/caching/rails_cache.rb +32 -28
- data/lib/cloud_sesame/domain/client_module/caching.rb +19 -28
- data/lib/cloud_sesame/domain/client_module/retry.rb +6 -6
- data/lib/cloud_sesame/domain/config.rb +6 -6
- data/lib/cloud_sesame/query/ast/abstract/multi_expression_operator.rb +37 -0
- data/lib/cloud_sesame/query/ast/abstract/operator.rb +27 -0
- data/lib/cloud_sesame/query/ast/abstract/single_expression_operator.rb +39 -0
- data/lib/cloud_sesame/query/ast/abstract/value.rb +88 -0
- data/lib/cloud_sesame/query/ast/and.rb +1 -1
- data/lib/cloud_sesame/query/ast/date_value.rb +19 -3
- data/lib/cloud_sesame/query/ast/literal.rb +13 -28
- data/lib/cloud_sesame/query/ast/near.rb +4 -4
- data/lib/cloud_sesame/query/ast/not.rb +6 -7
- data/lib/cloud_sesame/query/ast/numeric_value.rb +20 -12
- data/lib/cloud_sesame/query/ast/or.rb +1 -1
- data/lib/cloud_sesame/query/ast/phrase.rb +1 -1
- data/lib/cloud_sesame/query/ast/prefix.rb +1 -1
- data/lib/cloud_sesame/query/ast/range_value.rb +40 -39
- data/lib/cloud_sesame/query/ast/root.rb +2 -6
- data/lib/cloud_sesame/query/ast/string_value.rb +26 -0
- data/lib/cloud_sesame/query/ast/term.rb +1 -1
- data/lib/cloud_sesame/query/ast/value.rb +25 -54
- data/lib/cloud_sesame/query/builder.rb +83 -54
- data/lib/cloud_sesame/query/domain/block.rb +3 -1
- data/lib/cloud_sesame/query/dsl/applied_filter_query.rb +14 -23
- data/lib/cloud_sesame/query/dsl/field_accessors.rb +25 -22
- data/lib/cloud_sesame/query/dsl/field_array_methods.rb +1 -1
- data/lib/cloud_sesame/query/dsl/inspect_method.rb +31 -0
- data/lib/cloud_sesame/query/dsl/sort_methods.rb +5 -4
- data/lib/cloud_sesame/query/node/abstract.rb +1 -2
- data/lib/cloud_sesame/query/node/facet.rb +1 -5
- data/lib/cloud_sesame/query/node/filter_query.rb +15 -2
- data/lib/cloud_sesame/query/node/fuzziness.rb +4 -3
- data/lib/cloud_sesame/query/node/page.rb +2 -2
- data/lib/cloud_sesame/query/node/query.rb +4 -17
- data/lib/cloud_sesame/query/node/query_options.rb +6 -16
- data/lib/cloud_sesame/query/node/query_options_field.rb +3 -1
- data/lib/cloud_sesame/query/node/query_parser.rb +8 -10
- data/lib/cloud_sesame/query/node/request.rb +57 -31
- data/lib/cloud_sesame/query/node/sort.rb +25 -11
- data/lib/cloud_sesame.rb +15 -12
- data/lib/{abstract_object.rb → services/abstract_object.rb} +0 -0
- data/lib/services/class_specific.rb +44 -0
- data/lib/services/lazy_object.rb +19 -0
- data/spec/cloud_sesame/domain/base_spec.rb +26 -11
- data/spec/cloud_sesame/domain/client_module/caching/base_spec.rb +2 -1
- data/spec/cloud_sesame/domain/client_module/caching/no_cache_spec.rb +2 -3
- data/spec/cloud_sesame/domain/client_module/caching/rails_cache_spec.rb +6 -6
- data/spec/cloud_sesame/domain/client_module/caching_spec.rb +33 -32
- data/spec/cloud_sesame/query/ast/abstract/multi_expression_operator_spec.rb +67 -0
- data/spec/cloud_sesame/query/ast/abstract/operator_spec.rb +29 -0
- data/spec/cloud_sesame/query/ast/abstract/single_expression_operator_spec.rb +70 -0
- data/spec/cloud_sesame/query/ast/abstract/value_spec.rb +118 -0
- data/spec/cloud_sesame/query/ast/and_spec.rb +1 -1
- data/spec/cloud_sesame/query/ast/or_spec.rb +1 -1
- data/spec/cloud_sesame/query/ast/range_value_spec.rb +5 -11
- data/spec/cloud_sesame/query/builder_spec.rb +10 -4
- data/spec/cloud_sesame/query/domain/block_spec.rb +15 -8
- data/spec/cloud_sesame/query/dsl/{block_methods_spec.rb → block_styled_operators_spec.rb} +0 -0
- data/spec/cloud_sesame/query/dsl/field_accessors_spec.rb +88 -50
- data/spec/cloud_sesame/query/dsl/field_array_methods_spec.rb +0 -2
- data/spec/cloud_sesame/query/node/facet_spec.rb +1 -15
- data/spec/cloud_sesame/query/node/filter_query_spec.rb +16 -2
- data/spec/cloud_sesame/query/node/page_spec.rb +3 -2
- data/spec/cloud_sesame/query/node/query_options_spec.rb +1 -1
- data/spec/cloud_sesame/query/node/query_parser_spec.rb +1 -7
- data/spec/cloud_sesame/query/node/query_spec.rb +10 -28
- data/spec/cloud_sesame/query/node/sort_spec.rb +19 -28
- data/spec/cloud_sesame_spec.rb +2 -156
- data/spec/helpers/benchmark_helper.rb +12 -0
- data/spec/integration/filter_query_spec.rb +0 -0
- data/spec/profiling_spec.rb +155 -0
- data/spec/{abstract_object_spec.rb → services/abstract_object_spec.rb} +0 -0
- data/spec/services/class_specific_spec.rb +135 -0
- data/spec/spec_helper.rb +3 -0
- metadata +32 -22
- data/lib/active_support/core_ext/object/deep_dup.rb +0 -53
- data/lib/active_support/core_ext/object/duplicable.rb +0 -98
- data/lib/cloud_sesame/query/ast/multi_expression_operator.rb +0 -35
- data/lib/cloud_sesame/query/ast/operator.rb +0 -25
- data/lib/cloud_sesame/query/ast/single_expression_operator.rb +0 -35
- data/lib/cloud_sesame/query/scope.rb +0 -21
- data/profiler.rb +0 -91
- data/spec/cloud_sesame/query/ast/multi_expression_operator_spec.rb +0 -76
- data/spec/cloud_sesame/query/ast/operator_spec.rb +0 -29
- data/spec/cloud_sesame/query/ast/single_expression_operator_spec.rb +0 -78
- data/spec/context_spec.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 391aea6f0d80218d808cce940474f60fe17a659b
|
4
|
+
data.tar.gz: 47acdfb5637966e146e93d0c372aff1678af71c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26166050959a1f53ab80f2c5ac001bfb6e52828ea76dc8a9652f43373c64ad62b5caeb78a7c6be08d6f46db7af9916896c47d73e240a302d1bd674d143c18a68
|
7
|
+
data.tar.gz: 6d8ed2970e56730d83058354ec177a5c72f72a4c7db2d8852d632f6d780bf30ac3d58c41b823f778c238f73079685daecfdd3ec56035d7bb8f6aa273ade33d04
|
data/.editorconfig
ADDED
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
CloudSesame (0.
|
4
|
+
CloudSesame (0.7.0)
|
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.
|
12
|
-
aws-sdk-resources (= 2.2.
|
13
|
-
aws-sdk-core (2.2.
|
11
|
+
aws-sdk (2.2.26)
|
12
|
+
aws-sdk-resources (= 2.2.26)
|
13
|
+
aws-sdk-core (2.2.26)
|
14
14
|
jmespath (~> 1.0)
|
15
|
-
aws-sdk-resources (2.2.
|
16
|
-
aws-sdk-core (= 2.2.
|
17
|
-
codeclimate-test-reporter (0.
|
15
|
+
aws-sdk-resources (2.2.26)
|
16
|
+
aws-sdk-core (= 2.2.26)
|
17
|
+
codeclimate-test-reporter (0.5.0)
|
18
18
|
simplecov (>= 0.7.1, < 1.0.0)
|
19
|
-
coderay (1.1.
|
19
|
+
coderay (1.1.1)
|
20
20
|
diff-lcs (1.2.5)
|
21
21
|
docile (1.1.5)
|
22
22
|
ffi (1.9.10)
|
@@ -64,7 +64,7 @@ GEM
|
|
64
64
|
rspec-core (~> 3.4.0)
|
65
65
|
rspec-expectations (~> 3.4.0)
|
66
66
|
rspec-mocks (~> 3.4.0)
|
67
|
-
rspec-core (3.4.
|
67
|
+
rspec-core (3.4.4)
|
68
68
|
rspec-support (~> 3.4.0)
|
69
69
|
rspec-expectations (3.4.0)
|
70
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -73,12 +73,12 @@ GEM
|
|
73
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
74
74
|
rspec-support (~> 3.4.0)
|
75
75
|
rspec-support (3.4.1)
|
76
|
-
rubocop (0.
|
77
|
-
parser (>= 2.3.0.
|
76
|
+
rubocop (0.38.0)
|
77
|
+
parser (>= 2.3.0.6, < 3.0)
|
78
78
|
powerpack (~> 0.1)
|
79
79
|
rainbow (>= 1.99.1, < 3.0)
|
80
80
|
ruby-progressbar (~> 1.7)
|
81
|
-
unicode-display_width (~> 0.
|
81
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
82
82
|
ruby-prof (0.15.9)
|
83
83
|
ruby-progressbar (1.7.5)
|
84
84
|
shellany (0.0.1)
|
@@ -89,7 +89,7 @@ GEM
|
|
89
89
|
simplecov-html (0.10.0)
|
90
90
|
slop (3.6.0)
|
91
91
|
thor (0.19.1)
|
92
|
-
unicode-display_width (0.
|
92
|
+
unicode-display_width (1.0.2)
|
93
93
|
|
94
94
|
PLATFORMS
|
95
95
|
ruby
|
data/Guardfile
CHANGED
@@ -25,6 +25,7 @@
|
|
25
25
|
# * 'just' rspec: 'rspec'
|
26
26
|
|
27
27
|
guard :rspec, cmd: "CODECLIMATE_REPO_TOKEN=f80e30cc893d8c6a41550e747e1d838c6123e9cc53f088bf4bc1337d40b3e581 bundle exec rspec" do
|
28
|
+
# guard :rspec, cmd: "bundle exec rspec" do
|
28
29
|
require "guard/rspec/dsl"
|
29
30
|
dsl = Guard::RSpec::Dsl.new(self)
|
30
31
|
|
data/cloud_sesame.gemspec
CHANGED
data/coverage/.last_run.json
CHANGED