rails-ext 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/.git/COMMIT_EDITMSG +1 -1
  2. data/.git/index +0 -0
  3. data/.git/logs/HEAD +4 -0
  4. data/.git/logs/refs/heads/master +4 -0
  5. data/.git/logs/refs/remotes/origin/master +2 -0
  6. data/.git/objects/06/dbd9b08e58e2a56239d39680e2ff47fb1ae157 +0 -0
  7. data/.git/objects/0e/3e1ba37a5dde54955067f2281ed9a59498f6fc +0 -0
  8. data/.git/objects/16/1cacdd64a4f135d805f5a2f23d006592b8c835 +2 -0
  9. data/.git/objects/1a/929bce5b1c62a0c863ddca593310376374c3bf +0 -0
  10. data/.git/objects/1d/3972733ede74012559f4c784b39ec66ff4166d +0 -0
  11. data/.git/objects/1e/b77bba4ef75c91f8d984ed6f9c3f91c66b5925 +0 -0
  12. data/.git/objects/23/e505621c5c822c481e179a47d23c523101fc20 +0 -0
  13. data/.git/objects/24/30923ca4ea9e6addb77026b8c05e9638011daf +0 -0
  14. data/.git/objects/25/fa15d9a065f0d6e7ff2756b369c6a81799b03e +0 -0
  15. data/.git/objects/3b/cebd028c4b8312b2c36b14eddb57836c328a67 +0 -0
  16. data/.git/objects/48/9d9ebe59b365b9778ebf368682803fe2962dde +0 -0
  17. data/.git/objects/4f/25d5f3e8365350c3e29e78f654009ff6442a78 +0 -0
  18. data/.git/objects/51/11b97bb02d8fedbfa591f64a82c27ea2204a22 +0 -0
  19. data/.git/objects/60/74f4e0c668417e06938cb77640240e9c2b6e0e +0 -0
  20. data/.git/objects/66/be69882c43c5642f6af459e1748f4e8971491d +0 -0
  21. data/.git/objects/80/4a20e92f38623945cdb50ed8864d014632cf44 +2 -0
  22. data/.git/objects/86/92c6013c20c061359f6482ba5338615952918c +0 -0
  23. data/.git/objects/86/b5d7431198d0cbd17573297b56feb1a6084820 +0 -0
  24. data/.git/objects/92/dc044f4d69a5cb3a6a3109c2ce6b7f90bac2ab +0 -0
  25. data/.git/objects/97/14b2249143b7e7756abfbdffb08207ce9ffaed +3 -0
  26. data/.git/objects/97/8c0ddb7dbecadce5fbc740347598999ccc8223 +1 -0
  27. data/.git/objects/9a/ef8f9aacfa5609934eac4de71d9440a23b1b9f +1 -0
  28. data/.git/objects/9b/8d018e85ce2ef1c2797cea4bf739426a767a02 +0 -0
  29. data/.git/objects/9d/66146c5013029dfe26de7404c6fb65c7fd4288 +0 -0
  30. data/.git/objects/a0/bb1699784ec98ece5761fb03b0493d68141293 +1 -0
  31. data/.git/objects/a3/ece30fb5827ed20d26a75253bb4854f657055a +0 -0
  32. data/.git/objects/c4/3553ba14f97cbddefa4cf70bcc5b39c8e61933 +2 -0
  33. data/.git/objects/e1/0c4f3ec5729fd4d2580d74e96a0489644a041a +0 -0
  34. data/.git/objects/ff/b170e96b4d79ff011c6aa5de53b588ebbab0fa +0 -0
  35. data/.git/refs/heads/master +1 -1
  36. data/.git/refs/remotes/origin/master +1 -1
  37. data/README.markdown +3 -0
  38. data/Rakefile +4 -4
  39. data/lib/mongo_mapper_ext/micelaneous.rb +9 -0
  40. data/lib/mongo_mapper_ext/plugins/micelaneous.rb +45 -0
  41. data/lib/mongo_mapper_ext/view_helpers.rb +1 -1
  42. data/lib/mongo_mapper_ext.rb +1 -0
  43. data/public/rails_ext/rails_ext.js +3 -3
  44. data/spec/mongo_mapper_ext/micelaneous_plugin_spec.rb +56 -0
  45. data/spec/mongo_mapper_ext/micelaneous_spec.rb +28 -0
  46. metadata +38 -6
  47. data/README.rdoc +0 -4
data/.git/COMMIT_EDITMSG CHANGED
@@ -1 +1 @@
1
- fix stupid rdoc
1
+ upd
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -51,3 +51,7 @@ f9cf98993bf7067d5b45b0f06dc36fdedba5ffcf c47ead0b6604e6627e887f2f2e8909a8b409ae5
51
51
  c47ead0b6604e6627e887f2f2e8909a8b409ae5a 3b354d07a5bb5780eeffa4c12968214b1edb8b24 alex <alex@amac.local> 1269314707 +0300 commit: add interface_builder
52
52
  3b354d07a5bb5780eeffa4c12968214b1edb8b24 3a95e5465ca8d93ae2f53d1a77b0215a10f18021 alex <alex@amac.local> 1269316117 +0300 commit: fix
53
53
  3a95e5465ca8d93ae2f53d1a77b0215a10f18021 d4faaed37686ae3ce16b636defd37eeacb38470d alex <alex@amac.local> 1269316271 +0300 commit: fix stupid rdoc
54
+ d4faaed37686ae3ce16b636defd37eeacb38470d 978c0ddb7dbecadce5fbc740347598999ccc8223 alex <alex@amac.local> 1269428010 +0300 commit: upd & add mong_mapper counter_cache
55
+ 978c0ddb7dbecadce5fbc740347598999ccc8223 804a20e92f38623945cdb50ed8864d014632cf44 alex <alex@amac.local> 1269602049 +0300 commit: upd
56
+ 804a20e92f38623945cdb50ed8864d014632cf44 161cacdd64a4f135d805f5a2f23d006592b8c835 alex <alex@amac.local> 1269602071 +0300 commit: upd
57
+ 161cacdd64a4f135d805f5a2f23d006592b8c835 a3ece30fb5827ed20d26a75253bb4854f657055a alex <alex@amac.local> 1269602138 +0300 commit: upd
@@ -51,3 +51,7 @@ f9cf98993bf7067d5b45b0f06dc36fdedba5ffcf c47ead0b6604e6627e887f2f2e8909a8b409ae5
51
51
  c47ead0b6604e6627e887f2f2e8909a8b409ae5a 3b354d07a5bb5780eeffa4c12968214b1edb8b24 alex <alex@amac.local> 1269314707 +0300 commit: add interface_builder
52
52
  3b354d07a5bb5780eeffa4c12968214b1edb8b24 3a95e5465ca8d93ae2f53d1a77b0215a10f18021 alex <alex@amac.local> 1269316117 +0300 commit: fix
53
53
  3a95e5465ca8d93ae2f53d1a77b0215a10f18021 d4faaed37686ae3ce16b636defd37eeacb38470d alex <alex@amac.local> 1269316271 +0300 commit: fix stupid rdoc
54
+ d4faaed37686ae3ce16b636defd37eeacb38470d 978c0ddb7dbecadce5fbc740347598999ccc8223 alex <alex@amac.local> 1269428010 +0300 commit: upd & add mong_mapper counter_cache
55
+ 978c0ddb7dbecadce5fbc740347598999ccc8223 804a20e92f38623945cdb50ed8864d014632cf44 alex <alex@amac.local> 1269602049 +0300 commit: upd
56
+ 804a20e92f38623945cdb50ed8864d014632cf44 161cacdd64a4f135d805f5a2f23d006592b8c835 alex <alex@amac.local> 1269602071 +0300 commit: upd
57
+ 161cacdd64a4f135d805f5a2f23d006592b8c835 a3ece30fb5827ed20d26a75253bb4854f657055a alex <alex@amac.local> 1269602138 +0300 commit: upd
@@ -40,3 +40,5 @@ d7a33fe1ff44a661941d742270c3299a862689ca f9cf98993bf7067d5b45b0f06dc36fdedba5ffc
40
40
  f9cf98993bf7067d5b45b0f06dc36fdedba5ffcf 3b354d07a5bb5780eeffa4c12968214b1edb8b24 alex <alex@amac.local> 1269314724 +0300 update by push
41
41
  3b354d07a5bb5780eeffa4c12968214b1edb8b24 3a95e5465ca8d93ae2f53d1a77b0215a10f18021 alex <alex@amac.local> 1269316121 +0300 update by push
42
42
  3a95e5465ca8d93ae2f53d1a77b0215a10f18021 d4faaed37686ae3ce16b636defd37eeacb38470d alex <alex@amac.local> 1269316281 +0300 update by push
43
+ d4faaed37686ae3ce16b636defd37eeacb38470d 161cacdd64a4f135d805f5a2f23d006592b8c835 alex <alex@amac.local> 1269602079 +0300 update by push
44
+ 161cacdd64a4f135d805f5a2f23d006592b8c835 a3ece30fb5827ed20d26a75253bb4854f657055a alex <alex@amac.local> 1269602143 +0300 update by push
@@ -0,0 +1,2 @@
1
+ x��A
2
+ �0@Q�9E��Lf&�D�J:����RR���'p�w����>9��̇F%a"�f�!`�����S��9�4���^�g��`;eA*�M��,� �jgv��u�u���~{�K�˼j�o>������k���[s#:�
@@ -0,0 +1,2 @@
1
+ x��M
2
+ � ��=��B��ҫ����&=~N�ͻ{�ź,�n��S�[�N�KA�C�Jȑk���S��e2���٭� ���Z�~�T�qH�d��g�G���չ����M�e^���:%�� �LLd����a���7�<�
@@ -0,0 +1,3 @@
1
+ xu�? �@ ŝ�)�*��[\��&r��h��Sz��w�Z'���K^����b���
2
+ ����V��0;U�_CEm(�u�0 o���^���=y#��M�8Ǐ���\
3
+ ��"c)�W|U9��;ٴOc�咤�7���Н���k�#�(��=.=9)��d�w�>�:rS��1j�>��Vx
@@ -0,0 +1 @@
1
+ x��Aj�0E��)f�M��5�X�r3���e#C�_''��->���V�O��G�� s,d�8RD%󓍩p �S)��1�Mv[;�PD,�ȉ�Hm�g+�f&��F�N��l;�b�p}�.U�ki*�
@@ -0,0 +1 @@
1
+ x+)JMU063b040031QHI�O��K�L�+Jb���@���>y>�vU��)���̊�b��i��w�մϜb��s�� ����P5��ɩ9�y���`����2�x7 m:�-��vxs�QW:\ezQbIf~�^Qbv*û~u������>�Fu���틩2����ʸO3�|̐ォ�rR�7L]~^z~|nbAAjș_��Z$sv���+��l�0���F P(�)M��+f����e�o�F������v�޵�԰�������Y����/�^|kQ��o�&J�y�gCU�e��CU��<]d��D���K����������_ooG�
@@ -0,0 +1 @@
1
+ x+)JMU�0d040031Q(J��)�O�(�K..fh�7�:�|`�̠u���߭�|�;�¬b��ջ���L�q��m���Dz#U %�
@@ -0,0 +1,2 @@
1
+ x��_K�0�}Χ�lu0:��ocs 8| ir�򧦉N�}w���*>�%��Ӝ_�l w�7W߂t����T��A�B^@V�=��<���Қa�w �?�U�QRnM%�sG� ���)�Q���]�XP���6د�%潓e��R���(����@X8VR�1��\q2=l�\Hg�F�t��xO�i1�Nq��C2�&� D[������x)�L4b~�;���\��@q
2
+ (��CA���l0N�!�e>��C���*��<h4>O����62k��E9��;�>
@@ -1 +1 @@
1
- d4faaed37686ae3ce16b636defd37eeacb38470d
1
+ a3ece30fb5827ed20d26a75253bb4854f657055a
@@ -1 +1 @@
1
- d4faaed37686ae3ce16b636defd37eeacb38470d
1
+ a3ece30fb5827ed20d26a75253bb4854f657055a
data/README.markdown ADDED
@@ -0,0 +1,3 @@
1
+ # Set of small and handy Rails extensions.
2
+
3
+ Copyright (c) 2009 Alexey Petrushin ([http://www.bos-tec.com](http://www.bos-tec.com)), released under the MIT license
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.5"
21
+ s.version = "0.3.6"
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"
@@ -26,10 +26,10 @@ spec = Gem::Specification.new do |s|
26
26
  s.homepage = "http://www.bos-tec.com"
27
27
 
28
28
  s.platform = Gem::Platform::RUBY
29
- s.has_rdoc = true
30
- s.extra_rdoc_files = ["README.rdoc"]
29
+ # s.has_rdoc = true
30
+ # s.extra_rdoc_files = ["README.markdown"]
31
31
 
32
- s.files = (%w{Rakefile README.rdoc .gitignore} + Dir.glob("{.git,lib,spec,public}/**/*"))
32
+ s.files = (%w{Rakefile README.markdown .gitignore} + Dir.glob("{.git,lib,spec,public}/**/*"))
33
33
  # s.executables = ['restclient']
34
34
  # s.add_dependency("BlueCloth", ">= 0.0.4")
35
35
  s.add_dependency "ruby-ext"
@@ -0,0 +1,9 @@
1
+ Mongo::Collection.class_eval do
2
+ def upsert id, opt
3
+ opt.size.should! :==, 1
4
+ opt.should! :be_a, Hash
5
+ opt.values.first.should! :be_a, Hash
6
+
7
+ update({:_id => id}, opt, {:upsert => true, :safe => true})
8
+ end
9
+ end
@@ -3,13 +3,58 @@ module MongoMapper
3
3
  module Micelaneous
4
4
 
5
5
  module ClassMethods
6
+ #
7
+ # Connect to database_alias specified in config
8
+ #
6
9
  def use_database database_alias
7
10
  database_alias = database_alias.to_s
8
11
  MongoMapper.db_config.should! :include, database_alias
9
12
 
10
13
  self.connection MongoMapper.connections[database_alias]
11
14
  set_database_name MongoMapper.db_config[database_alias]['name']
15
+ end
16
+
17
+
18
+ #
19
+ # shortcut for upsert
20
+ #
21
+ def upsert *args
22
+ collection.upsert *args
12
23
  end
24
+
25
+
26
+ #
27
+ # CounterCache
28
+ # belongs_to :item, :counter_cashe => true
29
+ #
30
+ def belongs_to association_id, options={}, &extension
31
+ options.should_not! :include, :counter_cashe
32
+ if options.delete(:counter_cache) || options.delete('counter_cache')
33
+ association_id = association_id.to_s
34
+ association_key = "#{association_id}_id"
35
+ cache_attribute = "#{name.pluralize.underscore}_count"
36
+ cache_class = association_id.classify.constantize
37
+ cache_class.keys.should! :include, cache_attribute
38
+ increase_method_name = "increase_#{cache_class.name.underscore}_#{name.pluralize.underscore}_counter"
39
+ decrease_method_name = "decrease_#{cache_class.name.underscore}_#{name.pluralize.underscore}_counter"
40
+
41
+ define_method increase_method_name do
42
+ cache_class.upsert self.send(association_key), :$inc => {cache_attribute => 1}
43
+ end
44
+ protected increase_method_name
45
+
46
+ define_method decrease_method_name do
47
+ cache_class.upsert self.send(association_key), :$inc => {cache_attribute => -1}
48
+ end
49
+ protected decrease_method_name
50
+
51
+ after_create increase_method_name
52
+ after_destroy decrease_method_name
53
+ end
54
+
55
+ super association_id, options, &extension
56
+ end
57
+
13
58
  end
14
59
 
15
60
  end
@@ -4,7 +4,7 @@
4
4
  [MongoMapper::EmbeddedDocument::InstanceMethods, MongoMapper::Document::InstanceMethods].each do |aclass|
5
5
  aclass.class_eval do
6
6
  def dom_id
7
- new_record? ? "new_#{self.class.original_class.name.underscore}" : to_param
7
+ new_record? ? "new_#{self.class.name.underscore}" : to_param
8
8
  end
9
9
  end
10
10
  end
@@ -7,6 +7,7 @@ require 'mongo_mapper'
7
7
  'mongo_mapper',
8
8
  'view_helpers',
9
9
  'db_config',
10
+ 'micelaneous',
10
11
 
11
12
  'plugins/default_scope',
12
13
  'plugins/attributes_cache',
@@ -147,7 +147,7 @@ $.extend({
147
147
  this._orderedInitializers[dependencyLevel].push({definition: definition, processor: processor, callOnce: callOnce});
148
148
  },
149
149
 
150
- _processInitializers: function(){
150
+ processInitializers: function(){
151
151
  for(var i = this._orderedInitializers.size() - 1; i >= 0; i--){
152
152
  var initializers = $(this._orderedInitializers[i]);
153
153
  var toDelete = [];
@@ -185,10 +185,10 @@ $.extend({
185
185
  });
186
186
 
187
187
  $(function(){
188
- $._processInitializers();
188
+ $.processInitializers();
189
189
  });
190
190
  $(document).ajaxSuccess(function(){
191
- $._processInitializers();
191
+ $.processInitializers();
192
192
  });
193
193
 
194
194
 
@@ -0,0 +1,56 @@
1
+ require 'spec'
2
+ require 'ruby_ext'
3
+ require "mongo_mapper"
4
+ require "#{File.dirname __FILE__}/../../lib/mongo_mapper_ext/micelaneous"
5
+ require "#{File.dirname __FILE__}/../../lib/mongo_mapper_ext/plugins/micelaneous"
6
+
7
+ describe "MongoMapper Default Scope" do
8
+ before :all do
9
+ class ::Post
10
+ include MongoMapper::Document
11
+ plugin MongoMapper::Plugins::Micelaneous
12
+
13
+ key :comments_count, Integer, :default => 0
14
+ has_many :comments
15
+ end
16
+
17
+ class ::Comment
18
+ include MongoMapper::Document
19
+ plugin MongoMapper::Plugins::Micelaneous
20
+
21
+ key :post_id
22
+ belongs_to :post, :counter_cache => true
23
+ end
24
+
25
+ MongoMapper.database = 'test'
26
+ end
27
+
28
+ after :all do
29
+ %w{Post Comment}.each do |obj_name|
30
+ Object.send :remove_const, obj_name if Object.const_defined? obj_name
31
+ end
32
+ end
33
+
34
+ before :each do
35
+ [Post, Comment].every.delete_all
36
+ end
37
+
38
+ it "should increase count of comments" do
39
+ post = Post.create!
40
+ comment = post.comments.create!
41
+
42
+ post.reload
43
+ post.comments_count.should == 1
44
+ end
45
+
46
+ it "should decrease count of comments" do
47
+ post = Post.create!
48
+ comment = post.comments.create!
49
+ post.reload
50
+ post.comments_count.should == 1
51
+
52
+ comment.destroy
53
+ post.reload
54
+ post.comments_count.should == 0
55
+ end
56
+ end
@@ -0,0 +1,28 @@
1
+ require 'spec'
2
+ require 'ruby_ext'
3
+ require "mongo"
4
+ require 'mongo_mapper'
5
+ require "#{File.dirname __FILE__}/../../lib/mongo_mapper_ext/micelaneous"
6
+
7
+ describe "MongoMapper Default Scope" do
8
+ before :all do
9
+ @db = Mongo::Connection.new.db('test')
10
+ end
11
+
12
+ before :each do
13
+ @db.collection('test').drop
14
+ @coll = @db.collection('test')
15
+ end
16
+
17
+ it "usert should update" do
18
+ id = @coll.save :count => 2
19
+ @coll.upsert id, :$inc => {:count => 1}
20
+ @coll.find(:_id => id).first['count'].should == 3
21
+ end
22
+
23
+ it "usert should set" do
24
+ id = @coll.save({})
25
+ @coll.upsert id, :$inc => {:count => 1}
26
+ @coll.find(:_id => id).first['count'].should == 1
27
+ end
28
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
8
+ - 6
9
+ version: 0.3.6
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-03-23 00:00:00 +03:00
17
+ date: 2010-03-26 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -35,11 +35,11 @@ executables: []
35
35
 
36
36
  extensions: []
37
37
 
38
- extra_rdoc_files:
39
- - README.rdoc
38
+ extra_rdoc_files: []
39
+
40
40
  files:
41
41
  - Rakefile
42
- - README.rdoc
42
+ - README.markdown
43
43
  - .gitignore
44
44
  - .git/COMMIT_EDITMSG
45
45
  - .git/config
@@ -71,6 +71,7 @@ files:
71
71
  - .git/objects/05/9bdc20ed12957701f4b3931e2b1779de7adccf
72
72
  - .git/objects/06/c2384aa5f8b5614038b48a726d1d4f98a00f3b
73
73
  - .git/objects/06/c3225bad9d5b80e7b3bde79ff3c2da591722bf
74
+ - .git/objects/06/dbd9b08e58e2a56239d39680e2ff47fb1ae157
74
75
  - .git/objects/07/9ef6b10f536af792f4cf5d131857baa28751e7
75
76
  - .git/objects/07/f7d26527e58caa2fa99e33b29a7791b9eb8b3e
76
77
  - .git/objects/08/657a1cfcf74f1f82d863b1c8ca6e9a3e94cc61
@@ -82,6 +83,7 @@ files:
82
83
  - .git/objects/0c/4df6bee8ffbfd79927b23a070a4c9a41991152
83
84
  - .git/objects/0d/aa3468e187093eff222b8094a6e702dea9ba4e
84
85
  - .git/objects/0d/b63ec7380f5132ca02be93c82f5295e33c10a9
86
+ - .git/objects/0e/3e1ba37a5dde54955067f2281ed9a59498f6fc
85
87
  - .git/objects/0f/92cb7ae358323d43d026b83f7d1a4969cf7568
86
88
  - .git/objects/0f/d3ac42b07c2d3102263bd939704f5633db304e
87
89
  - .git/objects/10/1f52d83027dfe5798f87aec1118f02d19e5cf8
@@ -99,20 +101,24 @@ files:
99
101
  - .git/objects/15/6d9fb4d4fd605969b37fea59e57eb486d8d06f
100
102
  - .git/objects/15/8eef048d128710bfc0cb60114f7405e45f9b6c
101
103
  - .git/objects/15/c705282abf9721abc4c22a4ce09c3c76bcb73f
104
+ - .git/objects/16/1cacdd64a4f135d805f5a2f23d006592b8c835
102
105
  - .git/objects/16/6669449bd995b6e4901192beba9aea138415f5
103
106
  - .git/objects/18/17673317d63a90369c9f7abdc6f0113f42050f
104
107
  - .git/objects/18/71ebea5ace362756ec45cff59a336df5d50725
105
108
  - .git/objects/18/77033b90ed3dd55a3034b7e3ca1c5c9f66868d
106
109
  - .git/objects/18/adbbbcd043a3ef3e19854df8476b02d69544d0
107
110
  - .git/objects/19/1f68644a3646d774f2546c4cd49ac7d66f4cc2
111
+ - .git/objects/1a/929bce5b1c62a0c863ddca593310376374c3bf
108
112
  - .git/objects/1a/ff7d3c3636d032e1245491ca5261355fa4a207
109
113
  - .git/objects/1b/83175202b0bdd9e8aac50c186533c1730aa220
110
114
  - .git/objects/1b/d7d8887251e9bd43d88a5da5115ff4f1f5f10d
111
115
  - .git/objects/1c/14e28ef05892ccfe61da3dc28e16f87040fe43
112
116
  - .git/objects/1c/65c12ac1816d1b56c7c3892acc61512696c673
113
117
  - .git/objects/1c/7fd48742e76d2cd6605e1a569e65e79ddd8f92
118
+ - .git/objects/1d/3972733ede74012559f4c784b39ec66ff4166d
114
119
  - .git/objects/1d/d49713de2942dc974e55adc3684f55b2b817e2
115
120
  - .git/objects/1e/6374b23c71a07b0e414e80912fd45503bd3daf
121
+ - .git/objects/1e/b77bba4ef75c91f8d984ed6f9c3f91c66b5925
116
122
  - .git/objects/1e/d9ed5f46d17a0614d34795d6219443643c0f02
117
123
  - .git/objects/1f/0c4c80c04dcda806552b6fb16fa4ee69d3086d
118
124
  - .git/objects/1f/1be5b8e4dce8787367b3a607b0695ca70d4e82
@@ -120,11 +126,14 @@ files:
120
126
  - .git/objects/21/8b2cb256a71b42e9acbe53e4768c227ac2528e
121
127
  - .git/objects/21/e143c036491275aaa7d6e45ed4683f5defdae2
122
128
  - .git/objects/23/926daa53cee50268bd329a8b4cbd853cb3a45b
129
+ - .git/objects/23/e505621c5c822c481e179a47d23c523101fc20
130
+ - .git/objects/24/30923ca4ea9e6addb77026b8c05e9638011daf
123
131
  - .git/objects/24/61bc0b1a6770a4d4d6fc917eebd25f01aba716
124
132
  - .git/objects/24/62bd996e6c1b78d669a9eb3303c74217260f4b
125
133
  - .git/objects/25/271a1e3f9cb2c4e0e2e5a732c6d83312e0591e
126
134
  - .git/objects/25/ad912bcedeb900c551388c8d4f062812848af2
127
135
  - .git/objects/25/ee5ade49ac5dd0ce29f0127d8a3b6d943c981e
136
+ - .git/objects/25/fa15d9a065f0d6e7ff2756b369c6a81799b03e
128
137
  - .git/objects/26/0e9c6d3781e3ea13d10067398a51a2d5d7bf51
129
138
  - .git/objects/27/37bd94ff477fad57bb86f0a3e37110f6a75cb5
130
139
  - .git/objects/27/c51d8db9f25b7b6596dceb626252c90fd26b57
@@ -163,6 +172,7 @@ files:
163
172
  - .git/objects/3a/9e689945632d5c0a5e2c99096a2c66d79b17dc
164
173
  - .git/objects/3a/ff2a7bfdf3a677812899ede62d084369c7c5f4
165
174
  - .git/objects/3b/354d07a5bb5780eeffa4c12968214b1edb8b24
175
+ - .git/objects/3b/cebd028c4b8312b2c36b14eddb57836c328a67
166
176
  - .git/objects/3c/994e760012127915c1494a073cea51ef3b43e8
167
177
  - .git/objects/3d/5b84167d35cb75647f38a6d475a452ba3c6178
168
178
  - .git/objects/3d/ce52a15f01f1a8f99e65d148341bea71065129
@@ -182,6 +192,7 @@ files:
182
192
  - .git/objects/47/4f3074d7b1360f1897d62dd54444f70e645f1e
183
193
  - .git/objects/47/afb623cc9949394fc403bc977671307c1a9eda
184
194
  - .git/objects/48/0602886685e84f2a257eb8e95acfc8af1166b6
195
+ - .git/objects/48/9d9ebe59b365b9778ebf368682803fe2962dde
185
196
  - .git/objects/49/66cd792ea3e03d5091aa7a332f2a082e479a76
186
197
  - .git/objects/49/b7ee2b8f19ff0639d351fd5f3616c1360ff700
187
198
  - .git/objects/49/ca132451f70ee989ff7a7cf487b029fe706b28
@@ -194,9 +205,11 @@ files:
194
205
  - .git/objects/4d/b378ba37f16ac1172ed36b47659e765ac4f7ba
195
206
  - .git/objects/4d/dcba12e87e662fa68b0abefce96e3d18fbc668
196
207
  - .git/objects/4d/f726437dcbd106a583c07863e56076b245e8e3
208
+ - .git/objects/4f/25d5f3e8365350c3e29e78f654009ff6442a78
197
209
  - .git/objects/4f/2c09cf4d187a86ce37983eb76211ebabdb45d0
198
210
  - .git/objects/4f/fa8f1c9b7e3fdbb23ab600722d1011dcb48cec
199
211
  - .git/objects/50/d4fa779f4ca05493dc438987dfc8a7e7545d39
212
+ - .git/objects/51/11b97bb02d8fedbfa591f64a82c27ea2204a22
200
213
  - .git/objects/51/30873e42295a8890810ec77fd65050280901b5
201
214
  - .git/objects/51/bc541de1a4c2a516eeefbb2ba1467d9e415de2
202
215
  - .git/objects/52/5fcb274029ec36780b264166ea3d487d968997
@@ -219,6 +232,7 @@ files:
219
232
  - .git/objects/5c/95be85f2a2a984454fed4941a5ae00062634c5
220
233
  - .git/objects/5c/d7e89f2b29ed92fd51e2c6b2ee74db376d17d7
221
234
  - .git/objects/5f/483b0c41645f8882f549c1c6d0274bb592140a
235
+ - .git/objects/60/74f4e0c668417e06938cb77640240e9c2b6e0e
222
236
  - .git/objects/60/a42d757f842f6ce1a27284630ffd3deb867857
223
237
  - .git/objects/60/a681e873ca0ae0b7da3f37dbc5701f6e42b970
224
238
  - .git/objects/61/16fb26eb219d3ac6926221d57a0342aa2a8d56
@@ -232,6 +246,7 @@ files:
232
246
  - .git/objects/65/eb5981a1bac28b5f171c36dfbfeaae3e985a50
233
247
  - .git/objects/66/37f98202acb1895cb347d7c5fb5c414dd9e6db
234
248
  - .git/objects/66/95d9ac4648cdadd9922d3b355a1d6f56547f4c
249
+ - .git/objects/66/be69882c43c5642f6af459e1748f4e8971491d
235
250
  - .git/objects/67/2396778b142df8b0b7ab212b7564039c48cf39
236
251
  - .git/objects/67/850cf1ede94d80c9b07ceace074a4d62f15249
237
252
  - .git/objects/67/af41a5692e4322725016b9ee9297a96a996ccd
@@ -278,6 +293,7 @@ files:
278
293
  - .git/objects/7d/978ee312ca2119dc84e40431182b8f68e42f53
279
294
  - .git/objects/7e/ca6f113845c2dcdf536daa084349445d608879
280
295
  - .git/objects/80/1343ae84fe604b9fb93fb2265d2e3a49f25d3e
296
+ - .git/objects/80/4a20e92f38623945cdb50ed8864d014632cf44
281
297
  - .git/objects/81/156e1461b12b90f0dc2604458317ca8f5d45c0
282
298
  - .git/objects/81/d4aa3b627dfc7397ce3f71577a8307324b8289
283
299
  - .git/objects/82/0190b802ed213aab7a56a928a09db06e2a90a2
@@ -287,7 +303,9 @@ files:
287
303
  - .git/objects/85/eee9f4c1a6f710ed87bf28a0531275777f8848
288
304
  - .git/objects/85/fd531f7352ad8f5ac030eed2204a662dd10a66
289
305
  - .git/objects/86/23de615f686de621ca23cbbff6a07885101df9
306
+ - .git/objects/86/92c6013c20c061359f6482ba5338615952918c
290
307
  - .git/objects/86/b31b604469e9b261f4e5b927932504bca8c402
308
+ - .git/objects/86/b5d7431198d0cbd17573297b56feb1a6084820
291
309
  - .git/objects/87/fc827fd223cac6b4e55d823a9ea86bb0726a3b
292
310
  - .git/objects/88/b888ea16fb14478c659390ce54e980b86198ef
293
311
  - .git/objects/89/2697494eb70fdccaf26bf547bb8d7428c0e5ff
@@ -305,6 +323,7 @@ files:
305
323
  - .git/objects/90/8c06f1a239ced6b5784c851e30c8df6780fcce
306
324
  - .git/objects/90/ad7b150bde29d3a30f4a8ddd2463249e6c4418
307
325
  - .git/objects/90/ca84ea326afab5fcc92a50469c2052ebc46f11
326
+ - .git/objects/92/dc044f4d69a5cb3a6a3109c2ce6b7f90bac2ab
308
327
  - .git/objects/92/e1c250edfca72ed0932934257ef3cfc7122ec5
309
328
  - .git/objects/92/e1f3936e7c33007d0a466b836804450992a1eb
310
329
  - .git/objects/93/f9a6b596879347290cde161b03052bb22021de
@@ -314,19 +333,25 @@ files:
314
333
  - .git/objects/96/47afbafd293f6994316b2cc0d3e813c1878f87
315
334
  - .git/objects/96/48a1590ab953b7ec3bc9d06e460c0004962b77
316
335
  - .git/objects/96/c46be4221984fcf1807c17d16d63abb7f2ad39
336
+ - .git/objects/97/14b2249143b7e7756abfbdffb08207ce9ffaed
317
337
  - .git/objects/97/5b5b662b4c712668b3fe5dfe917000338e6b3e
338
+ - .git/objects/97/8c0ddb7dbecadce5fbc740347598999ccc8223
318
339
  - .git/objects/98/6915a151ae2adb8f8e81e11038f7a1ca731bbc
319
340
  - .git/objects/98/8bfa77097695a4771be8e01d0aabd1a01c62fa
320
341
  - .git/objects/99/8afa58b56034f5458b4aef2b8255daa53a5bb1
321
342
  - .git/objects/99/a23df6dd9c448928b25f2e749871c6fc696a32
343
+ - .git/objects/9a/ef8f9aacfa5609934eac4de71d9440a23b1b9f
322
344
  - .git/objects/9b/11e8efda3f1354c0076a4f102fb38430f4b3b2
345
+ - .git/objects/9b/8d018e85ce2ef1c2797cea4bf739426a767a02
323
346
  - .git/objects/9b/a1a0e6e5050444fc8743a18341ae219c54aa9b
324
347
  - .git/objects/9c/20b1616810e3d1d5951ea6251ff2d28322dc16
348
+ - .git/objects/9d/66146c5013029dfe26de7404c6fb65c7fd4288
325
349
  - .git/objects/9d/9f28ff50236f1e7f78cbd17b8aa25a0bf8b6fc
326
350
  - .git/objects/9e/a42bcef6b76af65d741384e13c24b8072637d1
327
351
  - .git/objects/9f/0f3e54458d429dd2a1c04e4671398cfa37d595
328
352
  - .git/objects/9f/91a2fdd59ecdfb4f8f5025fdbe590eb536e96f
329
353
  - .git/objects/a0/90ab2a9e739787b6090c187acf95fdd763afef
354
+ - .git/objects/a0/bb1699784ec98ece5761fb03b0493d68141293
330
355
  - .git/objects/a0/d595c78f280787659a2a4400f5d63578b53dce
331
356
  - .git/objects/a1/7da5fcb263b86753b0dddb8f34472e61d25fa1
332
357
  - .git/objects/a2/d43a3a789e655cc306618d480193709d580c30
@@ -334,6 +359,7 @@ files:
334
359
  - .git/objects/a3/5c311b625d863b50d51e2385259d487e277c90
335
360
  - .git/objects/a3/6956ff51b72b69d1ac2c1ad0d78bb9ad1ade75
336
361
  - .git/objects/a3/84715546f6a11dc7d56a32784dbdd5d7d92e8e
362
+ - .git/objects/a3/ece30fb5827ed20d26a75253bb4854f657055a
337
363
  - .git/objects/a4/c75ead5dcfe97a67d302464584be205e8c48b1
338
364
  - .git/objects/a5/4db1bec30f7dc8981c4d5ccf9c9a90c1e13662
339
365
  - .git/objects/a5/601da690031d212d8325b0c23655c6f1f24dcc
@@ -388,6 +414,7 @@ files:
388
414
  - .git/objects/c2/4bcd795ec0e5c301b9e3006f4bba8079926d4b
389
415
  - .git/objects/c3/20b469c3e447a63e887cefac9c3b5c2b1fb304
390
416
  - .git/objects/c3/dd5ae1e005efb09ef758da1ec17781c616ae9d
417
+ - .git/objects/c4/3553ba14f97cbddefa4cf70bcc5b39c8e61933
391
418
  - .git/objects/c4/524d9d99c6072949bfc565f78b7a62577ffa3f
392
419
  - .git/objects/c4/7ead0b6604e6627e887f2f2e8909a8b409ae5a
393
420
  - .git/objects/c5/208dea612df35fb84ceeda0649c103c32e2240
@@ -438,6 +465,7 @@ files:
438
465
  - .git/objects/df/f63029f32b25c2bf18d0f3f4e7907daa7c1bca
439
466
  - .git/objects/e0/444cc3908c5096319636ca42c403a78deda3f9
440
467
  - .git/objects/e0/d8e7ab5a565d95d44f2a9a6246be6003a3de7b
468
+ - .git/objects/e1/0c4f3ec5729fd4d2580d74e96a0489644a041a
441
469
  - .git/objects/e1/323977dc6cda25967e6ec6166430c2c0f08e32
442
470
  - .git/objects/e2/bc2615d3aa154bba2897c562a15ed19136d518
443
471
  - .git/objects/e2/c37248908c561be703c405e237fbf0c743977a
@@ -498,6 +526,7 @@ files:
498
526
  - .git/objects/fd/25e0c8e44fb97a7c7d76280cec51886b51abf6
499
527
  - .git/objects/fe/c19d13244f6b439e234e1af2e2e6d1f886b2fb
500
528
  - .git/objects/fe/ce95626cedcc0682e6fcc20fe019aab60938f2
529
+ - .git/objects/ff/b170e96b4d79ff011c6aa5de53b588ebbab0fa
501
530
  - .git/objects/ff/e8b22107fbd64dc4d03a49f16a55ee5a0716dd
502
531
  - .git/objects/pack/pack-c7edd4d292858ed6a37a55c1b6ceb35f65f4587e.idx
503
532
  - .git/objects/pack/pack-c7edd4d292858ed6a37a55c1b6ceb35f65f4587e.pack
@@ -517,6 +546,7 @@ files:
517
546
  - lib/interface_builder.rb
518
547
  - lib/mongo_mapper_ext/db_config.rb
519
548
  - lib/mongo_mapper_ext/fixes.rb
549
+ - lib/mongo_mapper_ext/micelaneous.rb
520
550
  - lib/mongo_mapper_ext/migration.rake
521
551
  - lib/mongo_mapper_ext/migration.rb
522
552
  - lib/mongo_mapper_ext/mongo_mapper.rb
@@ -566,6 +596,8 @@ files:
566
596
  - lib/rails_ext/micelaneous/safe_hash.rb
567
597
  - lib/rails_ext/micelaneous.rb
568
598
  - spec/mongo_mapper_ext/default_scope_spec.rb
599
+ - spec/mongo_mapper_ext/micelaneous_plugin_spec.rb
600
+ - spec/mongo_mapper_ext/micelaneous_spec.rb
569
601
  - spec/mongo_mapper_ext/mongo_mapper_migration_spec.rb
570
602
  - spec/rails_ext/safe_hash_spec.rb
571
603
  - spec/spec.opts
data/README.rdoc DELETED
@@ -1,4 +0,0 @@
1
- install with --no-ri --no-rdoc
2
- RDoc can't parse view_builder.rb somehow, so just ignore it.
3
-
4
- Copyright (c) 2009 [name of plugin creator], released under the MIT license