rails-ext 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
data/.git/COMMIT_EDITMSG CHANGED
@@ -1 +1 @@
1
- fix sunspot for MM
1
+ upd
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -67,3 +67,4 @@ f7be86378738705bbd1f97dd8be92c3cc7d54a66 947bf4d6e7e81d5ca62a381caa8d761a9c43cf8
67
67
  947bf4d6e7e81d5ca62a381caa8d761a9c43cf8a e2df18fc21e446588205694aef1de7d63ca31b4f alex <alex@amac.local> 1272144304 +0400 commit: upd
68
68
  e2df18fc21e446588205694aef1de7d63ca31b4f cda2dd4b5ecbc69fa1b1ebf09c580ba17bf69656 alex <alex@amac.local> 1272149564 +0400 commit: fix sunspot for MM
69
69
  cda2dd4b5ecbc69fa1b1ebf09c580ba17bf69656 268fe011dd9d01aa6e05c2004280b78e149ea29e alex <alex@amac.local> 1272149595 +0400 commit: fix sunspot for MM
70
+ 268fe011dd9d01aa6e05c2004280b78e149ea29e 4001df088dada11d1dc4f0a197f3ee74db62a376 alex <alex@amac.local> 1272706336 +0400 commit: upd
@@ -67,3 +67,4 @@ f7be86378738705bbd1f97dd8be92c3cc7d54a66 947bf4d6e7e81d5ca62a381caa8d761a9c43cf8
67
67
  947bf4d6e7e81d5ca62a381caa8d761a9c43cf8a e2df18fc21e446588205694aef1de7d63ca31b4f alex <alex@amac.local> 1272144304 +0400 commit: upd
68
68
  e2df18fc21e446588205694aef1de7d63ca31b4f cda2dd4b5ecbc69fa1b1ebf09c580ba17bf69656 alex <alex@amac.local> 1272149564 +0400 commit: fix sunspot for MM
69
69
  cda2dd4b5ecbc69fa1b1ebf09c580ba17bf69656 268fe011dd9d01aa6e05c2004280b78e149ea29e alex <alex@amac.local> 1272149595 +0400 commit: fix sunspot for MM
70
+ 268fe011dd9d01aa6e05c2004280b78e149ea29e 4001df088dada11d1dc4f0a197f3ee74db62a376 alex <alex@amac.local> 1272706336 +0400 commit: upd
@@ -53,3 +53,4 @@ f7be86378738705bbd1f97dd8be92c3cc7d54a66 947bf4d6e7e81d5ca62a381caa8d761a9c43cf8
53
53
  947bf4d6e7e81d5ca62a381caa8d761a9c43cf8a e2df18fc21e446588205694aef1de7d63ca31b4f alex <alex@amac.local> 1272144311 +0400 update by push
54
54
  e2df18fc21e446588205694aef1de7d63ca31b4f cda2dd4b5ecbc69fa1b1ebf09c580ba17bf69656 alex <alex@amac.local> 1272149569 +0400 update by push
55
55
  cda2dd4b5ecbc69fa1b1ebf09c580ba17bf69656 268fe011dd9d01aa6e05c2004280b78e149ea29e alex <alex@amac.local> 1272149600 +0400 update by push
56
+ 268fe011dd9d01aa6e05c2004280b78e149ea29e 4001df088dada11d1dc4f0a197f3ee74db62a376 alex <alex@amac.local> 1272706342 +0400 update by push
@@ -1 +1 @@
1
- 268fe011dd9d01aa6e05c2004280b78e149ea29e
1
+ 4001df088dada11d1dc4f0a197f3ee74db62a376
@@ -1 +1 @@
1
- 268fe011dd9d01aa6e05c2004280b78e149ea29e
1
+ 4001df088dada11d1dc4f0a197f3ee74db62a376
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ require 'fileutils'
18
18
 
19
19
  spec = Gem::Specification.new do |s|
20
20
  s.name = "rails-ext"
21
- s.version = "0.3.15"
21
+ s.version = "0.3.16"
22
22
  s.summary = "Set of common Ruby on Rails extensions"
23
23
  s.description = "Set of common Ruby on Rails extensions"
24
24
  s.author = "Alexey Petrushin"
@@ -0,0 +1,42 @@
1
+ # Log also operation time time to logs
2
+
3
+ Mongo::Connection.class_eval do
4
+ def send_message_with_time operation, message, log_message=nil
5
+ begin
6
+ logger = @logger
7
+ @logger = nil
8
+ t = Time.now
9
+ send_message_without_time operation, message, log_message
10
+ ensure
11
+ logger.debug(" MONGODB (#{Time.now - t}) #{log_message || message}") if logger
12
+ @logger = logger
13
+ end
14
+ end
15
+ alias_method_chain :send_message, :time
16
+
17
+ def send_message_with_safe_check_with_time operation, message, db_name, log_message=nil
18
+ begin
19
+ logger = @logger
20
+ @logger = nil
21
+ t = Time.now
22
+ send_message_with_safe_check_without_time operation, message, db_name, log_message
23
+ ensure
24
+ logger.debug(" MONGODB (#{Time.now - t}) #{log_message || message}") if logger
25
+ @logger = logger
26
+ end
27
+ end
28
+ alias_method_chain :send_message_with_safe_check, :time
29
+
30
+ def receive_message_with_time operation, message, log_message=nil, socket=nil
31
+ begin
32
+ logger = @logger
33
+ @logger = nil
34
+ t = Time.now
35
+ receive_message_without_time operation, message, log_message, socket
36
+ ensure
37
+ logger.debug(" MONGODB (#{Time.now - t}) #{log_message || message}") if logger
38
+ @logger = logger
39
+ end
40
+ end
41
+ alias_method_chain :receive_message, :time
42
+ end
@@ -3,6 +3,7 @@ require 'mongo_mapper'
3
3
 
4
4
  [
5
5
  'fixes',
6
+ 'support',
6
7
  'migration',
7
8
  'mongo_mapper',
8
9
  'view_helpers',
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 15
9
- version: 0.3.15
8
+ - 16
9
+ version: 0.3.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexey Petrushin
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-25 00:00:00 +04:00
17
+ date: 2010-05-01 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -90,6 +90,7 @@ files:
90
90
  - .git/objects/0c/4df6bee8ffbfd79927b23a070a4c9a41991152
91
91
  - .git/objects/0d/aa3468e187093eff222b8094a6e702dea9ba4e
92
92
  - .git/objects/0d/b63ec7380f5132ca02be93c82f5295e33c10a9
93
+ - .git/objects/0d/f02169bc94825e3629924eb44a662f07dc4dd8
93
94
  - .git/objects/0e/3e1ba37a5dde54955067f2281ed9a59498f6fc
94
95
  - .git/objects/0f/92cb7ae358323d43d026b83f7d1a4969cf7568
95
96
  - .git/objects/0f/d3ac42b07c2d3102263bd939704f5633db304e
@@ -135,6 +136,7 @@ files:
135
136
  - .git/objects/20/e9be8cac4e5edec77718e3578fd718f2bc3706
136
137
  - .git/objects/21/8b2cb256a71b42e9acbe53e4768c227ac2528e
137
138
  - .git/objects/21/e143c036491275aaa7d6e45ed4683f5defdae2
139
+ - .git/objects/23/5220c01211d9f16a21f2526ceade3459259cf0
138
140
  - .git/objects/23/926daa53cee50268bd329a8b4cbd853cb3a45b
139
141
  - .git/objects/23/e505621c5c822c481e179a47d23c523101fc20
140
142
  - .git/objects/24/0b59d9146372dbfa1d835c041b9d5c626d27e5
@@ -203,6 +205,7 @@ files:
203
205
  - .git/objects/3f/3db6bb5a5204ae58e303959c4c0da3a70d8b35
204
206
  - .git/objects/3f/8f2086049359d8b2b2500a7145afe3040e9c37
205
207
  - .git/objects/3f/e10909f96a9d6dc6dcf762e6e236fbbd5cea51
208
+ - .git/objects/40/01df088dada11d1dc4f0a197f3ee74db62a376
206
209
  - .git/objects/40/215c0554202fc46dc2fca94ed21e2920ce1e84
207
210
  - .git/objects/40/7adfb7f6188b0bb0b88cf9391943e1aaa32374
208
211
  - .git/objects/40/b5d1a81a061ce0e2f315b7e741ec70e0defe1d
@@ -224,6 +227,7 @@ files:
224
227
  - .git/objects/4a/be35eba6ed159578e3f43f6ffa8ea7541598e2
225
228
  - .git/objects/4b/2bdb2dc6330ba9bafd9058ec8eaa925ef53f91
226
229
  - .git/objects/4b/679db9ab667a78890277de9a35c46250f14c7f
230
+ - .git/objects/4b/dc08eafe8a2047b95f3c83dbfc3bcdc149506b
227
231
  - .git/objects/4c/c50af870afc44ad7a42ae722e74cab60d65af9
228
232
  - .git/objects/4d/991a018b0c697fa119efe7aaf55df0a1c7af8e
229
233
  - .git/objects/4d/b378ba37f16ac1172ed36b47659e765ac4f7ba
@@ -324,6 +328,7 @@ files:
324
328
  - .git/objects/79/f570c126c66576fc1a5eaa52f003cf1b24e0d2
325
329
  - .git/objects/7a/d62f1e2a8e4af39d293ce70c5dca999263ab4e
326
330
  - .git/objects/7b/469d63569dcc92c82f90fc7a48793c31365f9a
331
+ - .git/objects/7b/5c4d98eb195890b76abb20b73014d23554e655
327
332
  - .git/objects/7b/f12fa27542b09a968ac9b1ceedc1a71bfd6ce8
328
333
  - .git/objects/7c/d6496ed2dbb6dc550d2080954a5485bff16e7f
329
334
  - .git/objects/7c/ecdf8b52167f490bafb6948b0413855923e3d4
@@ -401,6 +406,7 @@ files:
401
406
  - .git/objects/9d/9f28ff50236f1e7f78cbd17b8aa25a0bf8b6fc
402
407
  - .git/objects/9e/a42bcef6b76af65d741384e13c24b8072637d1
403
408
  - .git/objects/9f/0f3e54458d429dd2a1c04e4671398cfa37d595
409
+ - .git/objects/9f/51dc5633e91af5d39c5eb1603fb090a4124fff
404
410
  - .git/objects/9f/91a2fdd59ecdfb4f8f5025fdbe590eb536e96f
405
411
  - .git/objects/9f/9e3b465a61007276d8fb8246f19fb9700a2667
406
412
  - .git/objects/a0/90ab2a9e739787b6090c187acf95fdd763afef
@@ -410,6 +416,7 @@ files:
410
416
  - .git/objects/a2/d43a3a789e655cc306618d480193709d580c30
411
417
  - .git/objects/a3/4e4e8572d323de26965619321576f903fa7935
412
418
  - .git/objects/a3/5c311b625d863b50d51e2385259d487e277c90
419
+ - .git/objects/a3/60b657edb2a9f463aec3df1fb8e0674c67311f
413
420
  - .git/objects/a3/6956ff51b72b69d1ac2c1ad0d78bb9ad1ade75
414
421
  - .git/objects/a3/84715546f6a11dc7d56a32784dbdd5d7d92e8e
415
422
  - .git/objects/a3/98e3f7678f774648fd43e667f958901ba9ee49
@@ -641,6 +648,7 @@ files:
641
648
  - lib/mongo_mapper_ext/plugins/default_scope.rb
642
649
  - lib/mongo_mapper_ext/plugins/micelaneous.rb
643
650
  - lib/mongo_mapper_ext/spec_helper.rb
651
+ - lib/mongo_mapper_ext/support.rb
644
652
  - lib/mongo_mapper_ext/view_helpers.rb
645
653
  - lib/mongo_mapper_ext.rb
646
654
  - lib/rails_ext/action_controller/global_path_prefix.rb