monarch_migrate 0.7.0 → 0.8.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f80c87911c7ad7157d9e4a12b913993cf606175dc53e2df5990bb1cf083ca0a
4
- data.tar.gz: 9c763a32050006716c48172355cf471a33e3a413b0031d8f7be2a226dc274aa9
3
+ metadata.gz: 8c8760b8a5929fc1b93c0fa006cb9557b4ef7e7fc942dc8af78aaa1294e2da9b
4
+ data.tar.gz: 9286f3dff8556f56221302bd3b4233d94ecb999a27337a18e199421046d0e1d2
5
5
  SHA512:
6
- metadata.gz: 8ad6dd0cd4c17f2cd7dc225de7dfae1269d4b715351eb99173254be7a1dea4b7ac2d1fa6803ae719fc692a116fbe60abfd742cea01dc76237d5bfad6dc19d8f4
7
- data.tar.gz: d6d2442b63a91bb02dd9d5f2b1eb05dd443038dc3f614a2a057063fd47cac6e31b3571879c2940e0e1d2583a42a9c751559224d0cde3c2b49c0b200d67e6baf0
6
+ metadata.gz: 176ef9b9a375c4454c53e459ce38dc539d61d92eabe0e2d05105a0555414f1f51b8546396f925537dcb27370b3dc3dace33b857be5fc65ba00282da767c3d048
7
+ data.tar.gz: 8e147b8f1661cbf76bcd06d6d3fc1619f63c72cb006f456c5d38366930833d7a5a15ad0d5bfff94869d661aa59330fdace239146d48308c6a774d32765ea7b3c
@@ -16,13 +16,14 @@ jobs:
16
16
  fail-fast: false
17
17
  matrix:
18
18
  gemfile:
19
- - "6.0"
20
19
  - "6.1"
21
20
  - "7.0"
21
+ - "7.1"
22
22
  ruby:
23
23
  - "3.0.0"
24
24
  - "3.1.0"
25
25
  - "3.2.2"
26
+ - "3.3.0"
26
27
 
27
28
  env:
28
29
  BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile
@@ -38,7 +39,9 @@ jobs:
38
39
  bundler-cache: true
39
40
 
40
41
  - name: "Reset app database"
41
- run: bundle exec rake fake:db:reset
42
+ run: |
43
+ bundle exec rake fake:db:reset
44
+ bundle exec rake fake:db:test:prepare
42
45
 
43
46
  - name: "Run tests without acceptance"
44
47
  run: |
data/.gitignore CHANGED
@@ -86,6 +86,8 @@ fabric.properties
86
86
  # Ignore the default SQLite database.
87
87
  /db/*.sqlite3
88
88
  /db/*.sqlite3-journal
89
+ /db/*.sqlite3-shm
90
+ /db/*.sqlite3-wal
89
91
 
90
92
  # Ignore all logfiles and tempfiles.
91
93
  /log/*
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.3.0
data/Appraisals CHANGED
@@ -1,13 +1,6 @@
1
- # We test against only supported Rails versions.
2
- # https://guides.rubyonrails.org/maintenance_policy.html
3
-
4
- # Rails 6.0.Z is included in the list of supported series until June 1st 2023.
5
- appraise "rails_6.0" do
6
- gem "rails", "~> 6.0"
7
- gem "net-smtp", require: false
8
- gem "net-imap", require: false
9
- gem "net-pop", require: false
10
- end
1
+ # Support Rails release series that receive patches and new versions
2
+ # in case of a security issue.
3
+ # See https://guides.rubyonrails.org/maintenance_policy.html#security-issues
11
4
 
12
5
  appraise "rails_6.1" do
13
6
  gem "rails", "~> 6.1"
@@ -19,3 +12,7 @@ end
19
12
  appraise "rails_7.0" do
20
13
  gem "rails", "~> 7.0"
21
14
  end
15
+
16
+ appraise "rails_7.1" do
17
+ gem "rails", "~> 7.1.0"
18
+ end
data/Gemfile.lock CHANGED
@@ -1,95 +1,112 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monarch_migrate (0.7.0)
4
+ monarch_migrate (0.8.0)
5
5
  rails (>= 6.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.0.5)
11
- actionpack (= 7.0.5)
12
- activesupport (= 7.0.5)
10
+ actioncable (7.1.3.2)
11
+ actionpack (= 7.1.3.2)
12
+ activesupport (= 7.1.3.2)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailbox (7.0.5)
16
- actionpack (= 7.0.5)
17
- activejob (= 7.0.5)
18
- activerecord (= 7.0.5)
19
- activestorage (= 7.0.5)
20
- activesupport (= 7.0.5)
15
+ zeitwerk (~> 2.6)
16
+ actionmailbox (7.1.3.2)
17
+ actionpack (= 7.1.3.2)
18
+ activejob (= 7.1.3.2)
19
+ activerecord (= 7.1.3.2)
20
+ activestorage (= 7.1.3.2)
21
+ activesupport (= 7.1.3.2)
21
22
  mail (>= 2.7.1)
22
23
  net-imap
23
24
  net-pop
24
25
  net-smtp
25
- actionmailer (7.0.5)
26
- actionpack (= 7.0.5)
27
- actionview (= 7.0.5)
28
- activejob (= 7.0.5)
29
- activesupport (= 7.0.5)
26
+ actionmailer (7.1.3.2)
27
+ actionpack (= 7.1.3.2)
28
+ actionview (= 7.1.3.2)
29
+ activejob (= 7.1.3.2)
30
+ activesupport (= 7.1.3.2)
30
31
  mail (~> 2.5, >= 2.5.4)
31
32
  net-imap
32
33
  net-pop
33
34
  net-smtp
34
- rails-dom-testing (~> 2.0)
35
- actionpack (7.0.5)
36
- actionview (= 7.0.5)
37
- activesupport (= 7.0.5)
38
- rack (~> 2.0, >= 2.2.4)
35
+ rails-dom-testing (~> 2.2)
36
+ actionpack (7.1.3.2)
37
+ actionview (= 7.1.3.2)
38
+ activesupport (= 7.1.3.2)
39
+ nokogiri (>= 1.8.5)
40
+ racc
41
+ rack (>= 2.2.4)
42
+ rack-session (>= 1.0.1)
39
43
  rack-test (>= 0.6.3)
40
- rails-dom-testing (~> 2.0)
41
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (7.0.5)
43
- actionpack (= 7.0.5)
44
- activerecord (= 7.0.5)
45
- activestorage (= 7.0.5)
46
- activesupport (= 7.0.5)
44
+ rails-dom-testing (~> 2.2)
45
+ rails-html-sanitizer (~> 1.6)
46
+ actiontext (7.1.3.2)
47
+ actionpack (= 7.1.3.2)
48
+ activerecord (= 7.1.3.2)
49
+ activestorage (= 7.1.3.2)
50
+ activesupport (= 7.1.3.2)
47
51
  globalid (>= 0.6.0)
48
52
  nokogiri (>= 1.8.5)
49
- actionview (7.0.5)
50
- activesupport (= 7.0.5)
53
+ actionview (7.1.3.2)
54
+ activesupport (= 7.1.3.2)
51
55
  builder (~> 3.1)
52
- erubi (~> 1.4)
53
- rails-dom-testing (~> 2.0)
54
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (7.0.5)
56
- activesupport (= 7.0.5)
56
+ erubi (~> 1.11)
57
+ rails-dom-testing (~> 2.2)
58
+ rails-html-sanitizer (~> 1.6)
59
+ activejob (7.1.3.2)
60
+ activesupport (= 7.1.3.2)
57
61
  globalid (>= 0.3.6)
58
- activemodel (7.0.5)
59
- activesupport (= 7.0.5)
60
- activerecord (7.0.5)
61
- activemodel (= 7.0.5)
62
- activesupport (= 7.0.5)
63
- activestorage (7.0.5)
64
- actionpack (= 7.0.5)
65
- activejob (= 7.0.5)
66
- activerecord (= 7.0.5)
67
- activesupport (= 7.0.5)
62
+ activemodel (7.1.3.2)
63
+ activesupport (= 7.1.3.2)
64
+ activerecord (7.1.3.2)
65
+ activemodel (= 7.1.3.2)
66
+ activesupport (= 7.1.3.2)
67
+ timeout (>= 0.4.0)
68
+ activestorage (7.1.3.2)
69
+ actionpack (= 7.1.3.2)
70
+ activejob (= 7.1.3.2)
71
+ activerecord (= 7.1.3.2)
72
+ activesupport (= 7.1.3.2)
68
73
  marcel (~> 1.0)
69
- mini_mime (>= 1.1.0)
70
- activesupport (7.0.5)
74
+ activesupport (7.1.3.2)
75
+ base64
76
+ bigdecimal
71
77
  concurrent-ruby (~> 1.0, >= 1.0.2)
78
+ connection_pool (>= 2.2.5)
79
+ drb
72
80
  i18n (>= 1.6, < 2)
73
81
  minitest (>= 5.1)
82
+ mutex_m
74
83
  tzinfo (~> 2.0)
75
84
  appraisal (2.4.1)
76
85
  bundler
77
86
  rake
78
87
  thor (>= 0.14.0)
79
88
  ast (2.4.2)
89
+ base64 (0.2.0)
90
+ bigdecimal (3.1.6)
80
91
  break (0.40.0)
81
92
  builder (3.2.4)
82
93
  coderay (1.1.3)
83
- concurrent-ruby (1.2.2)
94
+ concurrent-ruby (1.2.3)
95
+ connection_pool (2.4.1)
84
96
  crass (1.0.6)
85
97
  date (3.3.3)
86
98
  diff-lcs (1.5.0)
99
+ drb (2.2.1)
87
100
  erubi (1.12.0)
88
- globalid (1.1.0)
89
- activesupport (>= 5.0)
101
+ globalid (1.2.1)
102
+ activesupport (>= 6.1)
90
103
  i18n (1.14.1)
91
104
  concurrent-ruby (~> 1.0)
92
- loofah (2.21.3)
105
+ io-console (0.7.2)
106
+ irb (1.11.2)
107
+ rdoc
108
+ reline (>= 0.4.2)
109
+ loofah (2.22.0)
93
110
  crass (~> 1.0.2)
94
111
  nokogiri (>= 1.12.0)
95
112
  mail (2.8.1)
@@ -97,11 +114,12 @@ GEM
97
114
  net-imap
98
115
  net-pop
99
116
  net-smtp
100
- marcel (1.0.2)
117
+ marcel (1.0.4)
101
118
  method_source (1.0.0)
102
- mini_mime (1.1.2)
103
- mini_portile2 (2.8.2)
104
- minitest (5.18.1)
119
+ mini_mime (1.1.5)
120
+ mini_portile2 (2.8.5)
121
+ minitest (5.22.2)
122
+ mutex_m (0.2.0)
105
123
  net-imap (0.3.6)
106
124
  date
107
125
  net-protocol
@@ -112,7 +130,7 @@ GEM
112
130
  net-smtp (0.3.3)
113
131
  net-protocol
114
132
  nio4r (2.5.9)
115
- nokogiri (1.15.2)
133
+ nokogiri (1.16.2)
116
134
  mini_portile2 (~> 2.8.2)
117
135
  racc (~> 1.4)
118
136
  parallel (1.22.1)
@@ -121,40 +139,53 @@ GEM
121
139
  pry (0.14.1)
122
140
  coderay (~> 1.1)
123
141
  method_source (~> 1.0)
124
- racc (1.7.1)
125
- rack (2.2.7)
142
+ psych (5.1.2)
143
+ stringio
144
+ racc (1.7.3)
145
+ rack (3.0.9.1)
146
+ rack-session (2.0.0)
147
+ rack (>= 3.0.0)
126
148
  rack-test (2.1.0)
127
149
  rack (>= 1.3)
128
- rails (7.0.5)
129
- actioncable (= 7.0.5)
130
- actionmailbox (= 7.0.5)
131
- actionmailer (= 7.0.5)
132
- actionpack (= 7.0.5)
133
- actiontext (= 7.0.5)
134
- actionview (= 7.0.5)
135
- activejob (= 7.0.5)
136
- activemodel (= 7.0.5)
137
- activerecord (= 7.0.5)
138
- activestorage (= 7.0.5)
139
- activesupport (= 7.0.5)
150
+ rackup (2.1.0)
151
+ rack (>= 3)
152
+ webrick (~> 1.8)
153
+ rails (7.1.3.2)
154
+ actioncable (= 7.1.3.2)
155
+ actionmailbox (= 7.1.3.2)
156
+ actionmailer (= 7.1.3.2)
157
+ actionpack (= 7.1.3.2)
158
+ actiontext (= 7.1.3.2)
159
+ actionview (= 7.1.3.2)
160
+ activejob (= 7.1.3.2)
161
+ activemodel (= 7.1.3.2)
162
+ activerecord (= 7.1.3.2)
163
+ activestorage (= 7.1.3.2)
164
+ activesupport (= 7.1.3.2)
140
165
  bundler (>= 1.15.0)
141
- railties (= 7.0.5)
142
- rails-dom-testing (2.0.3)
143
- activesupport (>= 4.2.0)
166
+ railties (= 7.1.3.2)
167
+ rails-dom-testing (2.2.0)
168
+ activesupport (>= 5.0.0)
169
+ minitest
144
170
  nokogiri (>= 1.6)
145
171
  rails-html-sanitizer (1.6.0)
146
172
  loofah (~> 2.21)
147
173
  nokogiri (~> 1.14)
148
- railties (7.0.5)
149
- actionpack (= 7.0.5)
150
- activesupport (= 7.0.5)
151
- method_source
174
+ railties (7.1.3.2)
175
+ actionpack (= 7.1.3.2)
176
+ activesupport (= 7.1.3.2)
177
+ irb
178
+ rackup (>= 1.0.0)
152
179
  rake (>= 12.2)
153
- thor (~> 1.0)
154
- zeitwerk (~> 2.5)
180
+ thor (~> 1.0, >= 1.2.2)
181
+ zeitwerk (~> 2.6)
155
182
  rainbow (3.1.1)
156
183
  rake (13.0.6)
184
+ rdoc (6.6.2)
185
+ psych (>= 4.0.0)
157
186
  regexp_parser (2.5.0)
187
+ reline (0.4.3)
188
+ io-console (~> 0.5)
158
189
  rexml (3.2.5)
159
190
  rspec-core (3.12.0)
160
191
  rspec-support (~> 3.12.0)
@@ -192,11 +223,13 @@ GEM
192
223
  standard (1.12.1)
193
224
  rubocop (= 1.29.1)
194
225
  rubocop-performance (= 1.13.3)
226
+ stringio (3.1.0)
195
227
  thor (1.2.2)
196
- timeout (0.3.2)
228
+ timeout (0.4.1)
197
229
  tzinfo (2.0.6)
198
230
  concurrent-ruby (~> 1.0)
199
231
  unicode-display_width (2.2.0)
232
+ webrick (1.8.1)
200
233
  websocket-driver (0.7.5)
201
234
  websocket-extensions (>= 0.1.0)
202
235
  websocket-extensions (0.1.5)
@@ -216,4 +249,4 @@ DEPENDENCIES
216
249
  standard
217
250
 
218
251
  BUNDLED WITH
219
- 2.1.4
252
+ 2.5.6
data/bin/console ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "irb"
4
+ require "bundler/setup"
5
+ require_relative "../lib/monarch_migrate"
6
+
7
+ binding.irb
@@ -1,3 +1,3 @@
1
1
  module MonarchMigrate
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -16,6 +16,7 @@ module MonarchMigrate
16
16
  end
17
17
 
18
18
  require "rails"
19
+ require "active_record/railtie"
19
20
  require "monarch_migrate/migration"
20
21
  require "monarch_migrate/migration_record"
21
22
  require "monarch_migrate/migrator"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monarch_migrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yanko Ivanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-29 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -40,6 +40,7 @@ files:
40
40
  - LICENSE
41
41
  - README.md
42
42
  - Rakefile
43
+ - bin/console
43
44
  - bin/setup
44
45
  - db/schema.rb
45
46
  - lib/generators/monarch_migrate/install/USAGE
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.4.10
90
+ rubygems_version: 3.5.3
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: A library for Rails developers who are not willing to leave data migrations