couch_rest_adapter 0.4.7 → 0.4.8

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: afd6f67968cdc04eeb35048d9b6b2a8b2ba6aaa0
4
- data.tar.gz: 32c3d327829c207be8c6078c67cda1fcc6ad5418
3
+ metadata.gz: c7618322c3eb3fd70cc44387f1aa019d95339dad
4
+ data.tar.gz: bd3627dbb435a332d1b84de37d8ccda425a46536
5
5
  SHA512:
6
- metadata.gz: 979e357abd7c55fc6bc1d8d1364984cf3f6aa7ff4c55d45ed7c1ba100517be6f0e2d3096c16d84b57fbfcb466ae7d7c27ca90a12d8eb1f81e202ad32c7d91a03
7
- data.tar.gz: f4d4fd53b85da4244219acecb87956dda25596f321175bade53036d83c16501a45b43978ad8288b64e69c62fd5d658aaab974e55220d7504e657d91eb1748253
6
+ metadata.gz: 92ccce9dbd450d38239eb9e4aa2258176cbce03a36aa348184d8a01d874965cf6e8f0c45ffbcba7f3065d799b087140bd9b69c9cb53987abc2cdcb2d67c6cab3
7
+ data.tar.gz: 76b8c4c52b8b31c26298046e4036c3d5ff672fc594ec1899a7d9dad863579adc20def618ca3d764f8e662b8af72585ea984ff2068479cf6a02278d8beda236f1
@@ -10,7 +10,7 @@ require File.join(File.dirname(__FILE__), '/exceptions/couch_rest_adapter')
10
10
  using CouchRestAdapter::Helpers
11
11
 
12
12
  module CouchRestAdapter
13
- require 'couch_rest_adapter/railtie' if defined?(Rails)
13
+ autoload :Railtie, 'couch_rest_adapter/railtie'
14
14
 
15
15
  class Base < CouchRest::Document
16
16
  #TODO: As abstract class should not have any method definition
@@ -1,3 +1,3 @@
1
1
  module CouchRestAdapter
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -2806,3 +2806,63 @@ LintTest: test_to_param
2806
2806
  ------------------------------
2807
2807
  LintTest: test_to_partial_path
2808
2808
  ------------------------------
2809
+ ---------------------------------------------------
2810
+ CouchRestAdapter::AttributeMethodTest: test_base_id
2811
+ ---------------------------------------------------
2812
+ -----------------------------------------------------------------------------------------------------------------------
2813
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
2814
+ -----------------------------------------------------------------------------------------------------------------------
2815
+ ---------------------------------------------------------------------------------------------------
2816
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
2817
+ ---------------------------------------------------------------------------------------------------
2818
+ ---------------------------------------------------------------------------------------------
2819
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
2820
+ ---------------------------------------------------------------------------------------------
2821
+ -----------------------------------------------------------------------------------------------------------
2822
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
2823
+ -----------------------------------------------------------------------------------------------------------
2824
+ --------------------------------------------------------------
2825
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2826
+ --------------------------------------------------------------
2827
+ ---------------------------------------------------------
2828
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2829
+ ---------------------------------------------------------
2830
+ ---------------------------------------------------------------------------------------------
2831
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2832
+ ---------------------------------------------------------------------------------------------
2833
+ ---------------------------------------------------------
2834
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2835
+ ---------------------------------------------------------
2836
+ -------------------------------------------------------------
2837
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2838
+ -------------------------------------------------------------
2839
+ --------------------------------------------------------------------------------------------------
2840
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2841
+ --------------------------------------------------------------------------------------------------
2842
+ ----------------------------------------------------------------------
2843
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2844
+ ----------------------------------------------------------------------
2845
+ -------------------------------------------------------
2846
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2847
+ -------------------------------------------------------
2848
+ --------------------------------------------------------------
2849
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2850
+ --------------------------------------------------------------
2851
+ --------------------------
2852
+ LintTest: test_errors_aref
2853
+ --------------------------
2854
+ ---------------------------
2855
+ LintTest: test_model_naming
2856
+ ---------------------------
2857
+ -------------------------
2858
+ LintTest: test_persisted?
2859
+ -------------------------
2860
+ ---------------------
2861
+ LintTest: test_to_key
2862
+ ---------------------
2863
+ -----------------------
2864
+ LintTest: test_to_param
2865
+ -----------------------
2866
+ ------------------------------
2867
+ LintTest: test_to_partial_path
2868
+ ------------------------------
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.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Guerra