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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef9924ed7e365bb70422a7e0e395d441667072b7
4
- data.tar.gz: 2d06963d91a257e2b8ca1422483c1ccab56bafdd
3
+ metadata.gz: 8ba3f33184c6e03ab4c8b90a844fd5da49e32434
4
+ data.tar.gz: b7a6b57d7734a71c7a2f349716dfd64b9fa28ff3
5
5
  SHA512:
6
- metadata.gz: ef1471103b8b7cd58572a42a4f25cdd051952960d364fb8c54c289b3ffd207c0cd515113a5a06970adafcadd726e7b671c28eb811b7edde885965789cb2665c5
7
- data.tar.gz: 1da75efe4c85f02e7c69eb20c942735464c8456c1fd111ebe627b102b197cea0767d55cb0e7949da348b135fed9f163d47f58e34ff7f3656640e33add6a983fb
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.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.31)
12
- aws-sdk-resources (= 2.2.31)
13
- aws-sdk-core (2.2.31)
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.31)
16
- aws-sdk-core (= 2.2.31)
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.3)
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.0.6)
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.7)
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.7.5)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'CloudSesame'
3
- s.version = '0.7.7'
3
+ s.version = '0.7.8'
4
4
  s.date = '2016-04-04'
5
5
  s.summary = "AWS CloudSearch Query DSL"
6
6
  s.description = "AWS CloudSearch Query DSL"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "covered_percent": 89.89
3
+ "covered_percent": 89.82
4
4
  }
5
5
  }
@@ -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
- 148,
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
- 18,
1780
- 8,
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
- 8,
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
- 8,
1809
- 8,
1810
- 8,
1810
+ 11,
1811
+ 11,
1812
+ 11,
1811
1813
  null,
1812
- 8,
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
- 13,
1829
- 4,
1830
+ 22,
1831
+ 7,
1830
1832
  null,
1831
1833
  null,
1832
1834
  1,
1833
1835
  null,
1834
1836
  1,
1835
- 4,
1837
+ 7,
1836
1838
  null,
1837
1839
  null,
1838
1840
  1,
1839
- 9,
1840
- 3,
1841
- 3,
1842
- 3,
1841
+ 15,
1842
+ 7,
1843
+ 7,
1844
+ 7,
1843
1845
  null,
1844
- 6,
1846
+ 8,
1845
1847
  null,
1846
1848
  null,
1847
1849
  null,
1848
1850
  1,
1849
- 3,
1851
+ 9,
1850
1852
  null,
1851
1853
  null,
1852
1854
  null,
@@ -2557,6 +2559,6 @@
2557
2559
  null
2558
2560
  ]
2559
2561
  },
2560
- "timestamp": 1459778425
2562
+ "timestamp": 1461780882
2561
2563
  }
2562
2564
  }
@@ -87,7 +87,7 @@ module CloudSesame
87
87
  initialize_value(*RANGE_FORMAT.match(strip(string)).captures)
88
88
  end
89
89
 
90
- def initialize_value(lb = '[', bv = nil, ev = nil, up = ']')
90
+ def initialize_value(lb = '{', bv = nil, ev = nil, up = '}')
91
91
  [lb, bv, ev, up]
92
92
  end
93
93
 
@@ -28,8 +28,10 @@ module CloudSesame
28
28
  private
29
29
 
30
30
  def _block_domain(block)
31
- caller = block.binding.eval("self")
32
- @_block_domain._caller = caller
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, *args, &block)
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'
@@ -109,7 +109,7 @@
109
109
 
110
110
  # @tags = [1, 2]
111
111
  # q = nil
112
- # profile 1 do
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)
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.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chu