slonik_migration 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e91f59938392524c23e33e477734c3faa88b512900ebab204d2f5c49c19f839
4
- data.tar.gz: b87cb6f4e6f518b974f43393ed28bf4c97a5abd14c835e39ae211e202865387d
3
+ metadata.gz: 26fdea03acecd19a4a65b85ec09f1032d5383847bac55f72b0a7fa59628d4c02
4
+ data.tar.gz: '0887d4a94d21fce2894c56893c7ce43c09153bdeaab79bfab76e223e3e70fe95'
5
5
  SHA512:
6
- metadata.gz: 80d8c5a880b0b5f8bd7184a785affd795e9f6c0f255aa22ef305eaa855e3119dfebbcc0f9f41c12912784f504d4fcb2f142c1c9c9b6e1749ba8c1611b65a2653
7
- data.tar.gz: 8c88b74567361e765339afe6554512d8f726f1ab555ea262c97c0c77e3daf4f23fa9f37ef2dd3adc6098dc40e624270dd14ad46bd65b4e2017b7b95b2a1014eb
6
+ metadata.gz: a828d34199f0cbd8c7819b4e4ca2fc5173629cf0bffab37808a7e330576569ecb8d98154019a4f9cbba86309d33fbe12b00caf4fd4f09e82639dc34301ea587f
7
+ data.tar.gz: d41ead7e47a0994872066db2728687e04d5ac0a03e76317cfd7d048f8c425ea8a7850a9389587431a47c0e4f18d71fa1578da9adba523ef46a163af626791f1b
@@ -18,7 +18,7 @@ jobs:
18
18
  fail-fast: false
19
19
  matrix:
20
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']
21
+ gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71', 'rails72']
22
22
  exclude:
23
23
  - ruby: 2.4
24
24
  gemfile: rails60
@@ -28,20 +28,30 @@ jobs:
28
28
  gemfile: rails70
29
29
  - ruby: 2.4
30
30
  gemfile: rails71
31
+ - ruby: 2.4
32
+ gemfile: rails72
31
33
  - ruby: 2.5
32
34
  gemfile: rails70
33
35
  - ruby: 2.5
34
36
  gemfile: rails71
37
+ - ruby: 2.5
38
+ gemfile: rails72
35
39
  - ruby: 2.6
36
40
  gemfile: rails70
37
41
  - ruby: 2.6
38
42
  gemfile: rails71
43
+ - ruby: 2.6
44
+ gemfile: rails72
45
+ - ruby: 2.7
46
+ gemfile: rails72
39
47
  - ruby: 3.0
40
48
  gemfile: rails50
41
49
  - ruby: 3.0
42
50
  gemfile: rails51
43
51
  - ruby: 3.0
44
52
  gemfile: rails52
53
+ - ruby: 3.0
54
+ gemfile: rails72
45
55
  - ruby: 3.1
46
56
  gemfile: rails50
47
57
  - ruby: 3.1
@@ -74,6 +84,9 @@ jobs:
74
84
  with:
75
85
  ruby-version: ${{ matrix.ruby }}
76
86
  bundler-cache: true
87
+ - name: Bundle list
88
+ run: |
89
+ bundle list
77
90
  - name: Run test
78
91
  run: |
79
92
  bundle exec rspec spec/slonik_migration_spec.rb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.2
4
+
5
+ * Remove `ostruct` from dependencies.
6
+
3
7
  ## 1.2.1
4
8
 
5
9
  * 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", ">= 5.0"
6
+ gem "pg"
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "pg", "~> 0.18"
5
+
5
6
  gem "loofah", "~> 2.19.1"
6
7
 
7
8
  gemspec path: "../"
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "pg", "~> 0.18"
5
+
5
6
  gem "loofah", "~> 2.19.1"
6
7
 
7
8
  gemspec path: "../"
@@ -1,6 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.2.0"
4
+ gem "pg"
5
+
4
6
  gem "loofah", "~> 2.19.1"
5
7
 
6
8
  gemspec path: "../"
@@ -1,6 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "pg"
5
+
4
6
  gem "psych", "~> 3.3.0"
5
7
 
6
8
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.1.0"
4
+ gem "pg"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
+ gem "pg"
4
5
 
5
6
  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: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.2.0"
4
+ gem "pg"
5
+
6
+ gemspec path: "../"
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SlonikMigration
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
@@ -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.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
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
@@ -116,6 +88,7 @@ files:
116
88
  - gemfiles/rails61.gemfile
117
89
  - gemfiles/rails70.gemfile
118
90
  - gemfiles/rails71.gemfile
91
+ - gemfiles/rails72.gemfile
119
92
  - lib/generators/slonik_migration/config_generator.rb
120
93
  - lib/generators/slonik_migration/templates/slonik.yml
121
94
  - lib/slonik_migration.rb
@@ -144,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
117
  - !ruby/object:Gem::Version
145
118
  version: '0'
146
119
  requirements: []
147
- rubygems_version: 3.3.3
120
+ rubygems_version: 3.5.11
148
121
  signing_key:
149
122
  specification_version: 4
150
123
  summary: A rails migration gem for slony