mongodb_logger 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,7 +107,7 @@ module MongodbLogger
107
107
  end
108
108
  buffer.reverse!
109
109
  else
110
- @log = @collection.find_one(:order => [['$natural', -1]])
110
+ @log = @collection.find_one({}, {:sort => ['$natural', -1]})
111
111
  log_last_id = @log['_id'] unless @log.blank?
112
112
  end
113
113
 
@@ -1,3 +1,3 @@
1
1
  module MongodbLogger
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &5200940 !ruby/object:Gem::Requirement
16
+ requirement: &19260300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.7.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *5200940
24
+ version_requirements: *19260300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &5197060 !ruby/object:Gem::Requirement
27
+ requirement: &19256460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *5197060
35
+ version_requirements: *19256460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mocha
38
- requirement: &5196180 !ruby/object:Gem::Requirement
38
+ requirement: &19255440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.10.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *5196180
46
+ version_requirements: *19255440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cucumber
49
- requirement: &4815360 !ruby/object:Gem::Requirement
49
+ requirement: &18874800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.1.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *4815360
57
+ version_requirements: *18874800
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: coffee-script
60
- requirement: &4813580 !ruby/object:Gem::Requirement
60
+ requirement: &18873060 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.2.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *4813580
68
+ version_requirements: *18873060
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: therubyracer
71
- requirement: &4812700 !ruby/object:Gem::Requirement
71
+ requirement: &18872100 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.9.9
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *4812700
79
+ version_requirements: *18872100
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rake
82
- requirement: &4810580 !ruby/object:Gem::Requirement
82
+ requirement: &18869820 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.9.0
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *4810580
90
+ version_requirements: *18869820
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: mongo
93
- requirement: &4809660 !ruby/object:Gem::Requirement
93
+ requirement: &18869140 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.4.0
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *4809660
101
+ version_requirements: *18869140
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: bson_ext
104
- requirement: &4808980 !ruby/object:Gem::Requirement
104
+ requirement: &18868440 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.4.0
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *4808980
112
+ version_requirements: *18868440
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: i18n
115
- requirement: &4808380 !ruby/object:Gem::Requirement
115
+ requirement: &18867840 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.4.1
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *4808380
123
+ version_requirements: *18867840
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: json
126
- requirement: &4863320 !ruby/object:Gem::Requirement
126
+ requirement: &18922780 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 1.6.1
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *4863320
134
+ version_requirements: *18922780
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: activesupport
137
- requirement: &4862640 !ruby/object:Gem::Requirement
137
+ requirement: &18922120 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 3.0.0
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *4862640
145
+ version_requirements: *18922120
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: sinatra
148
- requirement: &4861920 !ruby/object:Gem::Requirement
148
+ requirement: &18921320 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 1.2.0
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *4861920
156
+ version_requirements: *18921320
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: erubis
159
- requirement: &4861100 !ruby/object:Gem::Requirement
159
+ requirement: &18920560 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: 2.6.6
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *4861100
167
+ version_requirements: *18920560
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: vegas
170
- requirement: &4860200 !ruby/object:Gem::Requirement
170
+ requirement: &18919680 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ~>
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: 0.1.2
176
176
  type: :runtime
177
177
  prerelease: false
178
- version_requirements: *4860200
178
+ version_requirements: *18919680
179
179
  description: MongoDB logger for Rails 3
180
180
  email:
181
181
  - leopard.not.a@gmail.com