mongoid_rails_migrations 0.0.2 → 0.0.3
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.
- data/Gemfile +4 -5
- data/README.rdoc +26 -3
- data/mongoid_rails_migrations.gemspec +2 -2
- metadata +29 -4
data/Gemfile
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# Use `bundle exec rake` in order to run the specs using the bundle
|
3
3
|
source "http://gemcutter.org"
|
4
4
|
|
5
|
-
gem "rails", "3.0.0.beta3"
|
6
|
-
gem "railties", "3.0.0.beta3"
|
7
|
-
gem "activesupport", "3.0.0.beta3"
|
8
|
-
gem "mongoid", "2.0.0.beta4"
|
9
|
-
gem "bson_ext", '0.20.1' # this must be same version as mongo gem
|
5
|
+
gem "rails", ">=3.0.0.beta3"
|
6
|
+
gem "railties", ">=3.0.0.beta3"
|
7
|
+
gem "activesupport", ">=3.0.0.beta3"
|
8
|
+
gem "mongoid", ">=2.0.0.beta4"
|
data/README.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
== SYNOPSIS
|
2
|
-
* Data migrations for Mongoid
|
2
|
+
* Data migrations for Mongoid.
|
3
3
|
|
4
4
|
== MIGRATE WHEN ...
|
5
5
|
* You need to rearrange or split data
|
@@ -29,5 +29,28 @@
|
|
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.
|
33
|
-
* Only tested with ruby 1.9.1
|
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
|
+
* Only tested with ruby 1.9.1
|
34
|
+
|
35
|
+
== CREDITS TO
|
36
|
+
* rails
|
37
|
+
* mongoid
|
38
|
+
|
39
|
+
Much of this gem simply modifies existing code from both projects.
|
40
|
+
With that out of the way, on to the license.
|
41
|
+
|
42
|
+
== LICENSE
|
43
|
+
|
44
|
+
Copyright © 2010: Alan Da Costa
|
45
|
+
|
46
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'),
|
47
|
+
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
|
48
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
|
49
|
+
the following conditions:
|
50
|
+
|
51
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
52
|
+
|
53
|
+
The software is provided 'as is', without warranty of any kind, express or implied, including but not limited to the warranties of
|
54
|
+
merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any
|
55
|
+
claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the
|
56
|
+
software or the use or other dealings in the software.
|
@@ -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.3'
|
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
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
rails_version = '>= 3.0.0.beta3'
|
23
23
|
|
24
24
|
s.add_dependency('bundler', '>= 0.9.19')
|
25
|
-
s.add_dependency('mongoid', '2.0.0.beta4')
|
25
|
+
s.add_dependency('mongoid', '>=2.0.0.beta4')
|
26
26
|
s.add_dependency('rails', rails_version)
|
27
27
|
s.add_dependency('railties', rails_version)
|
28
28
|
s.add_dependency('activesupport', rails_version)
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_rails_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Alan Da Costa
|
@@ -21,9 +22,11 @@ dependencies:
|
|
21
22
|
name: bundler
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 29
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
- 9
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: mongoid
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
|
-
- - "
|
43
|
+
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 725565327
|
41
46
|
segments:
|
42
47
|
- 2
|
43
48
|
- 0
|
@@ -50,9 +55,11 @@ dependencies:
|
|
50
55
|
name: rails
|
51
56
|
prerelease: false
|
52
57
|
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
53
59
|
requirements:
|
54
60
|
- - ">="
|
55
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 1725185761
|
56
63
|
segments:
|
57
64
|
- 3
|
58
65
|
- 0
|
@@ -65,9 +72,11 @@ dependencies:
|
|
65
72
|
name: railties
|
66
73
|
prerelease: false
|
67
74
|
requirement: &id004 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
68
76
|
requirements:
|
69
77
|
- - ">="
|
70
78
|
- !ruby/object:Gem::Version
|
79
|
+
hash: 1725185761
|
71
80
|
segments:
|
72
81
|
- 3
|
73
82
|
- 0
|
@@ -80,9 +89,11 @@ dependencies:
|
|
80
89
|
name: activesupport
|
81
90
|
prerelease: false
|
82
91
|
requirement: &id005 !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
83
93
|
requirements:
|
84
94
|
- - ">="
|
85
95
|
- !ruby/object:Gem::Version
|
96
|
+
hash: 1725185761
|
86
97
|
segments:
|
87
98
|
- 3
|
88
99
|
- 0
|
@@ -114,6 +125,16 @@ files:
|
|
114
125
|
- lib/rails/generators/mongoid/migration/migration_generator.rb
|
115
126
|
- lib/rails/generators/mongoid/migration/templates/migration.rb
|
116
127
|
- lib/rails/generators/mongoid/mongoid_generator.rb
|
128
|
+
- test/config.rb
|
129
|
+
- test/helper.rb
|
130
|
+
- test/migration_test.rb
|
131
|
+
- test/migrations/duplicate/names/20100513073457_add_duplicate_survey_schema.rb
|
132
|
+
- test/migrations/duplicate/names/20100513073724_add_duplicate_survey_schema.rb
|
133
|
+
- test/migrations/duplicate/versions/20100513073457_add_another_duplicate_survey_schema.rb
|
134
|
+
- test/migrations/duplicate/versions/20100513073457_add_duplicate_survey_schema.rb
|
135
|
+
- test/migrations/valid/20100513054656_add_baseline_survey_schema.rb
|
136
|
+
- test/migrations/valid/20100513063902_add_improvement_plan_survey_schema.rb
|
137
|
+
- test/models/survey_schema.rb
|
117
138
|
has_rdoc: true
|
118
139
|
homepage: http://github.com/adacosta/mongoid_rails_migrations
|
119
140
|
licenses: []
|
@@ -124,18 +145,22 @@ rdoc_options: []
|
|
124
145
|
require_paths:
|
125
146
|
- lib
|
126
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
127
149
|
requirements:
|
128
150
|
- - ">="
|
129
151
|
- !ruby/object:Gem::Version
|
152
|
+
hash: 59
|
130
153
|
segments:
|
131
154
|
- 1
|
132
155
|
- 8
|
133
156
|
- 6
|
134
157
|
version: 1.8.6
|
135
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
none: false
|
136
160
|
requirements:
|
137
161
|
- - ">="
|
138
162
|
- !ruby/object:Gem::Version
|
163
|
+
hash: 23
|
139
164
|
segments:
|
140
165
|
- 1
|
141
166
|
- 3
|
@@ -144,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
169
|
requirements: []
|
145
170
|
|
146
171
|
rubyforge_project:
|
147
|
-
rubygems_version: 1.3.
|
172
|
+
rubygems_version: 1.3.7
|
148
173
|
signing_key:
|
149
174
|
specification_version: 3
|
150
175
|
summary: Data migrations for Mongoid in Active Record style, minus column input.
|