CloudSesame 0.7.13 → 0.8.0

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: 57a08224cd0cf89912a10697089e8e792b0b4ff4
4
- data.tar.gz: 1089b204ed078859e6ebeb3c17983f70fcf800e1
3
+ metadata.gz: df8a1931acc7d1190383e9af2a6b6924d5549f5b
4
+ data.tar.gz: 0693602e6b97a3d093273a2775ddf024f377a37c
5
5
  SHA512:
6
- metadata.gz: 2fa35105d0435dfeec3d11a4ed4ea4999d959f4e72bdc72ae368ecf13eda23fd608ac6c5feebedf0594b9baf29223bc0b124c33b783cb9910cc6f15b8619d2c6
7
- data.tar.gz: 865d597a77c1670f4552a722a3eaa2b7d380dbdd8c098a7990408b610232f257fd688d8c16bcdd4a5dfde597a603e6ca51403e099ff4f774985c97e38c3b41f8
6
+ metadata.gz: 3e0add0368aaa953c3eaab4c787481c89b83c595a71106a6453aea2250a1e8cdd992e10d44c1e6e10e283d071257495129e19123955e5f7f68175e106d3930cb
7
+ data.tar.gz: a6525d382a4d21748c723e7f975a61684bc66e3fcce3cd40c8bc779d08098d5bde01a0b4f219fd22a8cabbed9da4433a9e89c7187471f1fb626843aa0a9b6e96
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- CloudSesame (0.7.13)
4
+ CloudSesame (0.8.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.37)
12
- aws-sdk-resources (= 2.2.37)
13
- aws-sdk-core (2.2.37)
11
+ aws-sdk (2.5.1)
12
+ aws-sdk-resources (= 2.5.1)
13
+ aws-sdk-core (2.5.1)
14
14
  jmespath (~> 1.0)
15
- aws-sdk-resources (2.2.37)
16
- aws-sdk-core (= 2.2.37)
15
+ aws-sdk-resources (2.5.1)
16
+ aws-sdk-core (= 2.5.1)
17
17
  codeclimate-test-reporter (0.5.0)
18
18
  simplecov (>= 0.7.1, < 1.0.0)
19
19
  coderay (1.1.1)
@@ -38,10 +38,8 @@ GEM
38
38
  guard-rubocop (1.2.0)
39
39
  guard (~> 2.0)
40
40
  rubocop (~> 0.20)
41
- jmespath (1.2.4)
42
- json_pure (>= 1.8.1)
41
+ jmespath (1.3.1)
43
42
  json (1.8.3)
44
- json_pure (1.8.3)
45
43
  listen (3.1.1)
46
44
  rb-fsevent (>= 0.9.3)
47
45
  rb-inotify (>= 0.9.7)
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.13'
4
- s.date = '2016-06-20'
3
+ s.version = '0.8.0'
4
+ s.date = '2016-08-25'
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": 90.0
3
+ "covered_percent": 89.76
4
4
  }
5
5
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "RSpec": {
3
3
  "coverage": {
4
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame.rb": [
4
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame.rb": [
5
5
  null,
6
6
  null,
7
7
  1,
@@ -129,7 +129,7 @@
129
129
  null,
130
130
  null
131
131
  ],
132
- "/Users/makeready/work/cloud-sesame/lib/services/abstract_object.rb": [
132
+ "/Users/scottchu/Projects/cloud-sesame/lib/services/abstract_object.rb": [
133
133
  1,
134
134
  null,
135
135
  1,
@@ -198,7 +198,7 @@
198
198
  null,
199
199
  null
200
200
  ],
201
- "/Users/makeready/work/cloud-sesame/lib/services/class_specific.rb": [
201
+ "/Users/scottchu/Projects/cloud-sesame/lib/services/class_specific.rb": [
202
202
  1,
203
203
  null,
204
204
  1,
@@ -243,7 +243,7 @@
243
243
  null,
244
244
  null
245
245
  ],
246
- "/Users/makeready/work/cloud-sesame/lib/services/lazy_object.rb": [
246
+ "/Users/scottchu/Projects/cloud-sesame/lib/services/lazy_object.rb": [
247
247
  1,
248
248
  null,
249
249
  1,
@@ -264,7 +264,7 @@
264
264
  null,
265
265
  null
266
266
  ],
267
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/error/invalid_syntax.rb": [
267
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/error/invalid_syntax.rb": [
268
268
  1,
269
269
  1,
270
270
  1,
@@ -274,7 +274,7 @@
274
274
  null,
275
275
  null
276
276
  ],
277
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/error/missing_operator_symbol.rb": [
277
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/error/missing_operator_symbol.rb": [
278
278
  1,
279
279
  1,
280
280
  1,
@@ -284,7 +284,7 @@
284
284
  null,
285
285
  null
286
286
  ],
287
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/error/missing_query.rb": [
287
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/error/missing_query.rb": [
288
288
  1,
289
289
  1,
290
290
  1,
@@ -294,7 +294,7 @@
294
294
  null,
295
295
  null
296
296
  ],
297
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/error/scope_not_defined.rb": [
297
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/error/scope_not_defined.rb": [
298
298
  1,
299
299
  1,
300
300
  1,
@@ -304,7 +304,7 @@
304
304
  null,
305
305
  null
306
306
  ],
307
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/config/credential.rb": [
307
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/config/credential.rb": [
308
308
  1,
309
309
  1,
310
310
  1,
@@ -314,7 +314,7 @@
314
314
  null,
315
315
  null
316
316
  ],
317
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/applied_filter_query.rb": [
317
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/applied_filter_query.rb": [
318
318
  1,
319
319
  1,
320
320
  1,
@@ -358,7 +358,7 @@
358
358
  null,
359
359
  null
360
360
  ],
361
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/bind_caller.rb": [
361
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/bind_caller.rb": [
362
362
  1,
363
363
  1,
364
364
  1,
@@ -393,7 +393,7 @@
393
393
  null,
394
394
  null
395
395
  ],
396
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/block_styled_operators.rb": [
396
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/block_styled_operators.rb": [
397
397
  1,
398
398
  1,
399
399
  1,
@@ -433,7 +433,7 @@
433
433
  null,
434
434
  null
435
435
  ],
436
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/literal_methods.rb": [
436
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/literal_methods.rb": [
437
437
  1,
438
438
  1,
439
439
  1,
@@ -467,7 +467,7 @@
467
467
  null,
468
468
  null
469
469
  ],
470
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/literal_chaining_methods.rb": [
470
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/literal_chaining_methods.rb": [
471
471
  1,
472
472
  1,
473
473
  1,
@@ -538,7 +538,7 @@
538
538
  null,
539
539
  null
540
540
  ],
541
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/scope_accessors.rb": [
541
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/scope_accessors.rb": [
542
542
  1,
543
543
  1,
544
544
  1,
@@ -569,7 +569,7 @@
569
569
  null,
570
570
  null
571
571
  ],
572
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/operators.rb": [
572
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/operators.rb": [
573
573
  1,
574
574
  1,
575
575
  1,
@@ -617,7 +617,7 @@
617
617
  null,
618
618
  null
619
619
  ],
620
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/inspect_method.rb": [
620
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/inspect_method.rb": [
621
621
  1,
622
622
  1,
623
623
  1,
@@ -650,7 +650,7 @@
650
650
  null,
651
651
  null
652
652
  ],
653
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/page_methods.rb": [
653
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/page_methods.rb": [
654
654
  1,
655
655
  1,
656
656
  1,
@@ -662,6 +662,15 @@
662
662
  0,
663
663
  0,
664
664
  0,
665
+ null,
666
+ 0,
667
+ null,
668
+ null,
669
+ null,
670
+ 1,
671
+ 0,
672
+ 0,
673
+ 0,
665
674
  0,
666
675
  null,
667
676
  0,
@@ -698,7 +707,7 @@
698
707
  null,
699
708
  null
700
709
  ],
701
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/query_methods.rb": [
710
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/query_methods.rb": [
702
711
  1,
703
712
  1,
704
713
  1,
@@ -718,7 +727,7 @@
718
727
  null,
719
728
  null
720
729
  ],
721
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/range_helper.rb": [
730
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/range_helper.rb": [
722
731
  1,
723
732
  1,
724
733
  1,
@@ -745,7 +754,7 @@
745
754
  null,
746
755
  null
747
756
  ],
748
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/response_methods.rb": [
757
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/response_methods.rb": [
749
758
  1,
750
759
  1,
751
760
  1,
@@ -785,7 +794,7 @@
785
794
  null,
786
795
  null
787
796
  ],
788
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/return_methods.rb": [
797
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/return_methods.rb": [
789
798
  1,
790
799
  1,
791
800
  1,
@@ -815,7 +824,7 @@
815
824
  null,
816
825
  null
817
826
  ],
818
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/dsl/sort_methods.rb": [
827
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/dsl/sort_methods.rb": [
819
828
  1,
820
829
  1,
821
830
  1,
@@ -840,7 +849,7 @@
840
849
  null,
841
850
  null
842
851
  ],
843
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/domain/block.rb": [
852
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/domain/block.rb": [
844
853
  1,
845
854
  1,
846
855
  1,
@@ -894,7 +903,7 @@
894
903
  null,
895
904
  null
896
905
  ],
897
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/domain/chaining_block.rb": [
906
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/domain/chaining_block.rb": [
898
907
  1,
899
908
  1,
900
909
  1,
@@ -941,7 +950,7 @@
941
950
  null,
942
951
  null
943
952
  ],
944
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/domain/literal.rb": [
953
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/domain/literal.rb": [
945
954
  1,
946
955
  1,
947
956
  1,
@@ -968,7 +977,7 @@
968
977
  null,
969
978
  null
970
979
  ],
971
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/abstract/operator.rb": [
980
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/abstract/operator.rb": [
972
981
  1,
973
982
  1,
974
983
  1,
@@ -997,7 +1006,7 @@
997
1006
  null,
998
1007
  null
999
1008
  ],
1000
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/abstract/multi_expression_operator.rb": [
1009
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/abstract/multi_expression_operator.rb": [
1001
1010
  1,
1002
1011
  1,
1003
1012
  1,
@@ -1035,7 +1044,7 @@
1035
1044
  null,
1036
1045
  null
1037
1046
  ],
1038
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/abstract/single_expression_operator.rb": [
1047
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/abstract/single_expression_operator.rb": [
1039
1048
  1,
1040
1049
  1,
1041
1050
  1,
@@ -1076,7 +1085,7 @@
1076
1085
  null,
1077
1086
  null
1078
1087
  ],
1079
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/abstract/value.rb": [
1088
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/abstract/value.rb": [
1080
1089
  null,
1081
1090
  null,
1082
1091
  1,
@@ -1191,7 +1200,7 @@
1191
1200
  null,
1192
1201
  null
1193
1202
  ],
1194
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/multi_expression_operator_children.rb": [
1203
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/multi_expression_operator_children.rb": [
1195
1204
  1,
1196
1205
  1,
1197
1206
  1,
@@ -1229,7 +1238,7 @@
1229
1238
  null,
1230
1239
  null
1231
1240
  ],
1232
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/and.rb": [
1241
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/and.rb": [
1233
1242
  1,
1234
1243
  1,
1235
1244
  1,
@@ -1240,7 +1249,7 @@
1240
1249
  null,
1241
1250
  null
1242
1251
  ],
1243
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/or.rb": [
1252
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/or.rb": [
1244
1253
  1,
1245
1254
  1,
1246
1255
  1,
@@ -1251,7 +1260,7 @@
1251
1260
  null,
1252
1261
  null
1253
1262
  ],
1254
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/not.rb": [
1263
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/not.rb": [
1255
1264
  1,
1256
1265
  1,
1257
1266
  1,
@@ -1267,7 +1276,7 @@
1267
1276
  null,
1268
1277
  null
1269
1278
  ],
1270
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/near.rb": [
1279
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/near.rb": [
1271
1280
  1,
1272
1281
  1,
1273
1282
  1,
@@ -1290,7 +1299,7 @@
1290
1299
  null,
1291
1300
  null
1292
1301
  ],
1293
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/phrase.rb": [
1302
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/phrase.rb": [
1294
1303
  1,
1295
1304
  1,
1296
1305
  1,
@@ -1302,7 +1311,7 @@
1302
1311
  null,
1303
1312
  null
1304
1313
  ],
1305
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/prefix.rb": [
1314
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/prefix.rb": [
1306
1315
  1,
1307
1316
  1,
1308
1317
  1,
@@ -1314,7 +1323,7 @@
1314
1323
  null,
1315
1324
  null
1316
1325
  ],
1317
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/term.rb": [
1326
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/term.rb": [
1318
1327
  1,
1319
1328
  1,
1320
1329
  1,
@@ -1326,7 +1335,7 @@
1326
1335
  null,
1327
1336
  null
1328
1337
  ],
1329
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/literal.rb": [
1338
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/literal.rb": [
1330
1339
  1,
1331
1340
  1,
1332
1341
  1,
@@ -1387,7 +1396,7 @@
1387
1396
  null,
1388
1397
  null
1389
1398
  ],
1390
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/string_value.rb": [
1399
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/string_value.rb": [
1391
1400
  1,
1392
1401
  1,
1393
1402
  1,
@@ -1415,7 +1424,7 @@
1415
1424
  null,
1416
1425
  null
1417
1426
  ],
1418
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/date_value.rb": [
1427
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/date_value.rb": [
1419
1428
  1,
1420
1429
  1,
1421
1430
  1,
@@ -1469,7 +1478,7 @@
1469
1478
  null,
1470
1479
  null
1471
1480
  ],
1472
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/numeric_value.rb": [
1481
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/numeric_value.rb": [
1473
1482
  1,
1474
1483
  1,
1475
1484
  1,
@@ -1498,7 +1507,7 @@
1498
1507
  null,
1499
1508
  null
1500
1509
  ],
1501
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/range_value.rb": [
1510
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/range_value.rb": [
1502
1511
  1,
1503
1512
  1,
1504
1513
  1,
@@ -1601,7 +1610,7 @@
1601
1610
  null,
1602
1611
  null
1603
1612
  ],
1604
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/value.rb": [
1613
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/value.rb": [
1605
1614
  1,
1606
1615
  1,
1607
1616
  1,
@@ -1643,7 +1652,7 @@
1643
1652
  null,
1644
1653
  null
1645
1654
  ],
1646
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/ast/root.rb": [
1655
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/ast/root.rb": [
1647
1656
  1,
1648
1657
  1,
1649
1658
  1,
@@ -1665,7 +1674,7 @@
1665
1674
  null,
1666
1675
  null
1667
1676
  ],
1668
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/abstract.rb": [
1677
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/abstract.rb": [
1669
1678
  1,
1670
1679
  1,
1671
1680
  1,
@@ -1673,14 +1682,14 @@
1673
1682
  1,
1674
1683
  null,
1675
1684
  1,
1676
- 153,
1685
+ 155,
1677
1686
  null,
1678
1687
  null,
1679
1688
  null,
1680
1689
  null,
1681
1690
  null
1682
1691
  ],
1683
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/request.rb": [
1692
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/request.rb": [
1684
1693
  1,
1685
1694
  1,
1686
1695
  1,
@@ -1789,7 +1798,7 @@
1789
1798
  null,
1790
1799
  null
1791
1800
  ],
1792
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/query.rb": [
1801
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/query.rb": [
1793
1802
  1,
1794
1803
  1,
1795
1804
  1,
@@ -1817,7 +1826,7 @@
1817
1826
  null,
1818
1827
  null
1819
1828
  ],
1820
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/fuzziness.rb": [
1829
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/fuzziness.rb": [
1821
1830
  1,
1822
1831
  1,
1823
1832
  1,
@@ -1877,7 +1886,7 @@
1877
1886
  null,
1878
1887
  null
1879
1888
  ],
1880
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/sloppiness.rb": [
1889
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/sloppiness.rb": [
1881
1890
  1,
1882
1891
  1,
1883
1892
  1,
@@ -1902,7 +1911,7 @@
1902
1911
  null,
1903
1912
  null
1904
1913
  ],
1905
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/query_options.rb": [
1914
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/query_options.rb": [
1906
1915
  1,
1907
1916
  1,
1908
1917
  1,
@@ -1931,7 +1940,7 @@
1931
1940
  null,
1932
1941
  null
1933
1942
  ],
1934
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/query_options_field.rb": [
1943
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/query_options_field.rb": [
1935
1944
  1,
1936
1945
  1,
1937
1946
  1,
@@ -1955,7 +1964,7 @@
1955
1964
  null,
1956
1965
  null
1957
1966
  ],
1958
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/query_parser.rb": [
1967
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/query_parser.rb": [
1959
1968
  1,
1960
1969
  1,
1961
1970
  1,
@@ -1982,7 +1991,7 @@
1982
1991
  null,
1983
1992
  null
1984
1993
  ],
1985
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/filter_query.rb": [
1994
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/filter_query.rb": [
1986
1995
  1,
1987
1996
  1,
1988
1997
  1,
@@ -2014,7 +2023,7 @@
2014
2023
  null,
2015
2024
  null
2016
2025
  ],
2017
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/facet.rb": [
2026
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/facet.rb": [
2018
2027
  1,
2019
2028
  1,
2020
2029
  1,
@@ -2029,7 +2038,7 @@
2029
2038
  null,
2030
2039
  null
2031
2040
  ],
2032
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/page.rb": [
2041
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/page.rb": [
2033
2042
  1,
2034
2043
  1,
2035
2044
  1,
@@ -2038,19 +2047,25 @@
2038
2047
  1,
2039
2048
  null,
2040
2049
  1,
2041
- 7,
2050
+ 8,
2042
2051
  null,
2043
2052
  null,
2044
2053
  1,
2045
- 9,
2054
+ 13,
2046
2055
  null,
2047
2056
  null,
2048
2057
  1,
2049
- 6,
2058
+ 7,
2050
2059
  null,
2051
2060
  null,
2052
2061
  1,
2053
- 2,
2062
+ 7,
2063
+ null,
2064
+ null,
2065
+ 1,
2066
+ 5,
2067
+ 5,
2068
+ 5,
2054
2069
  null,
2055
2070
  null,
2056
2071
  null,
@@ -2058,7 +2073,7 @@
2058
2073
  null,
2059
2074
  null
2060
2075
  ],
2061
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/sort.rb": [
2076
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/sort.rb": [
2062
2077
  1,
2063
2078
  1,
2064
2079
  1,
@@ -2111,7 +2126,7 @@
2111
2126
  null,
2112
2127
  null
2113
2128
  ],
2114
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/node/return.rb": [
2129
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/node/return.rb": [
2115
2130
  1,
2116
2131
  1,
2117
2132
  1,
@@ -2131,7 +2146,7 @@
2131
2146
  null,
2132
2147
  null
2133
2148
  ],
2134
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/query/builder.rb": [
2149
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/query/builder.rb": [
2135
2150
  1,
2136
2151
  1,
2137
2152
  1,
@@ -2216,7 +2231,7 @@
2216
2231
  null,
2217
2232
  null
2218
2233
  ],
2219
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/context.rb": [
2234
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/context.rb": [
2220
2235
  1,
2221
2236
  1,
2222
2237
  1,
@@ -2245,7 +2260,7 @@
2245
2260
  null,
2246
2261
  null
2247
2262
  ],
2248
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/base.rb": [
2263
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/base.rb": [
2249
2264
  1,
2250
2265
  1,
2251
2266
  1,
@@ -2400,7 +2415,7 @@
2400
2415
  null,
2401
2416
  null
2402
2417
  ],
2403
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/client.rb": [
2418
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/client.rb": [
2404
2419
  1,
2405
2420
  null,
2406
2421
  1,
@@ -2440,7 +2455,7 @@
2440
2455
  null,
2441
2456
  null
2442
2457
  ],
2443
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/client_module/caching.rb": [
2458
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/client_module/caching.rb": [
2444
2459
  1,
2445
2460
  1,
2446
2461
  1,
@@ -2473,7 +2488,7 @@
2473
2488
  null,
2474
2489
  null
2475
2490
  ],
2476
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/client_module/caching/base.rb": [
2491
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/client_module/caching/base.rb": [
2477
2492
  1,
2478
2493
  1,
2479
2494
  1,
@@ -2501,7 +2516,7 @@
2501
2516
  null,
2502
2517
  null
2503
2518
  ],
2504
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/client_module/caching/no_cache.rb": [
2519
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/client_module/caching/no_cache.rb": [
2505
2520
  1,
2506
2521
  1,
2507
2522
  1,
@@ -2518,7 +2533,7 @@
2518
2533
  null,
2519
2534
  null
2520
2535
  ],
2521
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/client_module/caching/rails_cache.rb": [
2536
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/client_module/caching/rails_cache.rb": [
2522
2537
  1,
2523
2538
  null,
2524
2539
  1,
@@ -2562,7 +2577,7 @@
2562
2577
  null,
2563
2578
  null
2564
2579
  ],
2565
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/config.rb": [
2580
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/config.rb": [
2566
2581
  1,
2567
2582
  1,
2568
2583
  1,
@@ -2572,7 +2587,7 @@
2572
2587
  null,
2573
2588
  null
2574
2589
  ],
2575
- "/Users/makeready/work/cloud-sesame/lib/cloud_sesame/domain/error/caching.rb": [
2590
+ "/Users/scottchu/Projects/cloud-sesame/lib/cloud_sesame/domain/error/caching.rb": [
2576
2591
  1,
2577
2592
  1,
2578
2593
  1,
@@ -2583,6 +2598,6 @@
2583
2598
  null
2584
2599
  ]
2585
2600
  },
2586
- "timestamp": 1466450682
2601
+ "timestamp": 1472157729
2587
2602
  }
2588
2603
  }
@@ -5,6 +5,15 @@ module CloudSesame
5
5
 
6
6
  # CLAUSE: PAGE and SIZE
7
7
  # =========================================
8
+ def cursor(input = false)
9
+ if input != false
10
+ request.page.cursor = input
11
+ return self
12
+ else
13
+ request.page.cursor
14
+ end
15
+ end
16
+
8
17
  def page(input = false)
9
18
  if input || input.nil?
10
19
  request.page.start = nil
@@ -4,8 +4,8 @@ module CloudSesame
4
4
  class Abstract
5
5
  attr_reader :context
6
6
 
7
- def initialize(context)
8
- @context = context || {}
7
+ def initialize(context = {})
8
+ @context = context
9
9
  end
10
10
  end
11
11
  end
@@ -3,22 +3,28 @@ module CloudSesame
3
3
  module Node
4
4
  class Page < Abstract
5
5
 
6
- attr_writer :page, :size, :start
6
+ attr_writer :page, :size, :start, :cursor
7
7
 
8
8
  def page
9
- @page ||= 1
9
+ @page ||= context[:page] || 1
10
10
  end
11
11
 
12
12
  def size
13
- @size ||= (context && context[:size]) || 10
13
+ @size ||= context[:size] || 10
14
14
  end
15
15
 
16
16
  def start
17
17
  @start ||= (page - 1) * size
18
18
  end
19
19
 
20
+ def cursor
21
+ @cursor ||= context[:cursor]
22
+ end
23
+
20
24
  def compile
21
- { start: start, size: size }
25
+ compiled = { size: size }
26
+ cursor ? compiled[:cursor] = cursor : compiled[:start] = start
27
+ compiled
22
28
  end
23
29
 
24
30
  end
@@ -8,7 +8,7 @@ module CloudSesame
8
8
 
9
9
  describe '#initialize' do
10
10
  context 'when arguments passed in' do
11
- let(:arguments) { { page: 2, size: 13 } }
11
+ let(:arguments) { { size: 13 } }
12
12
  it 'should initialize the page with the page argument' do
13
13
  expect(node.page).to eq 1
14
14
  end
@@ -53,6 +53,23 @@ module CloudSesame
53
53
  end
54
54
  end
55
55
 
56
+ describe '#compile' do
57
+ context 'when cursor is not set' do
58
+ let(:arguments) { { size: 13, page: 3 } }
59
+
60
+ it 'compiles with start and size' do
61
+ expect(node.compile).to include start: 26, size: 13
62
+ end
63
+ end
64
+ context 'when cursor is set' do
65
+ let(:arguments) { { cursor: 3, size: 13, page: 2 } }
66
+
67
+ it 'compiles with only cursor and size' do
68
+ expect(node.compile).to include cursor: 3, size: 13
69
+ expect(node.compile).to_not include :start
70
+ end
71
+ end
72
+ end
56
73
  end
57
74
  end
58
75
  end
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.13
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chu
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2016-06-20 00:00:00.000000000 Z
19
+ date: 2016-08-25 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: aws-sdk
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  version: '0'
286
286
  requirements: []
287
287
  rubyforge_project:
288
- rubygems_version: 2.4.6
288
+ rubygems_version: 2.5.1
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: AWS CloudSearch Query DSL