Updating versions for beta release

This commit is contained in:
Sam Lown 2010-06-11 02:02:22 +02:00
parent b5d03d0be7
commit b5d38e3ebd
4 changed files with 23 additions and 13 deletions

View file

@ -3,7 +3,7 @@
CouchRest::ExtendedDocument adds additional functionality to the standard CouchRest Document class such as
setting properties, callbacks, typecasting, and validations.
Note: CouchRest only supports CouchDB 0.9.0 or newer.
Note: CouchRest::ExtendedDocument only supports CouchDB 0.10.0 or newer.
## Install
@ -17,11 +17,24 @@ Note: CouchRest only supports CouchDB 0.9.0 or newer.
class Cat < CouchRest::ExtendedDocument
property :name, :type => String
property :name, String
property :lives, Integer, :default => 9
property :nicknames, [String]
timestamps!
view_by :name
end
### Rails
### Ruby on Rails
CouchRest::ExtendedDocument is compatible with rails and provides some ActiveRecord-like methods.
You might also be interested in the CouchRest companion rails project:
[http://github.com/hpoydar/couchrest-rails](http://github.com/hpoydar/couchrest-rails)
#### Rails 2.X
In your environment.rb file require the gem as follows:
@ -43,6 +56,8 @@ API: [http://rdoc.info/projects/couchrest/couchrest_extended_document](http://rd
Check the wiki for documentation and examples [http://wiki.github.com/couchrest/couchrest](http://wiki.github.com/couchrest/couchrest)
## Contact
Please post bugs, suggestions and patches to the bug tracker at [http://github.com/couchrest/couchrest/issues](http://github.com/couchrest/couchrest/issues).
@ -51,8 +66,3 @@ Follow us on Twitter: [http://twitter.com/couchrest](http://twitter.com/couchres
Also, check [http://twitter.com/#search?q=%23couchrest](http://twitter.com/#search?q=%23couchrest)
## Ruby on Rails
CouchRest is compatible with rails and can even be used a Rails plugin.
However, you might be interested in the CouchRest companion rails project:
[http://github.com/hpoydar/couchrest-rails](http://github.com/hpoydar/couchrest-rails)

View file

@ -15,16 +15,16 @@ end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "samlown-couchrest_extended_document"
gemspec.name = "couchrest_extended_document"
gemspec.summary = "Extend CouchRest Document class with useful features."
gemspec.description = "CouchRest::ExtendedDocument provides aditional features to the standard CouchRest::Document class such as properties, view designs, callbacks, typecasting and validations."
gemspec.email = "jchris@apache.org"
gemspec.homepage = "http://github.com/samlown/couchrest_extended_document"
gemspec.homepage = "http://github.com/couchrest/couchrest_extended_document"
gemspec.authors = ["J. Chris Anderson", "Matt Aimonetti", "Marcos Tapajos", "Will Leinweber"]
gemspec.extra_rdoc_files = %w( README.md LICENSE THANKS.md )
gemspec.files = %w( LICENSE README.md Rakefile THANKS.md history.txt couchrest.gemspec) + Dir["{examples,lib,spec,utils}/**/*"] - Dir["spec/tmp"]
gemspec.has_rdoc = true
gemspec.add_dependency("samlown-couchrest", ">= 1.0.0")
gemspec.add_dependency("couchrest", ">= 1.0.0.beta")
gemspec.add_dependency("mime-types", ">= 1.15")
gemspec.add_dependency("activesupport", ">= 2.3.0")
gemspec.version = CouchRest::ExtendedDocument::VERSION

View file

@ -8,7 +8,7 @@ module CouchRest
# Same as CouchRest::Document but with properties and validations
class ExtendedDocument < Document
VERSION = "1.0.5"
VERSION = "1.0.0.beta5"
include CouchRest::Mixins::Callbacks
include CouchRest::Mixins::DocumentQueries

View file

@ -1,7 +1,7 @@
# require File.join(File.dirname(__FILE__), "couchrest", "extended_document")
gem 'samlown-couchrest'
gem 'couchrest'
require 'couchrest'