slonik_migration 1.2.1 → 1.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/.github/workflows/ci.yml +10 -37
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -0
- data/LICENSE +0 -0
- data/README.md +2 -2
- data/Rakefile +0 -0
- data/gemfiles/rails70.gemfile +10 -0
- data/gemfiles/rails71.gemfile +1 -0
- data/gemfiles/{rails61.gemfile → rails72.gemfile} +2 -1
- data/gemfiles/{rails60.gemfile → rails80.gemfile} +2 -2
- data/gemfiles/{rails52.gemfile → rails81.gemfile} +2 -2
- data/lib/generators/slonik_migration/config_generator.rb +0 -0
- data/lib/generators/slonik_migration/templates/slonik.yml +0 -0
- data/lib/slonik_migration/command.rb +0 -0
- data/lib/slonik_migration/config.rb +9 -3
- data/lib/slonik_migration/extension.rb +0 -0
- data/lib/slonik_migration/railtie.rb +0 -0
- data/lib/slonik_migration/version.rb +1 -1
- data/lib/slonik_migration.rb +0 -0
- data/lib/tasks/slonik_migration.rake +0 -0
- data/slonik_migration.gemspec +3 -3
- metadata +9 -42
- data/gemfiles/rails50.gemfile +0 -7
- data/gemfiles/rails51.gemfile +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12b9063d103812df67a202c92469e7f73ae669d14ba45d518e8db2eff0508ffc
|
|
4
|
+
data.tar.gz: d67c922417b5039182aefbae955db7a8ca61dceb443ab79ece6e57ecc040efee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 585cecacf3a4eb90558bc5ab9cde54ba43624f664919d85d6ee72b04716d7e8160cbc97c556abae02fd1b15c0b93395243a93086d4ec4a2889bfc5ac27f59313
|
|
7
|
+
data.tar.gz: e12a313f57e191db593b6c8dce0610e62eda255ae8676c19bde207f962a83ce6576c40ce650c5c19e590cbe367fb0654945d8b3314578cfc4080fe0f02d1166f
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -17,49 +17,19 @@ jobs:
|
|
|
17
17
|
strategy:
|
|
18
18
|
fail-fast: false
|
|
19
19
|
matrix:
|
|
20
|
-
ruby: [
|
|
21
|
-
gemfile: ['
|
|
20
|
+
ruby: ['3.0', 3.1, 3.2, 3.3, 3.4, '4.0']
|
|
21
|
+
gemfile: ['rails70', 'rails71', 'rails72', 'rails80', 'rails81']
|
|
22
22
|
exclude:
|
|
23
|
-
- ruby: 2.4
|
|
24
|
-
gemfile: rails60
|
|
25
|
-
- ruby: 2.4
|
|
26
|
-
gemfile: rails61
|
|
27
|
-
- ruby: 2.4
|
|
28
|
-
gemfile: rails70
|
|
29
|
-
- ruby: 2.4
|
|
30
|
-
gemfile: rails71
|
|
31
|
-
- ruby: 2.5
|
|
32
|
-
gemfile: rails70
|
|
33
|
-
- ruby: 2.5
|
|
34
|
-
gemfile: rails71
|
|
35
|
-
- ruby: 2.6
|
|
36
|
-
gemfile: rails70
|
|
37
|
-
- ruby: 2.6
|
|
38
|
-
gemfile: rails71
|
|
39
23
|
- ruby: 3.0
|
|
40
|
-
gemfile:
|
|
24
|
+
gemfile: rails72
|
|
41
25
|
- ruby: 3.0
|
|
42
|
-
gemfile:
|
|
26
|
+
gemfile: rails80
|
|
43
27
|
- ruby: 3.0
|
|
44
|
-
gemfile:
|
|
28
|
+
gemfile: rails81
|
|
45
29
|
- ruby: 3.1
|
|
46
|
-
gemfile:
|
|
30
|
+
gemfile: rails80
|
|
47
31
|
- ruby: 3.1
|
|
48
|
-
gemfile:
|
|
49
|
-
- ruby: 3.1
|
|
50
|
-
gemfile: rails52
|
|
51
|
-
- ruby: 3.2
|
|
52
|
-
gemfile: rails50
|
|
53
|
-
- ruby: 3.2
|
|
54
|
-
gemfile: rails51
|
|
55
|
-
- ruby: 3.2
|
|
56
|
-
gemfile: rails52
|
|
57
|
-
- ruby: 3.3
|
|
58
|
-
gemfile: rails50
|
|
59
|
-
- ruby: 3.3
|
|
60
|
-
gemfile: rails51
|
|
61
|
-
- ruby: 3.3
|
|
62
|
-
gemfile: rails52
|
|
32
|
+
gemfile: rails81
|
|
63
33
|
|
|
64
34
|
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
|
|
65
35
|
|
|
@@ -74,6 +44,9 @@ jobs:
|
|
|
74
44
|
with:
|
|
75
45
|
ruby-version: ${{ matrix.ruby }}
|
|
76
46
|
bundler-cache: true
|
|
47
|
+
- name: Bundle list
|
|
48
|
+
run: |
|
|
49
|
+
bundle list
|
|
77
50
|
- name: Run test
|
|
78
51
|
run: |
|
|
79
52
|
bundle exec rspec spec/slonik_migration_spec.rb
|
data/.gitignore
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
|
File without changes
|
data/README.md
CHANGED
data/Rakefile
CHANGED
|
File without changes
|
data/gemfiles/rails70.gemfile
CHANGED
data/gemfiles/rails71.gemfile
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'ostruct'
|
|
4
|
-
|
|
5
3
|
module SlonikMigration
|
|
6
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
|
+
|
|
7
13
|
class << self
|
|
8
14
|
def load
|
|
9
15
|
hash = load_file
|
|
10
|
-
|
|
16
|
+
Config.new(hash).freeze
|
|
11
17
|
end
|
|
12
18
|
|
|
13
19
|
private
|
|
File without changes
|
|
File without changes
|
data/lib/slonik_migration.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/slonik_migration.gemspec
CHANGED
|
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
18
18
|
spec.require_paths = ["lib"]
|
|
19
19
|
|
|
20
|
-
spec.
|
|
20
|
+
spec.required_ruby_version = ">= 3.0"
|
|
21
|
+
|
|
22
|
+
spec.add_dependency "activerecord", ">= 7.0"
|
|
21
23
|
|
|
22
|
-
spec.add_development_dependency "rails", ">= 5.0"
|
|
23
|
-
spec.add_development_dependency "pg"
|
|
24
24
|
spec.add_development_dependency "rspec"
|
|
25
25
|
spec.add_development_dependency "rspec-rails"
|
|
26
26
|
spec.add_development_dependency "simplecov"
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slonik_migration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yoshikazu Kaneta
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activerecord
|
|
@@ -16,42 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '7.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
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'
|
|
25
|
+
version: '7.0'
|
|
55
26
|
- !ruby/object:Gem::Dependency
|
|
56
27
|
name: rspec
|
|
57
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -109,13 +80,11 @@ files:
|
|
|
109
80
|
- LICENSE
|
|
110
81
|
- README.md
|
|
111
82
|
- Rakefile
|
|
112
|
-
- gemfiles/rails50.gemfile
|
|
113
|
-
- gemfiles/rails51.gemfile
|
|
114
|
-
- gemfiles/rails52.gemfile
|
|
115
|
-
- gemfiles/rails60.gemfile
|
|
116
|
-
- gemfiles/rails61.gemfile
|
|
117
83
|
- gemfiles/rails70.gemfile
|
|
118
84
|
- gemfiles/rails71.gemfile
|
|
85
|
+
- gemfiles/rails72.gemfile
|
|
86
|
+
- gemfiles/rails80.gemfile
|
|
87
|
+
- gemfiles/rails81.gemfile
|
|
119
88
|
- lib/generators/slonik_migration/config_generator.rb
|
|
120
89
|
- lib/generators/slonik_migration/templates/slonik.yml
|
|
121
90
|
- lib/slonik_migration.rb
|
|
@@ -129,7 +98,6 @@ files:
|
|
|
129
98
|
homepage: https://github.com/kanety/slonik_migration
|
|
130
99
|
licenses: []
|
|
131
100
|
metadata: {}
|
|
132
|
-
post_install_message:
|
|
133
101
|
rdoc_options: []
|
|
134
102
|
require_paths:
|
|
135
103
|
- lib
|
|
@@ -137,15 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
137
105
|
requirements:
|
|
138
106
|
- - ">="
|
|
139
107
|
- !ruby/object:Gem::Version
|
|
140
|
-
version: '0'
|
|
108
|
+
version: '3.0'
|
|
141
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
110
|
requirements:
|
|
143
111
|
- - ">="
|
|
144
112
|
- !ruby/object:Gem::Version
|
|
145
113
|
version: '0'
|
|
146
114
|
requirements: []
|
|
147
|
-
rubygems_version: 3.
|
|
148
|
-
signing_key:
|
|
115
|
+
rubygems_version: 3.6.9
|
|
149
116
|
specification_version: 4
|
|
150
117
|
summary: A rails migration gem for slony
|
|
151
118
|
test_files: []
|
data/gemfiles/rails50.gemfile
DELETED