sshkit 1.21.2 → 1.21.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: 5c845c4da471347d8486fa647e8c138ed1b4ea5b086adca5a2e06477ef711157
4
- data.tar.gz: ef7598d8818ff1e262e41520e73f3c411f1217c005bf56d60d183eeef32b3805
3
+ metadata.gz: 42ea735e4b1e6b51eb99c2699ecc11579229fffe3db99cec9afe4e819f466bf0
4
+ data.tar.gz: 74af7dc3101e5bb9853449f5ffc1f3de4a0ad0a3d19f5554540e3eff3e4f99d7
5
5
  SHA512:
6
- metadata.gz: 8505e49f7025060f422837ed548517e8ced559d4f2462f23a541badd3d2d5c0436d04e8553f5d22771fd04f330c5bdcfe5d1a81b87a2144b2088b24062ae59ed
7
- data.tar.gz: bc9f07123a4127fd82c0a26af34c4bb8d5a4b3d81532673a60ceb3529024c378412b84780f1042c3ce616d7b5eb0bb616a57c64e56f4aef57087feee6bcb0a13
6
+ metadata.gz: 1d78e3c1a8e8c875b5eef3f3951540817e82cd4ed07e84ddec648f5b6b85d9c38b09493ab476d5a2e728b44d62e56d1d5b5cadd5359c422371f9a1d8773e3b7c
7
+ data.tar.gz: 5f7cdad196d09216c388d8ba95feb65f1299c3fc5deda5ebf7adbf95630621592011f1ebb64fe0405017aa6ebc5a5a73e42852e3b4d90cb865585a08f2ff3031
@@ -0,0 +1,16 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ open-pull-requests-limit: 10
8
+ ignore:
9
+ - dependency-name: rubocop
10
+ versions:
11
+ - "> 0.49.1"
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: monthly
16
+ open-pull-requests-limit: 10
@@ -0,0 +1,60 @@
1
+ name: test on CI
2
+ on:
3
+ push:
4
+ branches: [ master ]
5
+ pull_request:
6
+ jobs:
7
+ test:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby: [ "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head" ]
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - name: Run tests
20
+ run: bundle exec rake test:units
21
+
22
+ rubocop:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+ - name: Set up Ruby
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: "2.7"
30
+ bundler-cache: true
31
+ - name: Run rubocop
32
+ run: bundle exec rake lint
33
+
34
+ functional:
35
+ runs-on: macos-10.15
36
+ strategy:
37
+ matrix:
38
+ ruby: [ "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head" ]
39
+ steps:
40
+ - uses: actions/checkout@v3
41
+
42
+ - name: Cache Vagrant boxes
43
+ uses: actions/cache@v2
44
+ with:
45
+ path: ~/.vagrant.d/boxes
46
+ key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
47
+ restore-keys: |
48
+ ${{ runner.os }}-vagrant-
49
+
50
+ - name: Run vagrant up
51
+ run: vagrant up
52
+
53
+ - name: Set up Ruby
54
+ uses: ruby/setup-ruby@v1
55
+ with:
56
+ ruby-version: ${{ matrix.ruby }}
57
+ bundler-cache: true
58
+
59
+ - name: Run functional tests
60
+ run: bundle exec rake test:functional
@@ -7,6 +7,6 @@ jobs:
7
7
  steps:
8
8
  - uses: actions/checkout@master
9
9
  - name: Draft Release
10
- uses: toolmantim/release-drafter@v5.2.0
10
+ uses: toolmantim/release-drafter@v5.22.0
11
11
  env:
12
12
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/EXAMPLES.md CHANGED
@@ -339,6 +339,15 @@ end
339
339
  This will resolve the `example.com` hostname into a `SSHKit::Host` object, and
340
340
  try to pull up the correct configuration for it.
341
341
 
342
+ ## Connect to a host on a port different than 22
343
+
344
+ If your ssh server is running on a port different than 22, you can change this is
345
+ shown:
346
+
347
+ ```ruby
348
+ on('example.com', {port: 1234}) do
349
+ end
350
+ ```
342
351
 
343
352
  ## Run a command without it being command-mapped
344
353
 
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  more servers.
5
5
 
6
6
  [![Gem Version](https://badge.fury.io/rb/sshkit.svg)](https://rubygems.org/gems/sshkit)
7
- [![Build Status](https://travis-ci.org/capistrano/sshkit.svg?branch=master)](https://travis-ci.org/capistrano/sshkit)
7
+ [![Build Status](https://github.com/capistrano/sshkit/actions/workflows/ci.yml/badge.svg)](https://github.com/capistrano/sshkit/actions/workflows/ci.yml)
8
8
 
9
9
  ## Example
10
10
 
data/Vagrantfile CHANGED
@@ -3,8 +3,8 @@ VAGRANTFILE_API_VERSION = "2"
3
3
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
4
4
  config.vm.box = 'hashicorp/precise64'
5
5
  config.vm.provision "shell", inline: <<-SHELL
6
- echo 'ClientAliveInterval 1' >> /etc/ssh/sshd_config
7
- echo 'ClientAliveCountMax 1' >> /etc/ssh/sshd_config
6
+ echo 'ClientAliveInterval 3' >> /etc/ssh/sshd_config
7
+ echo 'ClientAliveCountMax 3' >> /etc/ssh/sshd_config
8
8
  service ssh restart
9
9
  SHELL
10
10
 
@@ -1,3 +1,5 @@
1
+ require 'set'
2
+
1
3
  module SSHKit
2
4
  class DeprecationLogger
3
5
  def initialize(out)
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.21.2".freeze
2
+ VERSION = "1.21.4".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.2
4
+ version: 1.21.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Hambley
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-18 00:00:00.000000000 Z
12
+ date: 2023-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -180,12 +180,13 @@ executables: []
180
180
  extensions: []
181
181
  extra_rdoc_files: []
182
182
  files:
183
+ - ".github/dependabot.yml"
183
184
  - ".github/release-drafter.yml"
185
+ - ".github/workflows/ci.yml"
184
186
  - ".github/workflows/push.yml"
185
187
  - ".gitignore"
186
188
  - ".rubocop.yml"
187
189
  - ".rubocop_todo.yml"
188
- - ".travis.yml"
189
190
  - ".yardopts"
190
191
  - BREAKING_API_WISHLIST.md
191
192
  - CHANGELOG.md
@@ -290,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
291
  - !ruby/object:Gem::Version
291
292
  version: '0'
292
293
  requirements: []
293
- rubygems_version: 3.2.5
294
+ rubygems_version: 3.4.7
294
295
  signing_key:
295
296
  specification_version: 4
296
297
  summary: SSHKit makes it easy to write structured, testable SSH commands in Ruby
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 3.0
4
- - 2.7
5
- - 2.6
6
- - 2.5
7
- - 2.4
8
- - 2.3
9
- - 2.2
10
- - 2.1
11
- - 2.0
12
- branches:
13
- only:
14
- - master
15
- matrix:
16
- include:
17
- # Run Danger only once, on 2.5
18
- - rvm: 2.5
19
- script: bundle exec danger
20
- script: bundle exec rake test:units lint