foreman_openbolt 1.2.0 → 1.2.1
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 +4 -4
- data/Rakefile +32 -0
- data/lib/foreman_openbolt/version.rb +1 -1
- data/package.json +1 -1
- data/test/acceptance/acceptance_helper.rb +13 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6aae14c90bc7a4af6435767a84d174b69309e9f98ae59a221477067be2492b8
|
|
4
|
+
data.tar.gz: 2d3e9188b01cf3c03bc132440106271b541f8ab753df060984e559b624058631
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f2f8a142ca2e214836b36c5f22be10975c322b5df20830110edc09ef49ac6b1445bccb22ffbe7b6d3252efb140d9ce45b1fa11d12987df27270fbd014e497ca
|
|
7
|
+
data.tar.gz: b05c9442560d6acc1720c7495c30fe213f2b59ea72f5aefe37f3b7cab98b863b6c22add8fa3fd010b6b3803075b4c46ad130232c7b804d2dfffd6f4f118f17fe
|
data/Rakefile
CHANGED
|
@@ -20,4 +20,36 @@ end
|
|
|
20
20
|
DEFAULT_FOREMAN_VERSION = latest_foreman_version
|
|
21
21
|
FOREMAN_VERSION = ENV.fetch('FOREMAN_VERSION', DEFAULT_FOREMAN_VERSION)
|
|
22
22
|
|
|
23
|
+
def minimum_supported_foreman_version
|
|
24
|
+
engine_path = File.join(__dir__, 'lib', 'foreman_openbolt', 'engine.rb')
|
|
25
|
+
content = File.read(engine_path)
|
|
26
|
+
match = content.match(/requires_foreman\s+['"]>= (\d+\.\d+)/)
|
|
27
|
+
abort 'Could not parse minimum Foreman version from engine.rb'.red unless match
|
|
28
|
+
match[1]
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def supported_foreman_releases
|
|
32
|
+
min = Gem::Version.new(minimum_supported_foreman_version)
|
|
33
|
+
max = Gem::Version.new(DEFAULT_FOREMAN_VERSION)
|
|
34
|
+
|
|
35
|
+
result = Shell.capture(
|
|
36
|
+
['git', 'ls-remote', '--tags', 'https://github.com/theforeman/foreman.git'],
|
|
37
|
+
print_command: false, allowed_exit_codes: [0, 1]
|
|
38
|
+
)
|
|
39
|
+
tags = result.output.scan(%r{refs/tags/([^\s]+)$}).flatten
|
|
40
|
+
versions = tags.filter_map do |tag|
|
|
41
|
+
Gem::Version.new(tag)
|
|
42
|
+
rescue ArgumentError
|
|
43
|
+
nil
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
versions.reject(&:prerelease?)
|
|
47
|
+
.map { |v| "#{v.segments[0]}.#{v.segments[1]}" }
|
|
48
|
+
.uniq
|
|
49
|
+
.map { |v| Gem::Version.new(v) }
|
|
50
|
+
.grep(min..max)
|
|
51
|
+
.sort
|
|
52
|
+
.map(&:to_s)
|
|
53
|
+
end
|
|
54
|
+
|
|
23
55
|
task default: :lint
|
data/package.json
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# Suppress a noisy deprecation warning emitted by Capybara 3.40.0 on Ruby 3.4+:
|
|
4
|
+
# URI::RFC3986_PARSER.make_regexp is obsolete. Use URI::RFC2396_PARSER.make_regexp explicitly.
|
|
5
|
+
# Fixed upstream in teamcapybara/capybara#2781 but not yet released. Remove this
|
|
6
|
+
# block once Capybara ships a release with that PR.
|
|
7
|
+
module SuppressCapybaraURIDeprecation
|
|
8
|
+
TARGET = 'URI::RFC3986_PARSER.make_regexp is obsolete'
|
|
9
|
+
def warn(message, **)
|
|
10
|
+
return if message.to_s.include?(TARGET)
|
|
11
|
+
super
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
Warning.singleton_class.prepend(SuppressCapybaraURIDeprecation)
|
|
15
|
+
|
|
3
16
|
require 'capybara'
|
|
4
17
|
require 'capybara/dsl'
|
|
5
18
|
require 'selenium-webdriver'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_openbolt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Overlook InfraTech
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: 11.0.0
|
|
19
19
|
- - "<"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: '
|
|
21
|
+
version: '14'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: 11.0.0
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: '
|
|
31
|
+
version: '14'
|
|
32
32
|
description: This plugin adds OpenBolt integration into Foreman, allowing users to
|
|
33
33
|
run tasks and plans present in their environment.
|
|
34
34
|
email:
|
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
180
180
|
- !ruby/object:Gem::Version
|
|
181
181
|
version: '0'
|
|
182
182
|
requirements: []
|
|
183
|
-
rubygems_version: 4.0.
|
|
183
|
+
rubygems_version: 4.0.10
|
|
184
184
|
specification_version: 4
|
|
185
185
|
summary: Foreman OpenBolt integration
|
|
186
186
|
test_files: []
|