airbrussh 1.5.1 → 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: 4bceb9642d871762040efd22f8b84694a784dc2eabbfbc07580def795eb51e9d
4
- data.tar.gz: fd43a9fb4abbe9f2f79f26e42fd91c3b1918988d355af4473fff90fbc2e4614f
3
+ metadata.gz: 3c42df7a7dc9037977d93573237dfce75fd41b90a7059497dfe5ae5c3dc4b2ac
4
+ data.tar.gz: f0c08606f8a2d806cf228a411dc1dfe8e9d8c9f84cd3e0f0373412922cf68a23
5
5
  SHA512:
6
- metadata.gz: 4a3f04df35b23064f45377292dcb1a85aff41bc19dd8ef78670f372d33d344439a065e5e1e4d4d8495cf1ae9fccb4f7213fbceee4b2fac2d761a4948c85b22b7
7
- data.tar.gz: 80c043968800dc9f231fc359d0287330ed2952f6c347399420eeadc623ab4bfdce40d407906a7b11cb6e94c5588a880aff157922ae6a82d576871ef969ad3eb6
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/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.1".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.1
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: 2024-01-09 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.5.3
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,136 +0,0 @@
1
- version: 2.1
2
-
3
- executors:
4
- ruby:
5
- parameters:
6
- version:
7
- description: "Ruby version number"
8
- default: "3.3"
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.3"
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.3"
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
- - "3.3"
105
- - spec_legacy_ruby:
106
- matrix: &legacy_ruby_matrix
107
- parameters:
108
- ruby:
109
- - "1.9"
110
- - "2.0"
111
- - "2.1"
112
- - "2.2"
113
- - "2.3"
114
- sshkit:
115
- - "1.6.1"
116
- - "1.7.1"
117
- - master
118
- exclude:
119
- - ruby: "1.9"
120
- sshkit: master
121
- cron-workflow:
122
- jobs:
123
- - rubocop
124
- - spec:
125
- matrix:
126
- <<: *matrix
127
- - spec_legacy_ruby:
128
- matrix:
129
- <<: *legacy_ruby_matrix
130
- triggers:
131
- - schedule:
132
- cron: "0 13 * * 6"
133
- filters:
134
- branches:
135
- only:
136
- - main