nonschema_migrations 6.0.alpha1 → 6.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,203 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ nondestructive_migrations (1.3)
5
+ activerecord (~> 5.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.2.0.rc1)
11
+ actionpack (= 5.2.0.rc1)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailer (5.2.0.rc1)
15
+ actionpack (= 5.2.0.rc1)
16
+ actionview (= 5.2.0.rc1)
17
+ activejob (= 5.2.0.rc1)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.2.0.rc1)
21
+ actionview (= 5.2.0.rc1)
22
+ activesupport (= 5.2.0.rc1)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.2.0.rc1)
28
+ activesupport (= 5.2.0.rc1)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.2.0.rc1)
34
+ activesupport (= 5.2.0.rc1)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.2.0.rc1)
37
+ activesupport (= 5.2.0.rc1)
38
+ activerecord (5.2.0.rc1)
39
+ activemodel (= 5.2.0.rc1)
40
+ activesupport (= 5.2.0.rc1)
41
+ arel (>= 9.0)
42
+ activestorage (5.2.0.rc1)
43
+ actionpack (= 5.2.0.rc1)
44
+ activerecord (= 5.2.0.rc1)
45
+ marcel (~> 0.3.1)
46
+ activesupport (5.2.0.rc1)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (~> 0.7)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ appraisal (2.2.0)
52
+ bundler
53
+ rake
54
+ thor (>= 0.14.0)
55
+ arel (9.0.0)
56
+ builder (3.2.3)
57
+ byebug (10.0.0)
58
+ coderay (1.1.2)
59
+ concurrent-ruby (1.0.5)
60
+ crass (1.0.3)
61
+ diff-lcs (1.3)
62
+ docile (1.1.5)
63
+ erubi (1.7.0)
64
+ ffi (1.9.21)
65
+ formatador (0.2.5)
66
+ globalid (0.4.1)
67
+ activesupport (>= 4.2.0)
68
+ guard (2.14.2)
69
+ formatador (>= 0.2.4)
70
+ listen (>= 2.7, < 4.0)
71
+ lumberjack (>= 1.0.12, < 2.0)
72
+ nenv (~> 0.1)
73
+ notiffany (~> 0.0)
74
+ pry (>= 0.9.12)
75
+ shellany (~> 0.0)
76
+ thor (>= 0.18.1)
77
+ guard-compat (1.2.1)
78
+ guard-rspec (4.7.3)
79
+ guard (~> 2.1)
80
+ guard-compat (~> 1.1)
81
+ rspec (>= 2.99.0, < 4.0)
82
+ i18n (0.9.5)
83
+ concurrent-ruby (~> 1.0)
84
+ json (2.1.0)
85
+ listen (3.1.5)
86
+ rb-fsevent (~> 0.9, >= 0.9.4)
87
+ rb-inotify (~> 0.9, >= 0.9.7)
88
+ ruby_dep (~> 1.2)
89
+ loofah (2.2.0)
90
+ crass (~> 1.0.2)
91
+ nokogiri (>= 1.5.9)
92
+ lumberjack (1.0.12)
93
+ mail (2.7.0)
94
+ mini_mime (>= 0.1.1)
95
+ marcel (0.3.1)
96
+ mimemagic (~> 0.3.2)
97
+ metaclass (0.0.4)
98
+ method_source (0.9.0)
99
+ mimemagic (0.3.2)
100
+ mini_mime (1.0.0)
101
+ mini_portile2 (2.3.0)
102
+ minitest (5.11.3)
103
+ minitest-rg (5.2.0)
104
+ minitest (~> 5.0)
105
+ mocha (1.3.0)
106
+ metaclass (~> 0.0.1)
107
+ mysql2 (0.4.10)
108
+ nenv (0.3.0)
109
+ nio4r (2.2.0)
110
+ nokogiri (1.8.2)
111
+ mini_portile2 (~> 2.3.0)
112
+ notiffany (0.1.1)
113
+ nenv (~> 0.1)
114
+ shellany (~> 0.0)
115
+ pry (0.11.3)
116
+ coderay (~> 1.1.0)
117
+ method_source (~> 0.9.0)
118
+ rack (2.0.4)
119
+ rack-test (0.8.2)
120
+ rack (>= 1.0, < 3)
121
+ rails (5.2.0.rc1)
122
+ actioncable (= 5.2.0.rc1)
123
+ actionmailer (= 5.2.0.rc1)
124
+ actionpack (= 5.2.0.rc1)
125
+ actionview (= 5.2.0.rc1)
126
+ activejob (= 5.2.0.rc1)
127
+ activemodel (= 5.2.0.rc1)
128
+ activerecord (= 5.2.0.rc1)
129
+ activestorage (= 5.2.0.rc1)
130
+ activesupport (= 5.2.0.rc1)
131
+ bundler (>= 1.3.0)
132
+ railties (= 5.2.0.rc1)
133
+ sprockets-rails (>= 2.0.0)
134
+ rails-dom-testing (2.0.3)
135
+ activesupport (>= 4.2.0)
136
+ nokogiri (>= 1.6)
137
+ rails-html-sanitizer (1.0.3)
138
+ loofah (~> 2.0)
139
+ railties (5.2.0.rc1)
140
+ actionpack (= 5.2.0.rc1)
141
+ activesupport (= 5.2.0.rc1)
142
+ method_source
143
+ rake (>= 0.8.7)
144
+ thor (>= 0.18.1, < 2.0)
145
+ rake (12.3.0)
146
+ rb-fsevent (0.10.2)
147
+ rb-inotify (0.9.10)
148
+ ffi (>= 0.5.0, < 2)
149
+ rspec (3.7.0)
150
+ rspec-core (~> 3.7.0)
151
+ rspec-expectations (~> 3.7.0)
152
+ rspec-mocks (~> 3.7.0)
153
+ rspec-core (3.7.1)
154
+ rspec-support (~> 3.7.0)
155
+ rspec-expectations (3.7.0)
156
+ diff-lcs (>= 1.2.0, < 2.0)
157
+ rspec-support (~> 3.7.0)
158
+ rspec-mocks (3.7.0)
159
+ diff-lcs (>= 1.2.0, < 2.0)
160
+ rspec-support (~> 3.7.0)
161
+ rspec-support (3.7.1)
162
+ ruby_dep (1.5.0)
163
+ shellany (0.0.1)
164
+ simplecov (0.15.1)
165
+ docile (~> 1.1.0)
166
+ json (>= 1.8, < 3)
167
+ simplecov-html (~> 0.10.0)
168
+ simplecov-html (0.10.2)
169
+ sprockets (3.7.1)
170
+ concurrent-ruby (~> 1.0)
171
+ rack (> 1, < 3)
172
+ sprockets-rails (3.2.1)
173
+ actionpack (>= 4.0)
174
+ activesupport (>= 4.0)
175
+ sprockets (>= 3.0.0)
176
+ sqlite3 (1.3.13)
177
+ thor (0.20.0)
178
+ thread_safe (0.3.6)
179
+ tzinfo (1.2.5)
180
+ thread_safe (~> 0.1)
181
+ websocket-driver (0.7.0)
182
+ websocket-extensions (>= 0.1.0)
183
+ websocket-extensions (0.1.3)
184
+
185
+ PLATFORMS
186
+ ruby
187
+
188
+ DEPENDENCIES
189
+ appraisal
190
+ byebug
191
+ guard
192
+ guard-rspec
193
+ minitest-rg
194
+ mocha
195
+ mysql2
196
+ nondestructive_migrations!
197
+ rails (= 5.2.0.rc1)
198
+ rake
199
+ simplecov
200
+ sqlite3
201
+
202
+ BUNDLED WITH
203
+ 1.16.1
@@ -0,0 +1,20 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "guard"
7
+ gem "guard-rspec"
8
+ gem "rake"
9
+ gem "byebug", platform: :mri_21
10
+ gem "sqlite3"
11
+ gem "mysql2"
12
+ gem "mocha"
13
+ gem "rails", "6.0.0"
14
+ gem "minitest-rg"
15
+
16
+ group :test do
17
+ gem "simplecov", require: false
18
+ end
19
+
20
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ class <%= migration_class_name %> < ActiveRecord::DataMigration
2
+
3
+
4
+ end
5
+
@@ -0,0 +1,3 @@
1
+ module NonSchemaMigrations
2
+ VERSION = "6.5.1"
3
+ end
@@ -71,7 +71,7 @@ class NonschemaMigrator < ActiveRecord::Migrator
71
71
  end
72
72
 
73
73
  def move(direction, steps)
74
- migrator = new_migrator(direction, migrations, schema_migration)
74
+ migrator = new_migrator(direction, migrations, nil, schema_migration)
75
75
 
76
76
  if current_version != 0 && !migrator.current_migration
77
77
  raise UnknownMigrationVersionError.new(current_version)
@@ -96,7 +96,7 @@ class NonschemaMigrator < ActiveRecord::Migrator
96
96
  migrations
97
97
  end
98
98
 
99
- new_migrator(:up, selected_migrations, target_version).migrate
99
+ new_migrator(:up, selected_migrations, nil, target_version).migrate
100
100
  end
101
101
 
102
102
  def down(target_version = nil)
@@ -106,7 +106,7 @@ class NonschemaMigrator < ActiveRecord::Migrator
106
106
  migrations
107
107
  end
108
108
 
109
- new_migrator(:down, selected_migrations, target_version).migrate
109
+ new_migrator(:down, selected_migrations, nil, target_version).migrate
110
110
  end
111
111
  end
112
112
 
@@ -130,7 +130,7 @@ class NonschemaMigrator < ActiveRecord::Migrator
130
130
  end
131
131
 
132
132
  def run(direction, path, target_version)
133
- new_migrator(path, direction, context(path).migrations, target_version).run
133
+ new_migrator(path, direction, context(path).migrations, nil, target_version).run
134
134
  end
135
135
  end
136
136
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonschema_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.alpha1
4
+ version: 6.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Fleetwood-Boldt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activerecord
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.0.alpha2
19
+ version: '5.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '='
27
+ - - ">"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.1'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 7.0.0.alpha2
32
+ version: '7.1'
27
33
  description: Separate schema-only migrations from nonschema (data) migrations in your
28
34
  Rails app
29
35
  email: code@jasonfb.net
@@ -31,12 +37,38 @@ executables: []
31
37
  extensions: []
32
38
  extra_rdoc_files: []
33
39
  files:
40
+ - ".bundle/config"
41
+ - ".github/FUNDING.yml"
42
+ - ".gitignore"
43
+ - ".travis.yml"
44
+ - Appraisals
45
+ - Gemfile
46
+ - Gemfile.lock
47
+ - LICENCE.md
48
+ - README.md
49
+ - Rakefile
50
+ - gemfiles/.bundle/config
51
+ - gemfiles/rails_4_0.gemfile
52
+ - gemfiles/rails_4_0.gemfile.lock
53
+ - gemfiles/rails_4_1.gemfile
54
+ - gemfiles/rails_4_1.gemfile.lock
55
+ - gemfiles/rails_4_2.gemfile
56
+ - gemfiles/rails_4_2.gemfile.lock
57
+ - gemfiles/rails_5_0.gemfile
58
+ - gemfiles/rails_5_0.gemfile.lock
59
+ - gemfiles/rails_5_1.gemfile
60
+ - gemfiles/rails_5_1.gemfile.lock
61
+ - gemfiles/rails_5_2.gemfile
62
+ - gemfiles/rails_5_2.gemfile.lock
63
+ - gemfiles/rails_6_0.gemfile
34
64
  - lib/active_record/data_migration.rb
35
65
  - lib/generators/data_migration_generator.rb
36
66
  - lib/generators/data_migrations/install_generator.rb
37
67
  - lib/generators/data_migrations/templates/create_data_migrations.rb
68
+ - lib/generators/data_migrations/templates/migration.rb
38
69
  - lib/nonschema_migrations.rb
39
70
  - lib/nonschema_migrations/railtie.rb
71
+ - lib/nonschema_migrations/version.rb
40
72
  - lib/nonschema_migrator.rb
41
73
  - lib/tasks/data.rb
42
74
  homepage: https://github.com/jasonfb/nonschema_migrations
@@ -46,15 +78,11 @@ metadata:
46
78
  source_code_uri: https://github.com/jasonfb/nonschema_migrations
47
79
  documentation_uri: https://jasonfleetwoodboldt.com/my-open-source-projects/nonschema-migrations/
48
80
  homepage_uri: https://heliosdev.shop/
49
- post_install_message: |
50
- ---------------------------------------------
51
- Welcome to Nonschema Migrations
52
- to set up, please run
53
-
54
- rails generate data_migrations:install
55
-
56
- For support please check us out at https://heliosdev.shop/
57
- ---------------------------------------------
81
+ post_install_message: "---------------------------------------------\nWelcome to Nonschema
82
+ Migrations\n\n1. run set up data migrations:\nrails generate data_migrations:install\n2.
83
+ to create a data migration use\nrails generate data_migration SetupExampleData\n\nYou
84
+ can think of data migrations like seed data for production, staging, and dev environments.
85
+ \n\nFor support please see https://heliosdev.shop/\n---------------------------------------------\n"
58
86
  rdoc_options: []
59
87
  require_paths:
60
88
  - lib
@@ -65,11 +93,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
93
  version: '0'
66
94
  required_rubygems_version: !ruby/object:Gem::Requirement
67
95
  requirements:
68
- - - ">"
96
+ - - ">="
69
97
  - !ruby/object:Gem::Version
70
- version: 1.3.1
98
+ version: '0'
71
99
  requirements: []
72
- rubygems_version: 3.1.4
100
+ rubygems_version: 3.4.10
73
101
  signing_key:
74
102
  specification_version: 4
75
103
  summary: Nonschema(data-only) migrations for your Rails app