couch_rest_adapter 0.4.15 → 0.5.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: 0fdae96d1f7cb55b4c92c458674d13a80d695941
4
- data.tar.gz: 5fede666bd60409e124d325998cff279f9bc1627
3
+ metadata.gz: 60f566692542259314dff994e82c53f758c1f31b
4
+ data.tar.gz: 44d4d85b68038c226b4b790f885922f1d5f289e3
5
5
  SHA512:
6
- metadata.gz: 081dea597aad6c3edeb9766f7404de68f8942630e0d16dd888d8d3bc98e2474f5d015c66f20adc344756fda833cb35dd2890ee722178e2a2dcd8013c80748045
7
- data.tar.gz: c9810cb545b909e94afefc58780f7ce6cf33f0c954eff346eff0ef0347870a4bfd51dc75be8e80aef493e29866babe8e72755008fdcfcd9334bd6f5266c447f3
6
+ metadata.gz: 929ee89b7afdbfacf0ca8de56b61b3eb32a9fb041073efb58cf5f6abd70e50617737dbb049851ec1b97f467e94e08a6cdce148a6ddb65fb0e84c18d682a1c97c
7
+ data.tar.gz: 723a3d8de2904a1c1c7eaf25b3b639a807c23bc670b26ad1f4cf9e71d76a63d7c03955383d06971998c12f3570c6e4560e8aac2ce575ddbb5d41b56b4de16e35
data/README.rdoc CHANGED
@@ -19,8 +19,8 @@ so you should create your reails project without AR, as in <tt>rails new my_app
19
19
  === In Gemfile
20
20
 
21
21
  gem 'couch_rest_adapter'
22
-
23
- === Sample config/database.yml
22
+
23
+ === Sample config/couchdb.yml
24
24
 
25
25
  All this are required attributes.
26
26
 
@@ -8,7 +8,7 @@ module CouchRestAdapter
8
8
  attr_accessor :config_file
9
9
 
10
10
  def parse_config
11
- YAML::load File.open config_file
11
+ YAML::load( ERB.new( File.read(config_file) ).result)
12
12
  end
13
13
 
14
14
  def base_path
@@ -22,7 +22,7 @@ module CouchRestAdapter
22
22
 
23
23
  def config_file
24
24
  root = Rails.root || File.expand_path("../../../test/dummy/", __FILE__)
25
- File.join(root, 'config', 'database.yml')
25
+ File.join(root, 'config', 'couchdb.yml')
26
26
  end
27
27
 
28
28
  def default_design_doc
@@ -1,3 +1,3 @@
1
1
  module CouchRestAdapter
2
- VERSION = "0.4.15"
2
+ VERSION = "0.5.0"
3
3
  end
File without changes
@@ -4276,3 +4276,123 @@ LintTest: test_to_param
4276
4276
  ------------------------------
4277
4277
  LintTest: test_to_partial_path
4278
4278
  ------------------------------
4279
+ ---------------------------------------------------
4280
+ CouchRestAdapter::AttributeMethodTest: test_base_id
4281
+ ---------------------------------------------------
4282
+ -----------------------------------------------------------------------------------------------------------------------
4283
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
4284
+ -----------------------------------------------------------------------------------------------------------------------
4285
+ ---------------------------------------------------------------------------------------------------
4286
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
4287
+ ---------------------------------------------------------------------------------------------------
4288
+ ---------------------------------------------------------------------------------------------
4289
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
4290
+ ---------------------------------------------------------------------------------------------
4291
+ -----------------------------------------------------------------------------------------------------------
4292
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
4293
+ -----------------------------------------------------------------------------------------------------------
4294
+ --------------------------------------------------------------
4295
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
4296
+ --------------------------------------------------------------
4297
+ ---------------------------------------------------------
4298
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
4299
+ ---------------------------------------------------------
4300
+ ---------------------------------------------------------------------------------------------
4301
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4302
+ ---------------------------------------------------------------------------------------------
4303
+ ---------------------------------------------------------
4304
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4305
+ ---------------------------------------------------------
4306
+ -------------------------------------------------------------
4307
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4308
+ -------------------------------------------------------------
4309
+ --------------------------------------------------------------------------------------------------
4310
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4311
+ --------------------------------------------------------------------------------------------------
4312
+ ----------------------------------------------------------------------
4313
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4314
+ ----------------------------------------------------------------------
4315
+ -------------------------------------------------------
4316
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4317
+ -------------------------------------------------------
4318
+ --------------------------------------------------------------
4319
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4320
+ --------------------------------------------------------------
4321
+ --------------------------
4322
+ LintTest: test_errors_aref
4323
+ --------------------------
4324
+ ---------------------------
4325
+ LintTest: test_model_naming
4326
+ ---------------------------
4327
+ -------------------------
4328
+ LintTest: test_persisted?
4329
+ -------------------------
4330
+ ---------------------
4331
+ LintTest: test_to_key
4332
+ ---------------------
4333
+ -----------------------
4334
+ LintTest: test_to_param
4335
+ -----------------------
4336
+ ------------------------------
4337
+ LintTest: test_to_partial_path
4338
+ ------------------------------
4339
+ ---------------------------------------------------
4340
+ CouchRestAdapter::AttributeMethodTest: test_base_id
4341
+ ---------------------------------------------------
4342
+ -----------------------------------------------------------------------------------------------------------------------
4343
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
4344
+ -----------------------------------------------------------------------------------------------------------------------
4345
+ ---------------------------------------------------------------------------------------------------
4346
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
4347
+ ---------------------------------------------------------------------------------------------------
4348
+ ---------------------------------------------------------------------------------------------
4349
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
4350
+ ---------------------------------------------------------------------------------------------
4351
+ -----------------------------------------------------------------------------------------------------------
4352
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
4353
+ -----------------------------------------------------------------------------------------------------------
4354
+ --------------------------------------------------------------
4355
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
4356
+ --------------------------------------------------------------
4357
+ ---------------------------------------------------------
4358
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
4359
+ ---------------------------------------------------------
4360
+ ---------------------------------------------------------------------------------------------
4361
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4362
+ ---------------------------------------------------------------------------------------------
4363
+ ---------------------------------------------------------
4364
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4365
+ ---------------------------------------------------------
4366
+ -------------------------------------------------------------
4367
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4368
+ -------------------------------------------------------------
4369
+ --------------------------------------------------------------------------------------------------
4370
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4371
+ --------------------------------------------------------------------------------------------------
4372
+ ----------------------------------------------------------------------
4373
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4374
+ ----------------------------------------------------------------------
4375
+ -------------------------------------------------------
4376
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4377
+ -------------------------------------------------------
4378
+ --------------------------------------------------------------
4379
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4380
+ --------------------------------------------------------------
4381
+ --------------------------
4382
+ LintTest: test_errors_aref
4383
+ --------------------------
4384
+ ---------------------------
4385
+ LintTest: test_model_naming
4386
+ ---------------------------
4387
+ -------------------------
4388
+ LintTest: test_persisted?
4389
+ -------------------------
4390
+ ---------------------
4391
+ LintTest: test_to_key
4392
+ ---------------------
4393
+ -----------------------
4394
+ LintTest: test_to_param
4395
+ -----------------------
4396
+ ------------------------------
4397
+ LintTest: test_to_partial_path
4398
+ ------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_rest_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.15
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Guerra
@@ -113,7 +113,7 @@ files:
113
113
  - test/dummy/bin/rake
114
114
  - test/dummy/config/application.rb
115
115
  - test/dummy/config/boot.rb
116
- - test/dummy/config/database.yml
116
+ - test/dummy/config/couchdb.yml
117
117
  - test/dummy/config/environment.rb
118
118
  - test/dummy/config/environments/development.rb
119
119
  - test/dummy/config/environments/production.rb
@@ -176,7 +176,7 @@ test_files:
176
176
  - test/dummy/bin/rake
177
177
  - test/dummy/config/application.rb
178
178
  - test/dummy/config/boot.rb
179
- - test/dummy/config/database.yml
179
+ - test/dummy/config/couchdb.yml
180
180
  - test/dummy/config/environment.rb
181
181
  - test/dummy/config/environments/development.rb
182
182
  - test/dummy/config/environments/production.rb