foreman_expire_hosts 7.0.2 → 7.0.4

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: f2f0094dacc9c70e393e1bf88b942e63e03d61ad43f9279dac3bc55dc8796d0f
4
- data.tar.gz: f9768b9ad368199ed8b8d8965664788797cf59db5c0888cf4f846c324105d889
3
+ metadata.gz: b5afc13d619d302e3e05ae902ff90f65d5eefd05e03b00369c7e3ca538260555
4
+ data.tar.gz: 9cdf5ad3a41cdc45a2fe0d4f5c0dc850e0a658abc72e20c83a436b5279a19268
5
5
  SHA512:
6
- metadata.gz: e2093d7a71c66e85f18b2712e0bd9c39397d1f731e8cdd229a1b7e55805d97d7b751694760b2f4912b169e3110a6a9847bdff8a7d43595b6d7904f35100bd1b9
7
- data.tar.gz: 6d24cb1a6fe7c1704680a95e06b90ebffeb8636e752e007a5bd8be48d5101fa5b25c169396ed61f7ff2320f77f46083115b78798626d371ed540fcaee632c143
6
+ metadata.gz: e65dddbebf6e2140e12fd05adf1b4584284c7e422a5399642eaf7e59e423b86561dbc9a7c0071835fbbffa50d3e34985ce31b1d1d3f955147e0849b2d8ea0d50
7
+ data.tar.gz: 4786bb290163e8f868dbe81d377d3747143cd5bcf3e00194625ea7f1c88f2ef0f6840fb2ccce7f5561a005140cacd6ea625a98b1b9fb45da4bf3444387a6047e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanExpireHosts
4
- VERSION = '7.0.2'
4
+ VERSION = '7.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_expire_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2
4
+ version: 7.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nagarjuna Rachaneni
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-28 00:00:00.000000000 Z
12
+ date: 2021-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deface
@@ -103,15 +103,8 @@ email:
103
103
  - mail@timogoebel.name
104
104
  executables: []
105
105
  extensions: []
106
- extra_rdoc_files:
107
- - README.md
108
- - LICENSE
106
+ extra_rdoc_files: []
109
107
  files:
110
- - ".github/workflows/ci.yml"
111
- - ".gitignore"
112
- - ".rubocop.yml"
113
- - ".rubocop_todo.yml"
114
- - Gemfile
115
108
  - LICENSE
116
109
  - README.md
117
110
  - app/controllers/concerns/foreman_expire_hosts/api/v2/hosts_controller_extensions.rb
@@ -155,7 +148,6 @@ files:
155
148
  - db/migrate/20150427101516_add_expiry_on_to_hosts.rb
156
149
  - db/seeds.d/80_expire_hosts_ui_notification.rb
157
150
  - extra/foreman_expire_hosts.cron
158
- - foreman_expire_hosts.gemspec
159
151
  - lib/expire_hosts_notifications.rb
160
152
  - lib/foreman_expire_hosts.rb
161
153
  - lib/foreman_expire_hosts/engine.rb
@@ -196,14 +188,14 @@ signing_key:
196
188
  specification_version: 4
197
189
  summary: Foreman plugin for limiting host lifetime
198
190
  test_files:
199
- - test/factories/foreman_expire_hosts_factories.rb
200
- - test/functional/api/v2/hosts_controller_test.rb
201
- - test/functional/concerns/hosts_controller_extensions_test.rb
202
- - test/helpers/hosts_helper_test.rb
203
- - test/lib/expire_hosts_notifications_test.rb
204
- - test/test_plugin_helper.rb
205
- - test/unit/concerns/host_extensions_test.rb
206
191
  - test/unit/expire_hosts_mailer_test.rb
207
- - test/unit/expiry_edit_authorizer_test.rb
208
192
  - test/unit/host_status/expiration_status_test.rb
209
193
  - test/unit/safe_destroy_test.rb
194
+ - test/unit/expiry_edit_authorizer_test.rb
195
+ - test/unit/concerns/host_extensions_test.rb
196
+ - test/factories/foreman_expire_hosts_factories.rb
197
+ - test/lib/expire_hosts_notifications_test.rb
198
+ - test/test_plugin_helper.rb
199
+ - test/helpers/hosts_helper_test.rb
200
+ - test/functional/api/v2/hosts_controller_test.rb
201
+ - test/functional/concerns/hosts_controller_extensions_test.rb
@@ -1,78 +0,0 @@
1
- name: CI
2
- on: [push, pull_request]
3
- env:
4
- RAILS_ENV: test
5
- DATABASE_URL: postgresql://postgres:@localhost/test
6
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: true
7
- jobs:
8
- rubocop:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v2
12
- - name: Setup Ruby
13
- uses: ruby/setup-ruby@v1
14
- with:
15
- ruby-version: 2.3
16
- - name: Setup
17
- run: |
18
- gem install bundler
19
- bundle install --jobs=3 --retry=3
20
- - name: Run rubocop
21
- run: bundle exec rubocop
22
- test:
23
- runs-on: ubuntu-latest
24
- needs: rubocop
25
- services:
26
- postgres:
27
- image: postgres:12.1
28
- ports: ['5432:5432']
29
- options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
30
- strategy:
31
- fail-fast: false
32
- matrix:
33
- foreman-core-branch: [1.24-stable, 2.0-stable, 2.1-stable, develop]
34
- ruby-version: [2.3, 2.5, 2.6]
35
- node-version: [10]
36
- exclude:
37
- - foreman-core-branch: 2.0-stable
38
- ruby-version: 2.3
39
- - foreman-core-branch: 2.1-stable
40
- ruby-version: 2.3
41
- - foreman-core-branch: develop
42
- ruby-version: 2.3
43
- steps:
44
- - name: Install dependencies
45
- run: |
46
- sudo apt-get update
47
- sudo apt-get install build-essential libcurl4-openssl-dev libvirt-dev ruby-libvirt zlib1g-dev libpq-dev
48
- - uses: actions/checkout@v2
49
- with:
50
- repository: theforeman/foreman
51
- ref: ${{ matrix.foreman-core-branch }}
52
- - uses: actions/checkout@v2
53
- with:
54
- path: foreman_expire_hosts
55
- - name: Setup Ruby
56
- uses: ruby/setup-ruby@v1
57
- with:
58
- ruby-version: ${{ matrix.ruby-version }}
59
- - name: Setup Node
60
- uses: actions/setup-node@v1
61
- with:
62
- node-version: ${{ matrix.node-version }}
63
- - name: Setup Plugin
64
- run: |
65
- echo "gem 'foreman_expire_hosts', path: './foreman_expire_hosts'" > bundler.d/foreman_expire_hosts.local.rb
66
- gem install bundler
67
- bundle config set without journald development console mysql2 sqlite
68
- bundle install --jobs=3 --retry=3
69
- bundle exec rake db:create
70
- bundle exec rake db:migrate
71
- npm install
72
- bundle exec rake webpack:compile
73
- - name: Run plugin tests
74
- run: bundle exec rake test:foreman_expire_hosts
75
- - name: Precompile plugin assets
76
- run: bundle exec rake 'plugin:assets:precompile[foreman_expire_hosts]'
77
- env:
78
- RAILS_ENV: production
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- *.sw?
2
- .idea
3
- .bundle/
4
- log/*.log
5
- pkg/
6
- test/dummy/db/*.sqlite3
7
- test/dummy/log/*.log
8
- test/dummy/tmp/
9
- test/dummy/.sass-cache
10
- locale/*.mo
11
- locale/*/*.pox
12
- locale/*/*.edit.po
13
- locale/*/*.po.time_stamp
14
- Gemfile.lock
15
- *.gem
data/.rubocop.yml DELETED
@@ -1,78 +0,0 @@
1
- inherit_from:
2
- - .rubocop_todo.yml
3
-
4
- require:
5
- - rubocop-minitest
6
- - rubocop-performance
7
- - rubocop-rails
8
-
9
- AllCops:
10
- TargetRubyVersion: 2.3
11
- TargetRailsVersion: 5.1
12
- Exclude:
13
- - 'Rakefile'
14
-
15
- Rails:
16
- Enabled: true
17
-
18
- Rails/Date:
19
- Enabled: false
20
-
21
- # Don't enforce documentation
22
- Style/Documentation:
23
- Enabled: false
24
-
25
- Naming/AccessorMethodName:
26
- Enabled: false
27
-
28
- Style/RedundantSelf:
29
- Enabled: false
30
-
31
- Naming/FileName:
32
- Exclude:
33
- - 'db/seeds.d/*'
34
-
35
- Style/WordArray:
36
- Enabled: false
37
-
38
- Style/RescueModifier:
39
- Enabled: false
40
-
41
- Style/ClassAndModuleChildren:
42
- Enabled: false
43
-
44
- Style/EachWithObject:
45
- Enabled: false
46
-
47
- Style/SymbolArray:
48
- Enabled: false
49
-
50
- Style/FormatString:
51
- Enabled: false
52
-
53
- Style/FormatStringToken:
54
- Enabled: false
55
-
56
- Style/HashSyntax:
57
- Enabled: false
58
-
59
- Rails/HasManyOrHasOneDependent:
60
- Enabled: false
61
-
62
- Style/CommentedKeyword:
63
- Enabled: false
64
-
65
- Rails/LexicallyScopedActionFilter:
66
- Enabled: false
67
-
68
- Rails/OutputSafety:
69
- Enabled: false
70
-
71
- Rails/SkipsModelValidations:
72
- Enabled: false
73
-
74
- Metrics:
75
- Enabled: false
76
-
77
- Layout/LineLength:
78
- Enabled: false
data/.rubocop_todo.yml DELETED
@@ -1,22 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2019-12-04 09:30:58 +0100 using RuboCop version 0.75.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- Minitest/RefuteFalse:
10
- Enabled: false
11
-
12
- Minitest/AssertTruthy:
13
- Enabled: false
14
-
15
- Style/HashEachMethods:
16
- Enabled: false
17
-
18
- Style/HashTransformKeys:
19
- Enabled: false
20
-
21
- Style/HashTransformValues:
22
- Enabled: false
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'http://rubygems.org'
4
-
5
- gemspec
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require File.expand_path('lib/foreman_expire_hosts/version', __dir__)
4
- require 'date'
5
-
6
- Gem::Specification.new do |s|
7
- s.name = 'foreman_expire_hosts'
8
- s.version = ForemanExpireHosts::VERSION
9
- s.date = Date.today.to_s
10
- s.authors = ['Nagarjuna Rachaneni', 'Timo Goebel']
11
- s.email = ['nn.nagarjuna@gmail.com', 'mail@timogoebel.name']
12
- s.summary = 'Foreman plugin for limiting host lifetime'
13
- s.description = <<~DESC
14
- A Foreman plugin that allows hosts to expire at a configurable date.
15
- Hosts will be shut down and automatically deleted after a grace period.
16
- DESC
17
- s.homepage = 'https://github.com/theforeman/foreman_expire_hosts'
18
- s.licenses = ['GPL-3.0']
19
-
20
- s.files = `git ls-files`.split("\n")
21
- s.test_files = `git ls-files test`.split("\n")
22
- s.extra_rdoc_files = `git ls-files doc`.split("\n") + Dir['README*', 'LICENSE']
23
-
24
- s.require_paths = ['lib']
25
-
26
- s.add_dependency 'deface'
27
-
28
- s.add_development_dependency 'rdoc'
29
- s.add_development_dependency 'rubocop', '~> 0.80.0'
30
- s.add_development_dependency 'rubocop-minitest', '~> 0.7.0'
31
- s.add_development_dependency 'rubocop-performance', '~> 1.5.2'
32
- s.add_development_dependency 'rubocop-rails', '~> 2.4.2'
33
- end