data_migrate 11.0.0 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +14 -1
  3. data/README.md +10 -12
  4. data/lib/data_migrate/data_migrator.rb +1 -1
  5. data/lib/data_migrate/data_schema.rb +6 -6
  6. data/lib/data_migrate/database_tasks.rb +52 -20
  7. data/lib/data_migrate/rails_helper.rb +1 -0
  8. data/lib/data_migrate/tasks/data_migrate_tasks.rb +8 -6
  9. data/lib/data_migrate/version.rb +1 -1
  10. data/lib/generators/data_migration/data_migration_generator.rb +2 -1
  11. metadata +2 -49
  12. data/.github/workflows/build.yml +0 -35
  13. data/.github/workflows/gempush.yml +0 -28
  14. data/.gitignore +0 -12
  15. data/.hound.yml +0 -4
  16. data/.overcommit.yml +0 -21
  17. data/.rbenv-gemsets +0 -2
  18. data/.rspec +0 -3
  19. data/.rubocop.yml +0 -2
  20. data/.ruby-style.yml +0 -1061
  21. data/Appraisals +0 -16
  22. data/Gemfile +0 -3
  23. data/Gemfile.lock +0 -192
  24. data/Rakefile +0 -2
  25. data/data_migrate.gemspec +0 -41
  26. data/gemfiles/rails_6.1.gemfile +0 -7
  27. data/gemfiles/rails_6.1.gemfile.lock +0 -237
  28. data/gemfiles/rails_7.0.gemfile +0 -7
  29. data/gemfiles/rails_7.0.gemfile.lock +0 -238
  30. data/gemfiles/rails_7.1.gemfile +0 -7
  31. data/gemfiles/rails_7.1.gemfile.lock +0 -270
  32. data/gemfiles/rails_7.2.gemfile +0 -7
  33. data/gemfiles/rails_7.2.gemfile.lock +0 -269
  34. data/lib/data_migrate/test.rb +0 -14
  35. data/screenshot.png +0 -0
  36. data/spec/data_migrate/config_spec.rb +0 -69
  37. data/spec/data_migrate/data_migrator_spec.rb +0 -83
  38. data/spec/data_migrate/data_schema_migration_spec.rb +0 -33
  39. data/spec/data_migrate/data_spec.rb +0 -74
  40. data/spec/data_migrate/database_tasks_spec.rb +0 -105
  41. data/spec/data_migrate/migration.rb +0 -17
  42. data/spec/data_migrate/migration_context_spec.rb +0 -117
  43. data/spec/data_migrate/schema_dumper_spec.rb +0 -36
  44. data/spec/data_migrate/schema_migration_spec.rb +0 -104
  45. data/spec/data_migrate/status_service_spec.rb +0 -76
  46. data/spec/data_migrate/tasks/data_migrate_tasks_spec.rb +0 -129
  47. data/spec/db/data/20091231235959_some_name.rb +0 -9
  48. data/spec/db/data/20171231235959_super_update.rb +0 -9
  49. data/spec/db/data/20181128000207_excluded_file.rb.other_ext +0 -1
  50. data/spec/db/data/partial_schema/data_schema.rb +0 -1
  51. data/spec/db/data/partial_schema/test_data_schema.rb +0 -1
  52. data/spec/db/data/schema/data_schema.rb +0 -1
  53. data/spec/db/data/schema/test_data_schema.rb +0 -1
  54. data/spec/db/migrate/20131111111111_late_migration.rb +0 -9
  55. data/spec/db/migrate/20202020202011_db_migration.rb +0 -9
  56. data/spec/generators/data_migration/data_migration_generator_spec.rb +0 -101
  57. data/spec/spec_helper.rb +0 -28
  58. data/tasks/.gitkeep +0 -0
data/Appraisals DELETED
@@ -1,16 +0,0 @@
1
- appraise 'rails-6.1' do
2
- gem 'rails', '~> 6.1.0'
3
- end
4
-
5
- appraise 'rails-7.0' do
6
- gem 'rails', '~> 7.0.0'
7
- end
8
-
9
- appraise 'rails-7.1' do
10
- gem 'rails', '7.1.0'
11
- end
12
-
13
-
14
- appraise 'rails-7.2' do
15
- gem 'rails', '7.2.0.beta1'
16
- end
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec
data/Gemfile.lock DELETED
@@ -1,192 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- data_migrate (11.0.0)
5
- activerecord (>= 6.1)
6
- railties (>= 6.1)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- actionpack (7.1.3.4)
12
- actionview (= 7.1.3.4)
13
- activesupport (= 7.1.3.4)
14
- nokogiri (>= 1.8.5)
15
- racc
16
- rack (>= 2.2.4)
17
- rack-session (>= 1.0.1)
18
- rack-test (>= 0.6.3)
19
- rails-dom-testing (~> 2.2)
20
- rails-html-sanitizer (~> 1.6)
21
- actionview (7.1.3.4)
22
- activesupport (= 7.1.3.4)
23
- builder (~> 3.1)
24
- erubi (~> 1.11)
25
- rails-dom-testing (~> 2.2)
26
- rails-html-sanitizer (~> 1.6)
27
- activemodel (7.1.3.4)
28
- activesupport (= 7.1.3.4)
29
- activerecord (7.1.3.4)
30
- activemodel (= 7.1.3.4)
31
- activesupport (= 7.1.3.4)
32
- timeout (>= 0.4.0)
33
- activesupport (7.1.3.4)
34
- base64
35
- bigdecimal
36
- concurrent-ruby (~> 1.0, >= 1.0.2)
37
- connection_pool (>= 2.2.5)
38
- drb
39
- i18n (>= 1.6, < 2)
40
- minitest (>= 5.1)
41
- mutex_m
42
- tzinfo (~> 2.0)
43
- appraisal (2.5.0)
44
- bundler
45
- rake
46
- thor (>= 0.14.0)
47
- ast (2.4.2)
48
- base64 (0.2.0)
49
- bigdecimal (3.1.8)
50
- builder (3.2.4)
51
- childprocess (5.0.0)
52
- coderay (1.1.3)
53
- concurrent-ruby (1.3.1)
54
- connection_pool (2.4.1)
55
- crass (1.0.6)
56
- diff-lcs (1.5.1)
57
- drb (2.2.1)
58
- erubi (1.12.0)
59
- i18n (1.14.5)
60
- concurrent-ruby (~> 1.0)
61
- iniparse (1.5.0)
62
- io-console (0.7.2)
63
- irb (1.11.2)
64
- rdoc
65
- reline (>= 0.4.2)
66
- json (2.7.1)
67
- language_server-protocol (3.17.0.3)
68
- loofah (2.22.0)
69
- crass (~> 1.0.2)
70
- nokogiri (>= 1.12.0)
71
- method_source (1.0.0)
72
- minitest (5.23.1)
73
- mutex_m (0.2.0)
74
- nokogiri (1.16.2-aarch64-linux)
75
- racc (~> 1.4)
76
- nokogiri (1.16.2-arm64-darwin)
77
- racc (~> 1.4)
78
- nokogiri (1.16.2-x86_64-darwin)
79
- racc (~> 1.4)
80
- nokogiri (1.16.2-x86_64-linux)
81
- racc (~> 1.4)
82
- overcommit (0.63.0)
83
- childprocess (>= 0.6.3, < 6)
84
- iniparse (~> 1.4)
85
- rexml (~> 3.2)
86
- parallel (1.24.0)
87
- parser (3.3.0.5)
88
- ast (~> 2.4.1)
89
- racc
90
- pry (0.14.2)
91
- coderay (~> 1.1)
92
- method_source (~> 1.0)
93
- psych (5.1.2)
94
- stringio
95
- racc (1.8.0)
96
- rack (3.0.11)
97
- rack-session (2.0.0)
98
- rack (>= 3.0.0)
99
- rack-test (2.1.0)
100
- rack (>= 1.3)
101
- rackup (2.1.0)
102
- rack (>= 3)
103
- webrick (~> 1.8)
104
- rails-dom-testing (2.2.0)
105
- activesupport (>= 5.0.0)
106
- minitest
107
- nokogiri (>= 1.6)
108
- rails-html-sanitizer (1.6.0)
109
- loofah (~> 2.21)
110
- nokogiri (~> 1.14)
111
- railties (7.1.3.4)
112
- actionpack (= 7.1.3.4)
113
- activesupport (= 7.1.3.4)
114
- irb
115
- rackup (>= 1.0.0)
116
- rake (>= 12.2)
117
- thor (~> 1.0, >= 1.2.2)
118
- zeitwerk (~> 2.6)
119
- rainbow (3.1.1)
120
- rake (13.1.0)
121
- rb-readline (0.5.5)
122
- rdoc (6.6.3.1)
123
- psych (>= 4.0.0)
124
- regexp_parser (2.9.0)
125
- reline (0.4.3)
126
- io-console (~> 0.5)
127
- rexml (3.3.6)
128
- strscan
129
- rspec (3.13.0)
130
- rspec-core (~> 3.13.0)
131
- rspec-expectations (~> 3.13.0)
132
- rspec-mocks (~> 3.13.0)
133
- rspec-core (3.13.0)
134
- rspec-support (~> 3.13.0)
135
- rspec-expectations (3.13.0)
136
- diff-lcs (>= 1.2.0, < 2.0)
137
- rspec-support (~> 3.13.0)
138
- rspec-mocks (3.13.0)
139
- diff-lcs (>= 1.2.0, < 2.0)
140
- rspec-support (~> 3.13.0)
141
- rspec-support (3.13.1)
142
- rubocop (1.60.2)
143
- json (~> 2.3)
144
- language_server-protocol (>= 3.17.0)
145
- parallel (~> 1.10)
146
- parser (>= 3.3.0.2)
147
- rainbow (>= 2.2.2, < 4.0)
148
- regexp_parser (>= 1.8, < 3.0)
149
- rexml (>= 3.2.5, < 4.0)
150
- rubocop-ast (>= 1.30.0, < 2.0)
151
- ruby-progressbar (~> 1.7)
152
- unicode-display_width (>= 2.4.0, < 3.0)
153
- rubocop-ast (1.30.0)
154
- parser (>= 3.2.1.0)
155
- ruby-progressbar (1.13.0)
156
- sqlite3 (1.7.2-aarch64-linux)
157
- sqlite3 (1.7.2-arm64-darwin)
158
- sqlite3 (1.7.2-x86_64-darwin)
159
- sqlite3 (1.7.2-x86_64-linux)
160
- stringio (3.1.0)
161
- strscan (3.1.0)
162
- thor (1.3.1)
163
- timecop (0.9.8)
164
- timeout (0.4.1)
165
- tzinfo (2.0.6)
166
- concurrent-ruby (~> 1.0)
167
- unicode-display_width (2.5.0)
168
- webrick (1.8.1)
169
- zeitwerk (2.6.13)
170
-
171
- PLATFORMS
172
- aarch64-linux
173
- arm64-darwin-22
174
- arm64-darwin-23
175
- x86_64-darwin-22
176
- x86_64-linux
177
-
178
- DEPENDENCIES
179
- appraisal
180
- data_migrate!
181
- overcommit
182
- pry
183
- rake
184
- rb-readline
185
- rspec
186
- rspec-core
187
- rubocop
188
- sqlite3
189
- timecop
190
-
191
- BUNDLED WITH
192
- 2.4.17
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
data/data_migrate.gemspec DELETED
@@ -1,41 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "data_migrate/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "data_migrate"
7
- s.version = DataMigrate::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Andrew J Vargo", "Ilya Katz", "Deborah Enomah"]
10
- s.email = ["ajvargo@computer.org", "ilyakatz@gmail.com", "enomaomorogieva@gmail.com"]
11
- s.homepage = "https://github.com/ilyakatz/data-migrate"
12
- s.summary = %q{Rake tasks to migrate data alongside schema changes.}
13
- s.description = %q{Rake tasks to migrate data alongside schema changes.}
14
- s.license = "MIT"
15
-
16
- s.rubyforge_project = "data_migrate"
17
-
18
- %w[
19
- activerecord
20
- railties
21
- ].each do |rails_gem|
22
- s.add_dependency(rails_gem, '>= 6.1')
23
- end
24
-
25
- s.add_development_dependency "appraisal"
26
- s.add_development_dependency "rake"
27
- s.add_development_dependency "rspec"
28
- s.add_development_dependency "rspec-core"
29
- s.add_development_dependency "pry"
30
- s.add_development_dependency "rb-readline"
31
- s.add_development_dependency "sqlite3"
32
- s.add_development_dependency "timecop"
33
- s.add_development_dependency "rubocop"
34
- s.add_development_dependency "overcommit"
35
-
36
-
37
- s.files = `git ls-files`.split("\n")
38
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
39
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
40
- s.require_paths = ["lib"]
41
- end
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 6.1.0"
6
-
7
- gemspec path: "../"
@@ -1,237 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- data_migrate (11.0.0)
5
- activerecord (>= 6.1)
6
- railties (>= 6.1)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- actioncable (6.1.7.8)
12
- actionpack (= 6.1.7.8)
13
- activesupport (= 6.1.7.8)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (6.1.7.8)
17
- actionpack (= 6.1.7.8)
18
- activejob (= 6.1.7.8)
19
- activerecord (= 6.1.7.8)
20
- activestorage (= 6.1.7.8)
21
- activesupport (= 6.1.7.8)
22
- mail (>= 2.7.1)
23
- actionmailer (6.1.7.8)
24
- actionpack (= 6.1.7.8)
25
- actionview (= 6.1.7.8)
26
- activejob (= 6.1.7.8)
27
- activesupport (= 6.1.7.8)
28
- mail (~> 2.5, >= 2.5.4)
29
- rails-dom-testing (~> 2.0)
30
- actionpack (6.1.7.8)
31
- actionview (= 6.1.7.8)
32
- activesupport (= 6.1.7.8)
33
- rack (~> 2.0, >= 2.0.9)
34
- rack-test (>= 0.6.3)
35
- rails-dom-testing (~> 2.0)
36
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.1.7.8)
38
- actionpack (= 6.1.7.8)
39
- activerecord (= 6.1.7.8)
40
- activestorage (= 6.1.7.8)
41
- activesupport (= 6.1.7.8)
42
- nokogiri (>= 1.8.5)
43
- actionview (6.1.7.8)
44
- activesupport (= 6.1.7.8)
45
- builder (~> 3.1)
46
- erubi (~> 1.4)
47
- rails-dom-testing (~> 2.0)
48
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.1.7.8)
50
- activesupport (= 6.1.7.8)
51
- globalid (>= 0.3.6)
52
- activemodel (6.1.7.8)
53
- activesupport (= 6.1.7.8)
54
- activerecord (6.1.7.8)
55
- activemodel (= 6.1.7.8)
56
- activesupport (= 6.1.7.8)
57
- activestorage (6.1.7.8)
58
- actionpack (= 6.1.7.8)
59
- activejob (= 6.1.7.8)
60
- activerecord (= 6.1.7.8)
61
- activesupport (= 6.1.7.8)
62
- marcel (~> 1.0)
63
- mini_mime (>= 1.1.0)
64
- activesupport (6.1.7.8)
65
- concurrent-ruby (~> 1.0, >= 1.0.2)
66
- i18n (>= 1.6, < 2)
67
- minitest (>= 5.1)
68
- tzinfo (~> 2.0)
69
- zeitwerk (~> 2.3)
70
- appraisal (2.4.1)
71
- bundler
72
- rake
73
- thor (>= 0.14.0)
74
- ast (2.4.2)
75
- builder (3.3.0)
76
- childprocess (4.1.0)
77
- coderay (1.1.3)
78
- concurrent-ruby (1.3.4)
79
- crass (1.0.6)
80
- date (3.3.4)
81
- diff-lcs (1.5.0)
82
- erubi (1.13.0)
83
- globalid (1.2.1)
84
- activesupport (>= 6.1)
85
- i18n (1.14.5)
86
- concurrent-ruby (~> 1.0)
87
- iniparse (1.5.0)
88
- json (2.6.3)
89
- loofah (2.22.0)
90
- crass (~> 1.0.2)
91
- nokogiri (>= 1.12.0)
92
- mail (2.8.1)
93
- mini_mime (>= 0.1.1)
94
- net-imap
95
- net-pop
96
- net-smtp
97
- marcel (1.0.4)
98
- method_source (1.1.0)
99
- mini_mime (1.1.5)
100
- minitest (5.25.1)
101
- net-imap (0.4.14)
102
- date
103
- net-protocol
104
- net-pop (0.1.2)
105
- net-protocol
106
- net-protocol (0.2.2)
107
- timeout
108
- net-smtp (0.5.0)
109
- net-protocol
110
- nio4r (2.7.3)
111
- nokogiri (1.16.7-aarch64-linux)
112
- racc (~> 1.4)
113
- nokogiri (1.16.7-arm64-darwin)
114
- racc (~> 1.4)
115
- nokogiri (1.16.7-x86_64-darwin)
116
- racc (~> 1.4)
117
- nokogiri (1.16.7-x86_64-linux)
118
- racc (~> 1.4)
119
- overcommit (0.60.0)
120
- childprocess (>= 0.6.3, < 5)
121
- iniparse (~> 1.4)
122
- rexml (~> 3.2)
123
- parallel (1.23.0)
124
- parser (3.2.2.3)
125
- ast (~> 2.4.1)
126
- racc
127
- pry (0.14.2)
128
- coderay (~> 1.1)
129
- method_source (~> 1.0)
130
- racc (1.8.1)
131
- rack (2.2.9)
132
- rack-test (2.1.0)
133
- rack (>= 1.3)
134
- rails (6.1.7.8)
135
- actioncable (= 6.1.7.8)
136
- actionmailbox (= 6.1.7.8)
137
- actionmailer (= 6.1.7.8)
138
- actionpack (= 6.1.7.8)
139
- actiontext (= 6.1.7.8)
140
- actionview (= 6.1.7.8)
141
- activejob (= 6.1.7.8)
142
- activemodel (= 6.1.7.8)
143
- activerecord (= 6.1.7.8)
144
- activestorage (= 6.1.7.8)
145
- activesupport (= 6.1.7.8)
146
- bundler (>= 1.15.0)
147
- railties (= 6.1.7.8)
148
- sprockets-rails (>= 2.0.0)
149
- rails-dom-testing (2.2.0)
150
- activesupport (>= 5.0.0)
151
- minitest
152
- nokogiri (>= 1.6)
153
- rails-html-sanitizer (1.6.0)
154
- loofah (~> 2.21)
155
- nokogiri (~> 1.14)
156
- railties (6.1.7.8)
157
- actionpack (= 6.1.7.8)
158
- activesupport (= 6.1.7.8)
159
- method_source
160
- rake (>= 12.2)
161
- thor (~> 1.0)
162
- rainbow (3.1.1)
163
- rake (13.2.1)
164
- rb-readline (0.5.5)
165
- regexp_parser (2.8.1)
166
- rexml (3.2.5)
167
- rspec (3.12.0)
168
- rspec-core (~> 3.12.0)
169
- rspec-expectations (~> 3.12.0)
170
- rspec-mocks (~> 3.12.0)
171
- rspec-core (3.12.2)
172
- rspec-support (~> 3.12.0)
173
- rspec-expectations (3.12.3)
174
- diff-lcs (>= 1.2.0, < 2.0)
175
- rspec-support (~> 3.12.0)
176
- rspec-mocks (3.12.5)
177
- diff-lcs (>= 1.2.0, < 2.0)
178
- rspec-support (~> 3.12.0)
179
- rspec-support (3.12.0)
180
- rubocop (1.52.1)
181
- json (~> 2.3)
182
- parallel (~> 1.10)
183
- parser (>= 3.2.2.3)
184
- rainbow (>= 2.2.2, < 4.0)
185
- regexp_parser (>= 1.8, < 3.0)
186
- rexml (>= 3.2.5, < 4.0)
187
- rubocop-ast (>= 1.28.0, < 2.0)
188
- ruby-progressbar (~> 1.7)
189
- unicode-display_width (>= 2.4.0, < 3.0)
190
- rubocop-ast (1.29.0)
191
- parser (>= 3.2.1.0)
192
- ruby-progressbar (1.13.0)
193
- sprockets (4.2.1)
194
- concurrent-ruby (~> 1.0)
195
- rack (>= 2.2.4, < 4)
196
- sprockets-rails (3.5.2)
197
- actionpack (>= 6.1)
198
- activesupport (>= 6.1)
199
- sprockets (>= 3.0.0)
200
- sqlite3 (1.7.2-aarch64-linux)
201
- sqlite3 (1.7.2-arm64-darwin)
202
- sqlite3 (1.7.2-x86_64-darwin)
203
- sqlite3 (1.7.2-x86_64-linux)
204
- thor (1.3.1)
205
- timecop (0.9.6)
206
- timeout (0.4.1)
207
- tzinfo (2.0.6)
208
- concurrent-ruby (~> 1.0)
209
- unicode-display_width (2.4.2)
210
- websocket-driver (0.7.6)
211
- websocket-extensions (>= 0.1.0)
212
- websocket-extensions (0.1.5)
213
- zeitwerk (2.6.17)
214
-
215
- PLATFORMS
216
- aarch64-linux
217
- arm64-darwin-22
218
- arm64-darwin-23
219
- x86_64-darwin-22
220
- x86_64-linux
221
-
222
- DEPENDENCIES
223
- appraisal
224
- data_migrate!
225
- overcommit
226
- pry
227
- rails (~> 6.1.0)
228
- rake
229
- rb-readline
230
- rspec
231
- rspec-core
232
- rubocop
233
- sqlite3
234
- timecop
235
-
236
- BUNDLED WITH
237
- 2.5.6
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 7.0.0"
6
-
7
- gemspec path: "../"