Skip to content

Commit

Permalink
Updating versions for beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Jun 11, 2010
1 parent b5d03d0 commit b5d38e3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
26 changes: 18 additions & 8 deletions README.md
Expand Up @@ -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

Expand All @@ -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:

Expand All @@ -43,16 +56,13 @@ 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).

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)
6 changes: 3 additions & 3 deletions Rakefile
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/couchrest/extended_document.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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'

Expand Down

0 comments on commit b5d38e3

Please sign in to comment.