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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3caa52c10f2bf3e46027dbb8c0ff309e8dad46d9f5efc45694d31af21c2ba9f7
4
- data.tar.gz: 5f430959a86ff8b3bcb71e911eba4115bb8e4f2acb69c03554a19e66cc9b19d6
3
+ metadata.gz: 26fdea03acecd19a4a65b85ec09f1032d5383847bac55f72b0a7fa59628d4c02
4
+ data.tar.gz: '0887d4a94d21fce2894c56893c7ce43c09153bdeaab79bfab76e223e3e70fe95'
5
5
  SHA512:
6
- metadata.gz: a06fdbe3f87891a5c456ad5da721a064044db89ab66059dcb1a0f4ce3c5a84601f785a3f37de2d8ac9a15e118b5855e8b1e71f550774c54f714497e7eb8f7674
7
- data.tar.gz: 8a9ff1a400a121b4759251733892dd49bcecb21e1bcf0e47b4718c039743f6102879f51cb44c790c88038b99d6739440b1a4786d0595b4a10e6ccc92032451d7
6
+ metadata.gz: a828d34199f0cbd8c7819b4e4ca2fc5173629cf0bffab37808a7e330576569ecb8d98154019a4f9cbba86309d33fbe12b00caf4fd4f09e82639dc34301ea587f
7
+ data.tar.gz: d41ead7e47a0994872066db2728687e04d5ac0a03e76317cfd7d048f8c425ea8a7850a9389587431a47c0e4f18d71fa1578da9adba523ef46a163af626791f1b
@@ -4,10 +4,10 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-22.04
8
8
  services:
9
9
  postgres:
10
- image: postgres:9.5
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@v2
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
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.2
4
+
5
+ * Remove `ostruct` from dependencies.
6
+
7
+ ## 1.2.1
8
+
9
+ * Add `frozen_string_literal: true`.
10
+
3
11
  ## 1.2.0
4
12
 
5
13
  * Support ruby 3.1.
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"
@@ -3,4 +3,6 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "pg", "~> 0.18"
5
5
 
6
+ gem "loofah", "~> 2.19.1"
7
+
6
8
  gemspec path: "../"
@@ -3,4 +3,6 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "pg", "~> 0.18"
5
5
 
6
+ gem "loofah", "~> 2.19.1"
7
+
6
8
  gemspec path: "../"
@@ -1,5 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.2.0"
4
+ gem "pg"
5
+
6
+ gem "loofah", "~> 2.19.1"
4
7
 
5
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: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.1.0"
4
+ gem "pg"
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,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails/generators'
2
4
 
3
5
  module SlonikMigration
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'yaml'
2
4
  require 'shellwords'
3
5
 
@@ -1,11 +1,19 @@
1
- require 'ostruct'
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
- OpenStruct.new(hash).freeze
16
+ Config.new(hash).freeze
9
17
  end
10
18
 
11
19
  private
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'command'
2
4
 
3
5
  module SlonikMigration
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SlonikMigration
2
4
  class Railtie < Rails::Railtie
3
5
  rake_tasks do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SlonikMigration
2
- VERSION = '1.2.0'
4
+ VERSION = '1.2.2'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'slonik_migration/version'
2
4
  require 'slonik_migration/railtie' if defined?(Rails)
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'slonik_migration/config'
2
4
  require 'slonik_migration/extension'
3
5
 
@@ -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.0
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: 2022-01-08 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
@@ -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.1.2
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: []