airbrussh 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5095008b2da0972ef8ddd59236e4c4b3e485a36e70d5dd993dd3d1f3d4c54a2
4
- data.tar.gz: 2e9acb4b0ba189573b74e69a2fd59fa934d4e0c190e605ee7802b481e7efc986
3
+ metadata.gz: '03792c145b7480b4fe239dd521fea545b89cfb049ce9c91e52617f5a1f26174d'
4
+ data.tar.gz: 8104be7dd231ca5075500be1454635efbda6245adf53a88e8b54c25123dc9dbd
5
5
  SHA512:
6
- metadata.gz: 40d3d49a1c8cab1efd4c999c9f9b43bfdbdfb6802037a194dac88d5657e29ce2d6b40c7fdcf3f1c7272d4813d12c108bae9cf3f8471ee8ae8a5e8b2d014e4b9f
7
- data.tar.gz: e1dcbeafa6829206fad22342c80b4ddf87f68251bd2f3b9e84ab8dcb3fa48833b074f4b9db033b530ff0b33db6024c10f518517f5101b1e3455cfae947ce5f0e
6
+ metadata.gz: c0d9499a69b1818818d29e96ce62f4131d0958b157bea34e21601a341b8097cae8b533c6505e567976e28af11098ddb954fbacb747df2fb4ed599d9bce7ad8d3
7
+ data.tar.gz: 0f30a4a7a98346ee8966e8856c254eb3a02c8fe88f25305371967ed6138475fcc2046f43f75262a70fd9b536e5c7c0919b7af6a709496006110fa49e46b71f60
@@ -5,10 +5,10 @@ rvm:
5
5
  - 1.9
6
6
  - 2.0
7
7
  - 2.1
8
- - 2.2.9
9
- - 2.3.6
10
- - 2.4.3
11
- - 2.5.0
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.3
20
+ - rvm: 2.4.5
21
21
  env: sshkit="= 1.7.1"
22
- - rvm: 2.4.3
22
+ - rvm: 2.4.5
23
23
  env: sshkit="= 1.6.1"
24
- - rvm: 2.5.0
24
+ - rvm: 2.5.3
25
25
  env: sshkit="= 1.7.1"
26
- - rvm: 2.5.0
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.3
37
- - rvm: 2.4.3
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}
@@ -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.1...HEAD
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Matt Brictson
3
+ Copyright (c) 2019 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
@@ -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.10"
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"
@@ -9,7 +9,8 @@ environment:
9
9
 
10
10
  install:
11
11
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
12
- - gem install bundler --no-document --force
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:
@@ -53,7 +53,10 @@ module Airbrussh
53
53
  end
54
54
 
55
55
  def strip_ascii_color(string)
56
- (string || "").gsub(/\033\[[0-9;]*m/, "")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Airbrussh
4
- VERSION = "1.3.1".freeze
4
+ VERSION = "1.3.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.3.1
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: 2018-11-04 00:00:00.000000000 Z
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.10'
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.10'
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
- rubyforge_project:
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