manageiq-postgres_ha_admin 3.1.1 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +25 -29
- data/.github/workflows/ci.yaml +48 -0
- data/.rspec +0 -1
- data/.rubocop.yml +3 -3
- data/.rubocop_cc.yml +3 -4
- data/.whitesource +3 -0
- data/CHANGELOG.md +21 -1
- data/CODEOWNERS +1 -1
- data/Gemfile +8 -1
- data/README.md +1 -3
- data/lib/manageiq/postgres_ha_admin/version.rb +1 -1
- data/manageiq-postgres_ha_admin.gemspec +12 -6
- metadata +33 -38
- data/.travis.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 302246b3dedf536233f20df1c381932adbbe7c85366e400dd3678eda57f8ebf4
|
4
|
+
data.tar.gz: cfc4aee15059200a0dddd56dea7a6f4563b89b24742682dd1c10b66e26bd9ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3169f9907e9b75c426dfea5908945921e82ef27a68769427ae556ab703d683ca0a5b4887d7206526417acdee0f908a1660ddbc90717d18ff09fabd873b8b5b6b
|
7
|
+
data.tar.gz: 15766ce8377afa98450b7928d46dc790fb2a9f874760914fa929583d4951bae18288c1ff3b5dff7e75d07247723c17e0db87d71703fb22f7103db0d7e573b875
|
data/.codeclimate.yml
CHANGED
@@ -1,18 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
-
|
4
|
-
|
5
|
-
-
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
-
|
10
|
-
|
1
|
+
prepare:
|
2
|
+
fetch:
|
3
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
|
4
|
+
path: ".rubocop_base.yml"
|
5
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
|
6
|
+
path: ".rubocop_cc_base.yml"
|
7
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/base.yml
|
8
|
+
path: styles/base.yml
|
9
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/cc_base.yml
|
10
|
+
path: styles/cc_base.yml
|
11
|
+
plugins:
|
12
|
+
rubocop:
|
13
|
+
enabled: true
|
14
|
+
config: ".rubocop_cc.yml"
|
15
|
+
channel: rubocop-0-82
|
11
16
|
brakeman:
|
12
|
-
# very slow :sad_panda:
|
13
17
|
enabled: false
|
14
18
|
bundler-audit:
|
15
|
-
# requires Gemfile.lock
|
16
19
|
enabled: false
|
17
20
|
csslint:
|
18
21
|
enabled: false
|
@@ -24,24 +27,17 @@ engines:
|
|
24
27
|
- javascript
|
25
28
|
eslint:
|
26
29
|
enabled: false
|
27
|
-
channel:
|
30
|
+
channel: eslint-3
|
28
31
|
fixme:
|
29
|
-
# let's enable later
|
30
32
|
enabled: false
|
31
33
|
markdownlint:
|
32
|
-
# let's enable later
|
33
34
|
enabled: false
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
ratings:
|
44
|
-
paths:
|
45
|
-
- Gemfile.lock
|
46
|
-
- "**.rake"
|
47
|
-
- "**.rb"
|
35
|
+
exclude_patterns:
|
36
|
+
- ".git/"
|
37
|
+
- "**.xml"
|
38
|
+
- "**.yaml"
|
39
|
+
- "**.yml"
|
40
|
+
- locale/
|
41
|
+
- spec/
|
42
|
+
- tools/
|
43
|
+
version: '2'
|
@@ -0,0 +1,48 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
schedule:
|
7
|
+
- cron: '0 0 * * 0'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
ci:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version:
|
15
|
+
- '2.5'
|
16
|
+
- '2.6'
|
17
|
+
- '2.7'
|
18
|
+
- '3.0'
|
19
|
+
rails-version:
|
20
|
+
- '6.0'
|
21
|
+
- '6.1'
|
22
|
+
services:
|
23
|
+
postgres:
|
24
|
+
image: manageiq/postgresql:10
|
25
|
+
env:
|
26
|
+
POSTGRESQL_USER: root
|
27
|
+
POSTGRESQL_PASSWORD: smartvm
|
28
|
+
POSTGRESQL_DATABASE: vmdb_test
|
29
|
+
options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
|
30
|
+
ports:
|
31
|
+
- 5432:5432
|
32
|
+
env:
|
33
|
+
PGHOST: localhost
|
34
|
+
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
|
35
|
+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
36
|
+
steps:
|
37
|
+
- uses: actions/checkout@v2
|
38
|
+
- name: Set up Ruby
|
39
|
+
uses: ruby/setup-ruby@v1
|
40
|
+
with:
|
41
|
+
ruby-version: ${{ matrix.ruby-version }}
|
42
|
+
bundler-cache: true
|
43
|
+
- name: Run tests
|
44
|
+
run: bundle exec rake
|
45
|
+
- name: Report code coverage
|
46
|
+
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.rails-version == '6.1' }}
|
47
|
+
continue-on-error: true
|
48
|
+
uses: paambaati/codeclimate-action@v3.0.0
|
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
inherit_from:
|
2
|
-
-
|
3
|
-
|
4
|
-
- .
|
2
|
+
- ".rubocop_local.yml"
|
3
|
+
inherit_gem:
|
4
|
+
manageiq-style: ".rubocop_base.yml"
|
data/.rubocop_cc.yml
CHANGED
data/.whitesource
ADDED
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,23 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [3.1.4] - 2022-04-30
|
9
|
+
### Changed
|
10
|
+
- Loosed rails dependency to include rails 6.1
|
11
|
+
- Support Ruby 3.0
|
12
|
+
|
13
|
+
## [3.1.3] - 2021-09-27
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
- Loosen manageiq-password dependency to < 2 [#26](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/26)
|
17
|
+
- Update ruby versions to 2.5.8 minimum [#25](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/25)
|
18
|
+
- Switch to manageiq-style [#24](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/24)
|
19
|
+
|
20
|
+
## [3.1.2] - 2020-12-21
|
21
|
+
- Allow for Rails 6.0 [#23](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/23)
|
22
|
+
|
6
23
|
## [3.1.1] - 2019-12-12
|
7
24
|
- Remove the dependency on linux_admin [#19](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/19)
|
8
25
|
|
@@ -35,7 +52,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
35
52
|
### Changed
|
36
53
|
- Make changes for upgrading repmgr to version 4 [#4](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/4)
|
37
54
|
|
38
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.1.
|
55
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.1.4...master
|
56
|
+
[3.1.4]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.1.3...v3.1.4
|
57
|
+
[3.1.3]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.1.2...v3.1.3
|
58
|
+
[3.1.2]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.1.1...v3.1.2
|
39
59
|
[3.1.1]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.1.0...v3.1.1
|
40
60
|
[3.1.0]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.0.1...v3.1.0
|
41
61
|
[3.0.1]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v3.0.0...v3.0.1
|
data/CODEOWNERS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
* @
|
1
|
+
* @Fryguy
|
data/Gemfile
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in manageiq-
|
3
|
+
# Specify your gem's dependencies in manageiq-postgres_ha_admin.gemspec
|
4
4
|
gemspec
|
5
|
+
|
6
|
+
case ENV['TEST_RAILS_VERSION']
|
7
|
+
when "6.0"
|
8
|
+
gem "activesupport", "~>6.0.4"
|
9
|
+
when "6.1"
|
10
|
+
gem "activesupport", "~>6.1.4"
|
11
|
+
end
|
data/README.md
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
# ManageIQ::PostgresHaAdmin
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/manageiq-postgres_ha_admin.svg)](http://badge.fury.io/rb/manageiq-postgres_ha_admin)
|
4
|
-
[![
|
4
|
+
[![CI](https://github.com/ManageIQ/manageiq-postgres_ha_admin/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-postgres_ha_admin/actions/workflows/ci.yaml)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-postgres_ha_admin.svg)](https://codeclimate.com/github/ManageIQ/manageiq-postgres_ha_admin)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-postgres_ha_admin/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-postgres_ha_admin/coverage)
|
7
|
-
[![Dependency Status](https://gemnasium.com/ManageIQ/manageiq-postgres_ha_admin.svg)](https://gemnasium.com/ManageIQ/manageiq-postgres_ha_admin)
|
8
|
-
[![Security](https://hakiri.io/github/ManageIQ/manageiq-postgres_ha_admin/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-postgres_ha_admin/master)
|
9
7
|
|
10
8
|
[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq-postgres_ha_admin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
11
9
|
|
@@ -16,20 +16,26 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
17
|
f.match(%r{^(test|spec|features)/})
|
18
18
|
end
|
19
|
+
spec.metadata = {
|
20
|
+
"changelog_uri" => "https://github.com/ManageIQ/manageiq-postgres_ha_admin/blob/master/CHANGELOG.md",
|
21
|
+
"source_code_uri" => "https://github.com/ManageIQ/manageiq-postgres_ha_admin/",
|
22
|
+
"bug_tracker_uri" => "https://github.com/ManageIQ/manageiq-postgres_ha_admin/issues"
|
23
|
+
}
|
19
24
|
spec.bindir = "bin"
|
20
25
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
26
|
spec.require_paths = ["lib"]
|
22
27
|
|
23
|
-
spec.
|
28
|
+
spec.required_ruby_version = ">= 2.5.8"
|
29
|
+
|
30
|
+
spec.add_runtime_dependency "activesupport", ">=5.0", "< 7.0"
|
24
31
|
spec.add_runtime_dependency "awesome_spawn", "~> 1.4"
|
25
|
-
spec.add_runtime_dependency "manageiq-password", "
|
32
|
+
spec.add_runtime_dependency "manageiq-password", "< 2"
|
26
33
|
spec.add_runtime_dependency "pg"
|
27
34
|
spec.add_runtime_dependency "pg-dsn_parser", "~> 0.1"
|
28
35
|
|
29
36
|
spec.add_development_dependency "bundler"
|
30
|
-
spec.add_development_dependency "
|
37
|
+
spec.add_development_dependency "manageiq-style"
|
31
38
|
spec.add_development_dependency "rake"
|
32
|
-
spec.add_development_dependency "rspec",
|
33
|
-
spec.add_development_dependency "
|
34
|
-
spec.add_development_dependency "simplecov"
|
39
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
40
|
+
spec.add_development_dependency "simplecov", ">= 0.21.2"
|
35
41
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-postgres_ha_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '5.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '5.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: awesome_spawn
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +48,16 @@ dependencies:
|
|
42
48
|
name: manageiq-password
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - "<"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '2'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- - "
|
58
|
+
- - "<"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '2'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: pg
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,19 +101,19 @@ dependencies:
|
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '0'
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
104
|
+
name: manageiq-style
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
100
106
|
requirements:
|
101
|
-
- - "
|
107
|
+
- - ">="
|
102
108
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
109
|
+
version: '0'
|
104
110
|
type: :development
|
105
111
|
prerelease: false
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
|
-
- - "
|
114
|
+
- - ">="
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
116
|
+
version: '0'
|
111
117
|
- !ruby/object:Gem::Dependency
|
112
118
|
name: rake
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,48 +142,35 @@ dependencies:
|
|
136
142
|
- - "~>"
|
137
143
|
- !ruby/object:Gem::Version
|
138
144
|
version: '3.0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rubocop
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
145
|
- !ruby/object:Gem::Dependency
|
154
146
|
name: simplecov
|
155
147
|
requirement: !ruby/object:Gem::Requirement
|
156
148
|
requirements:
|
157
149
|
- - ">="
|
158
150
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
151
|
+
version: 0.21.2
|
160
152
|
type: :development
|
161
153
|
prerelease: false
|
162
154
|
version_requirements: !ruby/object:Gem::Requirement
|
163
155
|
requirements:
|
164
156
|
- - ">="
|
165
157
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
158
|
+
version: 0.21.2
|
167
159
|
description: ManageIQ Postgres H.A. Admin
|
168
|
-
email:
|
160
|
+
email:
|
169
161
|
executables: []
|
170
162
|
extensions: []
|
171
163
|
extra_rdoc_files: []
|
172
164
|
files:
|
173
165
|
- ".codeclimate.yml"
|
166
|
+
- ".github/workflows/ci.yaml"
|
174
167
|
- ".gitignore"
|
175
168
|
- ".rspec"
|
176
169
|
- ".rspec_ci"
|
177
170
|
- ".rubocop.yml"
|
178
171
|
- ".rubocop_cc.yml"
|
179
172
|
- ".rubocop_local.yml"
|
180
|
-
- ".
|
173
|
+
- ".whitesource"
|
181
174
|
- CHANGELOG.md
|
182
175
|
- CODEOWNERS
|
183
176
|
- Gemfile
|
@@ -198,8 +191,11 @@ files:
|
|
198
191
|
homepage: https://github.com/ManageIQ/manageiq-postgres_ha_admin
|
199
192
|
licenses:
|
200
193
|
- Apache-2.0
|
201
|
-
metadata:
|
202
|
-
|
194
|
+
metadata:
|
195
|
+
changelog_uri: https://github.com/ManageIQ/manageiq-postgres_ha_admin/blob/master/CHANGELOG.md
|
196
|
+
source_code_uri: https://github.com/ManageIQ/manageiq-postgres_ha_admin/
|
197
|
+
bug_tracker_uri: https://github.com/ManageIQ/manageiq-postgres_ha_admin/issues
|
198
|
+
post_install_message:
|
203
199
|
rdoc_options: []
|
204
200
|
require_paths:
|
205
201
|
- lib
|
@@ -207,16 +203,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
203
|
requirements:
|
208
204
|
- - ">="
|
209
205
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
206
|
+
version: 2.5.8
|
211
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
208
|
requirements:
|
213
209
|
- - ">="
|
214
210
|
- !ruby/object:Gem::Version
|
215
211
|
version: '0'
|
216
212
|
requirements: []
|
217
|
-
|
218
|
-
|
219
|
-
signing_key:
|
213
|
+
rubygems_version: 3.3.5
|
214
|
+
signing_key:
|
220
215
|
specification_version: 4
|
221
216
|
summary: ManageIQ Postgres H.A. Admin
|
222
217
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
dist: xenial
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- '2.3.1'
|
5
|
-
- '2.4.2'
|
6
|
-
sudo: false
|
7
|
-
cache: bundler
|
8
|
-
env:
|
9
|
-
global:
|
10
|
-
- RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
|
11
|
-
- RUBY_GC_HEAP_INIT_SLOTS=600000
|
12
|
-
- RUBY_GC_HEAP_GROWTH_FACTOR=1.25
|
13
|
-
addons:
|
14
|
-
postgresql: '10'
|
15
|
-
after_script: bundle exec codeclimate-test-reporter
|