couchrest_model 1.1.0.beta → 1.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +15 -15
- data/README.md +42 -0
- data/VERSION +1 -1
- data/couchrest_model.gemspec +1 -1
- data/history.txt +9 -0
- data/lib/couchrest/model/associations.rb +62 -50
- data/lib/couchrest/model/casted_model.rb +1 -1
- data/lib/couchrest/model/{support → core_extensions}/hash.rb +0 -0
- data/lib/couchrest/model/core_extensions/time_parsing.rb +66 -0
- data/lib/couchrest/model/designs/view.rb +34 -14
- data/lib/couchrest/model/properties.rb +4 -2
- data/lib/couchrest/model/proxyable.rb +18 -13
- data/lib/couchrest/model/typecast.rb +8 -28
- data/lib/couchrest/model/validations/uniqueness.rb +20 -9
- data/lib/couchrest/model/views.rb +1 -1
- data/lib/couchrest_model.rb +3 -1
- data/spec/couchrest/assocations_spec.rb +31 -10
- data/spec/couchrest/core_extensions/time_parsing.rb +77 -0
- data/spec/couchrest/designs/view_spec.rb +60 -19
- data/spec/couchrest/property_spec.rb +1 -505
- data/spec/couchrest/proxyable_spec.rb +46 -27
- data/spec/couchrest/typecast_spec.rb +524 -0
- data/spec/couchrest/validations_spec.rb +84 -36
- data/spec/fixtures/base.rb +9 -0
- metadata +10 -6
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.1.0.
|
9
|
+
- beta2
|
10
|
+
version: 1.1.0.beta2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- J. Chris Anderson
|
@@ -28,13 +28,14 @@ dependencies:
|
|
28
28
|
requirement: &id001 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
segments:
|
34
34
|
- 1
|
35
|
+
- 1
|
35
36
|
- 0
|
36
|
-
-
|
37
|
-
version: 1.0.
|
37
|
+
- pre2
|
38
|
+
version: 1.1.0.pre2
|
38
39
|
type: :runtime
|
39
40
|
version_requirements: *id001
|
40
41
|
- !ruby/object:Gem::Dependency
|
@@ -158,6 +159,8 @@ files:
|
|
158
159
|
- lib/couchrest/model/class_proxy.rb
|
159
160
|
- lib/couchrest/model/collection.rb
|
160
161
|
- lib/couchrest/model/configuration.rb
|
162
|
+
- lib/couchrest/model/core_extensions/hash.rb
|
163
|
+
- lib/couchrest/model/core_extensions/time_parsing.rb
|
161
164
|
- lib/couchrest/model/design_doc.rb
|
162
165
|
- lib/couchrest/model/designs.rb
|
163
166
|
- lib/couchrest/model/designs/view.rb
|
@@ -170,7 +173,6 @@ files:
|
|
170
173
|
- lib/couchrest/model/property_protection.rb
|
171
174
|
- lib/couchrest/model/proxyable.rb
|
172
175
|
- lib/couchrest/model/support/couchrest.rb
|
173
|
-
- lib/couchrest/model/support/hash.rb
|
174
176
|
- lib/couchrest/model/typecast.rb
|
175
177
|
- lib/couchrest/model/validations.rb
|
176
178
|
- lib/couchrest/model/validations/casted_model.rb
|
@@ -191,6 +193,7 @@ files:
|
|
191
193
|
- spec/couchrest/class_proxy_spec.rb
|
192
194
|
- spec/couchrest/collection_spec.rb
|
193
195
|
- spec/couchrest/configuration_spec.rb
|
196
|
+
- spec/couchrest/core_extensions/time_parsing.rb
|
194
197
|
- spec/couchrest/designs/view_spec.rb
|
195
198
|
- spec/couchrest/designs_spec.rb
|
196
199
|
- spec/couchrest/inherited_spec.rb
|
@@ -199,6 +202,7 @@ files:
|
|
199
202
|
- spec/couchrest/property_spec.rb
|
200
203
|
- spec/couchrest/proxyable_spec.rb
|
201
204
|
- spec/couchrest/subclass_spec.rb
|
205
|
+
- spec/couchrest/typecast_spec.rb
|
202
206
|
- spec/couchrest/validations_spec.rb
|
203
207
|
- spec/couchrest/view_spec.rb
|
204
208
|
- spec/fixtures/attachments/README
|