mongoid_rails_migrations 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +84 -0
- data/README.rdoc +2 -3
- data/lib/mongoid_rails_migrations/mongoid_ext/railties/database.rake +25 -14
- data/mongoid_rails_migrations.gemspec +3 -3
- metadata +5 -4
data/Gemfile.lock
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
abstract (1.0.0)
|
5
|
+
actionmailer (3.0.1)
|
6
|
+
actionpack (= 3.0.1)
|
7
|
+
mail (~> 2.2.5)
|
8
|
+
actionpack (3.0.1)
|
9
|
+
activemodel (= 3.0.1)
|
10
|
+
activesupport (= 3.0.1)
|
11
|
+
builder (~> 2.1.2)
|
12
|
+
erubis (~> 2.6.6)
|
13
|
+
i18n (~> 0.4.1)
|
14
|
+
rack (~> 1.2.1)
|
15
|
+
rack-mount (~> 0.6.12)
|
16
|
+
rack-test (~> 0.5.4)
|
17
|
+
tzinfo (~> 0.3.23)
|
18
|
+
activemodel (3.0.1)
|
19
|
+
activesupport (= 3.0.1)
|
20
|
+
builder (~> 2.1.2)
|
21
|
+
i18n (~> 0.4.1)
|
22
|
+
activerecord (3.0.1)
|
23
|
+
activemodel (= 3.0.1)
|
24
|
+
activesupport (= 3.0.1)
|
25
|
+
arel (~> 1.0.0)
|
26
|
+
tzinfo (~> 0.3.23)
|
27
|
+
activeresource (3.0.1)
|
28
|
+
activemodel (= 3.0.1)
|
29
|
+
activesupport (= 3.0.1)
|
30
|
+
activesupport (3.0.1)
|
31
|
+
arel (1.0.1)
|
32
|
+
activesupport (~> 3.0.0)
|
33
|
+
bson (1.1.1)
|
34
|
+
builder (2.1.2)
|
35
|
+
erubis (2.6.6)
|
36
|
+
abstract (>= 1.0.0)
|
37
|
+
i18n (0.4.2)
|
38
|
+
mail (2.2.9)
|
39
|
+
activesupport (>= 2.3.6)
|
40
|
+
i18n (~> 0.4.1)
|
41
|
+
mime-types (~> 1.16)
|
42
|
+
treetop (~> 1.4.8)
|
43
|
+
mime-types (1.16)
|
44
|
+
mongo (1.0.9)
|
45
|
+
bson (>= 1.0.5)
|
46
|
+
mongoid (2.0.0.beta.19)
|
47
|
+
activemodel (~> 3.0)
|
48
|
+
mongo (= 1.0.9)
|
49
|
+
tzinfo (~> 0.3.22)
|
50
|
+
will_paginate (~> 3.0.pre)
|
51
|
+
polyglot (0.3.1)
|
52
|
+
rack (1.2.1)
|
53
|
+
rack-mount (0.6.13)
|
54
|
+
rack (>= 1.0.0)
|
55
|
+
rack-test (0.5.6)
|
56
|
+
rack (>= 1.0)
|
57
|
+
rails (3.0.1)
|
58
|
+
actionmailer (= 3.0.1)
|
59
|
+
actionpack (= 3.0.1)
|
60
|
+
activerecord (= 3.0.1)
|
61
|
+
activeresource (= 3.0.1)
|
62
|
+
activesupport (= 3.0.1)
|
63
|
+
bundler (~> 1.0.0)
|
64
|
+
railties (= 3.0.1)
|
65
|
+
railties (3.0.1)
|
66
|
+
actionpack (= 3.0.1)
|
67
|
+
activesupport (= 3.0.1)
|
68
|
+
rake (>= 0.8.4)
|
69
|
+
thor (~> 0.14.0)
|
70
|
+
rake (0.8.7)
|
71
|
+
thor (0.14.3)
|
72
|
+
treetop (1.4.8)
|
73
|
+
polyglot (>= 0.3.1)
|
74
|
+
tzinfo (0.3.23)
|
75
|
+
will_paginate (3.0.pre2)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
activesupport (~> 3.0.0)
|
82
|
+
mongoid (~> 2.0.0.beta.17)
|
83
|
+
rails (~> 3.0.0)
|
84
|
+
railties (~> 3.0.0)
|
data/README.rdoc
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
* You have model instances which you leverage as schema data
|
7
7
|
|
8
8
|
== REQUIREMENTS
|
9
|
-
* rails 3.0.0
|
10
|
-
* mongoid
|
9
|
+
* rails ~> 3.0.0
|
10
|
+
* mongoid ~> 2.0.0.beta.17
|
11
11
|
|
12
12
|
== INSTALL
|
13
13
|
* gem install mongoid_rails_migrations
|
@@ -29,7 +29,6 @@
|
|
29
29
|
* db:version (added to glean current migration)
|
30
30
|
|
31
31
|
== NOTES
|
32
|
-
* Currently, only timestamp generated migrations have been tested, but you should be able to toggle the value of Mongoid.timestamped_migrations to auto generate migrations by type (timestamp vs. auto incrementing).
|
33
32
|
* Only tested with ruby 1.9.1
|
34
33
|
|
35
34
|
== CREDITS TO
|
@@ -1,25 +1,36 @@
|
|
1
1
|
namespace :db do
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
unless Rake::Task.task_defined?("db:drop")
|
3
|
+
desc 'Drops all the collections for the database for the current Rails.env'
|
4
|
+
task :drop => :environment do
|
5
|
+
Mongoid.master.collections.each {|col| col.drop_indexes && col.drop unless ['system.indexes', 'system.users'].include?(col.name) }
|
6
|
+
end
|
5
7
|
end
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
unless Rake::Task.task_defined?("db:seed")
|
10
|
+
# if another ORM has defined db:seed, don't run it twice.
|
11
|
+
desc 'Load the seed data from db/seeds.rb'
|
12
|
+
task :seed => :environment do
|
13
|
+
seed_file = File.join(Rails.application.root, 'db', 'seeds.rb')
|
14
|
+
load(seed_file) if File.exist?(seed_file)
|
15
|
+
end
|
11
16
|
end
|
12
17
|
|
13
|
-
|
14
|
-
|
18
|
+
unless Rake::Task.task_defined?("db:setup")
|
19
|
+
desc 'Create the database, and initialize with the seed data'
|
20
|
+
task :setup => [ 'db:create', 'db:seed' ]
|
21
|
+
end
|
15
22
|
|
16
|
-
|
17
|
-
|
23
|
+
unless Rake::Task.task_defined?("db:reseed")
|
24
|
+
desc 'Delete data and seed'
|
25
|
+
task :reseed => [ 'db:drop', 'db:seed' ]
|
26
|
+
end
|
18
27
|
|
19
|
-
|
20
|
-
|
28
|
+
unless Rake::Task.task_defined?("db:create")
|
29
|
+
task :create => :environment do
|
30
|
+
# noop
|
31
|
+
end
|
21
32
|
end
|
22
|
-
|
33
|
+
|
23
34
|
desc 'Current database version'
|
24
35
|
task :version => :environment do
|
25
36
|
puts Mongoid::Migrator.current_version.to_s
|
@@ -1,9 +1,9 @@
|
|
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.
|
4
|
+
s.version = '0.0.8'
|
5
5
|
s.summary = 'Data migrations for Mongoid in Active Record style, minus column input.'
|
6
|
-
s.description = '
|
6
|
+
s.description = 'Migrations for the migrator.'
|
7
7
|
|
8
8
|
# only tested with 1.9.1, but let's go for it
|
9
9
|
s.required_ruby_version = '>= 1.8.6'
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.homepage = 'http://github.com/adacosta/mongoid_rails_migrations'
|
16
16
|
|
17
17
|
s.require_paths = ["lib"]
|
18
|
-
s.files = Dir['.gitignore', 'Gemfile', 'Rakefile', 'README.rdoc', 'mongoid_rails_migrations.gemspec', 'VERSION', 'lib/**/*']
|
18
|
+
s.files = Dir['.gitignore', 'Gemfile', 'Gemfile.lock', 'Rakefile', 'README.rdoc', 'mongoid_rails_migrations.gemspec', 'VERSION', 'lib/**/*']
|
19
19
|
s.test_files = Dir['test/**/*']
|
20
20
|
s.has_rdoc = false
|
21
21
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alan Da Costa
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
version: 3.0.0
|
95
95
|
type: :runtime
|
96
96
|
version_requirements: *id005
|
97
|
-
description:
|
97
|
+
description: Migrations for the migrator.
|
98
98
|
email: alandacosta@gmail.com.com
|
99
99
|
executables: []
|
100
100
|
|
@@ -105,6 +105,7 @@ extra_rdoc_files: []
|
|
105
105
|
files:
|
106
106
|
- .gitignore
|
107
107
|
- Gemfile
|
108
|
+
- Gemfile.lock
|
108
109
|
- Rakefile
|
109
110
|
- README.rdoc
|
110
111
|
- mongoid_rails_migrations.gemspec
|
@@ -127,7 +128,7 @@ files:
|
|
127
128
|
- test/migrations/valid/20100513054656_add_baseline_survey_schema.rb
|
128
129
|
- test/migrations/valid/20100513063902_add_improvement_plan_survey_schema.rb
|
129
130
|
- test/models/survey_schema.rb
|
130
|
-
has_rdoc:
|
131
|
+
has_rdoc: false
|
131
132
|
homepage: http://github.com/adacosta/mongoid_rails_migrations
|
132
133
|
licenses: []
|
133
134
|
|