couch_rest_adapter 0.7.0 → 0.7.1

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: 0388de40c353d79813be65d58ed05c9270c0d6e0
4
- data.tar.gz: fd9cdbbfa61f284bbce98a95a0b3926cb1e6a314
3
+ metadata.gz: 83e246d746f6829fc0dbbd2d8e416add14bf45a4
4
+ data.tar.gz: 025b484105520d3ba03fc40ca139c61ffe0c03ca
5
5
  SHA512:
6
- metadata.gz: 0767188333a9655edd1cf69d1144b01b8f0883ca8e82ca3fa48fca7619a4746950278d0e10e15bafc59e2bb38486878ca63b2c9d7659ab0be602b1e06ff5d8c6
7
- data.tar.gz: 38c4e294e2d64ec80018a79cc4bb3bcb1e3ebdc26a04ed46b30e8b7583f425163de94f491aab213ba30346ab4e5766fa430ae806fe8e25a9ec242a83d151284f
6
+ metadata.gz: ed65ab24fabcd8dd2525d5bc44dadc36425a5234c0beaf01808c56d2618c58225544c7322ecd7a7b3ed8765786a2d9e312f020d1d5d047f1bd63da103de18c15
7
+ data.tar.gz: ec86619d08e786706d412de7fd607e23424432007304ba59163e25c45bd08a3f9b781895a6fc7830ff401bfb6a2b59290ab2cc2fcaf5ce37435ba9f23aca8f3e
@@ -1,3 +1,3 @@
1
1
  module CouchRestAdapter
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -67,6 +67,11 @@ module CouchRestAdapter
67
67
  super
68
68
  end
69
69
 
70
+ def save!
71
+ raise CouchRestAdapter::InvalidDocument if invalid?
72
+ save
73
+ end
74
+
70
75
  def method_missing method, *args, &block
71
76
  if attribute_methods.include? method.to_s
72
77
  read_write method, args.first
@@ -4,5 +4,11 @@ module CouchRestAdapter
4
4
  "An abstract class can not be instantiated."
5
5
  end
6
6
  end
7
+
8
+ class InvalidDocument < RuntimeError
9
+ def to_s
10
+ "Document Can't be saved. Validation Failed."
11
+ end
12
+ end
7
13
  end
8
14
 
@@ -9,7 +9,7 @@ namespace :db do
9
9
  language: "coffeescript",
10
10
  views: {
11
11
  all: {
12
- map: "(d) ->\n split_id = d._id.split('/')\n t = split_id[0]\n emit t, d\n",
12
+ map: "(d) ->\n split_id = d._id.split('/')\n t = split_id[0]\n emit t, d._id\n",
13
13
  },
14
14
  by_attribute: {
15
15
  map: "(doc) ->\n type = doc._id.split('/')[0]\n for a of doc\n emit([type, a, doc[a]], doc._id)\n"
@@ -111,10 +111,25 @@ class CouchRestAdapterTest < ActiveSupport::TestCase
111
111
  assert_equal @foo, FooBar.find(partial_id)
112
112
  end
113
113
 
114
+ test 'save! will run validations' do
115
+ invalid = WithValidations.new no_foo: 'a'
116
+ assert_raise CouchRestAdapter::InvalidDocument do
117
+ invalid.save!
118
+ end
119
+ valid = WithValidations.new foo: 'a'
120
+ assert valid.save!
121
+ end
122
+
114
123
  #TODO: Error handling, reporting
115
124
 
116
125
  end
117
126
 
127
+ class WithValidations < CouchRestAdapter::Base
128
+ use_default_database
129
+
130
+ validates :foo, presence: true
131
+ end
132
+
118
133
  class LintTest < ActiveModel::TestCase
119
134
  include ActiveModel::Lint::Tests
120
135
 
@@ -6907,3 +6907,399 @@ LintTest: test_to_param
6907
6907
  ------------------------------
6908
6908
  LintTest: test_to_partial_path
6909
6909
  ------------------------------
6910
+ ---------------------------------------------------
6911
+ CouchRestAdapter::AttributeMethodTest: test_base_id
6912
+ ---------------------------------------------------
6913
+ -----------------------------------------------------------------------------------------------------------------------
6914
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
6915
+ -----------------------------------------------------------------------------------------------------------------------
6916
+ ---------------------------------------------------------------------------------------------------
6917
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
6918
+ ---------------------------------------------------------------------------------------------------
6919
+ ---------------------------------------------------------------------------------------------
6920
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
6921
+ ---------------------------------------------------------------------------------------------
6922
+ -----------------------------------------------------------------------------------------------------------
6923
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
6924
+ -----------------------------------------------------------------------------------------------------------
6925
+ --------------------------------------------------------------
6926
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
6927
+ --------------------------------------------------------------
6928
+ ------------------------------------------------------------
6929
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
6930
+ ------------------------------------------------------------
6931
+ ---------------------------------------------------------
6932
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
6933
+ ---------------------------------------------------------
6934
+ ---------------------------------------------------------------------------------------------
6935
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
6936
+ ---------------------------------------------------------------------------------------------
6937
+ ---------------------------------------------------------
6938
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
6939
+ ---------------------------------------------------------
6940
+ -------------------------------------------------------------
6941
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
6942
+ -------------------------------------------------------------
6943
+ --------------------------------------------------------------------------------------------------
6944
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
6945
+ --------------------------------------------------------------------------------------------------
6946
+ ----------------------------------------------------------------------
6947
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
6948
+ ----------------------------------------------------------------------
6949
+ -----------------------------------------------------
6950
+ CouchRestAdapterTest: test_save!_will_run_validations
6951
+ -----------------------------------------------------
6952
+ -------------------------------------------------------
6953
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
6954
+ -------------------------------------------------------
6955
+ --------------------------------------------------------------
6956
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
6957
+ --------------------------------------------------------------
6958
+ --------------------------
6959
+ LintTest: test_errors_aref
6960
+ --------------------------
6961
+ ---------------------------
6962
+ LintTest: test_model_naming
6963
+ ---------------------------
6964
+ -------------------------
6965
+ LintTest: test_persisted?
6966
+ -------------------------
6967
+ ---------------------
6968
+ LintTest: test_to_key
6969
+ ---------------------
6970
+ -----------------------
6971
+ LintTest: test_to_param
6972
+ -----------------------
6973
+ ------------------------------
6974
+ LintTest: test_to_partial_path
6975
+ ------------------------------
6976
+ ---------------------------------------------------
6977
+ CouchRestAdapter::AttributeMethodTest: test_base_id
6978
+ ---------------------------------------------------
6979
+ -----------------------------------------------------------------------------------------------------------------------
6980
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
6981
+ -----------------------------------------------------------------------------------------------------------------------
6982
+ ---------------------------------------------------------------------------------------------------
6983
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
6984
+ ---------------------------------------------------------------------------------------------------
6985
+ ---------------------------------------------------------------------------------------------
6986
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
6987
+ ---------------------------------------------------------------------------------------------
6988
+ -----------------------------------------------------------------------------------------------------------
6989
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
6990
+ -----------------------------------------------------------------------------------------------------------
6991
+ --------------------------------------------------------------
6992
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
6993
+ --------------------------------------------------------------
6994
+ ------------------------------------------------------------
6995
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
6996
+ ------------------------------------------------------------
6997
+ ---------------------------------------------------------
6998
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
6999
+ ---------------------------------------------------------
7000
+ ---------------------------------------------------------------------------------------------
7001
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
7002
+ ---------------------------------------------------------------------------------------------
7003
+ ---------------------------------------------------------
7004
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
7005
+ ---------------------------------------------------------
7006
+ -------------------------------------------------------------
7007
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
7008
+ -------------------------------------------------------------
7009
+ --------------------------------------------------------------------------------------------------
7010
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
7011
+ --------------------------------------------------------------------------------------------------
7012
+ ----------------------------------------------------------------------
7013
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
7014
+ ----------------------------------------------------------------------
7015
+ -----------------------------------------------------
7016
+ CouchRestAdapterTest: test_save!_will_run_validations
7017
+ -----------------------------------------------------
7018
+ -------------------------------------------------------
7019
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
7020
+ -------------------------------------------------------
7021
+ --------------------------------------------------------------
7022
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
7023
+ --------------------------------------------------------------
7024
+ --------------------------
7025
+ LintTest: test_errors_aref
7026
+ --------------------------
7027
+ ---------------------------
7028
+ LintTest: test_model_naming
7029
+ ---------------------------
7030
+ -------------------------
7031
+ LintTest: test_persisted?
7032
+ -------------------------
7033
+ ---------------------
7034
+ LintTest: test_to_key
7035
+ ---------------------
7036
+ -----------------------
7037
+ LintTest: test_to_param
7038
+ -----------------------
7039
+ ------------------------------
7040
+ LintTest: test_to_partial_path
7041
+ ------------------------------
7042
+ ---------------------------------------------------
7043
+ CouchRestAdapter::AttributeMethodTest: test_base_id
7044
+ ---------------------------------------------------
7045
+ -----------------------------------------------------------------------------------------------------------------------
7046
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
7047
+ -----------------------------------------------------------------------------------------------------------------------
7048
+ ---------------------------------------------------------------------------------------------------
7049
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
7050
+ ---------------------------------------------------------------------------------------------------
7051
+ ---------------------------------------------------------------------------------------------
7052
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
7053
+ ---------------------------------------------------------------------------------------------
7054
+ -----------------------------------------------------------------------------------------------------------
7055
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
7056
+ -----------------------------------------------------------------------------------------------------------
7057
+ --------------------------------------------------------------
7058
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
7059
+ --------------------------------------------------------------
7060
+ ------------------------------------------------------------
7061
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
7062
+ ------------------------------------------------------------
7063
+ ---------------------------------------------------------
7064
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
7065
+ ---------------------------------------------------------
7066
+ ---------------------------------------------------------------------------------------------
7067
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
7068
+ ---------------------------------------------------------------------------------------------
7069
+ ---------------------------------------------------------
7070
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
7071
+ ---------------------------------------------------------
7072
+ -------------------------------------------------------------
7073
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
7074
+ -------------------------------------------------------------
7075
+ --------------------------------------------------------------------------------------------------
7076
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
7077
+ --------------------------------------------------------------------------------------------------
7078
+ ----------------------------------------------------------------------
7079
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
7080
+ ----------------------------------------------------------------------
7081
+ -----------------------------------------------------
7082
+ CouchRestAdapterTest: test_save!_will_run_validations
7083
+ -----------------------------------------------------
7084
+ -------------------------------------------------------
7085
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
7086
+ -------------------------------------------------------
7087
+ --------------------------------------------------------------
7088
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
7089
+ --------------------------------------------------------------
7090
+ --------------------------
7091
+ LintTest: test_errors_aref
7092
+ --------------------------
7093
+ ---------------------------
7094
+ LintTest: test_model_naming
7095
+ ---------------------------
7096
+ -------------------------
7097
+ LintTest: test_persisted?
7098
+ -------------------------
7099
+ ---------------------
7100
+ LintTest: test_to_key
7101
+ ---------------------
7102
+ -----------------------
7103
+ LintTest: test_to_param
7104
+ -----------------------
7105
+ ------------------------------
7106
+ LintTest: test_to_partial_path
7107
+ ------------------------------
7108
+ ---------------------------------------------------
7109
+ CouchRestAdapter::AttributeMethodTest: test_base_id
7110
+ ---------------------------------------------------
7111
+ -----------------------------------------------------------------------------------------------------------------------
7112
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
7113
+ -----------------------------------------------------------------------------------------------------------------------
7114
+ ---------------------------------------------------------------------------------------------------
7115
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
7116
+ ---------------------------------------------------------------------------------------------------
7117
+ ---------------------------------------------------------------------------------------------
7118
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
7119
+ ---------------------------------------------------------------------------------------------
7120
+ -----------------------------------------------------------------------------------------------------------
7121
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
7122
+ -----------------------------------------------------------------------------------------------------------
7123
+ --------------------------------------------------------------
7124
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
7125
+ --------------------------------------------------------------
7126
+ ------------------------------------------------------------
7127
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
7128
+ ------------------------------------------------------------
7129
+ ---------------------------------------------------------
7130
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
7131
+ ---------------------------------------------------------
7132
+ ---------------------------------------------------------------------------------------------
7133
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
7134
+ ---------------------------------------------------------------------------------------------
7135
+ ---------------------------------------------------------
7136
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
7137
+ ---------------------------------------------------------
7138
+ -------------------------------------------------------------
7139
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
7140
+ -------------------------------------------------------------
7141
+ --------------------------------------------------------------------------------------------------
7142
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
7143
+ --------------------------------------------------------------------------------------------------
7144
+ ----------------------------------------------------------------------
7145
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
7146
+ ----------------------------------------------------------------------
7147
+ -----------------------------------------------------
7148
+ CouchRestAdapterTest: test_save!_will_run_validations
7149
+ -----------------------------------------------------
7150
+ -------------------------------------------------------
7151
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
7152
+ -------------------------------------------------------
7153
+ --------------------------------------------------------------
7154
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
7155
+ --------------------------------------------------------------
7156
+ --------------------------
7157
+ LintTest: test_errors_aref
7158
+ --------------------------
7159
+ ---------------------------
7160
+ LintTest: test_model_naming
7161
+ ---------------------------
7162
+ -------------------------
7163
+ LintTest: test_persisted?
7164
+ -------------------------
7165
+ ---------------------
7166
+ LintTest: test_to_key
7167
+ ---------------------
7168
+ -----------------------
7169
+ LintTest: test_to_param
7170
+ -----------------------
7171
+ ------------------------------
7172
+ LintTest: test_to_partial_path
7173
+ ------------------------------
7174
+ ---------------------------------------------------
7175
+ CouchRestAdapter::AttributeMethodTest: test_base_id
7176
+ ---------------------------------------------------
7177
+ -----------------------------------------------------------------------------------------------------------------------
7178
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
7179
+ -----------------------------------------------------------------------------------------------------------------------
7180
+ ---------------------------------------------------------------------------------------------------
7181
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
7182
+ ---------------------------------------------------------------------------------------------------
7183
+ ---------------------------------------------------------------------------------------------
7184
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
7185
+ ---------------------------------------------------------------------------------------------
7186
+ -----------------------------------------------------------------------------------------------------------
7187
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
7188
+ -----------------------------------------------------------------------------------------------------------
7189
+ --------------------------------------------------------------
7190
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
7191
+ --------------------------------------------------------------
7192
+ ------------------------------------------------------------
7193
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
7194
+ ------------------------------------------------------------
7195
+ ---------------------------------------------------------
7196
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
7197
+ ---------------------------------------------------------
7198
+ ---------------------------------------------------------------------------------------------
7199
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
7200
+ ---------------------------------------------------------------------------------------------
7201
+ ---------------------------------------------------------
7202
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
7203
+ ---------------------------------------------------------
7204
+ -------------------------------------------------------------
7205
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
7206
+ -------------------------------------------------------------
7207
+ --------------------------------------------------------------------------------------------------
7208
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
7209
+ --------------------------------------------------------------------------------------------------
7210
+ ----------------------------------------------------------------------
7211
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
7212
+ ----------------------------------------------------------------------
7213
+ -----------------------------------------------------
7214
+ CouchRestAdapterTest: test_save!_will_run_validations
7215
+ -----------------------------------------------------
7216
+ -------------------------------------------------------
7217
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
7218
+ -------------------------------------------------------
7219
+ --------------------------------------------------------------
7220
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
7221
+ --------------------------------------------------------------
7222
+ --------------------------
7223
+ LintTest: test_errors_aref
7224
+ --------------------------
7225
+ ---------------------------
7226
+ LintTest: test_model_naming
7227
+ ---------------------------
7228
+ -------------------------
7229
+ LintTest: test_persisted?
7230
+ -------------------------
7231
+ ---------------------
7232
+ LintTest: test_to_key
7233
+ ---------------------
7234
+ -----------------------
7235
+ LintTest: test_to_param
7236
+ -----------------------
7237
+ ------------------------------
7238
+ LintTest: test_to_partial_path
7239
+ ------------------------------
7240
+ ---------------------------------------------------
7241
+ CouchRestAdapter::AttributeMethodTest: test_base_id
7242
+ ---------------------------------------------------
7243
+ -----------------------------------------------------------------------------------------------------------------------
7244
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
7245
+ -----------------------------------------------------------------------------------------------------------------------
7246
+ ---------------------------------------------------------------------------------------------------
7247
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
7248
+ ---------------------------------------------------------------------------------------------------
7249
+ ---------------------------------------------------------------------------------------------
7250
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
7251
+ ---------------------------------------------------------------------------------------------
7252
+ -----------------------------------------------------------------------------------------------------------
7253
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
7254
+ -----------------------------------------------------------------------------------------------------------
7255
+ --------------------------------------------------------------
7256
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
7257
+ --------------------------------------------------------------
7258
+ ------------------------------------------------------------
7259
+ CouchRestAdapterTest: test_attributes_can_be_set_dynamically
7260
+ ------------------------------------------------------------
7261
+ ---------------------------------------------------------
7262
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
7263
+ ---------------------------------------------------------
7264
+ ---------------------------------------------------------------------------------------------
7265
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
7266
+ ---------------------------------------------------------------------------------------------
7267
+ ---------------------------------------------------------
7268
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
7269
+ ---------------------------------------------------------
7270
+ -------------------------------------------------------------
7271
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
7272
+ -------------------------------------------------------------
7273
+ --------------------------------------------------------------------------------------------------
7274
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
7275
+ --------------------------------------------------------------------------------------------------
7276
+ ----------------------------------------------------------------------
7277
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
7278
+ ----------------------------------------------------------------------
7279
+ -----------------------------------------------------
7280
+ CouchRestAdapterTest: test_save!_will_run_validations
7281
+ -----------------------------------------------------
7282
+ -------------------------------------------------------
7283
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
7284
+ -------------------------------------------------------
7285
+ --------------------------------------------------------------
7286
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
7287
+ --------------------------------------------------------------
7288
+ --------------------------
7289
+ LintTest: test_errors_aref
7290
+ --------------------------
7291
+ ---------------------------
7292
+ LintTest: test_model_naming
7293
+ ---------------------------
7294
+ -------------------------
7295
+ LintTest: test_persisted?
7296
+ -------------------------
7297
+ ---------------------
7298
+ LintTest: test_to_key
7299
+ ---------------------
7300
+ -----------------------
7301
+ LintTest: test_to_param
7302
+ -----------------------
7303
+ ------------------------------
7304
+ LintTest: test_to_partial_path
7305
+ ------------------------------
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.7.0
4
+ version: 0.7.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-08 00:00:00.000000000 Z
11
+ date: 2013-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails