specinfra 2.86.0 → 2.87.1

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
- SHA1:
3
- metadata.gz: 963cc7c9a9ecc27ae8a9ecf5c1e68ca17a33a5b4
4
- data.tar.gz: 29c955c89666c2af1b1223ebc51b7fbad73a3c4b
2
+ SHA256:
3
+ metadata.gz: a50ea94541eea4de681f5c0490c0042efaa9d32733e77170a36c395fa9997c36
4
+ data.tar.gz: aad5becf5ccb1ba86243f9b53cf402c4409d37e04db03a879ce0f2e7bde4bc9d
5
5
  SHA512:
6
- metadata.gz: a8575ff1192e996790de31603745ac926c742e2301d9f0863b3aca20e5464de62e2f2d49fc1c2d34c1d84cd552916ce5e0e6de7b21ba1bfea1ae7290ba89c23b
7
- data.tar.gz: ab0b1fa2876d9b57945294607b36cc18130b26faff6c178d4a3da92def0a97cf146aa6ae4230afdfe746d2df2098f96930222f717c5e42da92316ee0ff0fb26e
6
+ metadata.gz: 26096c32f4c426f8bcb5d961b3fa988cc2c85bef201a3663424c2482ec5a6d44a2e1e7583a196bfe7227ced8bb75623dff1c105bd9d1eba64d31baeaa8d7b8eb
7
+ data.tar.gz: b0f53c294311bc1f3fbe40da1c8d081d89857d2baa3ada13f85de1933148caf3e2dfc060087fd7deb60942a0aaf3c9f0a1151be809d1ef4a3b5bba53ed0846ef
@@ -1,7 +1,7 @@
1
1
  require 'singleton'
2
2
  require 'fileutils'
3
3
  require 'shellwords'
4
- require 'sfl'
4
+ require 'sfl' if Specinfra.ruby_is_older_than?(1, 9, 0)
5
5
 
6
6
  module Specinfra
7
7
  module Backend
@@ -0,0 +1,2 @@
1
+ class Specinfra::Command::Amazon::V2023 < Specinfra::Command::Amazon::V2022
2
+ end
@@ -134,6 +134,9 @@ require 'specinfra/command/amazon/v2022/port'
134
134
  require 'specinfra/command/amazon/v2022/service'
135
135
  require 'specinfra/command/amazon/v2022/yumrepo'
136
136
 
137
+ # Amazon Linux V2023 (inherit Amazon Linux V2022)
138
+ require 'specinfra/command/amazon/v2023'
139
+
137
140
  # AIX (inherit Base)
138
141
  require 'specinfra/command/aix'
139
142
  require 'specinfra/command/aix/base'
@@ -1,3 +1,7 @@
1
1
  module Specinfra
2
- VERSION = "2.86.0"
2
+ VERSION = "2.87.1"
3
+
4
+ def self.ruby_is_older_than?(*version)
5
+ (RUBY_VERSION.split('.').map(&:to_i) <=> version) < 0
6
+ end
3
7
  end
data/specinfra.gemspec CHANGED
@@ -21,9 +21,8 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_runtime_dependency "net-scp"
23
23
  spec.add_runtime_dependency "net-ssh", ">= 2.7"
24
- # TODO: remove the lock when you want to remove ruby < 2.3 support
25
- spec.add_runtime_dependency "net-telnet", "0.1.1"
26
- spec.add_runtime_dependency "sfl"
24
+ spec.add_runtime_dependency "net-telnet", *(Specinfra.ruby_is_older_than?(2, 3, 0) ? ["0.1.1"] : [])
25
+ spec.add_runtime_dependency "sfl" if Specinfra.ruby_is_older_than?(1, 9, 0)
27
26
 
28
27
  spec.add_development_dependency "rake", "~> 10.1.1"
29
28
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.86.0
4
+ version: 2.87.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-13 00:00:00.000000000 Z
11
+ date: 2023-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -40,20 +40,6 @@ dependencies:
40
40
  version: '2.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: net-telnet
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 0.1.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
54
- version: 0.1.1
55
- - !ruby/object:Gem::Dependency
56
- name: sfl
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -175,6 +161,7 @@ files:
175
161
  - lib/specinfra/command/amazon/v2022/port.rb
176
162
  - lib/specinfra/command/amazon/v2022/service.rb
177
163
  - lib/specinfra/command/amazon/v2022/yumrepo.rb
164
+ - lib/specinfra/command/amazon/v2023.rb
178
165
  - lib/specinfra/command/arch.rb
179
166
  - lib/specinfra/command/arch/base.rb
180
167
  - lib/specinfra/command/arch/base/package.rb
@@ -654,8 +641,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
654
641
  - !ruby/object:Gem::Version
655
642
  version: '0'
656
643
  requirements: []
657
- rubyforge_project:
658
- rubygems_version: 2.5.1
644
+ rubygems_version: 3.1.2
659
645
  signing_key:
660
646
  specification_version: 4
661
647
  summary: Common layer for serverspec and itamae