good_migrations 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/example/Gemfile +2 -2
- data/lib/good_migrations/version.rb +1 -1
- metadata +63 -15
- data/.github/workflows/ruby.yml +0 -32
- data/.gitignore +0 -8
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -113
- data/Rakefile +0 -11
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/good_migrations.gemspec +0 -30
- data/tasks/good_migrations.rake +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e19eb30c1eec98d732644fc373a997608dc6f5433fa7bd4f2c77b5bae9a1a6f5
|
4
|
+
data.tar.gz: bcbae2e85f10863533a8efb997ff60c4ad6e3de1b0078a7d59d60b230a4de24a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf8ccc6aa62b5706559fe7695592e12e5064c0d0fbfd98353d82033ad31b0e2c3b83cc8796adced37fee8af9b3446855b2f075f16239a9672c77124b35a77b6
|
7
|
+
data.tar.gz: 2f48ba81878a64a35fa08b356a686a5de0ae0c70dbf643555f2c431929511875d6ede55e374c0b30278ac9a55fa2edce7d4b1fb662fa023b52be2e39f10ede09
|
data/CHANGELOG.md
CHANGED
data/example/Gemfile
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: good_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -116,18 +116,67 @@ email:
|
|
116
116
|
- kevin.baribeau@gmail.com
|
117
117
|
executables: []
|
118
118
|
extensions: []
|
119
|
-
extra_rdoc_files:
|
119
|
+
extra_rdoc_files:
|
120
|
+
- README.md
|
121
|
+
- example/.gitignore
|
122
|
+
- example/Gemfile
|
123
|
+
- example/README
|
124
|
+
- example/Rakefile
|
125
|
+
- example/app/assets/config/manifest.js
|
126
|
+
- example/app/controllers/application_controller.rb
|
127
|
+
- example/app/helpers/application_helper.rb
|
128
|
+
- example/app/models/pant.rb
|
129
|
+
- example/app/models/shirt.rb
|
130
|
+
- example/app/views/layouts/application.html.erb
|
131
|
+
- example/bin/rails
|
132
|
+
- example/bin/rake
|
133
|
+
- example/config.ru
|
134
|
+
- example/config/application.rb
|
135
|
+
- example/config/boot.rb
|
136
|
+
- example/config/database.yml
|
137
|
+
- example/config/environment.rb
|
138
|
+
- example/config/environments/development.rb
|
139
|
+
- example/config/environments/production.rb
|
140
|
+
- example/config/environments/test.rb
|
141
|
+
- example/config/initializers/backtrace_silencers.rb
|
142
|
+
- example/config/initializers/good_migrations.rb
|
143
|
+
- example/config/initializers/inflections.rb
|
144
|
+
- example/config/initializers/mime_types.rb
|
145
|
+
- example/config/initializers/secret_token.rb
|
146
|
+
- example/config/initializers/session_store.rb
|
147
|
+
- example/config/locales/en.yml
|
148
|
+
- example/config/routes.rb
|
149
|
+
- example/db/migrate/20160202162849_create_pants.rb
|
150
|
+
- example/db/migrate/20160202163803_change_pants.rb
|
151
|
+
- example/db/migrate/20160202182520_change_pants_dangerously.rb
|
152
|
+
- example/db/migrate/20170101150000_create_shirts.rb
|
153
|
+
- example/db/migrate/20170102150000_change_shirts_dangerously.rb
|
154
|
+
- example/db/seeds.rb
|
155
|
+
- example/doc/README_FOR_APP
|
156
|
+
- example/lib/tasks/.gitkeep
|
157
|
+
- example/lib/tasks/load_pants.rake
|
158
|
+
- example/public/404.html
|
159
|
+
- example/public/422.html
|
160
|
+
- example/public/500.html
|
161
|
+
- example/public/favicon.ico
|
162
|
+
- example/public/images/rails.png
|
163
|
+
- example/public/index.html
|
164
|
+
- example/public/javascripts/application.js
|
165
|
+
- example/public/javascripts/controls.js
|
166
|
+
- example/public/javascripts/dragdrop.js
|
167
|
+
- example/public/javascripts/effects.js
|
168
|
+
- example/public/javascripts/prototype.js
|
169
|
+
- example/public/javascripts/rails.js
|
170
|
+
- example/public/robots.txt
|
171
|
+
- example/public/stylesheets/.gitkeep
|
172
|
+
- example/script/rails
|
173
|
+
- example/test/performance/browsing_test.rb
|
174
|
+
- example/test/test_helper.rb
|
175
|
+
- example/vendor/plugins/.gitkeep
|
120
176
|
files:
|
121
|
-
- ".github/workflows/ruby.yml"
|
122
|
-
- ".gitignore"
|
123
177
|
- CHANGELOG.md
|
124
|
-
- Gemfile
|
125
|
-
- Gemfile.lock
|
126
178
|
- LICENSE.txt
|
127
179
|
- README.md
|
128
|
-
- Rakefile
|
129
|
-
- bin/console
|
130
|
-
- bin/setup
|
131
180
|
- example/.gitignore
|
132
181
|
- example/Gemfile
|
133
182
|
- example/README
|
@@ -183,7 +232,6 @@ files:
|
|
183
232
|
- example/test/performance/browsing_test.rb
|
184
233
|
- example/test/test_helper.rb
|
185
234
|
- example/vendor/plugins/.gitkeep
|
186
|
-
- good_migrations.gemspec
|
187
235
|
- lib/good_migrations.rb
|
188
236
|
- lib/good_migrations/configuration.rb
|
189
237
|
- lib/good_migrations/load_error.rb
|
@@ -193,11 +241,11 @@ files:
|
|
193
241
|
- lib/good_migrations/railtie.rb
|
194
242
|
- lib/good_migrations/raises_load_error.rb
|
195
243
|
- lib/good_migrations/version.rb
|
196
|
-
- tasks/good_migrations.rake
|
197
244
|
homepage: https://github.com/testdouble/good-migrations
|
198
245
|
licenses:
|
199
246
|
- MIT
|
200
|
-
metadata:
|
247
|
+
metadata:
|
248
|
+
rubygems_mfa_required: 'true'
|
201
249
|
post_install_message:
|
202
250
|
rdoc_options: []
|
203
251
|
require_paths:
|
@@ -206,14 +254,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
254
|
requirements:
|
207
255
|
- - ">="
|
208
256
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
257
|
+
version: 3.1.0
|
210
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
259
|
requirements:
|
212
260
|
- - ">="
|
213
261
|
- !ruby/object:Gem::Version
|
214
262
|
version: '0'
|
215
263
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
264
|
+
rubygems_version: 3.5.11
|
217
265
|
signing_key:
|
218
266
|
specification_version: 4
|
219
267
|
summary: Prevents Rails from auto-loading app code in database migrations
|
data/.github/workflows/ruby.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
2
|
-
# They are provided by a third-party and are governed by
|
3
|
-
# separate terms of service, privacy policy, and support
|
4
|
-
# documentation.
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
-
|
8
|
-
name: Ruby
|
9
|
-
|
10
|
-
on:
|
11
|
-
push:
|
12
|
-
branches: [ main ]
|
13
|
-
pull_request:
|
14
|
-
branches: [ main ]
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
test:
|
18
|
-
|
19
|
-
runs-on: ubuntu-latest
|
20
|
-
strategy:
|
21
|
-
matrix:
|
22
|
-
ruby-version: ['2.5', '2.7', '3.0']
|
23
|
-
|
24
|
-
steps:
|
25
|
-
- uses: actions/checkout@v2
|
26
|
-
- name: Set up Ruby
|
27
|
-
uses: ruby/setup-ruby@v1
|
28
|
-
with:
|
29
|
-
ruby-version: ${{ matrix.ruby-version }}
|
30
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
31
|
-
- name: Run tests
|
32
|
-
run: bundle exec rake
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,113 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
good_migrations (0.2.1)
|
5
|
-
activerecord (>= 3.1)
|
6
|
-
railties (>= 3.1)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionpack (7.0.2.3)
|
12
|
-
actionview (= 7.0.2.3)
|
13
|
-
activesupport (= 7.0.2.3)
|
14
|
-
rack (~> 2.0, >= 2.2.0)
|
15
|
-
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.0)
|
17
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
-
actionview (7.0.2.3)
|
19
|
-
activesupport (= 7.0.2.3)
|
20
|
-
builder (~> 3.1)
|
21
|
-
erubi (~> 1.4)
|
22
|
-
rails-dom-testing (~> 2.0)
|
23
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
-
activemodel (7.0.2.3)
|
25
|
-
activesupport (= 7.0.2.3)
|
26
|
-
activerecord (7.0.2.3)
|
27
|
-
activemodel (= 7.0.2.3)
|
28
|
-
activesupport (= 7.0.2.3)
|
29
|
-
activesupport (7.0.2.3)
|
30
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
|
-
i18n (>= 1.6, < 2)
|
32
|
-
minitest (>= 5.1)
|
33
|
-
tzinfo (~> 2.0)
|
34
|
-
ast (2.4.2)
|
35
|
-
builder (3.2.4)
|
36
|
-
coderay (1.1.3)
|
37
|
-
concurrent-ruby (1.1.10)
|
38
|
-
crass (1.0.6)
|
39
|
-
erubi (1.10.0)
|
40
|
-
i18n (1.10.0)
|
41
|
-
concurrent-ruby (~> 1.0)
|
42
|
-
loofah (2.16.0)
|
43
|
-
crass (~> 1.0.2)
|
44
|
-
nokogiri (>= 1.5.9)
|
45
|
-
method_source (1.0.0)
|
46
|
-
mini_portile2 (2.8.0)
|
47
|
-
minitest (5.15.0)
|
48
|
-
nokogiri (1.13.4)
|
49
|
-
mini_portile2 (~> 2.8.0)
|
50
|
-
racc (~> 1.4)
|
51
|
-
parallel (1.22.1)
|
52
|
-
parser (3.1.2.0)
|
53
|
-
ast (~> 2.4.1)
|
54
|
-
pry (0.14.1)
|
55
|
-
coderay (~> 1.1)
|
56
|
-
method_source (~> 1.0)
|
57
|
-
racc (1.6.0)
|
58
|
-
rack (2.2.3)
|
59
|
-
rack-test (1.1.0)
|
60
|
-
rack (>= 1.0, < 3)
|
61
|
-
rails-dom-testing (2.0.3)
|
62
|
-
activesupport (>= 4.2.0)
|
63
|
-
nokogiri (>= 1.6)
|
64
|
-
rails-html-sanitizer (1.4.2)
|
65
|
-
loofah (~> 2.3)
|
66
|
-
railties (7.0.2.3)
|
67
|
-
actionpack (= 7.0.2.3)
|
68
|
-
activesupport (= 7.0.2.3)
|
69
|
-
method_source
|
70
|
-
rake (>= 12.2)
|
71
|
-
thor (~> 1.0)
|
72
|
-
zeitwerk (~> 2.5)
|
73
|
-
rainbow (3.1.1)
|
74
|
-
rake (13.0.6)
|
75
|
-
regexp_parser (2.3.0)
|
76
|
-
rexml (3.2.5)
|
77
|
-
rubocop (1.27.0)
|
78
|
-
parallel (~> 1.10)
|
79
|
-
parser (>= 3.1.0.0)
|
80
|
-
rainbow (>= 2.2.2, < 4.0)
|
81
|
-
regexp_parser (>= 1.8, < 3.0)
|
82
|
-
rexml
|
83
|
-
rubocop-ast (>= 1.16.0, < 2.0)
|
84
|
-
ruby-progressbar (~> 1.7)
|
85
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
86
|
-
rubocop-ast (1.17.0)
|
87
|
-
parser (>= 3.1.1.0)
|
88
|
-
rubocop-performance (1.13.3)
|
89
|
-
rubocop (>= 1.7.0, < 2.0)
|
90
|
-
rubocop-ast (>= 0.4.0)
|
91
|
-
ruby-progressbar (1.11.0)
|
92
|
-
standard (1.10.0)
|
93
|
-
rubocop (= 1.27.0)
|
94
|
-
rubocop-performance (= 1.13.3)
|
95
|
-
thor (1.2.1)
|
96
|
-
tzinfo (2.0.4)
|
97
|
-
concurrent-ruby (~> 1.0)
|
98
|
-
unicode-display_width (2.1.0)
|
99
|
-
zeitwerk (2.5.4)
|
100
|
-
|
101
|
-
PLATFORMS
|
102
|
-
ruby
|
103
|
-
|
104
|
-
DEPENDENCIES
|
105
|
-
bundler
|
106
|
-
good_migrations!
|
107
|
-
minitest
|
108
|
-
pry
|
109
|
-
rake
|
110
|
-
standard
|
111
|
-
|
112
|
-
BUNDLED WITH
|
113
|
-
2.3.11
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "good_migrations"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/good_migrations.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
lib = File.expand_path("../lib", __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "good_migrations/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "good_migrations"
|
7
|
-
spec.version = GoodMigrations::VERSION
|
8
|
-
spec.authors = ["Justin Searls", "Kevin Baribeau"]
|
9
|
-
spec.email = ["searls@gmail.com", "kevin.baribeau@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "Prevents Rails from auto-loading app code in database migrations"
|
12
|
-
spec.description = "Referencing code in app/ from a database migration risks breaking the migration when your app code changes; this gem prevents that mistake"
|
13
|
-
spec.homepage = "https://github.com/testdouble/good-migrations"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.3.0"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir = "exe"
|
19
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_dependency "railties", ">= 3.1"
|
23
|
-
spec.add_dependency "activerecord", ">= 3.1"
|
24
|
-
|
25
|
-
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "rake"
|
27
|
-
spec.add_development_dependency "minitest"
|
28
|
-
spec.add_development_dependency "pry"
|
29
|
-
spec.add_development_dependency "standard"
|
30
|
-
end
|
data/tasks/good_migrations.rake
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require "active_support/dependencies"
|
2
|
-
require "good_migrations"
|
3
|
-
|
4
|
-
namespace :good_migrations do
|
5
|
-
task :disable_autoload do
|
6
|
-
next if ENV["GOOD_MIGRATIONS"] == "skip"
|
7
|
-
GoodMigrations::PatchesAutoloader.instance.patch!
|
8
|
-
end
|
9
|
-
|
10
|
-
task :reenable_autoload do
|
11
|
-
next if ENV["GOOD_MIGRATIONS"] == "skip"
|
12
|
-
GoodMigrations::PatchesAutoloader.instance.unpatch!
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
Rake::Task["db:migrate"].enhance(["good_migrations:disable_autoload"]) do
|
17
|
-
Rake::Task["good_migrations:reenable_autoload"].invoke
|
18
|
-
end
|