From b5d38e3ebd4a035a425d07cc83de84ca52c22baf Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Fri, 11 Jun 2010 02:02:22 +0200 Subject: [PATCH] Updating versions for beta release --- README.md | 26 ++++++++++++++++++-------- Rakefile | 6 +++--- lib/couchrest/extended_document.rb | 2 +- lib/couchrest_extended_document.rb | 2 +- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d976967..7b33ebe 100644 --- a/README.md +++ b/README.md @@ -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). @@ -50,9 +65,4 @@ Please post bugs, suggestions and patches to the bug tracker at [http://github.c Follow us on Twitter: [http://twitter.com/couchrest](http://twitter.com/couchrest) 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) diff --git a/Rakefile b/Rakefile index 6f0754e..8fe61d2 100644 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/lib/couchrest/extended_document.rb b/lib/couchrest/extended_document.rb index e579ae4..7515e98 100644 --- a/lib/couchrest/extended_document.rb +++ b/lib/couchrest/extended_document.rb @@ -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 diff --git a/lib/couchrest_extended_document.rb b/lib/couchrest_extended_document.rb index 07adf3d..e71d6fd 100644 --- a/lib/couchrest_extended_document.rb +++ b/lib/couchrest_extended_document.rb @@ -1,7 +1,7 @@ # require File.join(File.dirname(__FILE__), "couchrest", "extended_document") -gem 'samlown-couchrest' +gem 'couchrest' require 'couchrest'