couch_rest_adapter 0.8.0 → 0.8.1

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: 04c0ca6fe65e476bd2fd8e46b4b56a3884e76dec
4
- data.tar.gz: 2f3860eb9434e1fca36f979e7c3413975faed8e6
3
+ metadata.gz: be70a1385a0ad4929f0b5c6e5c67e36a16c82e7d
4
+ data.tar.gz: 5a88aa5789b42daf7c4cb25a3f9b1e4214dcb7ed
5
5
  SHA512:
6
- metadata.gz: f234ec7d784c22928afa6b5d6bdae67a51cdacb7fa5448edcba9db1796675fff15e5e234b519aa5e468831b20ac940bd51e2a1ccf2439ed974d68575aaa46b44
7
- data.tar.gz: 2f4eaa5d13448c0dd84e563488a8fad59778b4666a85e69854905e9f30edb9c15e14fa379c343d7ab588acba3fca02153e8bb272eb0d529c62e491651f270e7a
6
+ metadata.gz: 348f2423e31742b226a56dfef708def2538f98612a208dc5a834e7259e01e2b5bd7d6617914fc5743a29943e7d1a1f72406fc26873463829ae8a60848b1ef52f
7
+ data.tar.gz: 221f74c30b15d1a7eff106ccbd57bcbe1549c1e8a16c45d304e26365a7c98e14793c055e792bfff50714c1fb0f982abbe32eefd202794e1a41e376036e37451e
@@ -60,16 +60,16 @@ module CouchRestAdapter
60
60
  end
61
61
  end
62
62
 
63
- def save
63
+ def save bulk = false
64
64
  return false if invalid?
65
65
  return false unless run_callbacks(:save)
66
66
  _set_id_and_namespace
67
- super
67
+ super bulk
68
68
  end
69
69
 
70
- def save!
70
+ def save! bulk = false
71
71
  raise CouchRestAdapter::InvalidDocument if invalid?
72
- save
72
+ save bulk
73
73
  end
74
74
 
75
75
  def method_missing method, *args, &block
@@ -1,3 +1,3 @@
1
1
  module CouchRestAdapter
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -7369,3 +7369,69 @@ LintTest: test_to_param
7369
7369
  ------------------------------
7370
7370
  LintTest: test_to_partial_path
7371
7371
  ------------------------------
7372
+ ---------------------------------------------------
7373
+ CouchRestAdapter::AttributeMethodTest: test_base_id
7374
+ ---------------------------------------------------
7375
+ -----------------------------------------------------------------------------------------------------------------------
7376
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
7377
+ -----------------------------------------------------------------------------------------------------------------------
7378
+ ---------------------------------------------------------------------------------------------------
7379
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
7380
+ ---------------------------------------------------------------------------------------------------
7381
+ ---------------------------------------------------------------------------------------------
7382
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
7383
+ ---------------------------------------------------------------------------------------------
7384
+ -----------------------------------------------------------------------------------------------------------
7385
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
7386
+ -----------------------------------------------------------------------------------------------------------
7387
+ --------------------------------------------------------------
7388
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
7389
+ --------------------------------------------------------------
7390
+ ------------------------------------------------------------
7391
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
7392
+ ------------------------------------------------------------
7393
+ ---------------------------------------------------------
7394
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
7395
+ ---------------------------------------------------------
7396
+ ---------------------------------------------------------------------------------------------
7397
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
7398
+ ---------------------------------------------------------------------------------------------
7399
+ ---------------------------------------------------------
7400
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
7401
+ ---------------------------------------------------------
7402
+ -------------------------------------------------------------
7403
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
7404
+ -------------------------------------------------------------
7405
+ --------------------------------------------------------------------------------------------------
7406
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
7407
+ --------------------------------------------------------------------------------------------------
7408
+ ----------------------------------------------------------------------
7409
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
7410
+ ----------------------------------------------------------------------
7411
+ -----------------------------------------------------
7412
+ CouchRestAdapterTest: test_save!_will_run_validations
7413
+ -----------------------------------------------------
7414
+ -------------------------------------------------------
7415
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
7416
+ -------------------------------------------------------
7417
+ --------------------------------------------------------------
7418
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
7419
+ --------------------------------------------------------------
7420
+ --------------------------
7421
+ LintTest: test_errors_aref
7422
+ --------------------------
7423
+ ---------------------------
7424
+ LintTest: test_model_naming
7425
+ ---------------------------
7426
+ -------------------------
7427
+ LintTest: test_persisted?
7428
+ -------------------------
7429
+ ---------------------
7430
+ LintTest: test_to_key
7431
+ ---------------------
7432
+ -----------------------
7433
+ LintTest: test_to_param
7434
+ -----------------------
7435
+ ------------------------------
7436
+ LintTest: test_to_partial_path
7437
+ ------------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_rest_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Guerra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-13 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails