CloudSesame 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/cloud_sesame.gemspec +1 -1
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +22 -20
- data/lib/cloud_sesame/query/ast/range_value.rb +1 -1
- data/lib/cloud_sesame/query/domain/chaining_block.rb +4 -2
- data/lib/cloud_sesame/query/dsl/bind_caller.rb +1 -1
- data/spec/cloud_sesame/query/ast/range_value_spec.rb +2 -2
- data/spec/profiling_spec.rb +2 -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: 8ba3f33184c6e03ab4c8b90a844fd5da49e32434
|
4
|
+
data.tar.gz: b7a6b57d7734a71c7a2f349716dfd64b9fa28ff3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd5f28faa997131593dda80b5ddeaf5c9df0b04ca020600416fdd41f8f5c3954df87947e6cd4218d8132926d7751b75830271fa1195f3e33dc98adbf1361be44
|
7
|
+
data.tar.gz: a696edbe6470b3b47b3284eb6ab73877da72fd0564d09db82de1a046750c42164e8563b6bc8d25c6d6b95ad6d443f27426f0a5533e8e042aa33d58ce47ab0876
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
CloudSesame (0.7.
|
4
|
+
CloudSesame (0.7.8)
|
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.37)
|
12
|
+
aws-sdk-resources (= 2.2.37)
|
13
|
+
aws-sdk-core (2.2.37)
|
14
14
|
jmespath (~> 1.0)
|
15
|
-
aws-sdk-resources (2.2.
|
16
|
-
aws-sdk-core (= 2.2.
|
15
|
+
aws-sdk-resources (2.2.37)
|
16
|
+
aws-sdk-core (= 2.2.37)
|
17
17
|
codeclimate-test-reporter (0.5.0)
|
18
18
|
simplecov (>= 0.7.1, < 1.0.0)
|
19
19
|
coderay (1.1.1)
|
@@ -38,11 +38,11 @@ GEM
|
|
38
38
|
guard-rubocop (1.2.0)
|
39
39
|
guard (~> 2.0)
|
40
40
|
rubocop (~> 0.20)
|
41
|
-
jmespath (1.2.
|
41
|
+
jmespath (1.2.4)
|
42
42
|
json_pure (>= 1.8.1)
|
43
43
|
json (1.8.3)
|
44
44
|
json_pure (1.8.3)
|
45
|
-
listen (3.
|
45
|
+
listen (3.1.1)
|
46
46
|
rb-fsevent (>= 0.9.3)
|
47
47
|
rb-inotify (>= 0.9.7)
|
48
48
|
lumberjack (1.0.10)
|
@@ -51,7 +51,7 @@ GEM
|
|
51
51
|
notiffany (0.0.8)
|
52
52
|
nenv (~> 0.1)
|
53
53
|
shellany (~> 0.0)
|
54
|
-
parser (2.3.0
|
54
|
+
parser (2.3.1.0)
|
55
55
|
ast (~> 2.2)
|
56
56
|
powerpack (0.1.1)
|
57
57
|
pry (0.10.3)
|
@@ -82,7 +82,7 @@ GEM
|
|
82
82
|
ruby-progressbar (~> 1.7)
|
83
83
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
84
84
|
ruby-prof (0.15.9)
|
85
|
-
ruby-progressbar (1.
|
85
|
+
ruby-progressbar (1.8.0)
|
86
86
|
shellany (0.0.1)
|
87
87
|
simplecov (0.11.2)
|
88
88
|
docile (~> 1.1.0)
|
data/cloud_sesame.gemspec
CHANGED
data/coverage/.last_run.json
CHANGED
data/coverage/.resultset.json
CHANGED
@@ -929,6 +929,8 @@
|
|
929
929
|
0,
|
930
930
|
0,
|
931
931
|
null,
|
932
|
+
0,
|
933
|
+
null,
|
932
934
|
null,
|
933
935
|
1,
|
934
936
|
0,
|
@@ -1650,7 +1652,7 @@
|
|
1650
1652
|
1,
|
1651
1653
|
null,
|
1652
1654
|
1,
|
1653
|
-
|
1655
|
+
151,
|
1654
1656
|
null,
|
1655
1657
|
null,
|
1656
1658
|
null,
|
@@ -1776,16 +1778,16 @@
|
|
1776
1778
|
1,
|
1777
1779
|
null,
|
1778
1780
|
1,
|
1779
|
-
|
1780
|
-
|
1781
|
+
21,
|
1782
|
+
11,
|
1781
1783
|
null,
|
1784
|
+
11,
|
1785
|
+
22,
|
1782
1786
|
8,
|
1783
|
-
16,
|
1784
|
-
5,
|
1785
1787
|
null,
|
1786
1788
|
null,
|
1787
1789
|
null,
|
1788
|
-
|
1790
|
+
11,
|
1789
1791
|
null,
|
1790
1792
|
null,
|
1791
1793
|
null,
|
@@ -1805,11 +1807,11 @@
|
|
1805
1807
|
1,
|
1806
1808
|
null,
|
1807
1809
|
null,
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1810
|
+
11,
|
1811
|
+
11,
|
1812
|
+
11,
|
1811
1813
|
null,
|
1812
|
-
|
1814
|
+
11,
|
1813
1815
|
null,
|
1814
1816
|
null,
|
1815
1817
|
1,
|
@@ -1825,28 +1827,28 @@
|
|
1825
1827
|
null,
|
1826
1828
|
null,
|
1827
1829
|
1,
|
1828
|
-
|
1829
|
-
|
1830
|
+
22,
|
1831
|
+
7,
|
1830
1832
|
null,
|
1831
1833
|
null,
|
1832
1834
|
1,
|
1833
1835
|
null,
|
1834
1836
|
1,
|
1835
|
-
|
1837
|
+
7,
|
1836
1838
|
null,
|
1837
1839
|
null,
|
1838
1840
|
1,
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1841
|
+
15,
|
1842
|
+
7,
|
1843
|
+
7,
|
1844
|
+
7,
|
1843
1845
|
null,
|
1844
|
-
|
1846
|
+
8,
|
1845
1847
|
null,
|
1846
1848
|
null,
|
1847
1849
|
null,
|
1848
1850
|
1,
|
1849
|
-
|
1851
|
+
9,
|
1850
1852
|
null,
|
1851
1853
|
null,
|
1852
1854
|
null,
|
@@ -2557,6 +2559,6 @@
|
|
2557
2559
|
null
|
2558
2560
|
]
|
2559
2561
|
},
|
2560
|
-
"timestamp":
|
2562
|
+
"timestamp": 1461780882
|
2561
2563
|
}
|
2562
2564
|
}
|
@@ -28,8 +28,10 @@ module CloudSesame
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def _block_domain(block)
|
31
|
-
|
32
|
-
|
31
|
+
unless @_block_domain && @_block_domain._caller
|
32
|
+
caller = block.binding.eval("self")
|
33
|
+
@_block_domain._caller = caller
|
34
|
+
end
|
33
35
|
@_block_domain
|
34
36
|
end
|
35
37
|
|
@@ -20,7 +20,7 @@ module CloudSesame
|
|
20
20
|
# ACCESS CALLER'S METHODS
|
21
21
|
# =========================================
|
22
22
|
def method_missing(name, *args, &block)
|
23
|
-
if _caller && _caller.respond_to?(name,
|
23
|
+
if _caller && _caller.respond_to?(name, true)
|
24
24
|
_caller.send(name, *args, &block)
|
25
25
|
else
|
26
26
|
super
|
@@ -68,8 +68,8 @@ module CloudSesame
|
|
68
68
|
|
69
69
|
context 'when given no initial value' do
|
70
70
|
let(:initial_value) { nil }
|
71
|
-
let(:lower_bound) { "
|
72
|
-
let(:upper_bound) { "
|
71
|
+
let(:lower_bound) { "{" }
|
72
|
+
let(:upper_bound) { "}" }
|
73
73
|
let(:start_value) { nil }
|
74
74
|
let(:end_value) { nil }
|
75
75
|
include_examples 'determine lower bound, begin, end'
|
data/spec/profiling_spec.rb
CHANGED
@@ -109,7 +109,7 @@
|
|
109
109
|
|
110
110
|
# @tags = [1, 2]
|
111
111
|
# q = nil
|
112
|
-
# profile
|
112
|
+
# profile 10_000 do
|
113
113
|
# q = Product.cloudsearch
|
114
114
|
# .query("black leather jacket")
|
115
115
|
# .sort(price: :asc, created_at: :desc)
|
@@ -119,12 +119,12 @@
|
|
119
119
|
# .tags { "2" }
|
120
120
|
# .and {
|
121
121
|
# or! {
|
122
|
-
# tags *@tags
|
123
122
|
# tags nil
|
124
123
|
# and! {
|
125
124
|
# tags.not "3", "4"
|
126
125
|
# }
|
127
126
|
# and!.not {
|
127
|
+
# tags *@tags
|
128
128
|
# tags.start_with "5", "6"
|
129
129
|
# tags.not.start_with("7")
|
130
130
|
# tags.not.near("8", distance: 7)
|