rails-ext 0.3.12 → 0.3.13

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
- add solr sunspot search
1
+ upd mongo
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -63,3 +63,4 @@ b4343d9284a89e2971022f8d4acf7865d8341c6d 824ac01aecaa766ea8a7b10ef9d9f67810fdff4
63
63
  824ac01aecaa766ea8a7b10ef9d9f67810fdff40 83b834761b24c759d71e6fb8121dcf127290454e alex <alex@amac.local> 1270519846 +0400 commit: upd
64
64
  83b834761b24c759d71e6fb8121dcf127290454e bc8c233044e9ab4299af036c0602bab06d3a5349 alex <alex@amac.local> 1271850978 +0400 commit: upd
65
65
  bc8c233044e9ab4299af036c0602bab06d3a5349 f7be86378738705bbd1f97dd8be92c3cc7d54a66 alex <alex@amac.local> 1271938860 +0400 commit: add solr sunspot search
66
+ f7be86378738705bbd1f97dd8be92c3cc7d54a66 947bf4d6e7e81d5ca62a381caa8d761a9c43cf8a alex <alex@amac.local> 1272045373 +0400 commit: upd mongo
@@ -63,3 +63,4 @@ b4343d9284a89e2971022f8d4acf7865d8341c6d 824ac01aecaa766ea8a7b10ef9d9f67810fdff4
63
63
  824ac01aecaa766ea8a7b10ef9d9f67810fdff40 83b834761b24c759d71e6fb8121dcf127290454e alex <alex@amac.local> 1270519846 +0400 commit: upd
64
64
  83b834761b24c759d71e6fb8121dcf127290454e bc8c233044e9ab4299af036c0602bab06d3a5349 alex <alex@amac.local> 1271850978 +0400 commit: upd
65
65
  bc8c233044e9ab4299af036c0602bab06d3a5349 f7be86378738705bbd1f97dd8be92c3cc7d54a66 alex <alex@amac.local> 1271938860 +0400 commit: add solr sunspot search
66
+ f7be86378738705bbd1f97dd8be92c3cc7d54a66 947bf4d6e7e81d5ca62a381caa8d761a9c43cf8a alex <alex@amac.local> 1272045373 +0400 commit: upd mongo
@@ -1 +1 @@
1
- f7be86378738705bbd1f97dd8be92c3cc7d54a66
1
+ 947bf4d6e7e81d5ca62a381caa8d761a9c43cf8a
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.12"
21
+ s.version = "0.3.13"
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"
@@ -1,15 +1,15 @@
1
1
  #
2
2
  # ObjectID
3
3
  #
4
- Mongo::ObjectID.class_eval do
5
- def == other
6
- self.to_s == other.to_s
7
- end
8
-
9
- def to_yaml *args
10
- to_s.to_yaml *args
11
- end
12
- end
4
+ # Mongo::ObjectID.class_eval do
5
+ # def == other
6
+ # self.to_s == other.to_s
7
+ # end
8
+ #
9
+ # def to_yaml *args
10
+ # to_s.to_yaml *args
11
+ # end
12
+ # end
13
13
 
14
14
 
15
15
  #
@@ -14,7 +14,7 @@ namespace :db do
14
14
  desc "Migrate Database"
15
15
  task :migrate => :environment do
16
16
  ::Migration = MongoMapper::Migration
17
- Dir["#{Rails.root}/lib/db/*.rb"].each{|f| require f.sub(/\.rb$/, '')}
17
+ Dir["#{Rails.root}/lib/db/**/*.rb"].each{|f| require f.sub(/\.rb$/, '')}
18
18
 
19
19
  database_alias = ENV['d'] || ENV['database']
20
20
  database_alias = 'accounts' if database_alias.blank?
@@ -0,0 +1,11 @@
1
+ require 'sunspot/rails/spec_helper'
2
+
3
+ Spec::Runner.configure do |config|
4
+ config.before(:each) do
5
+ ::Sunspot.session = ::Sunspot::Rails::StubSessionProxy.new(::Sunspot.session)
6
+ end
7
+
8
+ config.after(:each) do
9
+ ::Sunspot.session = ::Sunspot.session.original_session
10
+ end
11
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 12
9
- version: 0.3.12
8
+ - 13
9
+ version: 0.3.13
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-22 00:00:00 +04:00
17
+ date: 2010-04-23 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -136,6 +136,7 @@ files:
136
136
  - .git/objects/21/e143c036491275aaa7d6e45ed4683f5defdae2
137
137
  - .git/objects/23/926daa53cee50268bd329a8b4cbd853cb3a45b
138
138
  - .git/objects/23/e505621c5c822c481e179a47d23c523101fc20
139
+ - .git/objects/24/0b59d9146372dbfa1d835c041b9d5c626d27e5
139
140
  - .git/objects/24/30923ca4ea9e6addb77026b8c05e9638011daf
140
141
  - .git/objects/24/61bc0b1a6770a4d4d6fc917eebd25f01aba716
141
142
  - .git/objects/24/62bd996e6c1b78d669a9eb3303c74217260f4b
@@ -149,6 +150,7 @@ files:
149
150
  - .git/objects/27/f8a63386b8acf5edba3ed9334644455045acd8
150
151
  - .git/objects/28/0d2d83eb4aa5fb48fefa1a8ceab6761cd9288d
151
152
  - .git/objects/28/8e20f19c6662b1425e0a0797ae443f7eddcc4a
153
+ - .git/objects/28/bcd55d23a005f727a412b570ccd1c897226c78
152
154
  - .git/objects/28/c44da9255a78bf7105a1c251e4e1cd643b8f44
153
155
  - .git/objects/29/7a2c413b11f78b69dd8caa4f334c9536088f8a
154
156
  - .git/objects/29/7c96daf8c38bcdac8a51f3c377ed789aa7afcd
@@ -177,6 +179,7 @@ files:
177
179
  - .git/objects/36/9902ca51d5820a02ccccbf1cac6ed09051941d
178
180
  - .git/objects/36/c16174f65a0fc67c520aa36225d3e8c7a05775
179
181
  - .git/objects/36/c7ec2150ecaa7af94d9556c218f723a2eff0e1
182
+ - .git/objects/37/8d35c31ccb70ca6bbb2fdc2fd4d4d302ff4f41
180
183
  - .git/objects/38/fa364fa8743e78ec0fec702b9df1764b42ffc9
181
184
  - .git/objects/3a/03b9d44de43472689300120ffb2a0a9a74f27f
182
185
  - .git/objects/3a/797683953be7e6d0ffa0e34514f3e8e9c3ceb0
@@ -224,6 +227,7 @@ files:
224
227
  - .git/objects/4d/f726437dcbd106a583c07863e56076b245e8e3
225
228
  - .git/objects/4f/25d5f3e8365350c3e29e78f654009ff6442a78
226
229
  - .git/objects/4f/2c09cf4d187a86ce37983eb76211ebabdb45d0
230
+ - .git/objects/4f/352a6f8c5ad41e4dcd47b81a9af2ee66e2531d
227
231
  - .git/objects/4f/fa8f1c9b7e3fdbb23ab600722d1011dcb48cec
228
232
  - .git/objects/50/d4fa779f4ca05493dc438987dfc8a7e7545d39
229
233
  - .git/objects/51/11b97bb02d8fedbfa591f64a82c27ea2204a22
@@ -242,6 +246,7 @@ files:
242
246
  - .git/objects/55/d1f1efc344266d472094b1fd2f247b97de1c8b
243
247
  - .git/objects/56/b49aebdec66032571751e38f82d3ce550ccddf
244
248
  - .git/objects/56/d4d25c979129176da0f447726f3eecf611973b
249
+ - .git/objects/57/4a9f1d87b403476457e685d605116e04db7a9c
245
250
  - .git/objects/57/8a722fd66124331e07123e3a0de2b6b50a581b
246
251
  - .git/objects/58/081228f5465c4e850f33e3ba268ba49d9fb09e
247
252
  - .git/objects/58/a36c1e8bc71d6e30be10121b94a377eb42ffc6
@@ -287,6 +292,7 @@ files:
287
292
  - .git/objects/6d/6bfb690cccf36d947eaafd79a19b0974afb65a
288
293
  - .git/objects/6d/85efe0589aa745a632d38314b7b5902a8874c0
289
294
  - .git/objects/6d/f725e3519872a75bc763045f00d8844eb890cf
295
+ - .git/objects/6e/219f25648b06b04f407a66b40a818c7fccfb29
290
296
  - .git/objects/6e/5b3a02689a2990455d28c514d8e2885d004fdb
291
297
  - .git/objects/6e/a04c6c0a52b9c7da1de6364b530553dfd78c4a
292
298
  - .git/objects/6e/b67e3ad9f44898acced6d861f9743dad07e49c
@@ -304,6 +310,7 @@ files:
304
310
  - .git/objects/74/d8411c7276b4e1c1f614606af7f69ab4526d30
305
311
  - .git/objects/75/c64796b5ffb6107b861cfa77fa28e8e43a1156
306
312
  - .git/objects/75/d0b250bcdf241d981313b1d6eb153b96e4b05f
313
+ - .git/objects/75/dd5109eaa6ac13ace27c8b05e3d37784db5569
307
314
  - .git/objects/76/d3cd0f31cfb174c2411be5636a8257e7af613a
308
315
  - .git/objects/77/1b320725df70e54f05ef4926c6360b2ba8ba8a
309
316
  - .git/objects/77/6e03ab9139aab1e0e8d551a75c3c0145fd9322
@@ -364,6 +371,7 @@ files:
364
371
  - .git/objects/92/e1f3936e7c33007d0a466b836804450992a1eb
365
372
  - .git/objects/93/f9a6b596879347290cde161b03052bb22021de
366
373
  - .git/objects/94/72f3ac9e890231482aadd774bdc1c9ba742497
374
+ - .git/objects/94/7bf4d6e7e81d5ca62a381caa8d761a9c43cf8a
367
375
  - .git/objects/94/afd196cc89d60f0a06d4cad619eaa79921a9ae
368
376
  - .git/objects/94/ba2c1a45bc1a8cf3625f4889c507b39c664576
369
377
  - .git/objects/95/a9d4abd8363e64d221e0f7d47ae69cb055ea7b
@@ -443,6 +451,7 @@ files:
443
451
  - .git/objects/b7/88e3ac322b164a2a223f80f8a6da0836d9d1dd
444
452
  - .git/objects/b8/aaaf4949881600102a72a60f17fd58918dbd7b
445
453
  - .git/objects/b8/efcaff7f11cc584ac44303449d96592853c528
454
+ - .git/objects/b9/d34f7765b265ccfb07337dc5f55914454e8a23
446
455
  - .git/objects/b9/ecca04b12de69ffab2cc5d22cb52d5babef24f
447
456
  - .git/objects/ba/2a392e35a7626a7477d1770b00cc2704916a7e
448
457
  - .git/objects/ba/67eef0f58a44e4b39af605d45e1e958023588d
@@ -610,7 +619,7 @@ files:
610
619
  - lib/mongo_mapper_ext/db_config.rb
611
620
  - lib/mongo_mapper_ext/fixes.rb
612
621
  - lib/mongo_mapper_ext/micelaneous.rb
613
- - lib/mongo_mapper_ext/migration.rake
622
+ - lib/mongo_mapper_ext/migrate.rake
614
623
  - lib/mongo_mapper_ext/migration.rb
615
624
  - lib/mongo_mapper_ext/mongo_mapper.rb
616
625
  - lib/mongo_mapper_ext/plugins/attributes_cache.rb
@@ -661,6 +670,7 @@ files:
661
670
  - lib/rails_ext/micelaneous.rb
662
671
  - lib/sunspot/mongo_mapper/adapters.rb
663
672
  - lib/sunspot/mongo_mapper/searchable.rb
673
+ - lib/sunspot/spec_helper.rb
664
674
  - spec/mongo_mapper_ext/micelaneous_plugin_spec.rb
665
675
  - spec/mongo_mapper_ext/micelaneous_spec.rb
666
676
  - spec/mongo_mapper_ext/mongo_mapper_migration_spec.rb