good_migrations 0.2.1 → 0.3.1
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/example/Gemfile +2 -2
- data/example/config/boot.rb +3 -0
- data/lib/good_migrations/version.rb +1 -1
- metadata +63 -14
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62774cb9bc7ab12777b1e971a4fab4479f65638bf7f65b021870ba1903298997
|
4
|
+
data.tar.gz: 3741b7876c964e5949841cacd59a6fbe7d142ffe6e7a082b704e5a2710d9753a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0544ea1a7f5f0c260c25fd89e018a9f6fce850be821d95ba8eb09860478f3f9577b76592a01f41a6f93595b9708ad343af143f6ce9f144a0119f79b75a77093
|
7
|
+
data.tar.gz: dab47a826e4234181427b8b513c29af087784a5c34ca116df715642186dba2ccbb8bd257d39308768a7ebfee5ecef786192b4c030ceda4368e64a75eac36d3da
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.3.1
|
4
|
+
* Fix tasks directory missing from bundled gem
|
5
|
+
[#42](https://github.com/testdouble/good-migrations/pull/42) by
|
6
|
+
[@kjlape](https://github.com/kjlape)
|
7
|
+
|
8
|
+
## 0.3.0
|
9
|
+
* Minimum supported Ruby version is now 3.1
|
10
|
+
* Exclude unnecessary files from the packaged gem
|
11
|
+
|
3
12
|
## 0.2.1
|
4
13
|
|
5
14
|
* Fix Windows paths [#31](https://github.com/testdouble/good-migrations/pull/31)
|
data/example/Gemfile
CHANGED
data/example/config/boot.rb
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.1
|
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: 2025-03-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
|
@@ -197,7 +245,8 @@ files:
|
|
197
245
|
homepage: https://github.com/testdouble/good-migrations
|
198
246
|
licenses:
|
199
247
|
- MIT
|
200
|
-
metadata:
|
248
|
+
metadata:
|
249
|
+
rubygems_mfa_required: 'true'
|
201
250
|
post_install_message:
|
202
251
|
rdoc_options: []
|
203
252
|
require_paths:
|
@@ -206,14 +255,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
255
|
requirements:
|
207
256
|
- - ">="
|
208
257
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
258
|
+
version: 3.1.0
|
210
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
260
|
requirements:
|
212
261
|
- - ">="
|
213
262
|
- !ruby/object:Gem::Version
|
214
263
|
version: '0'
|
215
264
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
265
|
+
rubygems_version: 3.5.11
|
217
266
|
signing_key:
|
218
267
|
specification_version: 4
|
219
268
|
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
|