airbrussh 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 01eb882bc9f55583a0482ef56741ecb034fa1668
4
- data.tar.gz: c146d528c8200f85f0288dc749f5ae78cf536320
3
+ metadata.gz: 6d98e543aa9b5dc67eb5134f92d48dd5a23cb8a2
4
+ data.tar.gz: 0301592589165f633040120602aff81f5c2a8737
5
5
  SHA512:
6
- metadata.gz: d34d086d3dd901944f36ec67159cd5317f30156b74fc76843a9760b3af7ee93268121c0f055ebd4cc250285a9f729b55d8a97cc25475f4fd9ffe11579719d2ca
7
- data.tar.gz: a141d92036bce8c5a3238e331dc29de44e037bb46219348923dc3b42dbd21f9d8aaba4df13e6995afe043e3a83373edc49ae8bc6ff9c6fcb4d03d53bf734bc37
6
+ metadata.gz: 4b371ea1f4048cdc045f5e1b439081bb8e2104451d2f14b0273f9991a7f1a89183d07fff9029adb683acc7a8e903e6acd9557b51c217029c8ad23ea3bef1a474
7
+ data.tar.gz: 757d92a563681358bf8c2913c8d64454a0e37fb52a617d4a4f1a8e56cae7e6518e06250a8c52e318ee6cddcf3a22bf73dcc1dad69d4e2ab7e96ed60ec04572a4
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
7
+ /log/
7
8
  /pkg/
8
9
  /spec/reports/
9
10
  /tmp/
data/.rubocop.yml CHANGED
@@ -17,6 +17,9 @@ Metrics/ClassLength:
17
17
  Exclude:
18
18
  - "test/**/*"
19
19
 
20
+ Style/BarePercentLiterals:
21
+ EnforcedStyle: percent_q
22
+
20
23
  Style/ClassAndModuleChildren:
21
24
  Enabled: false
22
25
 
data/CHANGELOG.md CHANGED
@@ -6,12 +6,22 @@ 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.0.1][] (2016-03-21)
10
+
11
+ * Fix support for fake TTYs reporting a 0 width console like Ruby's PTY library [#76](https://github.com/mattbrictson/airbrussh/pull/76)
12
+
9
13
  ## [1.0.0][] (2016-02-27)
10
14
 
11
15
  * No changes since 1.0.0.beta1.
12
16
 
13
17
  ## [1.0.0.beta1][] (2015-12-27)
14
18
 
19
+ Breaking Changes:
20
+
21
+ * None
22
+
23
+ Added:
24
+
15
25
  * Airbrussh can now be configured with an options Hash passed to the
16
26
  `Airbrussh::Formatter` constructor. This is in order to standardize how all
17
27
  SSHKit formatters are configured
@@ -89,7 +99,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
89
99
  * Initial release
90
100
 
91
101
  [Semver]: http://semver.org
92
- [Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.0.0...HEAD
102
+ [Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.0.1...HEAD
103
+ [1.0.1]: https://github.com/mattbrictson/airbrussh/compare/v1.0.0...v1.0.1
93
104
  [1.0.0]: https://github.com/mattbrictson/airbrussh/compare/v1.0.0.beta1...v1.0.0
94
105
  [1.0.0.beta1]: https://github.com/mattbrictson/airbrussh/compare/v0.8.0...v1.0.0.beta1
95
106
  [0.8.0]: https://github.com/mattbrictson/airbrussh/compare/v0.7.0...v0.8.0
@@ -0,0 +1,48 @@
1
+ # Capistrano 3.5 upgrade guide for existing Airbrussh users
2
+
3
+ If you have been using Airbrussh with Capistrano, and are upgrading to Capistrano 3.5, then this guide is for you.
4
+
5
+ ## What changed?
6
+
7
+ * Airbrussh is built into Capistrano starting with Capistrano 3.5.0, and is enabled by default.
8
+ * Capistrano 3.5 initializes Airbrussh with a default configuration that is different than Airbrussh+Capistrano 3.4.0.
9
+ * In Capistrano 3.5, `set :format_options, ...` is now the preferred mechanism for configuring Airbrussh.
10
+
11
+ ## How to upgrade
12
+
13
+ 1. Remove `gem "airbrussh"` from your Gemfile. Airbrussh is now included automatically by Capistrano.
14
+ 2. Likewise, remove `require "capistrano/airbrussh"` from your Capfile. Capistrano now does this internally.
15
+ 3. Remove `Airbrussh.configure do ... end` from your deploy.rb and replace with `set :format_options, ...` (see below).
16
+
17
+ ## New configuration system
18
+
19
+ In Capistrano 3.5, Airbrussh is configured by assigning a configuration Hash to the `:format_options` variable. Here is a comparison of the old and new syntaxes:
20
+
21
+ ```ruby
22
+ # Old syntax
23
+ Airbrussh.configure do |config|
24
+ config.color = false
25
+ end
26
+
27
+ # New syntax
28
+ set :format_options, color: false
29
+ ```
30
+
31
+ Although the syntax is different, the names of the configuration keys have not changed.
32
+
33
+ ## New defaults
34
+
35
+ Capistrano 3.5.0 changes Airbrussh defaults as follows:
36
+
37
+ * `banner: false`
38
+ * `command_output: true`
39
+
40
+ Therefore, after upgrading to Capistrano 3.5.0, you may notice Airbrussh's output has changed and become more verbose. To restore the defaults to what you were used to in older versions, do this:
41
+
42
+ ```ruby
43
+ set :format_options, banner: auto, command_output: false
44
+ ```
45
+
46
+ ## Trouble?
47
+
48
+ If you have any Airbrussh-related trouble with the upgrade, please [open an issue](https://github.com/mattbrictson/airbrussh/issues).
@@ -56,12 +56,14 @@ module Airbrussh
56
56
  end
57
57
 
58
58
  def console_width
59
- case (truncate = config.truncate)
60
- when :auto
61
- IO.console.winsize.last if @output.tty?
62
- when Fixnum
63
- truncate
64
- end
59
+ width = case (truncate = config.truncate)
60
+ when :auto
61
+ IO.console.winsize.last if @output.tty?
62
+ when Fixnum
63
+ truncate
64
+ end
65
+
66
+ width if width.to_i > 0
65
67
  end
66
68
 
67
69
  private
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Airbrussh
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  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.0.0
4
+ version: 1.0.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: 2016-02-28 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
@@ -148,6 +148,7 @@ files:
148
148
  - LICENSE.txt
149
149
  - README.md
150
150
  - Rakefile
151
+ - UPGRADING-CAP-3.5.md
151
152
  - airbrussh.gemspec
152
153
  - appveyor.yml
153
154
  - bin/console
@@ -188,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  version: '0'
189
190
  requirements: []
190
191
  rubyforge_project:
191
- rubygems_version: 2.6.0
192
+ rubygems_version: 2.6.1
192
193
  signing_key:
193
194
  specification_version: 4
194
195
  summary: Airbrussh pretties up your SSHKit and Capistrano output