samlown-couchrest_extended_document 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/lib/couchrest/casted_model.rb +0 -4
- data/lib/couchrest/extended_document.rb +5 -2
- metadata +16 -3
- data/lib/couchrest/monkeypatches.rb +0 -5
data/Rakefile
CHANGED
@@ -26,6 +26,7 @@ begin
|
|
26
26
|
gemspec.has_rdoc = true
|
27
27
|
gemspec.add_dependency("samlown-couchrest", ">= 1.0.0")
|
28
28
|
gemspec.add_dependency("mime-types", ">= 1.15")
|
29
|
+
gemspec.add_dependency("activesupport", ">= 2.3.0")
|
29
30
|
gemspec.version = CouchRest::ExtendedDocument::VERSION
|
30
31
|
gemspec.date = "2008-11-22"
|
31
32
|
gemspec.require_path = "lib"
|
@@ -3,17 +3,20 @@ require 'couchrest'
|
|
3
3
|
require 'active_support'
|
4
4
|
require 'mime/types'
|
5
5
|
require "enumerator"
|
6
|
-
require File.join(File.dirname(__FILE__), "monkeypatches")
|
7
6
|
require File.join(File.dirname(__FILE__), "property")
|
8
7
|
require File.join(File.dirname(__FILE__), 'mixins')
|
9
8
|
require File.join(File.dirname(__FILE__), 'casted_model')
|
10
9
|
|
10
|
+
# Monkey patches
|
11
|
+
require File.join(File.dirname(__FILE__), 'support', 'couchrest')
|
12
|
+
require File.join(File.dirname(__FILE__), 'support', 'rails') if defined?(Rails)
|
13
|
+
|
11
14
|
module CouchRest
|
12
15
|
|
13
16
|
# Same as CouchRest::Document but with properties and validations
|
14
17
|
class ExtendedDocument < Document
|
15
18
|
|
16
|
-
VERSION = "1.0.
|
19
|
+
VERSION = "1.0.1"
|
17
20
|
|
18
21
|
include CouchRest::Mixins::Callbacks
|
19
22
|
include CouchRest::Mixins::DocumentQueries
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- J. Chris Anderson
|
@@ -47,6 +47,20 @@ dependencies:
|
|
47
47
|
version: "1.15"
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: activesupport
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 2
|
59
|
+
- 3
|
60
|
+
- 0
|
61
|
+
version: 2.3.0
|
62
|
+
type: :runtime
|
63
|
+
version_requirements: *id003
|
50
64
|
description: CouchRest::ExtendedDocument provides aditional features to the standard CouchRest::Document class such as properties, view designs, callbacks, typecasting and validations.
|
51
65
|
email: jchris@apache.org
|
52
66
|
executables: []
|
@@ -78,7 +92,6 @@ files:
|
|
78
92
|
- lib/couchrest/mixins/properties.rb
|
79
93
|
- lib/couchrest/mixins/validation.rb
|
80
94
|
- lib/couchrest/mixins/views.rb
|
81
|
-
- lib/couchrest/monkeypatches.rb
|
82
95
|
- lib/couchrest/property.rb
|
83
96
|
- lib/couchrest/support/couchrest.rb
|
84
97
|
- lib/couchrest/support/rails.rb
|