mongoid_rails_migrations 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +6 -4
- data/Gemfile.lock +115 -82
- data/README.rdoc +6 -2
- data/Rakefile +4 -5
- data/lib/mongoid_rails_migrations/mongoid_ext/mongoid.rb +2 -4
- data/lib/mongoid_rails_migrations/version.rb +1 -1
- data/mongoid_rails_migrations.gemspec +9 -9
- data/test/helper.rb +7 -6
- metadata +39 -53
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cc240d64d9693691c9f524848a1c71be452a0e93
|
4
|
+
data.tar.gz: e9246baeb9bea0b58213b6d488bf503f31840277
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8e74c99e75a4b94ff48aa564b99249c91a7e71c28b1ab8c814a0ee675816ce505d750c1c9f20af18f7e71377902c97a9ab5581eebfaf4528301333e72d694326
|
7
|
+
data.tar.gz: 9b33ed0e64fa3c6d92d2aee5d287f353d673b28c5057c159fd97ea05892697d2644a058f225e4294cce8d1af483d7c571b390edfccea34760c67cbaa1016c0e4
|
data/Gemfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
+
gemspec :name => 'mongoid_rails_migrations'
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
group :test do
|
5
|
+
gem 'minitest'
|
6
|
+
gem 'pry'
|
7
|
+
gem 'rake'
|
8
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,104 +1,137 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mongoid_rails_migrations (1.0
|
5
|
-
activesupport (>=
|
4
|
+
mongoid_rails_migrations (1.1.0)
|
5
|
+
activesupport (>= 4.2.0)
|
6
6
|
bundler (>= 1.0.0)
|
7
|
-
|
8
|
-
|
7
|
+
mongoid (>= 4.0.0)
|
8
|
+
rails (>= 4.2.0)
|
9
|
+
railties (>= 4.2.0)
|
9
10
|
|
10
11
|
GEM
|
11
12
|
remote: http://rubygems.org/
|
12
13
|
specs:
|
13
|
-
actionmailer (
|
14
|
-
actionpack (=
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
actionmailer (4.2.0)
|
15
|
+
actionpack (= 4.2.0)
|
16
|
+
actionview (= 4.2.0)
|
17
|
+
activejob (= 4.2.0)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
20
|
+
actionpack (4.2.0)
|
21
|
+
actionview (= 4.2.0)
|
22
|
+
activesupport (= 4.2.0)
|
23
|
+
rack (~> 1.6.0)
|
24
|
+
rack-test (~> 0.6.2)
|
25
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
27
|
+
actionview (4.2.0)
|
28
|
+
activesupport (= 4.2.0)
|
29
|
+
builder (~> 3.1)
|
20
30
|
erubis (~> 2.7.0)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
activemodel (
|
27
|
-
activesupport (=
|
28
|
-
builder (~> 3.
|
29
|
-
activerecord (
|
30
|
-
activemodel (=
|
31
|
-
activesupport (=
|
32
|
-
arel (~>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
builder (3.
|
31
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
33
|
+
activejob (4.2.0)
|
34
|
+
activesupport (= 4.2.0)
|
35
|
+
globalid (>= 0.3.0)
|
36
|
+
activemodel (4.2.0)
|
37
|
+
activesupport (= 4.2.0)
|
38
|
+
builder (~> 3.1)
|
39
|
+
activerecord (4.2.0)
|
40
|
+
activemodel (= 4.2.0)
|
41
|
+
activesupport (= 4.2.0)
|
42
|
+
arel (~> 6.0)
|
43
|
+
activesupport (4.2.0)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
json (~> 1.7, >= 1.7.7)
|
46
|
+
minitest (~> 5.1)
|
47
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
48
|
+
tzinfo (~> 1.1)
|
49
|
+
arel (6.0.0)
|
50
|
+
bson (2.3.0)
|
51
|
+
builder (3.2.2)
|
52
|
+
coderay (1.1.0)
|
53
|
+
connection_pool (2.1.0)
|
42
54
|
erubis (2.7.0)
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
55
|
+
globalid (0.3.0)
|
56
|
+
activesupport (>= 4.1.0)
|
57
|
+
hike (1.2.3)
|
58
|
+
i18n (0.7.0)
|
59
|
+
json (1.8.1)
|
60
|
+
loofah (2.0.1)
|
61
|
+
nokogiri (>= 1.5.9)
|
62
|
+
mail (2.6.3)
|
63
|
+
mime-types (>= 1.16, < 3)
|
64
|
+
method_source (0.8.2)
|
65
|
+
mime-types (2.4.3)
|
66
|
+
mini_portile (0.6.2)
|
67
|
+
minitest (5.5.0)
|
68
|
+
mongoid (4.0.0)
|
69
|
+
activemodel (~> 4.0)
|
70
|
+
moped (~> 2.0.0)
|
71
|
+
origin (~> 2.1)
|
72
|
+
tzinfo (>= 0.3.37)
|
73
|
+
moped (2.0.2)
|
74
|
+
bson (~> 2.2)
|
75
|
+
connection_pool (~> 2.0)
|
76
|
+
optionable (~> 0.2.0)
|
77
|
+
multi_json (1.10.1)
|
78
|
+
nokogiri (1.6.5)
|
79
|
+
mini_portile (~> 0.6.0)
|
80
|
+
optionable (0.2.0)
|
81
|
+
origin (2.1.1)
|
82
|
+
pry (0.10.1)
|
83
|
+
coderay (~> 1.1.0)
|
84
|
+
method_source (~> 0.8.1)
|
85
|
+
slop (~> 3.4)
|
86
|
+
rack (1.6.0)
|
66
87
|
rack-test (0.6.2)
|
67
88
|
rack (>= 1.0)
|
68
|
-
rails (
|
69
|
-
actionmailer (=
|
70
|
-
actionpack (=
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
89
|
+
rails (4.2.0)
|
90
|
+
actionmailer (= 4.2.0)
|
91
|
+
actionpack (= 4.2.0)
|
92
|
+
actionview (= 4.2.0)
|
93
|
+
activejob (= 4.2.0)
|
94
|
+
activemodel (= 4.2.0)
|
95
|
+
activerecord (= 4.2.0)
|
96
|
+
activesupport (= 4.2.0)
|
97
|
+
bundler (>= 1.3.0, < 2.0)
|
98
|
+
railties (= 4.2.0)
|
99
|
+
sprockets-rails
|
100
|
+
rails-deprecated_sanitizer (1.0.3)
|
101
|
+
activesupport (>= 4.2.0.alpha)
|
102
|
+
rails-dom-testing (1.0.5)
|
103
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
104
|
+
nokogiri (~> 1.6.0)
|
105
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
106
|
+
rails-html-sanitizer (1.0.1)
|
107
|
+
loofah (~> 2.0)
|
108
|
+
railties (4.2.0)
|
109
|
+
actionpack (= 4.2.0)
|
110
|
+
activesupport (= 4.2.0)
|
80
111
|
rake (>= 0.8.7)
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
json (~> 1.4)
|
86
|
-
sprockets (2.1.3)
|
112
|
+
thor (>= 0.18.1, < 2.0)
|
113
|
+
rake (10.4.2)
|
114
|
+
slop (3.6.0)
|
115
|
+
sprockets (2.12.3)
|
87
116
|
hike (~> 1.2)
|
117
|
+
multi_json (~> 1.0)
|
88
118
|
rack (~> 1.0)
|
89
119
|
tilt (~> 1.1, != 1.3.0)
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
120
|
+
sprockets-rails (2.2.2)
|
121
|
+
actionpack (>= 3.0)
|
122
|
+
activesupport (>= 3.0)
|
123
|
+
sprockets (>= 2.8, < 4.0)
|
124
|
+
thor (0.19.1)
|
125
|
+
thread_safe (0.3.4)
|
126
|
+
tilt (1.4.1)
|
127
|
+
tzinfo (1.2.2)
|
128
|
+
thread_safe (~> 0.1)
|
97
129
|
|
98
130
|
PLATFORMS
|
99
131
|
ruby
|
100
132
|
|
101
133
|
DEPENDENCIES
|
102
|
-
|
134
|
+
minitest
|
103
135
|
mongoid_rails_migrations!
|
104
|
-
|
136
|
+
pry
|
137
|
+
rake
|
data/README.rdoc
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
== RELEASE NOTES
|
2
|
-
*
|
3
|
-
* For
|
2
|
+
* The most current release, 1.1.x, targets Mongoid >= 4.0.0 and Rails >= 4.2.0 .
|
3
|
+
* For Rails >= 3.2.0 and Mongoid >= 3.0.0, use version 1.0.0 .
|
4
|
+
* For Rails >= 3.0.0 (but < 3.2.0) and Mongoid >= 2.0.0, use version 0.0.14 .
|
4
5
|
|
5
6
|
== SYNOPSIS
|
6
7
|
* Data migrations for Mongoid.
|
@@ -27,6 +28,9 @@
|
|
27
28
|
* db:reseed (handled by mongoid)
|
28
29
|
* db:version
|
29
30
|
|
31
|
+
== TESTING
|
32
|
+
```rake test:mongoid:migrations```
|
33
|
+
|
30
34
|
== CREDITS TO
|
31
35
|
* rails
|
32
36
|
* mongoid
|
data/Rakefile
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__))
|
2
|
-
namespace :test do
|
3
|
-
require 'bundler/setup'
|
4
|
-
Bundler.require(:development_mongoid_rails_migrations)
|
5
2
|
|
3
|
+
task :default => ['test:mongoid:migrations']
|
4
|
+
|
5
|
+
namespace :test do
|
6
6
|
namespace :mongoid do
|
7
7
|
desc "Test mongoid rails migrations"
|
8
8
|
task :migrations do
|
9
|
-
|
10
|
-
require 'test/migration_test'
|
9
|
+
load 'test/migration_test.rb'
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
@@ -15,9 +15,7 @@ module Mongoid
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
else # module
|
18
|
-
|
19
|
-
|
20
|
-
option :timestamped_migrations, :default => true
|
21
|
-
end
|
18
|
+
# newer mongoid style; >= 2.0.0.rc.1
|
19
|
+
Config.option :timestamped_migrations, :default => true
|
22
20
|
end
|
23
21
|
end
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.author = 'Alan Da Costa'
|
15
15
|
s.email = 'alandacosta@gmail.com'
|
16
|
-
s.date = %q{
|
16
|
+
s.date = %q{2015-01-01}
|
17
17
|
s.homepage = 'http://github.com/adacosta/mongoid_rails_migrations'
|
18
18
|
|
19
19
|
s.require_paths = ['lib']
|
@@ -21,12 +21,12 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.test_files = Dir['test/**/*']
|
22
22
|
s.has_rdoc = false
|
23
23
|
|
24
|
-
rails_version = '>=
|
24
|
+
rails_version = '>= 4.2.0'
|
25
25
|
|
26
|
-
s.
|
27
|
-
s.
|
28
|
-
s.
|
29
|
-
s.
|
30
|
-
s.
|
31
|
-
s.add_development_dependency
|
32
|
-
end
|
26
|
+
s.add_runtime_dependency('bundler', '>= 1.0.0')
|
27
|
+
s.add_runtime_dependency('mongoid', '>= 4.0.0')
|
28
|
+
s.add_runtime_dependency('rails', rails_version)
|
29
|
+
s.add_runtime_dependency('railties', rails_version)
|
30
|
+
s.add_runtime_dependency('activesupport', rails_version)
|
31
|
+
s.add_development_dependency 'rake'
|
32
|
+
end
|
data/test/helper.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
$:.unshift(File.dirname(__FILE__))
|
2
|
-
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
1
|
+
$:.unshift(File.dirname(__FILE__))
|
3
2
|
|
4
3
|
require 'bundler/setup'
|
5
|
-
Bundler.require(:
|
4
|
+
Bundler.require(:test)
|
6
5
|
|
6
|
+
require 'mongoid'
|
7
7
|
require 'config'
|
8
|
-
require '
|
9
|
-
|
8
|
+
require 'minitest/autorun'
|
10
9
|
require 'rake'
|
11
10
|
require 'rake/testtask'
|
12
11
|
require 'rdoc/task'
|
@@ -25,9 +24,11 @@ require 'rdoc/task'
|
|
25
24
|
end
|
26
25
|
end
|
27
26
|
|
27
|
+
|
28
|
+
ActiveSupport.test_order = :sorted if ActiveSupport.respond_to?(:test_order)
|
29
|
+
|
28
30
|
module TestMongoidRailsMigrations
|
29
31
|
class Application < Rails::Application; end
|
30
32
|
end
|
31
33
|
|
32
|
-
# TestMongoidRailsMigrations::Application.initialize!
|
33
34
|
TestMongoidRailsMigrations::Application.load_tasks
|
metadata
CHANGED
@@ -1,134 +1,121 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_rails_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alan Da Costa
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-01-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.0.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.0.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: mongoid
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: 4.0.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: 4.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: rails
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 4.2.0
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: 4.2.0
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
56
|
+
name: railties
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
61
|
+
version: 4.2.0
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
68
|
+
version: 4.2.0
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
70
|
+
name: activesupport
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
86
|
-
type: :
|
75
|
+
version: 4.2.0
|
76
|
+
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
82
|
+
version: 4.2.0
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
84
|
+
name: rake
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
89
|
+
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
96
|
+
version: '0'
|
110
97
|
description: Migrations for the migrator.
|
111
98
|
email: alandacosta@gmail.com
|
112
99
|
executables: []
|
113
100
|
extensions: []
|
114
101
|
extra_rdoc_files: []
|
115
102
|
files:
|
116
|
-
- .gitignore
|
103
|
+
- ".gitignore"
|
117
104
|
- Gemfile
|
118
105
|
- Gemfile.lock
|
119
|
-
- Rakefile
|
120
106
|
- README.rdoc
|
121
|
-
-
|
107
|
+
- Rakefile
|
108
|
+
- lib/mongoid_rails_migrations.rb
|
122
109
|
- lib/mongoid_rails_migrations/active_record_ext/migrations.rb
|
123
110
|
- lib/mongoid_rails_migrations/models/data_migration.rb
|
124
111
|
- lib/mongoid_rails_migrations/mongoid_ext/mongoid.rb
|
125
112
|
- lib/mongoid_rails_migrations/mongoid_ext/railtie.rb
|
126
113
|
- lib/mongoid_rails_migrations/mongoid_ext/railties/database.rake
|
127
114
|
- lib/mongoid_rails_migrations/version.rb
|
128
|
-
- lib/mongoid_rails_migrations.rb
|
129
115
|
- lib/rails/generators/mongoid/migration/migration_generator.rb
|
130
116
|
- lib/rails/generators/mongoid/migration/templates/migration.rb
|
131
117
|
- lib/rails/generators/mongoid/mongoid_generator.rb
|
118
|
+
- mongoid_rails_migrations.gemspec
|
132
119
|
- test/config.rb
|
133
120
|
- test/helper.rb
|
134
121
|
- test/migration_test.rb
|
@@ -142,27 +129,26 @@ files:
|
|
142
129
|
homepage: http://github.com/adacosta/mongoid_rails_migrations
|
143
130
|
licenses:
|
144
131
|
- MIT
|
132
|
+
metadata: {}
|
145
133
|
post_install_message:
|
146
134
|
rdoc_options: []
|
147
135
|
require_paths:
|
148
136
|
- lib
|
149
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
138
|
requirements:
|
152
|
-
- -
|
139
|
+
- - ">="
|
153
140
|
- !ruby/object:Gem::Version
|
154
141
|
version: 1.8.6
|
155
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
-
none: false
|
157
143
|
requirements:
|
158
|
-
- -
|
144
|
+
- - ">="
|
159
145
|
- !ruby/object:Gem::Version
|
160
146
|
version: 1.3.6
|
161
147
|
requirements: []
|
162
148
|
rubyforge_project:
|
163
|
-
rubygems_version:
|
149
|
+
rubygems_version: 2.2.2
|
164
150
|
signing_key:
|
165
|
-
specification_version:
|
151
|
+
specification_version: 4
|
166
152
|
summary: Data migrations for Mongoid in Active Record style, minus column input.
|
167
153
|
test_files:
|
168
154
|
- test/config.rb
|