mattetti-couchrest 0.33 → 0.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ class Cat < CouchRest::ExtendedDocument
6
6
 
7
7
  property :name
8
8
  property :toys, :cast_as => ['CatToy'], :default => []
9
+ property :favorite_toy, :cast_as => 'CatToy'
9
10
  end
10
11
 
11
12
  class CatToy < Hash
@@ -3,4 +3,7 @@ class Event < CouchRest::ExtendedDocument
3
3
 
4
4
  property :subject
5
5
  property :occurs_at, :cast_as => 'Time', :send => 'parse'
6
+ property :end_date, :cast_as => 'Date', :send => 'parse'
7
+
8
+
6
9
  end
@@ -1,6 +1,7 @@
1
1
  class Person < Hash
2
2
  include ::CouchRest::CastedModel
3
3
  property :name
4
+ property :pet, :cast_as => 'Cat'
4
5
 
5
6
  def last_name
6
7
  name.last
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mattetti-couchrest
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.33"
4
+ version: "0.34"
5
5
  platform: ruby
6
6
  authors:
7
7
  - J. Chris Anderson
@@ -170,7 +170,7 @@ files:
170
170
  - spec/spec_helper.rb
171
171
  - utils/remap.rb
172
172
  - utils/subset.rb
173
- has_rdoc: false
173
+ has_rdoc: true
174
174
  homepage: http://github.com/jchris/couchrest
175
175
  licenses:
176
176
  post_install_message:
@@ -195,7 +195,7 @@ requirements: []
195
195
  rubyforge_project:
196
196
  rubygems_version: 1.3.5
197
197
  signing_key:
198
- specification_version: 3
198
+ specification_version: 2
199
199
  summary: Lean and RESTful interface to CouchDB.
200
200
  test_files: []
201
201