dolly 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fa754d3dc83a36b3a435cc6d8db15c39495f3e7
4
- data.tar.gz: cd61f6a272fdb3bdab8129073828d08bfb8f9efa
3
+ metadata.gz: 607619b07d08f6c860815258fe030b39cd0a09f8
4
+ data.tar.gz: 5dac80a4623dbb5e02bcb5a658e27c68c79f7b07
5
5
  SHA512:
6
- metadata.gz: 802b991ce692d899773ae0a57527d197525544f48a3f1a3773834d1b5bd51cb3aa78a81a2c90dc1b3858602320540099ceba9e908ac07fd7876eadb3c9eaf8b3
7
- data.tar.gz: 885a621fc09244dbb4bf031150ee804269ac7925d5f1fca4e2a21c0e4476c7d58c2226637b98024216f77eb6d604af6e33fc5ca003ce8196ac3f12eed9fe3c58
6
+ metadata.gz: 8f702a1d9f7772ee6f846840ad01929552efdd149c91d62a47ab0987fb133949dbdd1960e7f09d27045aba1c3499419aaa85f5f55c2128aeb64bd520a707a242
7
+ data.tar.gz: 911733d3bbe11688ac8783009b2500e76d21fc9b0ed1cea9a8e222635c1ee578cd8890fbbace7dba3daee31aabaf01ed9bdfbbd54058f0b49ba72c10975e7ffb
@@ -127,7 +127,10 @@ module Dolly
127
127
 
128
128
  def init_doc options
129
129
  self.doc ||= {}
130
- self.doc['_id'] = self.class.namespace(options[:id]) if options[:id]
130
+ #TODO: define what will be the preference _id or id
131
+ normalized_id = options[:_id] || options[:id]
132
+ self.doc['_id'] = self.class.namespace( normalized_id ) if normalized_id
131
133
  end
134
+
132
135
  end
133
136
  end
data/lib/dolly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dolly
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -211,6 +211,18 @@ class DocumentTest < ActiveSupport::TestCase
211
211
  assert Dolly::Document.bulk_document.kind_of?(Dolly::BulkDocument)
212
212
  end
213
213
 
214
+ test 'new document will have id from _id or id symbols' do
215
+ foo = FooBar.new id: 'a'
216
+ bar = FooBar.new _id: 'b'
217
+ assert_equal "foo_bar/a", foo.id
218
+ assert_equal "foo_bar/b", bar.id
219
+ end
220
+
221
+ test 'new document with no id' do
222
+ foo = FooBar.new
223
+ assert foo.id.match(%r{foo_bar/[a-f0-1]+}).present?
224
+ end
225
+
214
226
  private
215
227
  def generic_response rows, count = 1
216
228
  {total_rows: count, offset:0, rows: rows}
@@ -43162,3 +43162,750 @@ DocumentTest: test_with_default_will_return_default_value_on_nil
43162
43162
  -----------------------------------
43163
43163
  DocumentTest: test_with_timestamps!
43164
43164
  -----------------------------------
43165
+ --------------------------------------------------
43166
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43167
+ --------------------------------------------------
43168
+ -----------------------------------------------------------------
43169
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43170
+ -----------------------------------------------------------------
43171
+ ------------------------------------------------------------------
43172
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43173
+ ------------------------------------------------------------------
43174
+ --------------------------------------------------------------
43175
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43176
+ --------------------------------------------------------------
43177
+ -------------------------------------------
43178
+ DocumentTest: test_all_first_returns_FooBar
43179
+ -------------------------------------------
43180
+ ------------------------------------------
43181
+ DocumentTest: test_all_last_returns_FooBar
43182
+ ------------------------------------------
43183
+ --------------------------------------
43184
+ DocumentTest: test_all_will_get_2_docs
43185
+ --------------------------------------
43186
+ ------------------------------------------------
43187
+ DocumentTest: test_all_will_get_FooBar_documents
43188
+ ------------------------------------------------
43189
+ ------------------------------------------
43190
+ DocumentTest: test_can_find_with_fixnum_id
43191
+ ------------------------------------------
43192
+ ----------------------------------------------
43193
+ DocumentTest: test_default_will_be_avoerwriten
43194
+ ----------------------------------------------
43195
+ --------------------------------------------
43196
+ DocumentTest: test_delete_method_on_document
43197
+ --------------------------------------------
43198
+ ------------------------------------------------
43199
+ DocumentTest: test_empty_find_should_raise_error
43200
+ ------------------------------------------------
43201
+ ------------------------------------------------------------
43202
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43203
+ ------------------------------------------------------------
43204
+ --------------------------------------------------
43205
+ DocumentTest: test_find_will_get_a_FooBar_document
43206
+ --------------------------------------------------
43207
+ ----------------------------------------------------------------
43208
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43209
+ ----------------------------------------------------------------
43210
+ --------------------------------------------------------
43211
+ DocumentTest: test_first_class_method_returns_collection
43212
+ --------------------------------------------------------
43213
+ ---------------------------------------------------------
43214
+ DocumentTest: test_first_class_method_returns_single_item
43215
+ ---------------------------------------------------------
43216
+ ---------------------------------------------
43217
+ DocumentTest: test_getting_not_found_document
43218
+ ---------------------------------------------
43219
+ -------------------------------------------------------
43220
+ DocumentTest: test_last_class_method_returns_collection
43221
+ -------------------------------------------------------
43222
+ --------------------------------------------------------
43223
+ DocumentTest: test_last_class_method_returns_single_item
43224
+ --------------------------------------------------------
43225
+ -------------------------------------------------
43226
+ DocumentTest: test_multi_response_with_right_data
43227
+ -------------------------------------------------
43228
+ ---------------------------------------
43229
+ DocumentTest: test_new_document_have_id
43230
+ ---------------------------------------
43231
+ -------------------------------------------------------------------
43232
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43233
+ -------------------------------------------------------------------
43234
+ -----------------------------------------
43235
+ DocumentTest: test_new_in_memory_document
43236
+ -----------------------------------------
43237
+ ------------------------------------
43238
+ DocumentTest: test_query_custom_view
43239
+ ------------------------------------
43240
+ ------------------------------------------
43241
+ DocumentTest: test_soft_delete_on_document
43242
+ ------------------------------------------
43243
+ -------------------------------------------
43244
+ DocumentTest: test_will_have_key_properties
43245
+ -------------------------------------------
43246
+ --------------------------------------------------------
43247
+ DocumentTest: test_will_have_object_with_boolean?_method
43248
+ --------------------------------------------------------
43249
+ ------------------------------------------------
43250
+ DocumentTest: test_will_have_only_set_properties
43251
+ ------------------------------------------------
43252
+ ----------------------------------------------------------------
43253
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43254
+ ----------------------------------------------------------------
43255
+ -----------------------------------
43256
+ DocumentTest: test_with_timestamps!
43257
+ -----------------------------------
43258
+ --------------------------------------------------
43259
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43260
+ --------------------------------------------------
43261
+ -----------------------------------------------------------------
43262
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43263
+ -----------------------------------------------------------------
43264
+ ------------------------------------------------------------------
43265
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43266
+ ------------------------------------------------------------------
43267
+ --------------------------------------------------------------
43268
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43269
+ --------------------------------------------------------------
43270
+ -------------------------------------------
43271
+ DocumentTest: test_all_first_returns_FooBar
43272
+ -------------------------------------------
43273
+ ------------------------------------------
43274
+ DocumentTest: test_all_last_returns_FooBar
43275
+ ------------------------------------------
43276
+ --------------------------------------
43277
+ DocumentTest: test_all_will_get_2_docs
43278
+ --------------------------------------
43279
+ ------------------------------------------------
43280
+ DocumentTest: test_all_will_get_FooBar_documents
43281
+ ------------------------------------------------
43282
+ ------------------------------------------
43283
+ DocumentTest: test_can_find_with_fixnum_id
43284
+ ------------------------------------------
43285
+ ----------------------------------------------
43286
+ DocumentTest: test_default_will_be_avoerwriten
43287
+ ----------------------------------------------
43288
+ --------------------------------------------
43289
+ DocumentTest: test_delete_method_on_document
43290
+ --------------------------------------------
43291
+ ------------------------------------------------
43292
+ DocumentTest: test_empty_find_should_raise_error
43293
+ ------------------------------------------------
43294
+ ------------------------------------------------------------
43295
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43296
+ ------------------------------------------------------------
43297
+ --------------------------------------------------
43298
+ DocumentTest: test_find_will_get_a_FooBar_document
43299
+ --------------------------------------------------
43300
+ ----------------------------------------------------------------
43301
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43302
+ ----------------------------------------------------------------
43303
+ --------------------------------------------------------
43304
+ DocumentTest: test_first_class_method_returns_collection
43305
+ --------------------------------------------------------
43306
+ ---------------------------------------------------------
43307
+ DocumentTest: test_first_class_method_returns_single_item
43308
+ ---------------------------------------------------------
43309
+ ---------------------------------------------
43310
+ DocumentTest: test_getting_not_found_document
43311
+ ---------------------------------------------
43312
+ -------------------------------------------------------
43313
+ DocumentTest: test_last_class_method_returns_collection
43314
+ -------------------------------------------------------
43315
+ --------------------------------------------------------
43316
+ DocumentTest: test_last_class_method_returns_single_item
43317
+ --------------------------------------------------------
43318
+ -------------------------------------------------
43319
+ DocumentTest: test_multi_response_with_right_data
43320
+ -------------------------------------------------
43321
+ ---------------------------------------
43322
+ DocumentTest: test_new_document_have_id
43323
+ ---------------------------------------
43324
+ -------------------------------------------------------------------
43325
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43326
+ -------------------------------------------------------------------
43327
+ -----------------------------------------
43328
+ DocumentTest: test_new_in_memory_document
43329
+ -----------------------------------------
43330
+ ------------------------------------
43331
+ DocumentTest: test_query_custom_view
43332
+ ------------------------------------
43333
+ ------------------------------------------
43334
+ DocumentTest: test_soft_delete_on_document
43335
+ ------------------------------------------
43336
+ -------------------------------------------
43337
+ DocumentTest: test_will_have_key_properties
43338
+ -------------------------------------------
43339
+ --------------------------------------------------------
43340
+ DocumentTest: test_will_have_object_with_boolean?_method
43341
+ --------------------------------------------------------
43342
+ ------------------------------------------------
43343
+ DocumentTest: test_will_have_only_set_properties
43344
+ ------------------------------------------------
43345
+ ----------------------------------------------------------------
43346
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43347
+ ----------------------------------------------------------------
43348
+ -----------------------------------
43349
+ DocumentTest: test_with_timestamps!
43350
+ -----------------------------------
43351
+ --------------------------------------------------
43352
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43353
+ --------------------------------------------------
43354
+ -----------------------------------------------------------------
43355
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43356
+ -----------------------------------------------------------------
43357
+ ------------------------------------------------------------------
43358
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43359
+ ------------------------------------------------------------------
43360
+ --------------------------------------------------------------
43361
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43362
+ --------------------------------------------------------------
43363
+ -------------------------------------------
43364
+ DocumentTest: test_all_first_returns_FooBar
43365
+ -------------------------------------------
43366
+ ------------------------------------------
43367
+ DocumentTest: test_all_last_returns_FooBar
43368
+ ------------------------------------------
43369
+ --------------------------------------
43370
+ DocumentTest: test_all_will_get_2_docs
43371
+ --------------------------------------
43372
+ ------------------------------------------------
43373
+ DocumentTest: test_all_will_get_FooBar_documents
43374
+ ------------------------------------------------
43375
+ ------------------------------------------
43376
+ DocumentTest: test_can_find_with_fixnum_id
43377
+ ------------------------------------------
43378
+ ----------------------------------------------
43379
+ DocumentTest: test_default_will_be_avoerwriten
43380
+ ----------------------------------------------
43381
+ --------------------------------------------
43382
+ DocumentTest: test_delete_method_on_document
43383
+ --------------------------------------------
43384
+ ------------------------------------------------
43385
+ DocumentTest: test_empty_find_should_raise_error
43386
+ ------------------------------------------------
43387
+ ------------------------------------------------------------
43388
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43389
+ ------------------------------------------------------------
43390
+ --------------------------------------------------
43391
+ DocumentTest: test_find_will_get_a_FooBar_document
43392
+ --------------------------------------------------
43393
+ ----------------------------------------------------------------
43394
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43395
+ ----------------------------------------------------------------
43396
+ --------------------------------------------------------
43397
+ DocumentTest: test_first_class_method_returns_collection
43398
+ --------------------------------------------------------
43399
+ ---------------------------------------------------------
43400
+ DocumentTest: test_first_class_method_returns_single_item
43401
+ ---------------------------------------------------------
43402
+ ---------------------------------------------
43403
+ DocumentTest: test_getting_not_found_document
43404
+ ---------------------------------------------
43405
+ -------------------------------------------------------
43406
+ DocumentTest: test_last_class_method_returns_collection
43407
+ -------------------------------------------------------
43408
+ --------------------------------------------------------
43409
+ DocumentTest: test_last_class_method_returns_single_item
43410
+ --------------------------------------------------------
43411
+ -------------------------------------------------
43412
+ DocumentTest: test_multi_response_with_right_data
43413
+ -------------------------------------------------
43414
+ ---------------------------------------
43415
+ DocumentTest: test_new_document_have_id
43416
+ ---------------------------------------
43417
+ -------------------------------------------------------------------
43418
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43419
+ -------------------------------------------------------------------
43420
+ -----------------------------------------
43421
+ DocumentTest: test_new_in_memory_document
43422
+ -----------------------------------------
43423
+ ------------------------------------
43424
+ DocumentTest: test_query_custom_view
43425
+ ------------------------------------
43426
+ ------------------------------------------
43427
+ DocumentTest: test_soft_delete_on_document
43428
+ ------------------------------------------
43429
+ -------------------------------------------
43430
+ DocumentTest: test_will_have_key_properties
43431
+ -------------------------------------------
43432
+ --------------------------------------------------------
43433
+ DocumentTest: test_will_have_object_with_boolean?_method
43434
+ --------------------------------------------------------
43435
+ ------------------------------------------------
43436
+ DocumentTest: test_will_have_only_set_properties
43437
+ ------------------------------------------------
43438
+ ----------------------------------------------------------------
43439
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43440
+ ----------------------------------------------------------------
43441
+ -----------------------------------
43442
+ DocumentTest: test_with_timestamps!
43443
+ -----------------------------------
43444
+ --------------------------------------------------
43445
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43446
+ --------------------------------------------------
43447
+ -----------------------------------------------------------------
43448
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43449
+ -----------------------------------------------------------------
43450
+ ------------------------------------------------------------------
43451
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43452
+ ------------------------------------------------------------------
43453
+ --------------------------------------------------------------
43454
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43455
+ --------------------------------------------------------------
43456
+ -------------------------------------------
43457
+ DocumentTest: test_all_first_returns_FooBar
43458
+ -------------------------------------------
43459
+ ------------------------------------------
43460
+ DocumentTest: test_all_last_returns_FooBar
43461
+ ------------------------------------------
43462
+ --------------------------------------
43463
+ DocumentTest: test_all_will_get_2_docs
43464
+ --------------------------------------
43465
+ ------------------------------------------------
43466
+ DocumentTest: test_all_will_get_FooBar_documents
43467
+ ------------------------------------------------
43468
+ ------------------------------------------
43469
+ DocumentTest: test_can_find_with_fixnum_id
43470
+ ------------------------------------------
43471
+ ----------------------------------------------
43472
+ DocumentTest: test_default_will_be_avoerwriten
43473
+ ----------------------------------------------
43474
+ --------------------------------------------
43475
+ DocumentTest: test_delete_method_on_document
43476
+ --------------------------------------------
43477
+ ------------------------------------------------
43478
+ DocumentTest: test_empty_find_should_raise_error
43479
+ ------------------------------------------------
43480
+ ------------------------------------------------------------
43481
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43482
+ ------------------------------------------------------------
43483
+ --------------------------------------------------
43484
+ DocumentTest: test_find_will_get_a_FooBar_document
43485
+ --------------------------------------------------
43486
+ ----------------------------------------------------------------
43487
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43488
+ ----------------------------------------------------------------
43489
+ --------------------------------------------------------
43490
+ DocumentTest: test_first_class_method_returns_collection
43491
+ --------------------------------------------------------
43492
+ ---------------------------------------------------------
43493
+ DocumentTest: test_first_class_method_returns_single_item
43494
+ ---------------------------------------------------------
43495
+ ---------------------------------------------
43496
+ DocumentTest: test_getting_not_found_document
43497
+ ---------------------------------------------
43498
+ -------------------------------------------------------
43499
+ DocumentTest: test_last_class_method_returns_collection
43500
+ -------------------------------------------------------
43501
+ --------------------------------------------------------
43502
+ DocumentTest: test_last_class_method_returns_single_item
43503
+ --------------------------------------------------------
43504
+ -------------------------------------------------
43505
+ DocumentTest: test_multi_response_with_right_data
43506
+ -------------------------------------------------
43507
+ ---------------------------------------
43508
+ DocumentTest: test_new_document_have_id
43509
+ ---------------------------------------
43510
+ -------------------------------------------------------------------
43511
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43512
+ -------------------------------------------------------------------
43513
+ -----------------------------------------
43514
+ DocumentTest: test_new_in_memory_document
43515
+ -----------------------------------------
43516
+ ------------------------------------
43517
+ DocumentTest: test_query_custom_view
43518
+ ------------------------------------
43519
+ ------------------------------------------
43520
+ DocumentTest: test_soft_delete_on_document
43521
+ ------------------------------------------
43522
+ -------------------------------------------
43523
+ DocumentTest: test_will_have_key_properties
43524
+ -------------------------------------------
43525
+ --------------------------------------------------------
43526
+ DocumentTest: test_will_have_object_with_boolean?_method
43527
+ --------------------------------------------------------
43528
+ ------------------------------------------------
43529
+ DocumentTest: test_will_have_only_set_properties
43530
+ ------------------------------------------------
43531
+ ----------------------------------------------------------------
43532
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43533
+ ----------------------------------------------------------------
43534
+ -----------------------------------
43535
+ DocumentTest: test_with_timestamps!
43536
+ -----------------------------------
43537
+ --------------------------------------------------
43538
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43539
+ --------------------------------------------------
43540
+ -----------------------------------------------------------------
43541
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43542
+ -----------------------------------------------------------------
43543
+ ------------------------------------------------------------------
43544
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43545
+ ------------------------------------------------------------------
43546
+ --------------------------------------------------------------
43547
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43548
+ --------------------------------------------------------------
43549
+ -------------------------------------------
43550
+ DocumentTest: test_all_first_returns_FooBar
43551
+ -------------------------------------------
43552
+ ------------------------------------------
43553
+ DocumentTest: test_all_last_returns_FooBar
43554
+ ------------------------------------------
43555
+ --------------------------------------
43556
+ DocumentTest: test_all_will_get_2_docs
43557
+ --------------------------------------
43558
+ ------------------------------------------------
43559
+ DocumentTest: test_all_will_get_FooBar_documents
43560
+ ------------------------------------------------
43561
+ ------------------------------------------
43562
+ DocumentTest: test_can_find_with_fixnum_id
43563
+ ------------------------------------------
43564
+ ----------------------------------------------
43565
+ DocumentTest: test_default_will_be_avoerwriten
43566
+ ----------------------------------------------
43567
+ --------------------------------------------
43568
+ DocumentTest: test_delete_method_on_document
43569
+ --------------------------------------------
43570
+ ------------------------------------------------
43571
+ DocumentTest: test_empty_find_should_raise_error
43572
+ ------------------------------------------------
43573
+ ------------------------------------------------------------
43574
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43575
+ ------------------------------------------------------------
43576
+ --------------------------------------------------
43577
+ DocumentTest: test_find_will_get_a_FooBar_document
43578
+ --------------------------------------------------
43579
+ ----------------------------------------------------------------
43580
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43581
+ ----------------------------------------------------------------
43582
+ --------------------------------------------------------
43583
+ DocumentTest: test_first_class_method_returns_collection
43584
+ --------------------------------------------------------
43585
+ ---------------------------------------------------------
43586
+ DocumentTest: test_first_class_method_returns_single_item
43587
+ ---------------------------------------------------------
43588
+ ---------------------------------------------
43589
+ DocumentTest: test_getting_not_found_document
43590
+ ---------------------------------------------
43591
+ -------------------------------------------------------
43592
+ DocumentTest: test_last_class_method_returns_collection
43593
+ -------------------------------------------------------
43594
+ --------------------------------------------------------
43595
+ DocumentTest: test_last_class_method_returns_single_item
43596
+ --------------------------------------------------------
43597
+ -------------------------------------------------
43598
+ DocumentTest: test_multi_response_with_right_data
43599
+ -------------------------------------------------
43600
+ ---------------------------------------
43601
+ DocumentTest: test_new_document_have_id
43602
+ ---------------------------------------
43603
+ -------------------------------------------------------------------
43604
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43605
+ -------------------------------------------------------------------
43606
+ -----------------------------------------
43607
+ DocumentTest: test_new_in_memory_document
43608
+ -----------------------------------------
43609
+ ------------------------------------
43610
+ DocumentTest: test_query_custom_view
43611
+ ------------------------------------
43612
+ ------------------------------------------
43613
+ DocumentTest: test_soft_delete_on_document
43614
+ ------------------------------------------
43615
+ -------------------------------------------
43616
+ DocumentTest: test_will_have_key_properties
43617
+ -------------------------------------------
43618
+ --------------------------------------------------------
43619
+ DocumentTest: test_will_have_object_with_boolean?_method
43620
+ --------------------------------------------------------
43621
+ ------------------------------------------------
43622
+ DocumentTest: test_will_have_only_set_properties
43623
+ ------------------------------------------------
43624
+ ----------------------------------------------------------------
43625
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43626
+ ----------------------------------------------------------------
43627
+ -----------------------------------
43628
+ DocumentTest: test_with_timestamps!
43629
+ -----------------------------------
43630
+ --------------------------------------------------
43631
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43632
+ --------------------------------------------------
43633
+ -----------------------------------------------------------------
43634
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43635
+ -----------------------------------------------------------------
43636
+ ------------------------------------------------------------------
43637
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43638
+ ------------------------------------------------------------------
43639
+ --------------------------------------------------------------
43640
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43641
+ --------------------------------------------------------------
43642
+ -------------------------------------------
43643
+ DocumentTest: test_all_first_returns_FooBar
43644
+ -------------------------------------------
43645
+ ------------------------------------------
43646
+ DocumentTest: test_all_last_returns_FooBar
43647
+ ------------------------------------------
43648
+ --------------------------------------
43649
+ DocumentTest: test_all_will_get_2_docs
43650
+ --------------------------------------
43651
+ ------------------------------------------------
43652
+ DocumentTest: test_all_will_get_FooBar_documents
43653
+ ------------------------------------------------
43654
+ ------------------------------------------
43655
+ DocumentTest: test_can_find_with_fixnum_id
43656
+ ------------------------------------------
43657
+ ----------------------------------------------
43658
+ DocumentTest: test_default_will_be_avoerwriten
43659
+ ----------------------------------------------
43660
+ --------------------------------------------
43661
+ DocumentTest: test_delete_method_on_document
43662
+ --------------------------------------------
43663
+ ------------------------------------------------
43664
+ DocumentTest: test_empty_find_should_raise_error
43665
+ ------------------------------------------------
43666
+ ------------------------------------------------------------
43667
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43668
+ ------------------------------------------------------------
43669
+ --------------------------------------------------
43670
+ DocumentTest: test_find_will_get_a_FooBar_document
43671
+ --------------------------------------------------
43672
+ ----------------------------------------------------------------
43673
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43674
+ ----------------------------------------------------------------
43675
+ --------------------------------------------------------
43676
+ DocumentTest: test_first_class_method_returns_collection
43677
+ --------------------------------------------------------
43678
+ ---------------------------------------------------------
43679
+ DocumentTest: test_first_class_method_returns_single_item
43680
+ ---------------------------------------------------------
43681
+ ---------------------------------------------
43682
+ DocumentTest: test_getting_not_found_document
43683
+ ---------------------------------------------
43684
+ -------------------------------------------------------
43685
+ DocumentTest: test_last_class_method_returns_collection
43686
+ -------------------------------------------------------
43687
+ --------------------------------------------------------
43688
+ DocumentTest: test_last_class_method_returns_single_item
43689
+ --------------------------------------------------------
43690
+ -------------------------------------------------
43691
+ DocumentTest: test_multi_response_with_right_data
43692
+ -------------------------------------------------
43693
+ ---------------------------------------
43694
+ DocumentTest: test_new_document_have_id
43695
+ ---------------------------------------
43696
+ -------------------------------------------------------------------
43697
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43698
+ -------------------------------------------------------------------
43699
+ -----------------------------------------
43700
+ DocumentTest: test_new_in_memory_document
43701
+ -----------------------------------------
43702
+ ------------------------------------
43703
+ DocumentTest: test_query_custom_view
43704
+ ------------------------------------
43705
+ ------------------------------------------
43706
+ DocumentTest: test_soft_delete_on_document
43707
+ ------------------------------------------
43708
+ -------------------------------------------
43709
+ DocumentTest: test_will_have_key_properties
43710
+ -------------------------------------------
43711
+ --------------------------------------------------------
43712
+ DocumentTest: test_will_have_object_with_boolean?_method
43713
+ --------------------------------------------------------
43714
+ ------------------------------------------------
43715
+ DocumentTest: test_will_have_only_set_properties
43716
+ ------------------------------------------------
43717
+ ----------------------------------------------------------------
43718
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43719
+ ----------------------------------------------------------------
43720
+ -----------------------------------
43721
+ DocumentTest: test_with_timestamps!
43722
+ -----------------------------------
43723
+ --------------------------------------------------
43724
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43725
+ --------------------------------------------------
43726
+ -----------------------------------------------------------------
43727
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43728
+ -----------------------------------------------------------------
43729
+ ------------------------------------------------------------------
43730
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43731
+ ------------------------------------------------------------------
43732
+ --------------------------------------------------------------
43733
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43734
+ --------------------------------------------------------------
43735
+ -------------------------------------------
43736
+ DocumentTest: test_all_first_returns_FooBar
43737
+ -------------------------------------------
43738
+ ------------------------------------------
43739
+ DocumentTest: test_all_last_returns_FooBar
43740
+ ------------------------------------------
43741
+ --------------------------------------
43742
+ DocumentTest: test_all_will_get_2_docs
43743
+ --------------------------------------
43744
+ ------------------------------------------------
43745
+ DocumentTest: test_all_will_get_FooBar_documents
43746
+ ------------------------------------------------
43747
+ ------------------------------------------
43748
+ DocumentTest: test_can_find_with_fixnum_id
43749
+ ------------------------------------------
43750
+ ----------------------------------------------
43751
+ DocumentTest: test_default_will_be_avoerwriten
43752
+ ----------------------------------------------
43753
+ --------------------------------------------
43754
+ DocumentTest: test_delete_method_on_document
43755
+ --------------------------------------------
43756
+ ------------------------------------------------
43757
+ DocumentTest: test_empty_find_should_raise_error
43758
+ ------------------------------------------------
43759
+ ------------------------------------------------------------
43760
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43761
+ ------------------------------------------------------------
43762
+ --------------------------------------------------
43763
+ DocumentTest: test_find_will_get_a_FooBar_document
43764
+ --------------------------------------------------
43765
+ ----------------------------------------------------------------
43766
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43767
+ ----------------------------------------------------------------
43768
+ --------------------------------------------------------
43769
+ DocumentTest: test_first_class_method_returns_collection
43770
+ --------------------------------------------------------
43771
+ ---------------------------------------------------------
43772
+ DocumentTest: test_first_class_method_returns_single_item
43773
+ ---------------------------------------------------------
43774
+ ---------------------------------------------
43775
+ DocumentTest: test_getting_not_found_document
43776
+ ---------------------------------------------
43777
+ -------------------------------------------------------
43778
+ DocumentTest: test_last_class_method_returns_collection
43779
+ -------------------------------------------------------
43780
+ --------------------------------------------------------
43781
+ DocumentTest: test_last_class_method_returns_single_item
43782
+ --------------------------------------------------------
43783
+ -------------------------------------------------
43784
+ DocumentTest: test_multi_response_with_right_data
43785
+ -------------------------------------------------
43786
+ ---------------------------------------
43787
+ DocumentTest: test_new_document_have_id
43788
+ ---------------------------------------
43789
+ -------------------------------------------------------------------
43790
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43791
+ -------------------------------------------------------------------
43792
+ -----------------------------------------
43793
+ DocumentTest: test_new_in_memory_document
43794
+ -----------------------------------------
43795
+ ------------------------------------
43796
+ DocumentTest: test_query_custom_view
43797
+ ------------------------------------
43798
+ ------------------------------------------
43799
+ DocumentTest: test_soft_delete_on_document
43800
+ ------------------------------------------
43801
+ -------------------------------------------
43802
+ DocumentTest: test_will_have_key_properties
43803
+ -------------------------------------------
43804
+ --------------------------------------------------------
43805
+ DocumentTest: test_will_have_object_with_boolean?_method
43806
+ --------------------------------------------------------
43807
+ ------------------------------------------------
43808
+ DocumentTest: test_will_have_only_set_properties
43809
+ ------------------------------------------------
43810
+ ----------------------------------------------------------------
43811
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43812
+ ----------------------------------------------------------------
43813
+ -----------------------------------
43814
+ DocumentTest: test_with_timestamps!
43815
+ -----------------------------------
43816
+ --------------------------------------------------
43817
+ BulkDocumentTest: test_adding_document_to_bulk_doc
43818
+ --------------------------------------------------
43819
+ -----------------------------------------------------------------
43820
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
43821
+ -----------------------------------------------------------------
43822
+ ------------------------------------------------------------------
43823
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
43824
+ ------------------------------------------------------------------
43825
+ --------------------------------------------------------------
43826
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
43827
+ --------------------------------------------------------------
43828
+ -------------------------------------------
43829
+ DocumentTest: test_all_first_returns_FooBar
43830
+ -------------------------------------------
43831
+ ------------------------------------------
43832
+ DocumentTest: test_all_last_returns_FooBar
43833
+ ------------------------------------------
43834
+ --------------------------------------
43835
+ DocumentTest: test_all_will_get_2_docs
43836
+ --------------------------------------
43837
+ ------------------------------------------------
43838
+ DocumentTest: test_all_will_get_FooBar_documents
43839
+ ------------------------------------------------
43840
+ ------------------------------------------
43841
+ DocumentTest: test_can_find_with_fixnum_id
43842
+ ------------------------------------------
43843
+ ----------------------------------------------
43844
+ DocumentTest: test_default_will_be_avoerwriten
43845
+ ----------------------------------------------
43846
+ --------------------------------------------
43847
+ DocumentTest: test_delete_method_on_document
43848
+ --------------------------------------------
43849
+ ------------------------------------------------
43850
+ DocumentTest: test_empty_find_should_raise_error
43851
+ ------------------------------------------------
43852
+ ------------------------------------------------------------
43853
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
43854
+ ------------------------------------------------------------
43855
+ --------------------------------------------------
43856
+ DocumentTest: test_find_will_get_a_FooBar_document
43857
+ --------------------------------------------------
43858
+ ----------------------------------------------------------------
43859
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
43860
+ ----------------------------------------------------------------
43861
+ --------------------------------------------------------
43862
+ DocumentTest: test_first_class_method_returns_collection
43863
+ --------------------------------------------------------
43864
+ ---------------------------------------------------------
43865
+ DocumentTest: test_first_class_method_returns_single_item
43866
+ ---------------------------------------------------------
43867
+ ---------------------------------------------
43868
+ DocumentTest: test_getting_not_found_document
43869
+ ---------------------------------------------
43870
+ -------------------------------------------------------
43871
+ DocumentTest: test_last_class_method_returns_collection
43872
+ -------------------------------------------------------
43873
+ --------------------------------------------------------
43874
+ DocumentTest: test_last_class_method_returns_single_item
43875
+ --------------------------------------------------------
43876
+ -------------------------------------------------
43877
+ DocumentTest: test_multi_response_with_right_data
43878
+ -------------------------------------------------
43879
+ ---------------------------------------
43880
+ DocumentTest: test_new_document_have_id
43881
+ ---------------------------------------
43882
+ -------------------------------------------------------------------
43883
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
43884
+ -------------------------------------------------------------------
43885
+ ------------------------------------------
43886
+ DocumentTest: test_new_document_with_no_id
43887
+ ------------------------------------------
43888
+ -----------------------------------------
43889
+ DocumentTest: test_new_in_memory_document
43890
+ -----------------------------------------
43891
+ ------------------------------------
43892
+ DocumentTest: test_query_custom_view
43893
+ ------------------------------------
43894
+ ------------------------------------------
43895
+ DocumentTest: test_soft_delete_on_document
43896
+ ------------------------------------------
43897
+ -------------------------------------------
43898
+ DocumentTest: test_will_have_key_properties
43899
+ -------------------------------------------
43900
+ --------------------------------------------------------
43901
+ DocumentTest: test_will_have_object_with_boolean?_method
43902
+ --------------------------------------------------------
43903
+ ------------------------------------------------
43904
+ DocumentTest: test_will_have_only_set_properties
43905
+ ------------------------------------------------
43906
+ ----------------------------------------------------------------
43907
+ DocumentTest: test_with_default_will_return_default_value_on_nil
43908
+ ----------------------------------------------------------------
43909
+ -----------------------------------
43910
+ DocumentTest: test_with_timestamps!
43911
+ -----------------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dolly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - javierg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-12 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails