airbrussh 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -12
- data/CHANGELOG.md +6 -1
- data/LICENSE.txt +1 -1
- data/airbrussh.gemspec +1 -1
- data/appveyor.yml +2 -1
- data/lib/airbrussh/console.rb +9 -1
- data/lib/airbrussh/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03792c145b7480b4fe239dd521fea545b89cfb049ce9c91e52617f5a1f26174d'
|
4
|
+
data.tar.gz: 8104be7dd231ca5075500be1454635efbda6245adf53a88e8b54c25123dc9dbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0d9499a69b1818818d29e96ce62f4131d0958b157bea34e21601a341b8097cae8b533c6505e567976e28af11098ddb954fbacb747df2fb4ed599d9bce7ad8d3
|
7
|
+
data.tar.gz: 0f30a4a7a98346ee8966e8856c254eb3a02c8fe88f25305371967ed6138475fcc2046f43f75262a70fd9b536e5c7c0919b7af6a709496006110fa49e46b71f60
|
data/.travis.yml
CHANGED
@@ -5,10 +5,10 @@ rvm:
|
|
5
5
|
- 1.9
|
6
6
|
- 2.0
|
7
7
|
- 2.1
|
8
|
-
- 2.2.
|
9
|
-
- 2.3.
|
10
|
-
- 2.4.
|
11
|
-
- 2.5.
|
8
|
+
- 2.2.10
|
9
|
+
- 2.3.8
|
10
|
+
- 2.4.5
|
11
|
+
- 2.5.3
|
12
12
|
- ruby-head
|
13
13
|
env:
|
14
14
|
- sshkit="master"
|
@@ -17,13 +17,13 @@ env:
|
|
17
17
|
matrix:
|
18
18
|
exclude:
|
19
19
|
# Older versions of SSHKit don't work with Ruby 2.4+, so skip those
|
20
|
-
- rvm: 2.4.
|
20
|
+
- rvm: 2.4.5
|
21
21
|
env: sshkit="= 1.7.1"
|
22
|
-
- rvm: 2.4.
|
22
|
+
- rvm: 2.4.5
|
23
23
|
env: sshkit="= 1.6.1"
|
24
|
-
- rvm: 2.5.
|
24
|
+
- rvm: 2.5.3
|
25
25
|
env: sshkit="= 1.7.1"
|
26
|
-
- rvm: 2.5.
|
26
|
+
- rvm: 2.5.3
|
27
27
|
env: sshkit="= 1.6.1"
|
28
28
|
- rvm: ruby-head
|
29
29
|
env: sshkit="= 1.7.1"
|
@@ -33,10 +33,13 @@ matrix:
|
|
33
33
|
- rvm: 1.9
|
34
34
|
env: sshkit="master"
|
35
35
|
include:
|
36
|
-
# Run Danger only once, on 2.4.
|
37
|
-
- rvm: 2.4.
|
36
|
+
# Run Danger only once, on 2.4.5
|
37
|
+
- rvm: 2.4.5
|
38
38
|
script: bundle exec danger
|
39
39
|
|
40
40
|
before_install:
|
41
|
-
- gem update --system
|
42
|
-
- gem install bundler --no-document
|
41
|
+
- gem update --system || echo "skipping rubygems upgrade"
|
42
|
+
- gem install bundler -v 1.17.3 --conservative --no-document
|
43
|
+
- gem install executable-hooks --conservative --no-document
|
44
|
+
install:
|
45
|
+
- 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/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ 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.2][] (2019-06-15)
|
10
|
+
|
11
|
+
* [#121](https://github.com/mattbrictson/airbrussh/pull/121): Gracefully handle SSH output that has invalid UTF-8 encoding instead of raising an exception - [@mattbrictson](https://github.com/mattbrictson)
|
12
|
+
|
9
13
|
## [1.3.1][] (2018-11-04)
|
10
14
|
|
11
15
|
* Packaging changes to reduce gem size
|
@@ -141,7 +145,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
|
|
141
145
|
* Initial release
|
142
146
|
|
143
147
|
[Semver]: http://semver.org
|
144
|
-
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.3.
|
148
|
+
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.3.2...HEAD
|
149
|
+
[1.3.2]: https://github.com/mattbrictson/airbrussh/compare/v1.3.1...v1.3.2
|
145
150
|
[1.3.1]: https://github.com/mattbrictson/airbrussh/compare/v1.3.0...v1.3.1
|
146
151
|
[1.3.0]: https://github.com/mattbrictson/airbrussh/compare/v1.2.0...v1.3.0
|
147
152
|
[1.2.0]: https://github.com/mattbrictson/airbrussh/compare/v1.1.2...v1.2.0
|
data/LICENSE.txt
CHANGED
data/airbrussh.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency "sshkit", [">= 1.6.1", "!= 1.7.0"]
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "~> 1.
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
27
27
|
spec.add_development_dependency "rake", "~> 12.0"
|
28
28
|
spec.add_development_dependency "minitest", "~> 5.10"
|
29
29
|
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
data/appveyor.yml
CHANGED
@@ -9,7 +9,8 @@ environment:
|
|
9
9
|
|
10
10
|
install:
|
11
11
|
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
12
|
-
- gem
|
12
|
+
- gem uninstall bundler --all --executables
|
13
|
+
- gem install bundler --no-document -v "~>1.17"
|
13
14
|
- bundle install --retry=3
|
14
15
|
|
15
16
|
test_script:
|
data/lib/airbrussh/console.rb
CHANGED
@@ -53,7 +53,10 @@ module Airbrussh
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def strip_ascii_color(string)
|
56
|
-
|
56
|
+
string ||= ""
|
57
|
+
string = to_utf8(string) unless string.valid_encoding?
|
58
|
+
|
59
|
+
string.gsub(/\033\[[0-9;]*m/, "")
|
57
60
|
end
|
58
61
|
|
59
62
|
def console_width
|
@@ -85,5 +88,10 @@ module Airbrussh
|
|
85
88
|
rescue Encoding::UndefinedConversionError
|
86
89
|
false
|
87
90
|
end
|
91
|
+
|
92
|
+
def to_utf8(string)
|
93
|
+
string.force_encoding("ASCII-8BIT")
|
94
|
+
.encode("UTF-8", :invalid => :replace, :undef => :replace)
|
95
|
+
end
|
88
96
|
end
|
89
97
|
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.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:
|
11
|
+
date: 2019-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.17'
|
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: '1.
|
46
|
+
version: '1.17'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
|
164
|
-
rubygems_version: 2.7.8
|
163
|
+
rubygems_version: 3.0.3
|
165
164
|
signing_key:
|
166
165
|
specification_version: 4
|
167
166
|
summary: Airbrussh pretties up your SSHKit and Capistrano output
|