specinfra 2.87.0 → 2.87.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: d8e74831663d268890aadd2252bf2d2435f1148576ba3cefcec169d535b2a0ea
4
- data.tar.gz: 0d1682b364732cb449b03aa3442e92f26b5edd209c5c48f10a5b449b5cac7d4f
3
+ metadata.gz: fcc0b3de91a94ee5078f10a370ba357129cb84a51cc8f74f15c47b4578c0a52c
4
+ data.tar.gz: 3244b71ca2590ec756ff09408a9bc02a4acf67d82370389259b2a4ed8f9f816f
5
5
  SHA512:
6
- metadata.gz: 7a96e984832b6685a2d54dac6f12723434fed1f08afc25fe39879fed8523ef26d0a87137e36248b8b744244f05d82e25c20a21be0d1b9ea8ad4423b25603c426
7
- data.tar.gz: 6cd8b3fca493cc199a8004ead0540213b0919a7c23e567fa403e2bca8f6080d44bc029a52ca60f6113163f31e4560200107a60c28f153ae2e45cadd489a346cf
6
+ metadata.gz: 76cca256c92c5ddf1a82d8745de7e53cd932430a2eb996c4ca0ced1fe926a4063b7348fcd4e61c3b5db3dc0634f54033f782ae89a7bc7aaf189e09594357a711
7
+ data.tar.gz: 23ccd50fe257b9a1464c2bc34b74f540998c044079c3e2328667a14957ab85eec671526e57e035a2b3e2b0ef35ff9880b090477a2bdca7387f7e6cbc07a69a20
data/README.md CHANGED
@@ -20,6 +20,11 @@ Or install it yourself as:
20
20
  gem install specinfra
21
21
  ```
22
22
 
23
+ For Ruby versions older than 2.3.0, pin net-telnet to version 0.1.1 in your `Gemfile` or `*.gemspec`.
24
+ See also [pin net-telnet dependency to keep ruby support for < 2.3 #665][issue665].
25
+
26
+ [issue665]: https://github.com/mizzy/specinfra/pull/665
27
+
23
28
  ## Running tests
24
29
 
25
30
  ```
@@ -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
@@ -1,3 +1,7 @@
1
1
  module Specinfra
2
- VERSION = "2.87.0"
2
+ VERSION = "2.87.2"
3
+
4
+ def self.ruby_is_older_than?(*version)
5
+ (RUBY_VERSION.split('.').map(&:to_i) <=> version) < 0
6
+ end
3
7
  end
@@ -18,7 +18,7 @@ describe Specinfra::Backend::Exec do
18
18
  end
19
19
 
20
20
  it 'should escape quotes' do
21
- if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7')
21
+ if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.7')
22
22
  expect(Specinfra.backend.build_command(%Q{find /etc/apt/ -name \*.list | xargs grep -o -E "^deb +[\\"']?http://ppa.launchpad.net/gluster/glusterfs-3.7"})).to eq('/bin/sh -c find\ /etc/apt/\ -name\ \*.list\ \|\ xargs\ grep\ -o\ -E\ \"\^deb\ \+\[\\\\\"\\\'\]\?http://ppa.launchpad.net/gluster/glusterfs-3.7\"')
23
23
  else
24
24
  # Since Ruby 2.7, `+` is not escaped.
data/specinfra.gemspec CHANGED
@@ -21,11 +21,10 @@ 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" # intentionally version-unspecified for Ruby older than 2.3.0
25
+ spec.add_runtime_dependency "sfl" # required for Ruby older than 1.9.0
27
26
 
28
- spec.add_development_dependency "rake", "~> 10.1.1"
27
+ spec.add_development_dependency "rake"
29
28
  spec.add_development_dependency "rspec"
30
29
  spec.add_development_dependency "rspec-its"
31
30
  end
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.87.0
4
+ version: 2.87.2
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-08-16 00:00:00.000000000 Z
11
+ date: 2023-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: net-telnet
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.1
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.1
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sfl
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 10.1.1
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 10.1.1
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement