mongoid_rails_migrations 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -4
- data/lib/mongoid_rails_migrations/mongoid_ext/railties/database.rake +1 -1
- data/mongoid_rails_migrations.gemspec +3 -3
- data/test/config.rb +4 -4
- data/test/helper.rb +1 -1
- metadata +11 -22
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# Use `bundle exec rake` in order to run the specs using the bundle
|
3
3
|
source :rubygems
|
4
4
|
|
5
|
-
gem "rails", "
|
6
|
-
gem "railties", "
|
7
|
-
gem "activesupport", "
|
8
|
-
gem "mongoid", "
|
5
|
+
gem "rails", "~> 3.0.0"
|
6
|
+
gem "railties", "~> 3.0.0"
|
7
|
+
gem "activesupport", "~> 3.0.0"
|
8
|
+
gem "mongoid", "~> 2.0.0.beta.17"
|
@@ -6,7 +6,7 @@ namespace :db do
|
|
6
6
|
|
7
7
|
desc 'Load the seed data from db/seeds.rb'
|
8
8
|
task :seed => :environment do
|
9
|
-
seed_file = File.join(Rails.root, 'db', 'seeds.rb')
|
9
|
+
seed_file = File.join(Rails.application.root, 'db', 'seeds.rb')
|
10
10
|
load(seed_file) if File.exist?(seed_file)
|
11
11
|
end
|
12
12
|
|
@@ -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.
|
4
|
+
s.version = '0.0.7'
|
5
5
|
s.summary = 'Data migrations for Mongoid in Active Record style, minus column input.'
|
6
6
|
s.description = 'Sometimes you just need to migrate data.'
|
7
7
|
|
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.test_files = Dir['test/**/*']
|
20
20
|
s.has_rdoc = false
|
21
21
|
|
22
|
-
rails_version = '
|
22
|
+
rails_version = '~> 3.0.0'
|
23
23
|
|
24
24
|
s.add_dependency('bundler', '>= 0.9.19')
|
25
|
-
s.add_dependency('mongoid', '
|
25
|
+
s.add_dependency('mongoid', '~> 2.0.0.beta.17')
|
26
26
|
s.add_dependency('rails', rails_version)
|
27
27
|
s.add_dependency('railties', rails_version)
|
28
28
|
s.add_dependency('activesupport', rails_version)
|
data/test/config.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require File.dirname(__FILE__)
|
2
|
-
require File.dirname(__FILE__)
|
1
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'mongoid_rails_migrations')
|
2
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'rails', 'generators', 'mongoid', 'mongoid_generator')
|
3
3
|
|
4
4
|
Mongoid.configure do |config|
|
5
5
|
name = "mongoid_test"
|
@@ -8,6 +8,6 @@ Mongoid.configure do |config|
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# require all models
|
11
|
-
Dir[File.dirname(__FILE__)
|
11
|
+
Dir[ File.join(File.dirname(__FILE__), 'models', '*.rb') ].each {|file| require file }
|
12
12
|
|
13
|
-
MIGRATIONS_ROOT = File.dirname(__FILE__)
|
13
|
+
MIGRATIONS_ROOT = File.join(File.dirname(__FILE__), 'migrations')
|
data/test/helper.rb
CHANGED
@@ -27,7 +27,7 @@ module TestMongoidRailsMigrations
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# TestMongoidRailsMigrations::Application.initialize!
|
30
|
-
|
30
|
+
TestMongoidRailsMigrations::Application.load_tasks
|
31
31
|
|
32
32
|
# test overrides (dummy path); Rails is really looking for the app environment.rb
|
33
33
|
Rails.configuration.paths.config.environment = 'test/config.rb'
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_rails_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 7
|
9
|
+
version: 0.0.7
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Alan Da Costa
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 29
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
- 9
|
@@ -40,16 +38,15 @@ dependencies:
|
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
|
-
- -
|
41
|
+
- - ~>
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: -1573527656
|
46
43
|
segments:
|
47
44
|
- 2
|
48
45
|
- 0
|
49
46
|
- 0
|
50
47
|
- beta
|
51
|
-
-
|
52
|
-
version: 2.0.0.beta.
|
48
|
+
- 17
|
49
|
+
version: 2.0.0.beta.17
|
53
50
|
type: :runtime
|
54
51
|
version_requirements: *id002
|
55
52
|
- !ruby/object:Gem::Dependency
|
@@ -58,15 +55,13 @@ dependencies:
|
|
58
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
56
|
none: false
|
60
57
|
requirements:
|
61
|
-
- -
|
58
|
+
- - ~>
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
hash: 1903735696
|
64
60
|
segments:
|
65
61
|
- 3
|
66
62
|
- 0
|
67
63
|
- 0
|
68
|
-
|
69
|
-
version: 3.0.0.beta3
|
64
|
+
version: 3.0.0
|
70
65
|
type: :runtime
|
71
66
|
version_requirements: *id003
|
72
67
|
- !ruby/object:Gem::Dependency
|
@@ -75,15 +70,13 @@ dependencies:
|
|
75
70
|
requirement: &id004 !ruby/object:Gem::Requirement
|
76
71
|
none: false
|
77
72
|
requirements:
|
78
|
-
- -
|
73
|
+
- - ~>
|
79
74
|
- !ruby/object:Gem::Version
|
80
|
-
hash: 1903735696
|
81
75
|
segments:
|
82
76
|
- 3
|
83
77
|
- 0
|
84
78
|
- 0
|
85
|
-
|
86
|
-
version: 3.0.0.beta3
|
79
|
+
version: 3.0.0
|
87
80
|
type: :runtime
|
88
81
|
version_requirements: *id004
|
89
82
|
- !ruby/object:Gem::Dependency
|
@@ -92,15 +85,13 @@ dependencies:
|
|
92
85
|
requirement: &id005 !ruby/object:Gem::Requirement
|
93
86
|
none: false
|
94
87
|
requirements:
|
95
|
-
- -
|
88
|
+
- - ~>
|
96
89
|
- !ruby/object:Gem::Version
|
97
|
-
hash: 1903735696
|
98
90
|
segments:
|
99
91
|
- 3
|
100
92
|
- 0
|
101
93
|
- 0
|
102
|
-
|
103
|
-
version: 3.0.0.beta3
|
94
|
+
version: 3.0.0
|
104
95
|
type: :runtime
|
105
96
|
version_requirements: *id005
|
106
97
|
description: Sometimes you just need to migrate data.
|
@@ -150,7 +141,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
141
|
requirements:
|
151
142
|
- - ">="
|
152
143
|
- !ruby/object:Gem::Version
|
153
|
-
hash: 59
|
154
144
|
segments:
|
155
145
|
- 1
|
156
146
|
- 8
|
@@ -161,7 +151,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
151
|
requirements:
|
162
152
|
- - ">="
|
163
153
|
- !ruby/object:Gem::Version
|
164
|
-
hash: 23
|
165
154
|
segments:
|
166
155
|
- 1
|
167
156
|
- 3
|