mongoid_misc 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ require 'carrierwave/orm/mongoid'
4
4
 
5
5
  %w(
6
6
  fixes
7
- micelaneous
7
+ miscellaneous
8
8
  mongoid_embedded
9
9
  ).each{|f| require "carrierwave_ext/#{f}"}
10
10
 
@@ -1,4 +1,4 @@
1
- module Mongoid::Micelaneous
1
+ module Mongoid::Miscellaneous
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  def upsert! *args
@@ -12,7 +12,7 @@ end
12
12
  # #
13
13
  # # disabpling :set_database_alias
14
14
  # #
15
- # Mongoid::Micelaneous::ClassMethods.class_eval do
15
+ # Mongoid::Miscellaneous::ClassMethods.class_eval do
16
16
  # alias_method :_set_database_alias, :set_database_alias
17
17
  # def set_database_alias alias_name; end
18
18
  # end
data/lib/mongoid_misc.rb CHANGED
@@ -12,7 +12,7 @@ require 'will_paginate'
12
12
  attribute_convertors
13
13
  belongs_to_with_counter_cache
14
14
  simple_finders
15
- micelaneous
15
+ miscellaneous
16
16
  ).each{|file| require "mongoid_misc/#{file}"}
17
17
 
18
18
  #
@@ -23,7 +23,7 @@ require 'will_paginate'
23
23
  Mongoid::AttributeConvertors,
24
24
  Mongoid::BelongsToWithCounterCache,
25
25
  Mongoid::SimpleFinders,
26
- Mongoid::Micelaneous
26
+ Mongoid::Miscellaneous
27
27
  ].each{|plugin| Mongoid::Document.send :include, plugin}
28
28
 
29
29
 
@@ -1,6 +1,6 @@
1
1
  require 'mongo_ext/spec_helper'
2
2
 
3
- describe "Micelaneous" do
3
+ describe "Miscellaneous" do
4
4
  before do
5
5
  db = clear_mongo_database
6
6
  @collection = db.collection 'test'
@@ -1,6 +1,6 @@
1
1
  require 'mongoid_misc/spec_helper'
2
2
 
3
- describe "Micelaneous" do
3
+ describe "Miscellaneous" do
4
4
  with_mongoid
5
5
 
6
6
  after(:all){remove_constants %w(UpsertSample AsStringSample TranslationCheck Article Post Namespace AliasTest)}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_misc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-05 00:00:00 +04:00
13
+ date: 2011-07-22 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -146,7 +146,7 @@ files:
146
146
  - Rakefile
147
147
  - readme.md
148
148
  - lib/carrierwave_ext/fixes.rb
149
- - lib/carrierwave_ext/micelaneous.rb
149
+ - lib/carrierwave_ext/miscellaneous.rb
150
150
  - lib/carrierwave_ext/mongoid_embedded.rb
151
151
  - lib/carrierwave_ext/spec.rb
152
152
  - lib/carrierwave_ext.rb
@@ -163,7 +163,7 @@ files:
163
163
  - lib/mongoid_misc/belongs_to_with_counter_cache.rb
164
164
  - lib/mongoid_misc/gems.rb
165
165
  - lib/mongoid_misc/hacks.rb
166
- - lib/mongoid_misc/micelaneous.rb
166
+ - lib/mongoid_misc/miscellaneous.rb
167
167
  - lib/mongoid_misc/simple_finders.rb
168
168
  - lib/mongoid_misc/spec.rb
169
169
  - lib/mongoid_misc/support.rb
@@ -181,7 +181,7 @@ files:
181
181
  - spec/mongo_migration/spec_helper.rb
182
182
  - spec/mongoid_misc/attribute_convertors_spec.rb
183
183
  - spec/mongoid_misc/belongs_to_with_counter_cache_spec.rb
184
- - spec/mongoid_misc/micelaneous_spec.rb
184
+ - spec/mongoid_misc/miscellaneous_spec.rb
185
185
  - spec/mongoid_misc/simple_finders_spec.rb
186
186
  - spec/mongoid_misc/spec_helper.rb
187
187
  has_rdoc: true