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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 20c3730cae0f094ee535a7ec85844ee4cbc2d6ec
4
- data.tar.gz: ed19aee31b8d2d1d6f0fa33e8af1bd21e265171a
2
+ SHA256:
3
+ metadata.gz: b5095008b2da0972ef8ddd59236e4c4b3e485a36e70d5dd993dd3d1f3d4c54a2
4
+ data.tar.gz: 2e9acb4b0ba189573b74e69a2fd59fa934d4e0c190e605ee7802b481e7efc986
5
5
  SHA512:
6
- metadata.gz: 544d093781b2edfd20944fc2b3cd86bb8ce4b8a690c732625dd28d5367d000212e520d9e07f014b724c33a8071068878e63562cc3936fe15bee48a6cbe79d1b8
7
- data.tar.gz: b035b54c0db6eca49a259b9759195d68b21ce6b65f42724bd7e9ce75addffb1d2f2b3cc4ebe720d4a30107e685812e3f828dabe4a9c39044ff671fb6ed09e954
6
+ metadata.gz: 40d3d49a1c8cab1efd4c999c9f9b43bfdbdfb6802037a194dac88d5657e29ce2d6b40c7fdcf3f1c7272d4813d12c108bae9cf3f8471ee8ae8a5e8b2d014e4b9f
7
+ data.tar.gz: e1dcbeafa6829206fad22342c80b4ddf87f68251bd2f3b9e84ab8dcb3fa48833b074f4b9db033b530ff0b33db6024c10f518517f5101b1e3455cfae947ce5f0e
@@ -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
 
@@ -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.1
8
- - 2.4.0
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, so skip those
16
- - rvm: 2.4.0
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.0
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.0
22
- - rvm: 2.4.0
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: gem install bundler --conservative --version '~> 1.13.7'
40
+ before_install:
41
+ - gem update --system
42
+ - gem install bundler --no-document
@@ -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.0...HEAD
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: "capistrano/danger")
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
- # Optional development dependencies; requires bundler >= 1.10.
7
- # Note that these gems assume a Ruby 2.2 environment. Install them using:
8
- #
9
- # bundle install --with extras
10
- #
11
- group :extras, :optional => true do
12
- gem "chandler"
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
- # Danger is used by Travis, but only for Ruby 2.0+
20
- gem "danger", "~> 4.3" unless RUBY_VERSION == "1.9.3"
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"
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Matt Brictson
3
+ Copyright (c) 2018 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
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
- require "rubocop/rake_task"
11
- RuboCop::RakeTask.new
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]
@@ -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
@@ -9,7 +9,7 @@ environment:
9
9
 
10
10
  install:
11
11
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
12
- - gem install bundler --no-document --conservative --version 1.10.5
12
+ - gem install bundler --no-document --force
13
13
  - bundle install --retry=3
14
14
 
15
15
  test_script:
@@ -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(set namespace task).all? { |m| dsl.respond_to?(m, true) }
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 "\
@@ -1,4 +1,5 @@
1
1
  # encoding: UTF-8
2
+
2
3
  require "airbrussh/colors"
3
4
  require "delegate"
4
5
  # rubocop:disable Style/AsciiComments
@@ -1,4 +1,5 @@
1
1
  # encoding: UTF-8
2
+
2
3
  require "io/console"
3
4
 
4
5
  module Airbrussh
@@ -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
- ).freeze
15
- DUP_AND_FORWARD_METHODS = %w(<< write).freeze
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) # rubocop:disable Lint/NestedMethodDefinition
60
+ def execute(args=nil)
61
61
  ::Airbrussh::Rake::Context.current_task_name = name.to_s
62
62
  _airbrussh_execute(args)
63
63
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Airbrussh
3
- VERSION = "1.3.0".freeze
4
+ VERSION = "1.3.1".freeze
4
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.0
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: 2017-06-16 00:00:00.000000000 Z
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.6.12
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
Binary file