mongoid_rails_migrations 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_rails_migrations (0.0.12)
4
+ mongoid_rails_migrations (0.0.13)
5
5
  activesupport (>= 3.0.0)
6
6
  bundler (>= 1.0.0)
7
7
  rails (>= 3.0.0)
data/README.rdoc CHANGED
@@ -1,14 +1,12 @@
1
1
  == RELEASE NOTES
2
- * This version is designed to support all current development versions of Mongoid 2.0. The inclusion of the mongoid dependency has been removed.
3
- * In 2.0.0.rc.1, Mongoid::Config changed from a Class to a Module.
4
- * In your application, please be sure to require mongoid before mongoid_rails_migrations. Again, this is necessary to support both pre/post 2.0.0.rc.1. I plan on fixing the ugly once mongoid goes 2.0 final.
2
+ * Rails 3.1 compatible
5
3
 
6
4
  == SYNOPSIS
7
5
  * Data migrations for Mongoid.
8
6
 
9
7
  == MIGRATE WHEN ...
10
- * You need to rearrange or split data
11
- * You have model instances which you leverage as schema data
8
+ * You need to rearrange data
9
+ * The migrating is good
12
10
 
13
11
  == REQUIREMENTS
14
12
  * rails ~> 3.0.0
@@ -17,13 +15,13 @@
17
15
  == INSTALL
18
16
  * gem install mongoid_rails_migrations
19
17
  * In your Gemfile, include (after including mongoid):
20
- gem "mongoid_rails_migrations", ">=0.0.2" # or whatever the current version happens to be
18
+ gem "mongoid_rails_migrations", "0.0.13"
21
19
 
22
20
  == FEATURES AND HOW TO USE
23
21
  * generator:
24
22
  * rails generate mongoid:migration your_migration_name_here
25
23
 
26
- * migrations (tested):
24
+ * migrations:
27
25
  * db:migrate
28
26
  * db:migrate:down
29
27
  * db:migrate:up
@@ -31,10 +29,10 @@
31
29
  * db:migrate:redo
32
30
  * db:migrate:reset
33
31
  * db:reseed (handled by mongoid)
34
- * db:version (added to glean current migration)
32
+ * db:version
35
33
 
36
34
  == NOTES
37
- * Only tested with ruby 1.9.1
35
+ * Only tested with ruby 1.9.2
38
36
 
39
37
  == CREDITS TO
40
38
  * rails
@@ -43,7 +41,7 @@
43
41
  Much of this gem simply modifies existing code from both projects.
44
42
  With that out of the way, on to the license.
45
43
 
46
- == LICENSE
44
+ == LICENSE (MIT)
47
45
 
48
46
  Copyright © 2010: Alan Da Costa
49
47
 
@@ -4,8 +4,11 @@ if defined?(Rails::Railtie)
4
4
  module Rails #:nodoc:
5
5
  module Mongoid #:nodoc:
6
6
  class Railtie < Rails::Railtie
7
- config.generators.orm :mongoid, :migration => true
8
-
7
+ if config.respond_to?(:app_generators)
8
+ config.app_generators.orm :mongoid, :migration => true
9
+ else
10
+ config.generators.orm :mongoid, :migration => true
11
+ end
9
12
  rake_tasks do
10
13
  load "mongoid_rails_migrations/mongoid_ext/railties/database.rake"
11
14
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'mongoid_rails_migrations'
4
- s.version = '0.0.12'
4
+ s.version = '0.0.13'
5
5
  s.summary = 'Data migrations for Mongoid in Active Record style, minus column input.'
6
6
  s.description = 'Migrations for the migrator.'
7
7
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mongoid_rails_migrations
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.12
5
+ version: 0.0.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alan Da Costa