georgepalmer-couch_foo 0.8.1 → 0.8.2

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.
Files changed (4) hide show
  1. data/LICENSE +20 -0
  2. data/VERSION.yml +2 -2
  3. data/lib/couch_foo/base.rb +5 -4
  4. metadata +23 -21
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 George Palmer
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :major: 0
3
2
  :minor: 8
4
- :patch: 1
3
+ :patch: 2
4
+ :major: 0
@@ -1037,10 +1037,11 @@ module CouchFoo
1037
1037
  # Set a property for the document. These can be passed a type and options hash. If no type
1038
1038
  # is passed a #to_json method is called on the ruby object and the result stored in the
1039
1039
  # database. When it is retrieved from the database a class.from_json(json) method is called
1040
- # on it or if that doesn't exist it just uses the value. If a type is passed then the object
1041
- # is cast before storing in the database. This does not guarantee that the object is the
1042
- # correct type (use the validaters for that), it merely tries to convert the current type to
1043
- # the desired one - for example:
1040
+ # on it or if that doesn't exist it just uses the value (more on this at
1041
+ # http://www.rowtheboat.com/archives/35). If a type is passed then the object is cast before
1042
+ # storing in the database. This does not guarantee that the object is the correct type (use
1043
+ # the validaters for that), it merely tries to convert the current type to the desired one
1044
+ # - for example:
1044
1045
  # '123' => 123 # useful
1045
1046
  # 'a' => 0 # probably not desired behaviour
1046
1047
  # The later would fail with a validator
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Palmer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-09 00:00:00 -07:00
12
+ date: 2009-03-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -58,41 +58,43 @@ executables: []
58
58
 
59
59
  extensions: []
60
60
 
61
- extra_rdoc_files: []
62
-
61
+ extra_rdoc_files:
62
+ - README.rdoc
63
+ - LICENSE
63
64
  files:
64
- - VERSION.yml
65
65
  - README.rdoc
66
+ - VERSION.yml
66
67
  - lib/boolean.rb
67
- - lib/couch_foo.rb
68
68
  - lib/couch_foo
69
- - lib/couch_foo/database.rb
70
- - lib/couch_foo/dirty.rb
71
- - lib/couch_foo/serialization.rb
72
- - lib/couch_foo/associations.rb
73
69
  - lib/couch_foo/associations
74
- - lib/couch_foo/associations/has_one_association.rb
75
70
  - lib/couch_foo/associations/association_collection.rb
76
- - lib/couch_foo/associations/has_many_association.rb
77
- - lib/couch_foo/associations/belongs_to_association.rb
78
71
  - lib/couch_foo/associations/association_proxy.rb
72
+ - lib/couch_foo/associations/belongs_to_association.rb
79
73
  - lib/couch_foo/associations/belongs_to_polymorphic_association.rb
80
74
  - lib/couch_foo/associations/has_and_belongs_to_many_association.rb
81
- - lib/couch_foo/observer.rb
75
+ - lib/couch_foo/associations/has_many_association.rb
76
+ - lib/couch_foo/associations/has_one_association.rb
77
+ - lib/couch_foo/associations.rb
78
+ - lib/couch_foo/attribute_methods.rb
82
79
  - lib/couch_foo/base.rb
83
- - lib/couch_foo/serializers
84
- - lib/couch_foo/serializers/xml_serializer.rb
85
- - lib/couch_foo/serializers/json_serializer.rb
86
80
  - lib/couch_foo/calculations.rb
87
- - lib/couch_foo/view_methods.rb
88
- - lib/couch_foo/attribute_methods.rb
89
- - lib/couch_foo/named_scope.rb
90
81
  - lib/couch_foo/callbacks.rb
82
+ - lib/couch_foo/database.rb
83
+ - lib/couch_foo/dirty.rb
84
+ - lib/couch_foo/named_scope.rb
85
+ - lib/couch_foo/observer.rb
91
86
  - lib/couch_foo/reflection.rb
92
- - lib/couch_foo/validations.rb
87
+ - lib/couch_foo/serialization.rb
88
+ - lib/couch_foo/serializers
89
+ - lib/couch_foo/serializers/json_serializer.rb
90
+ - lib/couch_foo/serializers/xml_serializer.rb
93
91
  - lib/couch_foo/timestamp.rb
92
+ - lib/couch_foo/validations.rb
93
+ - lib/couch_foo/view_methods.rb
94
+ - lib/couch_foo.rb
94
95
  - test/couch_foo_test.rb
95
96
  - test/test_helper.rb
97
+ - LICENSE
96
98
  has_rdoc: true
97
99
  homepage: http://github.com/georgepalmer/couch_foo
98
100
  post_install_message: