georgepalmer-couch_foo 0.7.2 → 0.7.3

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.
data/README.rdoc CHANGED
@@ -23,7 +23,8 @@ It is recommend that you read the quick start and performance sections in the rd
23
23
 
24
24
  == Getting started
25
25
 
26
- CouchFoo::Base.set_database("http://localhost:5984/opnli_dev", <yourcouchdbversion>)
26
+ CouchFoo::Base.set_database("http://localhost:5984/opnli_dev", <yourcouchdbversion>)
27
+ CouchFoo::Base.logger = Rails.logger
27
28
 
28
29
  If using with Rails you will need to create an initializer to do this (until proper integration is added)
29
30
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 7
4
- :patch: 2
4
+ :patch: 3
@@ -119,9 +119,8 @@ module CouchFoo
119
119
  end
120
120
 
121
121
  # Define an attribute reader method
122
- def define_read_method(symbol)
123
- access_code = "@attributes['#{symbol}']"
124
- evaluate_attribute_method symbol.to_s, "def #{symbol}; read_attribute('#{access_code}'); end"
122
+ def define_read_method(attr_name)
123
+ evaluate_attribute_method attr_name, "def #{attr_name}; read_attribute('#{attr_name}'); end"
125
124
  end
126
125
 
127
126
  # Defines a predicate method <tt>attr_name?</tt>
@@ -313,4 +312,4 @@ module CouchFoo
313
312
  read_attribute_before_type_cast(attribute_name)
314
313
  end
315
314
  end
316
- end
315
+ end
@@ -203,6 +203,7 @@ module CouchFoo
203
203
  # follwing will do the trick:
204
204
  #
205
205
  # CouchFoo::Base.set_database("http://localhost:5984/opnli_dev", 0.8)
206
+ # CouchFoo::Base.logger = Rails.logger
206
207
  #
207
208
  # A few tidbits:
208
209
  # * When specifying associations you still need to specify the object_id and object_type (if using polymorphic association) properties. We have this automated as part of the association macro soon
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: georgepalmer-couch_foo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Palmer