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.
@@ -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
- # Specify your gem's dependencies in gem_test.gemspec
4
- gemspec :development_group => :development_mongoid_rails_migrations
5
- gemspec :test_group => :test_mongoid_rails_migrations
6
- gemspec :name => 'mongoid_rails_migrations'
4
+ group :test do
5
+ gem 'minitest'
6
+ gem 'pry'
7
+ gem 'rake'
8
+ end
@@ -1,104 +1,137 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_rails_migrations (1.0.1)
5
- activesupport (>= 3.2.0)
4
+ mongoid_rails_migrations (1.1.0)
5
+ activesupport (>= 4.2.0)
6
6
  bundler (>= 1.0.0)
7
- rails (>= 3.2.0)
8
- railties (>= 3.2.0)
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 (3.2.8)
14
- actionpack (= 3.2.8)
15
- mail (~> 2.4.4)
16
- actionpack (3.2.8)
17
- activemodel (= 3.2.8)
18
- activesupport (= 3.2.8)
19
- builder (~> 3.0.0)
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
- journey (~> 1.0.4)
22
- rack (~> 1.4.0)
23
- rack-cache (~> 1.2)
24
- rack-test (~> 0.6.1)
25
- sprockets (~> 2.1.3)
26
- activemodel (3.2.8)
27
- activesupport (= 3.2.8)
28
- builder (~> 3.0.0)
29
- activerecord (3.2.8)
30
- activemodel (= 3.2.8)
31
- activesupport (= 3.2.8)
32
- arel (~> 3.0.2)
33
- tzinfo (~> 0.3.29)
34
- activeresource (3.2.8)
35
- activemodel (= 3.2.8)
36
- activesupport (= 3.2.8)
37
- activesupport (3.2.8)
38
- i18n (~> 0.6)
39
- multi_json (~> 1.0)
40
- arel (3.0.2)
41
- builder (3.0.0)
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
- hike (1.2.1)
44
- i18n (0.6.0)
45
- journey (1.0.4)
46
- json (1.7.7)
47
- mail (2.4.4)
48
- i18n (>= 0.4.0)
49
- mime-types (~> 1.16)
50
- treetop (~> 1.4.8)
51
- mime-types (1.21)
52
- mongoid (3.0.4)
53
- activemodel (~> 3.1)
54
- moped (~> 1.1)
55
- origin (~> 1.0)
56
- tzinfo (~> 0.3.22)
57
- moped (1.2.0)
58
- multi_json (1.3.6)
59
- origin (1.0.6)
60
- polyglot (0.3.3)
61
- rack (1.4.5)
62
- rack-cache (1.2)
63
- rack (>= 0.4)
64
- rack-ssl (1.3.3)
65
- rack
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 (3.2.8)
69
- actionmailer (= 3.2.8)
70
- actionpack (= 3.2.8)
71
- activerecord (= 3.2.8)
72
- activeresource (= 3.2.8)
73
- activesupport (= 3.2.8)
74
- bundler (~> 1.0)
75
- railties (= 3.2.8)
76
- railties (3.2.8)
77
- actionpack (= 3.2.8)
78
- activesupport (= 3.2.8)
79
- rack-ssl (~> 1.3.2)
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
- rdoc (~> 3.4)
82
- thor (>= 0.14.6, < 2.0)
83
- rake (10.0.3)
84
- rdoc (3.12.2)
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
- test-unit (2.5.1)
91
- thor (0.17.0)
92
- tilt (1.3.5)
93
- treetop (1.4.12)
94
- polyglot
95
- polyglot (>= 0.3.1)
96
- tzinfo (0.3.33)
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
- mongoid (>= 3.0.0)
134
+ minitest
103
135
  mongoid_rails_migrations!
104
- test-unit (>= 2.5.0)
136
+ pry
137
+ rake
@@ -1,6 +1,7 @@
1
1
  == RELEASE NOTES
2
- * For rails >= 3.2.0 and mongoid >= 3.0.0, use version 1.0.0
3
- * For rails >= 3.0.0 (but < 3.2.0) and mongoid >= 2.0.0, use version 0.0.14
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
- require File.dirname(__FILE__) + "/test/config"
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
- Config.module_eval do
19
- # newer mongoid style; >= 2.0.0.rc.1
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
@@ -1,3 +1,3 @@
1
1
  module MongoidRailsMigrations #:nodoc:
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  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{2013-03-14}
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 = '>= 3.2.0'
24
+ rails_version = '>= 4.2.0'
25
25
 
26
- s.add_dependency('bundler', '>= 1.0.0')
27
- s.add_dependency('rails', rails_version)
28
- s.add_dependency('railties', rails_version)
29
- s.add_dependency('activesupport', rails_version)
30
- s.add_development_dependency('mongoid', '>= 3.0.0')
31
- s.add_development_dependency('test-unit', '>= 2.5.0')
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
@@ -1,12 +1,11 @@
1
- $:.unshift(File.dirname(__FILE__)) unless
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(:development_mongoid_rails_migrations)
4
+ Bundler.require(:test)
6
5
 
6
+ require 'mongoid'
7
7
  require 'config'
8
- require 'test/unit'
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.1
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: 2013-03-14 00:00:00.000000000 Z
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: rails
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: 3.2.0
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: 3.2.0
40
+ version: 4.0.0
46
41
  - !ruby/object:Gem::Dependency
47
- name: railties
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: 3.2.0
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: 3.2.0
54
+ version: 4.2.0
62
55
  - !ruby/object:Gem::Dependency
63
- name: activesupport
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: 3.2.0
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: 3.2.0
68
+ version: 4.2.0
78
69
  - !ruby/object:Gem::Dependency
79
- name: mongoid
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: 3.0.0
86
- type: :development
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: 3.0.0
82
+ version: 4.2.0
94
83
  - !ruby/object:Gem::Dependency
95
- name: test-unit
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: 2.5.0
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: 2.5.0
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
- - mongoid_rails_migrations.gemspec
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: 1.8.24
149
+ rubygems_version: 2.2.2
164
150
  signing_key:
165
- specification_version: 3
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