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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e91f59938392524c23e33e477734c3faa88b512900ebab204d2f5c49c19f839
4
- data.tar.gz: b87cb6f4e6f518b974f43393ed28bf4c97a5abd14c835e39ae211e202865387d
3
+ metadata.gz: 12b9063d103812df67a202c92469e7f73ae669d14ba45d518e8db2eff0508ffc
4
+ data.tar.gz: d67c922417b5039182aefbae955db7a8ca61dceb443ab79ece6e57ecc040efee
5
5
  SHA512:
6
- metadata.gz: 80d8c5a880b0b5f8bd7184a785affd795e9f6c0f255aa22ef305eaa855e3119dfebbcc0f9f41c12912784f504d4fcb2f142c1c9c9b6e1749ba8c1611b65a2653
7
- data.tar.gz: 8c88b74567361e765339afe6554512d8f726f1ab555ea262c97c0c77e3daf4f23fa9f37ef2dd3adc6098dc40e624270dd14ad46bd65b4e2017b7b95b2a1014eb
6
+ metadata.gz: 585cecacf3a4eb90558bc5ab9cde54ba43624f664919d85d6ee72b04716d7e8160cbc97c556abae02fd1b15c0b93395243a93086d4ec4a2889bfc5ac27f59313
7
+ data.tar.gz: e12a313f57e191db593b6c8dce0610e62eda255ae8676c19bde207f962a83ce6576c40ce650c5c19e590cbe367fb0654945d8b3314578cfc4080fe0f02d1166f
@@ -17,49 +17,19 @@ 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, 3.2, 3.3]
21
- gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
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: rails50
24
+ gemfile: rails72
41
25
  - ruby: 3.0
42
- gemfile: rails51
26
+ gemfile: rails80
43
27
  - ruby: 3.0
44
- gemfile: rails52
28
+ gemfile: rails81
45
29
  - ruby: 3.1
46
- gemfile: rails50
30
+ gemfile: rails80
47
31
  - ruby: 3.1
48
- gemfile: rails51
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
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.0
4
+
5
+ * Drop support for ruby <= 2.7, rails <= 6.1.
6
+
7
+ ## 1.2.2
8
+
9
+ * Remove `ostruct` from dependencies.
10
+
3
11
  ## 1.2.1
4
12
 
5
13
  * Add `frozen_string_literal: true`.
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem "rails", ">= 7.0"
6
+ gem "pg"
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -4,8 +4,8 @@ A rails migration gem for slony using `slonik_execute_script` command.
4
4
 
5
5
  ## Dependencies
6
6
 
7
- * ruby 2.4+
8
- * activerecord 5.0+
7
+ * ruby 3.0+
8
+ * activerecord 7.0+
9
9
  * slony 2.2+
10
10
 
11
11
  ## Installation
data/Rakefile CHANGED
File without changes
@@ -1,5 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
+ gem "pg"
5
+
6
+ gem "concurrent-ruby", "<= 1.3.4"
7
+
8
+ if RUBY_VERSION >= "3.4"
9
+ gem "bigdecimal"
10
+ gem "base64"
11
+ gem "drb"
12
+ gem "mutex_m"
13
+ end
4
14
 
5
15
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.1.0"
4
+ gem "pg"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 6.1.0"
3
+ gem "rails", "~> 7.2.0"
4
+ gem "pg"
4
5
 
5
6
  gemspec path: "../"
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 6.0.0"
4
- gem "psych", "~> 3.3.0"
3
+ gem "rails", "~> 8.0.0"
4
+ gem "pg"
5
5
 
6
6
  gemspec path: "../"
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 5.2.0"
4
- gem "loofah", "~> 2.19.1"
3
+ gem "rails", "~> 8.1.0"
4
+ gem "pg"
5
5
 
6
6
  gemspec path: "../"
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
- OpenStruct.new(hash).freeze
16
+ Config.new(hash).freeze
11
17
  end
12
18
 
13
19
  private
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SlonikMigration
4
- VERSION = '1.2.1'
4
+ VERSION = '1.3.0'
5
5
  end
File without changes
File without changes
@@ -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.add_dependency "activerecord", ">= 5.0"
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.2.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: 2024-06-23 00:00:00.000000000 Z
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: '5.0'
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: '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'
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.3.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: []
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.0.0"
4
- gem "pg", "~> 0.18"
5
- gem "loofah", "~> 2.19.1"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.1.0"
4
- gem "pg", "~> 0.18"
5
- gem "loofah", "~> 2.19.1"
6
-
7
- gemspec path: "../"