rails-ext 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
- data/.git/COMMIT_EDITMSG +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +1 -0
- data/.git/logs/refs/heads/master +1 -0
- data/.git/logs/refs/remotes/origin/master +1 -0
- data/.git/objects/1b/97bf83cfb66037eac8539b0f22f1bdf447dbf3 +0 -0
- data/.git/objects/84/a211c6a73f57c4bb5e04e4abbb21ccd36fb18f +0 -0
- data/.git/objects/9d/23038fb44baa1cf819d782b731f77e281f2e06 +0 -0
- data/.git/objects/bc/39fe2662abbb26fd92b892ed8fe0c87fe773db +0 -0
- data/.git/objects/de/1330fb3febc60160cff1ea153f4ad62969c168 +0 -0
- data/.git/objects/e1/ad002c21830c161db252c85fe01b18cd910281 +0 -0
- data/.git/objects/ea/77e7e211e005eb3084c01db241761f33d3f6c1 +0 -0
- data/.git/refs/heads/master +1 -1
- data/.git/refs/remotes/origin/master +1 -1
- data/Rakefile +1 -1
- data/lib/mongo_mapper_ext/plugins/micelaneous.rb +13 -0
- metadata +10 -3
data/.git/COMMIT_EDITMSG
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
upd
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -78,3 +78,4 @@ e68bedbf8dd4dacaa7f0a681fe083d4b754cb1f7 83e57169d9640366e3a95806fc2c73c98d68603
|
|
78
78
|
83e57169d9640366e3a95806fc2c73c98d686033 120612cf1c0a44c1433355a4155c1aede0bbceef alex <alex@amac.local> 1272820652 +0400 commit: upd
|
79
79
|
120612cf1c0a44c1433355a4155c1aede0bbceef 911c11ff0ad81999f73c5dee56c8f6241d3ac346 alex <alex@amac.local> 1272821766 +0400 commit: fix
|
80
80
|
911c11ff0ad81999f73c5dee56c8f6241d3ac346 b411eba25774a9466a267e7fcad5b9c238fdada8 alex <alex@amac.local> 1272869285 +0400 commit: fix
|
81
|
+
b411eba25774a9466a267e7fcad5b9c238fdada8 e1ad002c21830c161db252c85fe01b18cd910281 alex <alex@amac.local> 1273155885 +0400 commit: upd
|
data/.git/logs/refs/heads/master
CHANGED
@@ -78,3 +78,4 @@ e68bedbf8dd4dacaa7f0a681fe083d4b754cb1f7 83e57169d9640366e3a95806fc2c73c98d68603
|
|
78
78
|
83e57169d9640366e3a95806fc2c73c98d686033 120612cf1c0a44c1433355a4155c1aede0bbceef alex <alex@amac.local> 1272820652 +0400 commit: upd
|
79
79
|
120612cf1c0a44c1433355a4155c1aede0bbceef 911c11ff0ad81999f73c5dee56c8f6241d3ac346 alex <alex@amac.local> 1272821766 +0400 commit: fix
|
80
80
|
911c11ff0ad81999f73c5dee56c8f6241d3ac346 b411eba25774a9466a267e7fcad5b9c238fdada8 alex <alex@amac.local> 1272869285 +0400 commit: fix
|
81
|
+
b411eba25774a9466a267e7fcad5b9c238fdada8 e1ad002c21830c161db252c85fe01b18cd910281 alex <alex@amac.local> 1273155885 +0400 commit: upd
|
@@ -63,3 +63,4 @@ e68bedbf8dd4dacaa7f0a681fe083d4b754cb1f7 83e57169d9640366e3a95806fc2c73c98d68603
|
|
63
63
|
83e57169d9640366e3a95806fc2c73c98d686033 120612cf1c0a44c1433355a4155c1aede0bbceef alex <alex@amac.local> 1272820661 +0400 update by push
|
64
64
|
120612cf1c0a44c1433355a4155c1aede0bbceef 911c11ff0ad81999f73c5dee56c8f6241d3ac346 alex <alex@amac.local> 1272821772 +0400 update by push
|
65
65
|
911c11ff0ad81999f73c5dee56c8f6241d3ac346 b411eba25774a9466a267e7fcad5b9c238fdada8 alex <alex@amac.local> 1272869293 +0400 update by push
|
66
|
+
b411eba25774a9466a267e7fcad5b9c238fdada8 e1ad002c21830c161db252c85fe01b18cd910281 alex <alex@amac.local> 1273155894 +0400 update by push
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
e1ad002c21830c161db252c85fe01b18cd910281
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
e1ad002c21830c161db252c85fe01b18cd910281
|
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.
|
21
|
+
s.version = "0.3.25"
|
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"
|
@@ -9,6 +9,19 @@ module MongoMapper
|
|
9
9
|
end
|
10
10
|
|
11
11
|
module ClassMethods
|
12
|
+
#
|
13
|
+
# Sequentiall :all for big collection
|
14
|
+
#
|
15
|
+
def all_sequentially &block
|
16
|
+
page, per_page = 1, 5
|
17
|
+
begin
|
18
|
+
results = paginate(:page => page, :per_page => per_page, :order => '_id asc')
|
19
|
+
results.each{|o| block.call o}
|
20
|
+
page += 1
|
21
|
+
end until results.blank? or results.size < per_page
|
22
|
+
end
|
23
|
+
|
24
|
+
|
12
25
|
#
|
13
26
|
# Connect to database_alias specified in config
|
14
27
|
#
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 25
|
9
|
+
version: 0.3.25
|
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-05-
|
17
|
+
date: 2010-05-06 00:00:00 +04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- .git/objects/1a/929bce5b1c62a0c863ddca593310376374c3bf
|
131
131
|
- .git/objects/1a/ff7d3c3636d032e1245491ca5261355fa4a207
|
132
132
|
- .git/objects/1b/83175202b0bdd9e8aac50c186533c1730aa220
|
133
|
+
- .git/objects/1b/97bf83cfb66037eac8539b0f22f1bdf447dbf3
|
133
134
|
- .git/objects/1b/d7d8887251e9bd43d88a5da5115ff4f1f5f10d
|
134
135
|
- .git/objects/1c/14e28ef05892ccfe61da3dc28e16f87040fe43
|
135
136
|
- .git/objects/1c/65c12ac1816d1b56c7c3892acc61512696c673
|
@@ -384,6 +385,7 @@ files:
|
|
384
385
|
- .git/objects/83/b834761b24c759d71e6fb8121dcf127290454e
|
385
386
|
- .git/objects/83/e57169d9640366e3a95806fc2c73c98d686033
|
386
387
|
- .git/objects/83/fa8aa3ad64de1003adc5a1c7c31c3d98a7abf4
|
388
|
+
- .git/objects/84/a211c6a73f57c4bb5e04e4abbb21ccd36fb18f
|
387
389
|
- .git/objects/84/bfc21516dfc947e9aa64a47000b46da2c801d9
|
388
390
|
- .git/objects/85/eee9f4c1a6f710ed87bf28a0531275777f8848
|
389
391
|
- .git/objects/85/fd531f7352ad8f5ac030eed2204a662dd10a66
|
@@ -443,6 +445,7 @@ files:
|
|
443
445
|
- .git/objects/9b/8d018e85ce2ef1c2797cea4bf739426a767a02
|
444
446
|
- .git/objects/9b/a1a0e6e5050444fc8743a18341ae219c54aa9b
|
445
447
|
- .git/objects/9c/20b1616810e3d1d5951ea6251ff2d28322dc16
|
448
|
+
- .git/objects/9d/23038fb44baa1cf819d782b731f77e281f2e06
|
446
449
|
- .git/objects/9d/3f16cdc12f32c4fa10b7df80eb6e8a09e96a84
|
447
450
|
- .git/objects/9d/66146c5013029dfe26de7404c6fb65c7fd4288
|
448
451
|
- .git/objects/9d/9f28ff50236f1e7f78cbd17b8aa25a0bf8b6fc
|
@@ -517,6 +520,7 @@ files:
|
|
517
520
|
- .git/objects/ba/67eef0f58a44e4b39af605d45e1e958023588d
|
518
521
|
- .git/objects/bb/05a580a8afe6e3078b8e6ec4cda41fdc266f5d
|
519
522
|
- .git/objects/bb/23236d2e8340087cc495c66310e6eb90d6fe0a
|
523
|
+
- .git/objects/bc/39fe2662abbb26fd92b892ed8fe0c87fe773db
|
520
524
|
- .git/objects/bc/8c233044e9ab4299af036c0602bab06d3a5349
|
521
525
|
- .git/objects/bc/90a06dd2f2257e8da49989738db5747e2b78d8
|
522
526
|
- .git/objects/bd/2534abb8cf454ca08872a72624a794a367bf53
|
@@ -593,6 +597,7 @@ files:
|
|
593
597
|
- .git/objects/dd/a1f7a239fae8c8a259b10eebb45003194a840b
|
594
598
|
- .git/objects/dd/ad36d883dd04cb1b68f0f81d5b3fa98b8551e3
|
595
599
|
- .git/objects/de/10bee1e91cfbd53ccaa073aada68cbfeac22d8
|
600
|
+
- .git/objects/de/1330fb3febc60160cff1ea153f4ad62969c168
|
596
601
|
- .git/objects/de/42e0639597129c9471918171ee5622c031dd19
|
597
602
|
- .git/objects/de/513632cf9d7755d57fa2cde261bc6822335d40
|
598
603
|
- .git/objects/de/57906fbec41c830adf724743fd20dba762acab
|
@@ -602,6 +607,7 @@ files:
|
|
602
607
|
- .git/objects/e0/d8e7ab5a565d95d44f2a9a6246be6003a3de7b
|
603
608
|
- .git/objects/e1/0c4f3ec5729fd4d2580d74e96a0489644a041a
|
604
609
|
- .git/objects/e1/323977dc6cda25967e6ec6166430c2c0f08e32
|
610
|
+
- .git/objects/e1/ad002c21830c161db252c85fe01b18cd910281
|
605
611
|
- .git/objects/e2/30f8b3acd20695be0a13fdd42aefa364ad1a4d
|
606
612
|
- .git/objects/e2/bc2615d3aa154bba2897c562a15ed19136d518
|
607
613
|
- .git/objects/e2/c37248908c561be703c405e237fbf0c743977a
|
@@ -634,6 +640,7 @@ files:
|
|
634
640
|
- .git/objects/e9/46302310acac8a7a6b64a58b47062934765ede
|
635
641
|
- .git/objects/e9/f443234dd56456d6663223054ae552c44df024
|
636
642
|
- .git/objects/ea/50407bf8daef694d22268540dd55eb3a739bad
|
643
|
+
- .git/objects/ea/77e7e211e005eb3084c01db241761f33d3f6c1
|
637
644
|
- .git/objects/eb/950b1535bf0671019ba323386deea2598ce246
|
638
645
|
- .git/objects/eb/9701e2dbe8fb606315f9514d789188160bdd67
|
639
646
|
- .git/objects/eb/f7fda7b05436ca8616cc3098a069cc611224b6
|