airbrussh 1.5.0 → 1.5.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: cc924d4296d264fce2d2c280deb33c3dee5995537cc9d2d4e0336d842fefe928
4
- data.tar.gz: 760f9521a613add5fbe2464fba0486b36491bdf8056f82c2c216846d45cd5a5a
3
+ metadata.gz: 3c42df7a7dc9037977d93573237dfce75fd41b90a7059497dfe5ae5c3dc4b2ac
4
+ data.tar.gz: f0c08606f8a2d806cf228a411dc1dfe8e9d8c9f84cd3e0f0373412922cf68a23
5
5
  SHA512:
6
- metadata.gz: a3fdd013c5de8112098827d1e339153070c5680aab02c691b6c2590d042e0bdd0b29a26a13f5aac9b0d929aad75a507ed01646f1237a33190ece35eab4bd309b
7
- data.tar.gz: e053040901b947f721e1c0e6e90a4d24226f0a8818a25cb23e89a960c7003dc2cfe1e1405d9298d55fc9044e51beedad662c4fdc2097f45b65cb9ac014cb658b
6
+ metadata.gz: 385c487958e7c5338c018b7d83a7b091b4e040106ce8accc681cb93e6940e6b3921079dc1effff133b78884219b19f00bee22d649672242642c005d126c116c0
7
+ data.tar.gz: ad0d23aaf30f121d74ef1c15daf2343ed5c1246cd58c58ec8cc4657f079f59de48c122f622f3f09069af9ce8b30ae9e3f13d19d3f729e77dcef2aa49672b2385
@@ -0,0 +1,79 @@
1
+ name: CI
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - main
7
+ jobs:
8
+ rubocop:
9
+ name: "RuboCop"
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: "2.7"
16
+ bundler-cache: true
17
+ - run: bundle exec rubocop
18
+ test:
19
+ name: "Test / Ruby ${{ matrix.ruby }}"
20
+ runs-on: ubuntu-latest
21
+ strategy:
22
+ matrix:
23
+ ruby: ["2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
24
+ env:
25
+ sshkit: "master"
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ bundler-cache: true
32
+ - run: bundle exec rake test
33
+ test_legacy_ruby_19:
34
+ name: "Test / Ruby 1.9 / SSHKit ${{ matrix.sshkit }}"
35
+ runs-on: ubuntu-20.04
36
+ strategy:
37
+ matrix:
38
+ sshkit: ["1.6.1", "1.7.1"]
39
+ env:
40
+ sshkit: ${{ matrix.sshkit }}
41
+ RUBYOPT: "-Ku"
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: ruby/setup-ruby@v1
45
+ with:
46
+ ruby-version: "1.9"
47
+ rubygems: "2.6.9"
48
+ bundler: "1.17.3"
49
+ bundler-cache: true
50
+ - run: bundle exec rake test
51
+ test_legacy_ruby:
52
+ name: "Test / Ruby ${{ matrix.ruby }} / SSHKit ${{ matrix.sshkit }}"
53
+ runs-on: ubuntu-20.04
54
+ strategy:
55
+ matrix:
56
+ ruby: ["2.0", "2.0", "2.1", "2.2", "2.3"]
57
+ sshkit: ["1.6.1", "1.7.1", "master"]
58
+ env:
59
+ sshkit: ${{ matrix.sshkit }}
60
+ steps:
61
+ - uses: actions/checkout@v4
62
+ - uses: ruby/setup-ruby@v1
63
+ with:
64
+ ruby-version: ${{ matrix.ruby }}
65
+ bundler: "1.17.3"
66
+ bundler-cache: true
67
+ - run: bundle exec rake test
68
+ spec_all:
69
+ name: "Test / Ruby (All)"
70
+ runs-on: ubuntu-latest
71
+ needs: [test, test_legacy_ruby, test_legacy_ruby_19]
72
+ if: always()
73
+ steps:
74
+ - name: All tests ok
75
+ if: ${{ !(contains(needs.*.result, 'failure')) }}
76
+ run: exit 0
77
+ - name: Some tests failed
78
+ if: ${{ contains(needs.*.result, 'failure') }}
79
+ run: exit 1
data/CONTRIBUTING.md CHANGED
@@ -19,7 +19,7 @@ Note that Bundler 1.10 is required for development. Run `gem update bundler` to
19
19
 
20
20
  After checking out the airbrussh repo, run `bin/setup` to install dependencies. Run `rake` to execute airbrussh's tests and RuboCop checks.
21
21
 
22
- Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In order to test this, we use the environment variable `sshkit` in order to run the tests against a specific version. The combinations of sshkit and ruby we support are specified in [.circleci/config.yml](.circleci/config.yml).
22
+ Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In order to test this, we use the environment variable `sshkit` in order to run the tests against a specific version. The combinations of sshkit and ruby we support are specified in [.github/workflows/ci.yml](.github/workflows/ci.yml).
23
23
 
24
24
  A Guardfile is also present, so if you'd like to use Guard to do a TDD workflow, then:
25
25
 
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Matt Brictson
3
+ Copyright (c) 2024 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Airbrussh
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/airbrussh.svg)](http://badge.fury.io/rb/airbrussh)
4
- [![Build Status](https://circleci.com/gh/mattbrictson/airbrussh/tree/main.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/airbrussh?branch=main)
4
+ [![Build Status](https://github.com/mattbrictson/airbrussh/actions/workflows/ci.yml/badge.svg)](https://github.com/mattbrictson/airbrussh/actions/workflows/ci.yml)
5
5
  [![Build status](https://ci.appveyor.com/api/projects/status/h052rlq54sne3md6/branch/main?svg=true)](https://ci.appveyor.com/project/mattbrictson/airbrussh/branch/main)
6
6
  [![Code Climate](https://codeclimate.com/github/mattbrictson/airbrussh/badges/gpa.svg)](https://codeclimate.com/github/mattbrictson/airbrussh)
7
7
  [![Coverage Status](https://coveralls.io/repos/mattbrictson/airbrussh/badge.svg?branch=main)](https://coveralls.io/r/mattbrictson/airbrussh?branch=main)
@@ -62,7 +62,7 @@ module Airbrussh
62
62
  def console_width
63
63
  width = case (truncate = config.truncate)
64
64
  when :auto
65
- IO.console.winsize.last if @output.tty?
65
+ IO.console.winsize.last if @output.tty? && IO.console
66
66
  when Integer
67
67
  truncate
68
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Airbrussh
4
- VERSION = "1.5.0".freeze
4
+ VERSION = "1.5.2".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrussh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-22 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
@@ -109,8 +109,8 @@ executables: []
109
109
  extensions: []
110
110
  extra_rdoc_files: []
111
111
  files:
112
- - ".circleci/config.yml"
113
112
  - ".github/release-drafter.yml"
113
+ - ".github/workflows/ci.yml"
114
114
  - ".github/workflows/push.yml"
115
115
  - ".gitignore"
116
116
  - ".rubocop.yml"
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.2.33
167
+ rubygems_version: 3.5.8
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Airbrussh pretties up your SSHKit and Capistrano output
data/.circleci/config.yml DELETED
@@ -1,135 +0,0 @@
1
- version: 2.1
2
-
3
- executors:
4
- ruby:
5
- parameters:
6
- version:
7
- description: "Ruby version number"
8
- default: "3.2"
9
- type: string
10
- docker:
11
- - image: ruby:<< parameters.version >>
12
- environment:
13
- MT_COMPAT: "1" # Allows old versions of mocha gem to work with minitest
14
-
15
- commands:
16
- bundle_install:
17
- description: Install Ruby dependencies with Bundler
18
- parameters:
19
- key:
20
- description: "Cache key"
21
- default: "3.2"
22
- type: string
23
- steps:
24
- - restore_cache:
25
- keys:
26
- - bundle-v1-{{ arch }}-<< parameters.key >>
27
- - run:
28
- name: Install Ruby Dependencies
29
- command: |
30
- gem install bundler --conservative --no-document || \
31
- gem install rubygems-update -v '<3' && update_rubygems && gem install bundler -v '<2' --no-document
32
- bundle config --local path vendor/bundle
33
- bundle check || (bundle install --jobs=4 --retry=3 && bundle clean)
34
- - save_cache:
35
- paths:
36
- - ./vendor/bundle
37
- key: bundle-v1-{{ arch }}-<< parameters.key >>-{{ checksum "Gemfile.lock" }}
38
-
39
- jobs:
40
- rubocop:
41
- executor:
42
- name: ruby
43
- version: "2.7"
44
- steps:
45
- - checkout
46
- - bundle_install:
47
- key: "2.7"
48
- - run: bundle exec rubocop
49
- spec:
50
- parameters:
51
- ruby:
52
- description: "Ruby version number"
53
- default: "3.2"
54
- type: string
55
- executor:
56
- name: ruby
57
- version: << parameters.ruby >>
58
- steps:
59
- - checkout
60
- - run: echo sshkit=master >> $BASH_ENV
61
- - bundle_install:
62
- key: << parameters.ruby >>
63
- - run: bundle exec rake test
64
- spec_legacy_ruby:
65
- parameters:
66
- ruby:
67
- description: "Ruby version number"
68
- default: "1.9"
69
- type: string
70
- sshkit:
71
- description: "sshkit version number"
72
- default: "1.6.1"
73
- type: string
74
- executor:
75
- name: ruby
76
- version: << parameters.ruby >>
77
- steps:
78
- - checkout
79
- - run: |
80
- echo "export sshkit=<< parameters.sshkit >>" >> $BASH_ENV
81
- if [ "<< parameters.ruby >>" == "1.9" ]; then
82
- echo "export RUBYOPT=-Ku" >> $BASH_ENV
83
- fi
84
- - bundle_install:
85
- key: << parameters.ruby >>-<< parameters.sshkit >>
86
- - run: bundle exec rake test
87
-
88
- workflows:
89
- version: 2
90
- commit-workflow:
91
- jobs:
92
- - rubocop
93
- - spec:
94
- matrix: &matrix
95
- parameters:
96
- ruby:
97
- - "2.4"
98
- - "2.5"
99
- - "2.6"
100
- - "2.7"
101
- - "3.0"
102
- - "3.1"
103
- - "3.2"
104
- - spec_legacy_ruby:
105
- matrix: &legacy_ruby_matrix
106
- parameters:
107
- ruby:
108
- - "1.9"
109
- - "2.0"
110
- - "2.1"
111
- - "2.2"
112
- - "2.3"
113
- sshkit:
114
- - "1.6.1"
115
- - "1.7.1"
116
- - master
117
- exclude:
118
- - ruby: "1.9"
119
- sshkit: master
120
- cron-workflow:
121
- jobs:
122
- - rubocop
123
- - spec:
124
- matrix:
125
- <<: *matrix
126
- - spec_legacy_ruby:
127
- matrix:
128
- <<: *legacy_ruby_matrix
129
- triggers:
130
- - schedule:
131
- cron: "0 13 * * 6"
132
- filters:
133
- branches:
134
- only:
135
- - main