slonik_migration 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +36 -5
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -0
- data/gemfiles/rails50.gemfile +2 -0
- data/gemfiles/rails51.gemfile +2 -0
- data/gemfiles/rails52.gemfile +3 -0
- data/gemfiles/rails60.gemfile +2 -0
- data/gemfiles/rails61.gemfile +1 -0
- data/gemfiles/rails70.gemfile +1 -0
- data/gemfiles/rails71.gemfile +6 -0
- data/gemfiles/rails72.gemfile +6 -0
- data/lib/generators/slonik_migration/config_generator.rb +2 -0
- data/lib/slonik_migration/command.rb +2 -0
- data/lib/slonik_migration/config.rb +10 -2
- data/lib/slonik_migration/extension.rb +2 -0
- data/lib/slonik_migration/railtie.rb +2 -0
- data/lib/slonik_migration/version.rb +3 -1
- data/lib/slonik_migration.rb +2 -0
- data/lib/tasks/slonik_migration.rake +2 -0
- data/slonik_migration.gemspec +0 -2
- metadata +8 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26fdea03acecd19a4a65b85ec09f1032d5383847bac55f72b0a7fa59628d4c02
|
4
|
+
data.tar.gz: '0887d4a94d21fce2894c56893c7ce43c09153bdeaab79bfab76e223e3e70fe95'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a828d34199f0cbd8c7819b4e4ca2fc5173629cf0bffab37808a7e330576569ecb8d98154019a4f9cbba86309d33fbe12b00caf4fd4f09e82639dc34301ea587f
|
7
|
+
data.tar.gz: d41ead7e47a0994872066db2728687e04d5ac0a03e76317cfd7d048f8c425ea8a7850a9389587431a47c0e4f18d71fa1578da9adba523ef46a163af626791f1b
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,10 +4,10 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-22.04
|
8
8
|
services:
|
9
9
|
postgres:
|
10
|
-
image: postgres:
|
10
|
+
image: postgres:15
|
11
11
|
env:
|
12
12
|
POSTGRES_USER: postgres
|
13
13
|
POSTGRES_PASSWORD: postgres
|
@@ -17,8 +17,8 @@ jobs:
|
|
17
17
|
strategy:
|
18
18
|
fail-fast: false
|
19
19
|
matrix:
|
20
|
-
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1]
|
21
|
-
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
|
20
|
+
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3]
|
21
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71', 'rails72']
|
22
22
|
exclude:
|
23
23
|
- ruby: 2.4
|
24
24
|
gemfile: rails60
|
@@ -26,22 +26,50 @@ jobs:
|
|
26
26
|
gemfile: rails61
|
27
27
|
- ruby: 2.4
|
28
28
|
gemfile: rails70
|
29
|
+
- ruby: 2.4
|
30
|
+
gemfile: rails71
|
31
|
+
- ruby: 2.4
|
32
|
+
gemfile: rails72
|
29
33
|
- ruby: 2.5
|
30
34
|
gemfile: rails70
|
35
|
+
- ruby: 2.5
|
36
|
+
gemfile: rails71
|
37
|
+
- ruby: 2.5
|
38
|
+
gemfile: rails72
|
31
39
|
- ruby: 2.6
|
32
40
|
gemfile: rails70
|
41
|
+
- ruby: 2.6
|
42
|
+
gemfile: rails71
|
43
|
+
- ruby: 2.6
|
44
|
+
gemfile: rails72
|
45
|
+
- ruby: 2.7
|
46
|
+
gemfile: rails72
|
33
47
|
- ruby: 3.0
|
34
48
|
gemfile: rails50
|
35
49
|
- ruby: 3.0
|
36
50
|
gemfile: rails51
|
37
51
|
- ruby: 3.0
|
38
52
|
gemfile: rails52
|
53
|
+
- ruby: 3.0
|
54
|
+
gemfile: rails72
|
39
55
|
- ruby: 3.1
|
40
56
|
gemfile: rails50
|
41
57
|
- ruby: 3.1
|
42
58
|
gemfile: rails51
|
43
59
|
- ruby: 3.1
|
44
60
|
gemfile: rails52
|
61
|
+
- ruby: 3.2
|
62
|
+
gemfile: rails50
|
63
|
+
- ruby: 3.2
|
64
|
+
gemfile: rails51
|
65
|
+
- ruby: 3.2
|
66
|
+
gemfile: rails52
|
67
|
+
- ruby: 3.3
|
68
|
+
gemfile: rails50
|
69
|
+
- ruby: 3.3
|
70
|
+
gemfile: rails51
|
71
|
+
- ruby: 3.3
|
72
|
+
gemfile: rails52
|
45
73
|
|
46
74
|
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
|
47
75
|
|
@@ -51,11 +79,14 @@ jobs:
|
|
51
79
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
52
80
|
|
53
81
|
steps:
|
54
|
-
- uses: actions/checkout@
|
82
|
+
- uses: actions/checkout@v4
|
55
83
|
- uses: ruby/setup-ruby@v1
|
56
84
|
with:
|
57
85
|
ruby-version: ${{ matrix.ruby }}
|
58
86
|
bundler-cache: true
|
87
|
+
- name: Bundle list
|
88
|
+
run: |
|
89
|
+
bundle list
|
59
90
|
- name: Run test
|
60
91
|
run: |
|
61
92
|
bundle exec rspec spec/slonik_migration_spec.rb
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails52.gemfile
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
data/gemfiles/rails61.gemfile
CHANGED
data/gemfiles/rails70.gemfile
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module SlonikMigration
|
4
4
|
class Config
|
5
|
+
attr_accessor :enabled, :owner, :command, :variables
|
6
|
+
|
7
|
+
def initialize(hash)
|
8
|
+
hash.each do |key, val|
|
9
|
+
send("#{key}=", val) if respond_to?("#{key}=")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
5
13
|
class << self
|
6
14
|
def load
|
7
15
|
hash = load_file
|
8
|
-
|
16
|
+
Config.new(hash).freeze
|
9
17
|
end
|
10
18
|
|
11
19
|
private
|
data/lib/slonik_migration.rb
CHANGED
data/slonik_migration.gemspec
CHANGED
@@ -19,8 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_dependency "activerecord", ">= 5.0"
|
21
21
|
|
22
|
-
spec.add_development_dependency "rails", ">= 5.0"
|
23
|
-
spec.add_development_dependency "pg"
|
24
22
|
spec.add_development_dependency "rspec"
|
25
23
|
spec.add_development_dependency "rspec-rails"
|
26
24
|
spec.add_development_dependency "simplecov"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slonik_migration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -24,34 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rails
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '5.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pg
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
28
|
name: rspec
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,6 +87,8 @@ files:
|
|
115
87
|
- gemfiles/rails60.gemfile
|
116
88
|
- gemfiles/rails61.gemfile
|
117
89
|
- gemfiles/rails70.gemfile
|
90
|
+
- gemfiles/rails71.gemfile
|
91
|
+
- gemfiles/rails72.gemfile
|
118
92
|
- lib/generators/slonik_migration/config_generator.rb
|
119
93
|
- lib/generators/slonik_migration/templates/slonik.yml
|
120
94
|
- lib/slonik_migration.rb
|
@@ -128,7 +102,7 @@ files:
|
|
128
102
|
homepage: https://github.com/kanety/slonik_migration
|
129
103
|
licenses: []
|
130
104
|
metadata: {}
|
131
|
-
post_install_message:
|
105
|
+
post_install_message:
|
132
106
|
rdoc_options: []
|
133
107
|
require_paths:
|
134
108
|
- lib
|
@@ -143,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
117
|
- !ruby/object:Gem::Version
|
144
118
|
version: '0'
|
145
119
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
147
|
-
signing_key:
|
120
|
+
rubygems_version: 3.5.11
|
121
|
+
signing_key:
|
148
122
|
specification_version: 4
|
149
123
|
summary: A rails migration gem for slony
|
150
124
|
test_files: []
|