sequel_migrations_toys 0.2.2 → 0.3.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 +4 -4
- data/CHANGELOG.md +19 -1
- data/README.md +1 -1
- data/lib/sequel_migrations_toys/template/_migration_file.rb +2 -1
- data/lib/sequel_migrations_toys/template/run.rb +4 -3
- data/lib/sequel_migrations_toys/template.rb +1 -1
- data/lib/sequel_migrations_toys/version.rb +1 -1
- metadata +24 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56343a48cd9424ae1af7a24ea44865052a73489359b13d3923dd7e06a5b4bfc6
|
|
4
|
+
data.tar.gz: cd22bc7d0796630ca3f1b1b40b284f2b34f5f2f386cc4ab456b98e934aa28773
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f9f0a1042a94f8e9065d6decde0141c95b7a43449c3da8258bc79a3669ec744bdcebc8241b3f09415413726cb89013cc7f95ace9f2d43b878ff379305031b8f
|
|
7
|
+
data.tar.gz: 4c26ad4905f6ac0217f712bf2161babf08aa241cf369396ef1daf8283ea5daf3dc906daab5edff854a098081c519d86701c2c5d1ea702d5b27f830b523a70092
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.3.0 (2022-08-10)
|
|
6
|
+
|
|
7
|
+
* Add Ruby 3.1 support.
|
|
8
|
+
* Drop Ruby 2.5 support.
|
|
9
|
+
* Update dependencies.
|
|
10
|
+
* Resolve new RuboCop offenses.
|
|
11
|
+
|
|
12
|
+
## 0.2.4 (2021-11-12)
|
|
13
|
+
|
|
14
|
+
* Require necessary `fileutils`.
|
|
15
|
+
* Update development dependencies.
|
|
16
|
+
|
|
17
|
+
## 0.2.3 (2021-08-09)
|
|
18
|
+
|
|
19
|
+
* Update dependencies.
|
|
4
20
|
|
|
5
21
|
## 0.2.2 (2020-09-14)
|
|
6
22
|
|
|
23
|
+
* Add `sequel` as a runtime dependency.
|
|
24
|
+
|
|
7
25
|
## 0.2.1 (2020-09-05)
|
|
8
26
|
|
|
9
27
|
* Fix `run` tool (`template` variable).
|
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ expand SequelMigrationsToys::Template,
|
|
|
38
38
|
# optional, has such default
|
|
39
39
|
db_migrations_dir: 'db/migrations',
|
|
40
40
|
db_connection_proc: (proc do
|
|
41
|
-
require "#{context_directory}/
|
|
41
|
+
require "#{context_directory}/application"
|
|
42
42
|
MyProject::Application.db_connection
|
|
43
43
|
end)
|
|
44
44
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'fileutils'
|
|
3
4
|
require 'memery'
|
|
4
5
|
require 'paint'
|
|
5
6
|
require 'time'
|
|
@@ -104,7 +105,7 @@ module SequelMigrationsToys
|
|
|
104
105
|
@disabled =
|
|
105
106
|
case value
|
|
106
107
|
when String
|
|
107
|
-
[DISABLING_EXT, DISABLING_EXT[1
|
|
108
|
+
[DISABLING_EXT, DISABLING_EXT[1..]].include? value
|
|
108
109
|
else
|
|
109
110
|
value
|
|
110
111
|
end
|
|
@@ -12,19 +12,20 @@ module SequelMigrationsToys
|
|
|
12
12
|
|
|
13
13
|
flag :target, '-t', '--target=VERSION'
|
|
14
14
|
flag :current, '-c', '--current=VERSION', default: 'current'
|
|
15
|
+
flag :dump, '--[no-]dump', default: true
|
|
15
16
|
flag :force, '-f', '--force', desc: 'Allow missing migration files'
|
|
16
17
|
|
|
17
|
-
SEQUEL_EXTENSIONS = %i[migration inflector].freeze
|
|
18
|
+
self::SEQUEL_EXTENSIONS = %i[migration inflector].freeze
|
|
18
19
|
|
|
19
20
|
to_run do
|
|
20
21
|
@template = template
|
|
21
22
|
|
|
22
23
|
## PSQL tools or analog are required
|
|
23
|
-
exec_tool 'database:dump'
|
|
24
|
+
exec_tool 'database:dump' if dump
|
|
24
25
|
|
|
25
26
|
## https://github.com/jeremyevans/sequel/issues/1182#issuecomment-217696754
|
|
26
27
|
require 'sequel'
|
|
27
|
-
SEQUEL_EXTENSIONS.each { |extension| Sequel.extension extension }
|
|
28
|
+
self.class::SEQUEL_EXTENSIONS.each { |extension| Sequel.extension extension }
|
|
28
29
|
|
|
29
30
|
Sequel::Migrator.run(
|
|
30
31
|
@template.db_connection, @template.db_migrations_dir, options
|
|
@@ -9,7 +9,7 @@ module SequelMigrationsToys
|
|
|
9
9
|
|
|
10
10
|
attr_reader :db_migrations_dir, :db_connection_proc
|
|
11
11
|
|
|
12
|
-
def initialize(db_migrations_dir: 'db/migrations'
|
|
12
|
+
def initialize(db_connection_proc:, db_migrations_dir: 'db/migrations')
|
|
13
13
|
@db_migrations_dir = db_migrations_dir
|
|
14
14
|
@db_connection_proc = db_connection_proc
|
|
15
15
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel_migrations_toys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Popov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: alt_memery
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
47
|
+
version: 0.13.0
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
54
|
+
version: 0.13.0
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: pry-byebug
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -86,42 +86,42 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.
|
|
89
|
+
version: 0.12.1
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.
|
|
96
|
+
version: 0.12.1
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: toys
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.
|
|
103
|
+
version: 0.13.0
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.
|
|
110
|
+
version: 0.13.0
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: codecov
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 0.
|
|
117
|
+
version: 0.6.0
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.
|
|
124
|
+
version: 0.6.0
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: rspec
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -142,28 +142,28 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 0.
|
|
145
|
+
version: 0.21.2
|
|
146
146
|
type: :development
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: 0.
|
|
152
|
+
version: 0.21.2
|
|
153
153
|
- !ruby/object:Gem::Dependency
|
|
154
154
|
name: rubocop
|
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
|
157
157
|
- - "~>"
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
|
-
version:
|
|
159
|
+
version: 1.34.0
|
|
160
160
|
type: :development
|
|
161
161
|
prerelease: false
|
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
|
164
164
|
- - "~>"
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
166
|
+
version: 1.34.0
|
|
167
167
|
- !ruby/object:Gem::Dependency
|
|
168
168
|
name: rubocop-performance
|
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -184,14 +184,14 @@ dependencies:
|
|
|
184
184
|
requirements:
|
|
185
185
|
- - "~>"
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: '
|
|
187
|
+
version: '2.0'
|
|
188
188
|
type: :development
|
|
189
189
|
prerelease: false
|
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: '
|
|
194
|
+
version: '2.0'
|
|
195
195
|
description: 'Toys template for Sequel migrations.
|
|
196
196
|
|
|
197
197
|
'
|
|
@@ -223,9 +223,13 @@ homepage: https://github.com/AlexWayfer/sequel_migrations_toys
|
|
|
223
223
|
licenses:
|
|
224
224
|
- MIT
|
|
225
225
|
metadata:
|
|
226
|
-
|
|
226
|
+
bug_tracker_uri: https://github.com/AlexWayfer/sequel_migrations_toys/issues
|
|
227
|
+
changelog_uri: https://github.com/AlexWayfer/sequel_migrations_toys/blob/v0.3.0/CHANGELOG.md
|
|
228
|
+
documentation_uri: http://www.rubydoc.info/gems/sequel_migrations_toys/0.3.0
|
|
227
229
|
homepage_uri: https://github.com/AlexWayfer/sequel_migrations_toys
|
|
228
|
-
|
|
230
|
+
rubygems_mfa_required: 'true'
|
|
231
|
+
source_code_uri: https://github.com/AlexWayfer/sequel_migrations_toys
|
|
232
|
+
wiki_uri: https://github.com/AlexWayfer/sequel_migrations_toys/wiki
|
|
229
233
|
post_install_message:
|
|
230
234
|
rdoc_options: []
|
|
231
235
|
require_paths:
|
|
@@ -234,14 +238,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
234
238
|
requirements:
|
|
235
239
|
- - ">="
|
|
236
240
|
- !ruby/object:Gem::Version
|
|
237
|
-
version: '2.
|
|
241
|
+
version: '2.6'
|
|
238
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
243
|
requirements:
|
|
240
244
|
- - ">="
|
|
241
245
|
- !ruby/object:Gem::Version
|
|
242
246
|
version: '0'
|
|
243
247
|
requirements: []
|
|
244
|
-
rubygems_version: 3.
|
|
248
|
+
rubygems_version: 3.3.7
|
|
245
249
|
signing_key:
|
|
246
250
|
specification_version: 4
|
|
247
251
|
summary: Toys template for Sequel migrations.
|