airbrussh 1.1.1 → 1.1.2

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: ff27fd1a5c3e6ace07ffc6a54deda2005d02f64c
4
- data.tar.gz: 743213b31a1fe768fd1714c39a6ce1c79061810e
3
+ metadata.gz: 6e6b3ea8f017cf5a2a357df3cb654324d9876032
4
+ data.tar.gz: 856bd2e98e1069a4a7963154f901f605cbf6ad16
5
5
  SHA512:
6
- metadata.gz: 92a73a5f3aed59273f10e20ded922862565a15ca967f4a65774653313a5ed6b82697a918db31afef12643867337dd18b0a8f61b2703fdd4d832faad8d2fa89fe
7
- data.tar.gz: df0d147e5c9e99b7af580541cfc407adc500be6d21c7d218defa0a1a042075db92298891e5a92b860a2f4909637357e7c4ccad0a8b1bce2c34002d68287bc738
6
+ metadata.gz: 5a7eec2739ba0aa82f368456dc8de6430d085c724a216222697ea43be1b2cc5d3bdb6d13c358dd20aef5793e0d4e2acfd9e05b7757978f6768e7c80bcac37530
7
+ data.tar.gz: 83d6d12502cb7238bf617f5dcfe5a5c61ac1bc36f6cd8dbfd023058c6b0e7beff92e4f41870ab99d1d920a5797f6bd80f049ed215dced9f42fd7866fc911d0fb
data/.travis.yml CHANGED
@@ -4,9 +4,22 @@ rvm:
4
4
  - 2.0
5
5
  - 2.1
6
6
  - 2.2
7
- - 2.3.0
7
+ - 2.3.1
8
+ - 2.4.0
8
9
  env:
9
10
  - sshkit="master"
10
11
  - sshkit="= 1.7.1"
11
12
  - sshkit="= 1.6.1"
13
+ matrix:
14
+ exclude:
15
+ # Older versions of SSHKit don't work with Ruby 2.4, so skip those
16
+ - rvm: 2.4.0
17
+ env: sshkit="= 1.7.1"
18
+ - rvm: 2.4.0
19
+ env: sshkit="= 1.6.1"
20
+ include:
21
+ # Run Danger only once, on 2.4.0
22
+ - rvm: 2.4.0
23
+ script: bundle exec danger
24
+
12
25
  before_install: gem install bundler --conservative --version '~> 1.10'
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.1.2][] (2017-01-02)
10
+
11
+ * Add Ruby 2.4.0 to testing matrix and fix Ruby 2.4 deprecation warnings
12
+
9
13
  ## [1.1.1][] (2016-09-09)
10
14
 
11
15
  * When a Capistrano deploy fails and the error log is dumped to the console,
@@ -122,7 +126,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
122
126
  * Initial release
123
127
 
124
128
  [Semver]: http://semver.org
125
- [Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.1.1...HEAD
129
+ [Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.1.2...HEAD
130
+ [1.1.2]: https://github.com/mattbrictson/airbrussh/compare/v1.1.1...v1.1.2
126
131
  [1.1.1]: https://github.com/mattbrictson/airbrussh/compare/v1.1.0...v1.1.1
127
132
  [1.1.0]: https://github.com/mattbrictson/airbrussh/compare/v1.0.2...v1.1.0
128
133
  [1.0.2]: https://github.com/mattbrictson/airbrussh/compare/v1.0.1...v1.0.2
data/Dangerfile ADDED
@@ -0,0 +1,48 @@
1
+ # Adapted from https://github.com/ruby-grape/danger/blob/master/Dangerfile
2
+ # Q: What is a Dangerfile, anyway? A: See http://danger.systems/
3
+
4
+ # ------------------------------------------------------------------------------
5
+ # What changed?
6
+ # ------------------------------------------------------------------------------
7
+ has_lib_changes = !git.modified_files.grep(/^lib/).empty?
8
+ has_test_changes = !git.modified_files.grep(/^test/).empty?
9
+ has_changelog_changes = git.modified_files.include?("CHANGELOG.md")
10
+
11
+ # ------------------------------------------------------------------------------
12
+ # You've made changes to lib, but didn't write any tests?
13
+ # ------------------------------------------------------------------------------
14
+ if has_lib_changes && !has_test_changes
15
+ warn("There are code changes, but no corresponding tests. "\
16
+ "Please include tests if this PR introduces any modifications in "\
17
+ "Airbrussh's behavior.",
18
+ :sticky => false)
19
+ end
20
+
21
+ # ------------------------------------------------------------------------------
22
+ # Have you updated CHANGELOG.md?
23
+ # ------------------------------------------------------------------------------
24
+ if !has_changelog_changes && has_lib_changes
25
+ pr_number = github.pr_json["number"]
26
+ markdown <<-MARKDOWN
27
+ Here's an example of a CHANGELOG.md entry (place it immediately under the `* Your contribution here!` line):
28
+
29
+ ```markdown
30
+ * [##{pr_number}](https://github.com/mattbrictson/airbrussh/pull/#{pr_number}): #{github.pr_title} - [@#{github.pr_author}](https://github.com/#{github.pr_author}).
31
+ ```
32
+ MARKDOWN
33
+ warn("Please update CHANGELOG.md with a description of your changes. "\
34
+ "If this PR is not a user-facing change (e.g. just refactoring), "\
35
+ "you can disregard this.", :sticky => false)
36
+ end
37
+
38
+ # ------------------------------------------------------------------------------
39
+ # Did you remove the CHANGELOG's "Your contribution here!" line?
40
+ # ------------------------------------------------------------------------------
41
+ if has_changelog_changes
42
+ unless IO.read("CHANGELOG.md") =~ /^\* Your contribution here/i
43
+ fail(
44
+ "Please put the `* Your contribution here!` line back into CHANGELOG.md.",
45
+ :sticky => false
46
+ )
47
+ end
48
+ end
data/Gemfile CHANGED
@@ -16,6 +16,9 @@ group :extras, :optional => true do
16
16
  gem "terminal-notifier-guard"
17
17
  end
18
18
 
19
+ # Danger is used by Travis, but only for Ruby 2.0+
20
+ gem "danger" unless RUBY_VERSION == "1.9.3"
21
+
19
22
  if (sshkit_version = ENV["sshkit"])
20
23
  requirement = begin
21
24
  Gem::Dependency.new("sshkit", sshkit_version).requirement
@@ -37,5 +40,8 @@ gem "json", "~> 1.8" if RUBY_VERSION == "1.9.3"
37
40
  # net-ssh 3.0+ is not compatible with Ruby 1.9, so pin at older version.
38
41
  gem "net-ssh", "~> 2.8" if RUBY_VERSION == "1.9.3"
39
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
+
40
46
  # tins 1.7.0+ is not compatible with Ruby 1.9, so pin at older version.
41
47
  gem "tins", "~> 1.6.0" if RUBY_VERSION == "1.9.3"
data/appveyor.yml CHANGED
@@ -4,8 +4,8 @@ skip_tags: true
4
4
 
5
5
  environment:
6
6
  matrix:
7
- - ruby_version: "21"
8
- - ruby_version: "21-x64"
7
+ - ruby_version: "23"
8
+ - ruby_version: "23-x64"
9
9
 
10
10
  install:
11
11
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
data/bin/test_all.rb CHANGED
@@ -2,7 +2,11 @@
2
2
  require "yaml"
3
3
  require "English"
4
4
 
5
+ ruby24 = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.4.0")
6
+
5
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/
6
10
  puts "\e[0;34;49m== Running tests against #{sshkit_version} ==\e[0m"
7
11
  output = `#{sshkit_version} bundle update`
8
12
  raise "bundle update failed: #{output}" unless $CHILD_STATUS.success?
@@ -59,7 +59,7 @@ module Airbrussh
59
59
  width = case (truncate = config.truncate)
60
60
  when :auto
61
61
  IO.console.winsize.last if @output.tty?
62
- when Fixnum
62
+ when Integer
63
63
  truncate
64
64
  end
65
65
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Airbrussh
3
- VERSION = "1.1.1".freeze
3
+ VERSION = "1.1.2".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.1.1
4
+ version: 1.1.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: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
@@ -143,6 +143,7 @@ files:
143
143
  - CHANGELOG.md
144
144
  - CODE_OF_CONDUCT.md
145
145
  - CONTRIBUTING.md
146
+ - Dangerfile
146
147
  - Gemfile
147
148
  - Guardfile
148
149
  - LICENSE.txt
@@ -190,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
191
  version: '0'
191
192
  requirements: []
192
193
  rubyforge_project:
193
- rubygems_version: 2.6.6
194
+ rubygems_version: 2.6.8
194
195
  signing_key:
195
196
  specification_version: 4
196
197
  summary: Airbrussh pretties up your SSHKit and Capistrano output