mongomatic 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongomatic.rb +0 -1
- data/lib/mongomatic/cursor.rb +5 -10
- metadata +7 -22
data/lib/mongomatic.rb
CHANGED
data/lib/mongomatic/cursor.rb
CHANGED
@@ -14,15 +14,10 @@ module Mongomatic
|
|
14
14
|
def initialize(obj_class, mongo_cursor)
|
15
15
|
@obj_class = obj_class
|
16
16
|
@mongo_cursor = mongo_cursor
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
define_method meth do |*args|
|
22
|
-
@mongo_cursor.send meth, *args
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def method_missing(name, *args)
|
20
|
+
@mongo_cursor.send name, *args
|
26
21
|
end
|
27
22
|
|
28
23
|
# Is the cursor empty? This method is much more efficient than doing cursor.count == 0
|
@@ -64,4 +59,4 @@ module Mongomatic
|
|
64
59
|
@mongo_cursor.sort(key_or_list, direction); self
|
65
60
|
end
|
66
61
|
end
|
67
|
-
end
|
62
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 3
|
9
|
+
version: 0.5.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ben Myles
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-08 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -47,25 +47,10 @@ dependencies:
|
|
47
47
|
version: 1.0.7
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: bson_ext
|
52
|
-
prerelease: false
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
|
-
requirements:
|
56
|
-
- - "="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 0
|
61
|
-
- 7
|
62
|
-
version: 1.0.7
|
63
|
-
type: :runtime
|
64
|
-
version_requirements: *id003
|
65
50
|
- !ruby/object:Gem::Dependency
|
66
51
|
name: mongo
|
67
52
|
prerelease: false
|
68
|
-
requirement: &
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
69
54
|
none: false
|
70
55
|
requirements:
|
71
56
|
- - "="
|
@@ -76,11 +61,11 @@ dependencies:
|
|
76
61
|
- 8
|
77
62
|
version: 1.0.8
|
78
63
|
type: :runtime
|
79
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
80
65
|
- !ruby/object:Gem::Dependency
|
81
66
|
name: activesupport
|
82
67
|
prerelease: false
|
83
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
84
69
|
none: false
|
85
70
|
requirements:
|
86
71
|
- - ">="
|
@@ -91,7 +76,7 @@ dependencies:
|
|
91
76
|
- 5
|
92
77
|
version: 2.3.5
|
93
78
|
type: :runtime
|
94
|
-
version_requirements: *
|
79
|
+
version_requirements: *id004
|
95
80
|
description: Mongomatic is a simple Ruby object mapper for Mongo
|
96
81
|
email: ben.myles@gmail.com
|
97
82
|
executables: []
|