airbrussh 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +132 -0
- data/.github/release-drafter.yml +10 -2
- data/.github/workflows/push.yml +7 -7
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +7 -2
- data/LICENSE.txt +1 -1
- data/README.md +5 -5
- data/airbrussh.gemspec +1 -1
- data/appveyor.yml +2 -14
- data/lib/airbrussh/version.rb +1 -1
- metadata +11 -12
- data/.travis.yml +0 -44
- data/bin/test_all.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b618870b95daf33159f07da625d6bc115d149666fa56d0852b050da1fb9e95a4
|
4
|
+
data.tar.gz: b092095eecea678c640f9c6b974a6864859d62f4717e24b8d1b2aa003c448449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e85c29ab49b8d9f25cd528f9d3edba00d99586e48487f1898535906e124491e14fec5568d5f94802f6581190347bd0d3e47bc45a302d1c841c03b5093ef89b4a
|
7
|
+
data.tar.gz: b264f326a86915605058d38949eaf1d60bceeb680cc4c1839aa0b8abefab5e077a43a9e9f47d68375a0ee83b23ee7ec0ed21a7b116fda37b36df438fb1b89867
|
@@ -0,0 +1,132 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
executors:
|
4
|
+
ruby:
|
5
|
+
parameters:
|
6
|
+
version:
|
7
|
+
description: "Ruby version number"
|
8
|
+
default: "3.1"
|
9
|
+
type: string
|
10
|
+
docker:
|
11
|
+
- image: ruby:<< parameters.version >>
|
12
|
+
|
13
|
+
commands:
|
14
|
+
bundle_install:
|
15
|
+
description: Install Ruby dependencies with Bundler
|
16
|
+
parameters:
|
17
|
+
key:
|
18
|
+
description: "Cache key"
|
19
|
+
default: "3.1"
|
20
|
+
type: string
|
21
|
+
steps:
|
22
|
+
- restore_cache:
|
23
|
+
keys:
|
24
|
+
- bundle-v1-{{ arch }}-<< parameters.key >>
|
25
|
+
- run:
|
26
|
+
name: Install Ruby Dependencies
|
27
|
+
command: |
|
28
|
+
gem install bundler --conservative --no-document || \
|
29
|
+
gem install rubygems-update -v '<3' && update_rubygems && gem install bundler -v '<2' --no-document
|
30
|
+
bundle config --local path vendor/bundle
|
31
|
+
bundle check || (bundle install --jobs=4 --retry=3 && bundle clean)
|
32
|
+
- save_cache:
|
33
|
+
paths:
|
34
|
+
- ./vendor/bundle
|
35
|
+
key: bundle-v1-{{ arch }}-<< parameters.key >>-{{ checksum "Gemfile.lock" }}
|
36
|
+
|
37
|
+
jobs:
|
38
|
+
rubocop:
|
39
|
+
executor:
|
40
|
+
name: ruby
|
41
|
+
version: "2.7"
|
42
|
+
steps:
|
43
|
+
- checkout
|
44
|
+
- bundle_install:
|
45
|
+
key: "2.7"
|
46
|
+
- run: bundle exec rubocop
|
47
|
+
spec:
|
48
|
+
parameters:
|
49
|
+
ruby:
|
50
|
+
description: "Ruby version number"
|
51
|
+
default: "3.1"
|
52
|
+
type: string
|
53
|
+
executor:
|
54
|
+
name: ruby
|
55
|
+
version: << parameters.ruby >>
|
56
|
+
steps:
|
57
|
+
- checkout
|
58
|
+
- run: echo sshkit=master >> $BASH_ENV
|
59
|
+
- bundle_install:
|
60
|
+
key: << parameters.ruby >>
|
61
|
+
- run: bundle exec rake test
|
62
|
+
spec_legacy_ruby:
|
63
|
+
parameters:
|
64
|
+
ruby:
|
65
|
+
description: "Ruby version number"
|
66
|
+
default: "1.9"
|
67
|
+
type: string
|
68
|
+
sshkit:
|
69
|
+
description: "sshkit version number"
|
70
|
+
default: "1.6.1"
|
71
|
+
type: string
|
72
|
+
executor:
|
73
|
+
name: ruby
|
74
|
+
version: << parameters.ruby >>
|
75
|
+
steps:
|
76
|
+
- checkout
|
77
|
+
- run: |
|
78
|
+
echo "export sshkit=<< parameters.sshkit >>" >> $BASH_ENV
|
79
|
+
if [ "<< parameters.ruby >>" == "1.9" ]; then
|
80
|
+
echo "export RUBYOPT=-Ku" >> $BASH_ENV
|
81
|
+
fi
|
82
|
+
- bundle_install:
|
83
|
+
key: << parameters.ruby >>-<< parameters.sshkit >>
|
84
|
+
- run: bundle exec rake test
|
85
|
+
|
86
|
+
workflows:
|
87
|
+
version: 2
|
88
|
+
commit-workflow:
|
89
|
+
jobs:
|
90
|
+
- rubocop
|
91
|
+
- spec:
|
92
|
+
matrix: &matrix
|
93
|
+
parameters:
|
94
|
+
ruby:
|
95
|
+
- "2.4"
|
96
|
+
- "2.5"
|
97
|
+
- "2.6"
|
98
|
+
- "2.7"
|
99
|
+
- "3.0"
|
100
|
+
- "3.1"
|
101
|
+
- spec_legacy_ruby:
|
102
|
+
matrix: &legacy_ruby_matrix
|
103
|
+
parameters:
|
104
|
+
ruby:
|
105
|
+
- "1.9"
|
106
|
+
- "2.0"
|
107
|
+
- "2.1"
|
108
|
+
- "2.2"
|
109
|
+
- "2.3"
|
110
|
+
sshkit:
|
111
|
+
- "1.6.1"
|
112
|
+
- "1.7.1"
|
113
|
+
- master
|
114
|
+
exclude:
|
115
|
+
- ruby: "1.9"
|
116
|
+
sshkit: master
|
117
|
+
cron-workflow:
|
118
|
+
jobs:
|
119
|
+
- rubocop
|
120
|
+
- spec:
|
121
|
+
matrix:
|
122
|
+
<<: *matrix
|
123
|
+
- spec_legacy_ruby:
|
124
|
+
matrix:
|
125
|
+
<<: *legacy_ruby_matrix
|
126
|
+
triggers:
|
127
|
+
- schedule:
|
128
|
+
cron: "0 13 * * 6"
|
129
|
+
filters:
|
130
|
+
branches:
|
131
|
+
only:
|
132
|
+
- main
|
data/.github/release-drafter.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
name-template: "$
|
2
|
-
tag-template: "v$
|
1
|
+
name-template: "$RESOLVED_VERSION"
|
2
|
+
tag-template: "v$RESOLVED_VERSION"
|
3
3
|
categories:
|
4
4
|
- title: "⚠️ Breaking Changes"
|
5
5
|
label: "⚠️ Breaking"
|
@@ -11,7 +11,15 @@ categories:
|
|
11
11
|
label: "📚 Docs"
|
12
12
|
- title: "🏠 Housekeeping"
|
13
13
|
label: "🏠 Housekeeping"
|
14
|
+
version-resolver:
|
15
|
+
minor:
|
16
|
+
labels:
|
17
|
+
- "⚠️ Breaking"
|
18
|
+
- "✨ Feature"
|
19
|
+
default: patch
|
14
20
|
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
|
15
21
|
no-changes-template: "- No changes"
|
16
22
|
template: |
|
17
23
|
$CHANGES
|
24
|
+
|
25
|
+
**Full Changelog:** https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
|
data/.github/workflows/push.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
name: Release Drafter
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- main
|
3
6
|
jobs:
|
4
|
-
|
5
|
-
name: Draft Release
|
7
|
+
update_release_draft:
|
6
8
|
runs-on: ubuntu-latest
|
7
9
|
steps:
|
8
|
-
- uses:
|
9
|
-
- name: Draft Release
|
10
|
-
uses: toolmantim/release-drafter@v5.2.0
|
10
|
+
- uses: release-drafter/release-drafter@v5
|
11
11
|
env:
|
12
12
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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 [.
|
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).
|
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/Gemfile
CHANGED
@@ -6,15 +6,20 @@ gemspec
|
|
6
6
|
if RUBY_VERSION == "1.9.3"
|
7
7
|
# These gems need specific version for Ruby 1.9
|
8
8
|
gem "json", "~> 1.8"
|
9
|
+
gem "minitest", "~> 5.11.3"
|
9
10
|
gem "net-ssh", "~> 2.8"
|
10
11
|
gem "rake", "< 12.3"
|
11
12
|
gem "term-ansicolor", "~> 1.3.2"
|
12
13
|
gem "tins", "~> 1.6.0"
|
13
14
|
end
|
14
15
|
|
16
|
+
if RUBY_VERSION >= "2.5"
|
17
|
+
# These gems need at least Ruby 2.5
|
18
|
+
gem "coveralls_reborn", "~> 0.24.0"
|
19
|
+
end
|
20
|
+
|
15
21
|
if RUBY_VERSION >= "2.1"
|
16
22
|
# These gems need at least Ruby 2.1
|
17
|
-
gem "coveralls", "~> 0.8.15"
|
18
23
|
gem "rubocop", "0.50.0"
|
19
24
|
|
20
25
|
# Optional development dependencies; requires bundler >= 1.10.
|
@@ -40,7 +45,7 @@ if (sshkit_version = ENV["sshkit"])
|
|
40
45
|
else
|
41
46
|
["capistrano", sshkit_version]
|
42
47
|
end
|
43
|
-
{ :
|
48
|
+
{ :git => "https://github.com/#{user}/sshkit.git", :branch => branch }
|
44
49
|
end
|
45
50
|
gem "sshkit", requirement
|
46
51
|
end
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
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://
|
5
|
-
[![Build status](https://ci.appveyor.com/api/projects/status/h052rlq54sne3md6/branch/
|
4
|
+
[![Build Status](https://circleci.com/gh/mattbrictson/airbrussh/tree/main.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/airbrussh?branch=main)
|
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
|
-
[![Coverage Status](https://coveralls.io/repos/mattbrictson/airbrussh/badge.svg?branch=
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/mattbrictson/airbrussh/badge.svg?branch=main)](https://coveralls.io/r/mattbrictson/airbrussh?branch=main)
|
8
8
|
|
9
9
|
|
10
10
|
Airbrussh is a concise log formatter for Capistrano and SSHKit. It displays well-formatted, useful log output that is easy to read. Airbrussh also saves Capistrano's verbose output to a separate log file just in case you need additional details for troubleshooting.
|
@@ -13,7 +13,7 @@ Airbrussh is a concise log formatter for Capistrano and SSHKit. It displays well
|
|
13
13
|
|
14
14
|
If you aren't yet using Capistrano 3.5 (or wish to use Airbrussh with SSHKit directly), refer to the [advanced/legacy usage](#advancedlegacy-usage) section for installation instructions.
|
15
15
|
|
16
|
-
![Sample output](https://raw.github.com/mattbrictson/airbrussh/
|
16
|
+
![Sample output](https://raw.github.com/mattbrictson/airbrussh/HEAD/demo.gif)
|
17
17
|
|
18
18
|
For more details on how exactly Airbrussh affects Capistrano's output and the reasoning behind it, check out the blog post: [Introducing Airbrussh](https://mattbrictson.com/airbrussh).
|
19
19
|
|
@@ -37,7 +37,7 @@ set :format, :airbrussh
|
|
37
37
|
|
38
38
|
When you run a Capistrano command, Airbrussh provides the following information in its output:
|
39
39
|
|
40
|
-
![Sample output](https://raw.github.com/mattbrictson/airbrussh/
|
40
|
+
![Sample output](https://raw.github.com/mattbrictson/airbrussh/HEAD/formatting.png)
|
41
41
|
|
42
42
|
* Name of Capistrano task being executed
|
43
43
|
* When each task started (minutes:seconds elapsed since the deploy began)
|
data/airbrussh.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_dependency "sshkit", [">= 1.6.1", "!= 1.7.0"]
|
31
31
|
|
32
|
-
spec.add_development_dependency "bundler"
|
32
|
+
spec.add_development_dependency "bundler"
|
33
33
|
spec.add_development_dependency "rake", "~> 12.0"
|
34
34
|
spec.add_development_dependency "minitest", "~> 5.10"
|
35
35
|
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
data/appveyor.yml
CHANGED
@@ -1,21 +1,9 @@
|
|
1
|
-
version:
|
2
|
-
|
1
|
+
version: "{build}"
|
3
2
|
skip_tags: true
|
4
|
-
|
5
3
|
skip_branch_with_pr: true
|
6
|
-
|
7
|
-
environment:
|
8
|
-
matrix:
|
9
|
-
- ruby_version: "23"
|
10
|
-
- ruby_version: "23-x64"
|
11
|
-
|
12
4
|
install:
|
13
|
-
-
|
14
|
-
- gem uninstall bundler --all --executables
|
15
|
-
- gem install bundler --no-document -v "~>1.17"
|
5
|
+
- set PATH=C:\Ruby26-x64\bin;%PATH%
|
16
6
|
- bundle install --retry=3
|
17
|
-
|
18
7
|
test_script:
|
19
8
|
- bundle exec rake
|
20
|
-
|
21
9
|
build: off
|
data/lib/airbrussh/version.rb
CHANGED
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|
@@ -34,16 +34,16 @@ dependencies:
|
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '0'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,11 +109,11 @@ executables: []
|
|
109
109
|
extensions: []
|
110
110
|
extra_rdoc_files: []
|
111
111
|
files:
|
112
|
+
- ".circleci/config.yml"
|
112
113
|
- ".github/release-drafter.yml"
|
113
114
|
- ".github/workflows/push.yml"
|
114
115
|
- ".gitignore"
|
115
116
|
- ".rubocop.yml"
|
116
|
-
- ".travis.yml"
|
117
117
|
- CHANGELOG.md
|
118
118
|
- CODE_OF_CONDUCT.md
|
119
119
|
- CONTRIBUTING.md
|
@@ -127,7 +127,6 @@ files:
|
|
127
127
|
- appveyor.yml
|
128
128
|
- bin/console
|
129
129
|
- bin/setup
|
130
|
-
- bin/test_all.rb
|
131
130
|
- lib/airbrussh.rb
|
132
131
|
- lib/airbrussh/capistrano.rb
|
133
132
|
- lib/airbrussh/capistrano/tasks.rb
|
@@ -150,7 +149,7 @@ metadata:
|
|
150
149
|
changelog_uri: https://github.com/mattbrictson/airbrussh/releases
|
151
150
|
source_code_uri: https://github.com/mattbrictson/airbrussh
|
152
151
|
homepage_uri: https://github.com/mattbrictson/airbrussh
|
153
|
-
post_install_message:
|
152
|
+
post_install_message:
|
154
153
|
rdoc_options: []
|
155
154
|
require_paths:
|
156
155
|
- lib
|
@@ -165,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
164
|
- !ruby/object:Gem::Version
|
166
165
|
version: '0'
|
167
166
|
requirements: []
|
168
|
-
rubygems_version: 3.
|
169
|
-
signing_key:
|
167
|
+
rubygems_version: 3.3.18
|
168
|
+
signing_key:
|
170
169
|
specification_version: 4
|
171
170
|
summary: Airbrussh pretties up your SSHKit and Capistrano output
|
172
171
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
branches:
|
5
|
-
only:
|
6
|
-
- master
|
7
|
-
rvm:
|
8
|
-
- 1.9
|
9
|
-
- 2.0
|
10
|
-
- 2.1
|
11
|
-
- 2.2.10
|
12
|
-
- 2.3.8
|
13
|
-
- 2.4.5
|
14
|
-
- 2.5.3
|
15
|
-
- ruby-head
|
16
|
-
env:
|
17
|
-
- sshkit="master"
|
18
|
-
- sshkit="= 1.7.1"
|
19
|
-
- sshkit="= 1.6.1"
|
20
|
-
matrix:
|
21
|
-
exclude:
|
22
|
-
# Older versions of SSHKit don't work with Ruby 2.4+, so skip those
|
23
|
-
- rvm: 2.4.5
|
24
|
-
env: sshkit="= 1.7.1"
|
25
|
-
- rvm: 2.4.5
|
26
|
-
env: sshkit="= 1.6.1"
|
27
|
-
- rvm: 2.5.3
|
28
|
-
env: sshkit="= 1.7.1"
|
29
|
-
- rvm: 2.5.3
|
30
|
-
env: sshkit="= 1.6.1"
|
31
|
-
- rvm: ruby-head
|
32
|
-
env: sshkit="= 1.7.1"
|
33
|
-
- rvm: ruby-head
|
34
|
-
env: sshkit="= 1.6.1"
|
35
|
-
# Newer versions of SSHKit don't work with Ruby 1.9
|
36
|
-
- rvm: 1.9
|
37
|
-
env: sshkit="master"
|
38
|
-
|
39
|
-
before_install:
|
40
|
-
- gem update --system || echo "skipping rubygems upgrade"
|
41
|
-
- gem install bundler -v 1.17.3 --conservative --no-document
|
42
|
-
- gem install executable-hooks --conservative --no-document
|
43
|
-
install:
|
44
|
-
- bundle _1.17.3_ install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} || bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
data/bin/test_all.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "yaml"
|
3
|
-
require "English"
|
4
|
-
|
5
|
-
ruby24 = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.4.0")
|
6
|
-
|
7
|
-
YAML.load_file(".travis.yml")["env"].each do |sshkit_version|
|
8
|
-
# Older versions of SSHKit don't work with Ruby 2.4, so skip those
|
9
|
-
next if ruby24 && sshkit_version !~ /master/
|
10
|
-
puts "\e[0;34;49m== Running tests against #{sshkit_version} ==\e[0m"
|
11
|
-
output = `#{sshkit_version} bundle update`
|
12
|
-
raise "bundle update failed: #{output}" unless $CHILD_STATUS.success?
|
13
|
-
system("#{sshkit_version} bundle exec rake test")
|
14
|
-
end
|
15
|
-
|
16
|
-
system("bundle exec rake rubocop")
|
17
|
-
|
18
|
-
at_exit do
|
19
|
-
puts "\e[0;34;49m== Resetting sshkit ==\e[0m"
|
20
|
-
system("bundle update")
|
21
|
-
end
|