airbrussh 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +10 -3
- data/.travis.yml +26 -9
- data/CHANGELOG.md +8 -1
- data/Dangerfile +1 -1
- data/Gemfile +26 -25
- data/LICENSE.txt +1 -1
- data/Rakefile +7 -4
- data/airbrussh.gemspec +1 -3
- data/appveyor.yml +1 -1
- data/lib/airbrussh/capistrano/tasks.rb +1 -1
- data/lib/airbrussh/command_formatter.rb +1 -0
- data/lib/airbrussh/console.rb +1 -0
- data/lib/airbrussh/delegating_formatter.rb +3 -3
- data/lib/airbrussh/rake/context.rb +1 -1
- data/lib/airbrussh/version.rb +2 -1
- metadata +3 -33
- data/demo.gif +0 -0
- data/formatting.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b5095008b2da0972ef8ddd59236e4c4b3e485a36e70d5dd993dd3d1f3d4c54a2
|
4
|
+
data.tar.gz: 2e9acb4b0ba189573b74e69a2fd59fa934d4e0c190e605ee7802b481e7efc986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d3d49a1c8cab1efd4c999c9f9b43bfdbdfb6802037a194dac88d5657e29ce2d6b40c7fdcf3f1c7272d4813d12c108bae9cf3f8471ee8ae8a5e8b2d014e4b9f
|
7
|
+
data.tar.gz: e1dcbeafa6829206fad22342c80b4ddf87f68251bd2f3b9e84ab8dcb3fa48833b074f4b9db033b530ff0b33db6024c10f518517f5101b1e3455cfae947ce5f0e
|
data/.rubocop.yml
CHANGED
@@ -4,6 +4,13 @@ AllCops:
|
|
4
4
|
TargetRubyVersion: 1.9
|
5
5
|
Exclude:
|
6
6
|
- "*.gemspec"
|
7
|
+
- "vendor/**/*"
|
8
|
+
|
9
|
+
Layout/EndOfLine:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
13
|
+
EnforcedStyle: no_space
|
7
14
|
|
8
15
|
Metrics/AbcSize:
|
9
16
|
Exclude:
|
@@ -29,12 +36,12 @@ Style/Documentation:
|
|
29
36
|
Style/DoubleNegation:
|
30
37
|
Enabled: false
|
31
38
|
|
39
|
+
Style/Encoding:
|
40
|
+
Enabled: false
|
41
|
+
|
32
42
|
Style/HashSyntax:
|
33
43
|
EnforcedStyle: hash_rockets
|
34
44
|
|
35
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
36
|
-
EnforcedStyle: no_space
|
37
|
-
|
38
45
|
Style/StringLiterals:
|
39
46
|
EnforcedStyle: double_quotes
|
40
47
|
|
data/.travis.yml
CHANGED
@@ -1,25 +1,42 @@
|
|
1
|
+
sudo: false
|
1
2
|
language: ruby
|
3
|
+
cache: bundler
|
2
4
|
rvm:
|
3
5
|
- 1.9
|
4
6
|
- 2.0
|
5
7
|
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- 2.3.
|
8
|
-
- 2.4.
|
8
|
+
- 2.2.9
|
9
|
+
- 2.3.6
|
10
|
+
- 2.4.3
|
11
|
+
- 2.5.0
|
12
|
+
- ruby-head
|
9
13
|
env:
|
10
14
|
- sshkit="master"
|
11
15
|
- sshkit="= 1.7.1"
|
12
16
|
- sshkit="= 1.6.1"
|
13
17
|
matrix:
|
14
18
|
exclude:
|
15
|
-
# Older versions of SSHKit don't work with Ruby 2.4
|
16
|
-
- rvm: 2.4.
|
19
|
+
# Older versions of SSHKit don't work with Ruby 2.4+, so skip those
|
20
|
+
- rvm: 2.4.3
|
17
21
|
env: sshkit="= 1.7.1"
|
18
|
-
- rvm: 2.4.
|
22
|
+
- rvm: 2.4.3
|
19
23
|
env: sshkit="= 1.6.1"
|
24
|
+
- rvm: 2.5.0
|
25
|
+
env: sshkit="= 1.7.1"
|
26
|
+
- rvm: 2.5.0
|
27
|
+
env: sshkit="= 1.6.1"
|
28
|
+
- rvm: ruby-head
|
29
|
+
env: sshkit="= 1.7.1"
|
30
|
+
- rvm: ruby-head
|
31
|
+
env: sshkit="= 1.6.1"
|
32
|
+
# Newer versions of SSHKit don't work with Ruby 1.9
|
33
|
+
- rvm: 1.9
|
34
|
+
env: sshkit="master"
|
20
35
|
include:
|
21
|
-
# Run Danger only once, on 2.4.
|
22
|
-
- rvm: 2.4.
|
36
|
+
# Run Danger only once, on 2.4.3
|
37
|
+
- rvm: 2.4.3
|
23
38
|
script: bundle exec danger
|
24
39
|
|
25
|
-
before_install:
|
40
|
+
before_install:
|
41
|
+
- gem update --system
|
42
|
+
- gem install bundler --no-document
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file. This projec
|
|
6
6
|
|
7
7
|
* Your contribution here!
|
8
8
|
|
9
|
+
## [1.3.1][] (2018-11-04)
|
10
|
+
|
11
|
+
* Packaging changes to reduce gem size
|
12
|
+
* RuboCop and Travis improvements
|
13
|
+
* No user-facing changes
|
14
|
+
|
9
15
|
## [1.3.0][] (2017-06-16)
|
10
16
|
|
11
17
|
* [#109](https://github.com/mattbrictson/airbrussh/pull/109): Add configurable task prefix - [@gondalez](https://github.com/gondalez)
|
@@ -135,7 +141,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
|
|
135
141
|
* Initial release
|
136
142
|
|
137
143
|
[Semver]: http://semver.org
|
138
|
-
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.3.
|
144
|
+
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.3.1...HEAD
|
145
|
+
[1.3.1]: https://github.com/mattbrictson/airbrussh/compare/v1.3.0...v1.3.1
|
139
146
|
[1.3.0]: https://github.com/mattbrictson/airbrussh/compare/v1.2.0...v1.3.0
|
140
147
|
[1.2.0]: https://github.com/mattbrictson/airbrussh/compare/v1.1.2...v1.2.0
|
141
148
|
[1.1.2]: https://github.com/mattbrictson/airbrussh/compare/v1.1.1...v1.1.2
|
data/Dangerfile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
danger.import_dangerfile(github
|
1
|
+
danger.import_dangerfile(:github => "capistrano/danger")
|
data/Gemfile
CHANGED
@@ -3,21 +3,34 @@ source "https://rubygems.org"
|
|
3
3
|
# Specify your gem's dependencies in airbrussh.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
gem "
|
13
|
-
gem "guard", ">= 2.2.2"
|
14
|
-
gem "guard-minitest"
|
15
|
-
gem "rb-fsevent"
|
16
|
-
gem "terminal-notifier-guard"
|
6
|
+
if RUBY_VERSION == "1.9.3"
|
7
|
+
# These gems need specific version for Ruby 1.9
|
8
|
+
gem "json", "~> 1.8"
|
9
|
+
gem "net-ssh", "~> 2.8"
|
10
|
+
gem "rake", "< 12.3"
|
11
|
+
gem "term-ansicolor", "~> 1.3.2"
|
12
|
+
gem "tins", "~> 1.6.0"
|
17
13
|
end
|
18
14
|
|
19
|
-
|
20
|
-
|
15
|
+
if RUBY_VERSION >= "2.1"
|
16
|
+
# These gems need at least Ruby 2.1
|
17
|
+
gem "coveralls", "~> 0.8.15"
|
18
|
+
gem "danger", "~> 4.3"
|
19
|
+
gem "rubocop", "0.50.0"
|
20
|
+
|
21
|
+
# Optional development dependencies; requires bundler >= 1.10.
|
22
|
+
# Note that these gems assume a Ruby 2.2 environment. Install them using:
|
23
|
+
#
|
24
|
+
# bundle install --with extras
|
25
|
+
#
|
26
|
+
group :extras, :optional => true do
|
27
|
+
gem "chandler"
|
28
|
+
gem "guard", ">= 2.2.2"
|
29
|
+
gem "guard-minitest"
|
30
|
+
gem "rb-fsevent"
|
31
|
+
gem "terminal-notifier-guard"
|
32
|
+
end
|
33
|
+
end
|
21
34
|
|
22
35
|
if (sshkit_version = ENV["sshkit"])
|
23
36
|
requirement = begin
|
@@ -33,15 +46,3 @@ if (sshkit_version = ENV["sshkit"])
|
|
33
46
|
end
|
34
47
|
gem "sshkit", requirement
|
35
48
|
end
|
36
|
-
|
37
|
-
# json 2.0+ is not compatible with Ruby 1.9, so pin at older version.
|
38
|
-
gem "json", "~> 1.8" if RUBY_VERSION == "1.9.3"
|
39
|
-
|
40
|
-
# net-ssh 3.0+ is not compatible with Ruby 1.9, so pin at older version.
|
41
|
-
gem "net-ssh", "~> 2.8" if RUBY_VERSION == "1.9.3"
|
42
|
-
|
43
|
-
# term-ansicolor 1.4.0+ is not compatible with Ruby 1.9, so pin older version.
|
44
|
-
gem "term-ansicolor", "~> 1.3.2" if RUBY_VERSION == "1.9.3"
|
45
|
-
|
46
|
-
# tins 1.7.0+ is not compatible with Ruby 1.9, so pin at older version.
|
47
|
-
gem "tins", "~> 1.6.0" if RUBY_VERSION == "1.9.3"
|
data/LICENSE.txt
CHANGED
data/Rakefile
CHANGED
@@ -7,8 +7,13 @@ Rake::TestTask.new(:test) do |t|
|
|
7
7
|
t.test_files = FileList["test/**/*_test.rb"]
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
begin
|
11
|
+
require "rubocop/rake_task"
|
12
|
+
RuboCop::RakeTask.new
|
13
|
+
task :default => [:test, :rubocop]
|
14
|
+
rescue LoadError
|
15
|
+
task :default => :test
|
16
|
+
end
|
12
17
|
|
13
18
|
# rubocop:disable Lint/HandleExceptions
|
14
19
|
begin
|
@@ -16,5 +21,3 @@ begin
|
|
16
21
|
rescue LoadError
|
17
22
|
end
|
18
23
|
task "release:rubygem_push" => "chandler:push" if defined?(Chandler)
|
19
|
-
|
20
|
-
task :default => [:test, :rubocop]
|
data/airbrussh.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.homepage = "https://github.com/mattbrictson/airbrussh"
|
17
17
|
spec.license = "MIT"
|
18
18
|
|
19
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/|\.(gif|png)$}) }
|
20
20
|
spec.bindir = "exe"
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
@@ -24,10 +24,8 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency "sshkit", [">= 1.6.1", "!= 1.7.0"]
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.10"
|
27
|
-
spec.add_development_dependency "coveralls", "~> 0.8.15"
|
28
27
|
spec.add_development_dependency "rake", "~> 12.0"
|
29
28
|
spec.add_development_dependency "minitest", "~> 5.10"
|
30
29
|
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
31
30
|
spec.add_development_dependency "mocha", "~> 1.2"
|
32
|
-
spec.add_development_dependency "rubocop", "~> 0.41.2"
|
33
31
|
end
|
data/appveyor.yml
CHANGED
@@ -60,7 +60,7 @@ module Airbrussh
|
|
60
60
|
|
61
61
|
# Verify that capistrano and rake DSLs are present
|
62
62
|
def warn_if_missing_dsl
|
63
|
-
return if %w
|
63
|
+
return if %w[set namespace task].all? { |m| dsl.respond_to?(m, true) }
|
64
64
|
|
65
65
|
error_line(
|
66
66
|
red("WARNING: airbrussh/capistrano must be loaded by Capistrano in "\
|
data/lib/airbrussh/console.rb
CHANGED
@@ -8,11 +8,11 @@ module Airbrussh
|
|
8
8
|
# DelegatingFormatter forwarding the logging messages to both at once.
|
9
9
|
#
|
10
10
|
class DelegatingFormatter
|
11
|
-
FORWARD_METHODS = %w
|
11
|
+
FORWARD_METHODS = %w[
|
12
12
|
fatal error warn info debug log
|
13
13
|
log_command_start log_command_data log_command_exit
|
14
|
-
|
15
|
-
DUP_AND_FORWARD_METHODS = %w
|
14
|
+
].freeze
|
15
|
+
DUP_AND_FORWARD_METHODS = %w[<< write].freeze
|
16
16
|
|
17
17
|
attr_reader :formatters
|
18
18
|
|
@@ -57,7 +57,7 @@ module Airbrussh
|
|
57
57
|
|
58
58
|
::Rake::Task.class_exec do
|
59
59
|
alias_method :_airbrussh_execute, :execute
|
60
|
-
def execute(args=nil)
|
60
|
+
def execute(args=nil)
|
61
61
|
::Airbrussh::Rake::Context.current_task_name = name.to_s
|
62
62
|
_airbrussh_execute(args)
|
63
63
|
end
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|
@@ -44,20 +44,6 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.10'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: coveralls
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.8.15
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.8.15
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: rake
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,20 +100,6 @@ dependencies:
|
|
114
100
|
- - "~>"
|
115
101
|
- !ruby/object:Gem::Version
|
116
102
|
version: '1.2'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: rubocop
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - "~>"
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: 0.41.2
|
124
|
-
type: :development
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - "~>"
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: 0.41.2
|
131
103
|
description: A replacement log formatter for SSHKit that makes Capistrano output much
|
132
104
|
easier on the eyes. Just add Airbrussh to your Capfile and enjoy concise, useful
|
133
105
|
log output that is easy to read.
|
@@ -155,8 +127,6 @@ files:
|
|
155
127
|
- bin/console
|
156
128
|
- bin/setup
|
157
129
|
- bin/test_all.rb
|
158
|
-
- demo.gif
|
159
|
-
- formatting.png
|
160
130
|
- lib/airbrussh.rb
|
161
131
|
- lib/airbrussh/capistrano.rb
|
162
132
|
- lib/airbrussh/capistrano/tasks.rb
|
@@ -191,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
161
|
version: '0'
|
192
162
|
requirements: []
|
193
163
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
164
|
+
rubygems_version: 2.7.8
|
195
165
|
signing_key:
|
196
166
|
specification_version: 4
|
197
167
|
summary: Airbrussh pretties up your SSHKit and Capistrano output
|
data/demo.gif
DELETED
Binary file
|
data/formatting.png
DELETED
Binary file
|