airbrussh 1.4.1 → 1.5.0

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
  SHA256:
3
- metadata.gz: b618870b95daf33159f07da625d6bc115d149666fa56d0852b050da1fb9e95a4
4
- data.tar.gz: b092095eecea678c640f9c6b974a6864859d62f4717e24b8d1b2aa003c448449
3
+ metadata.gz: cc924d4296d264fce2d2c280deb33c3dee5995537cc9d2d4e0336d842fefe928
4
+ data.tar.gz: 760f9521a613add5fbe2464fba0486b36491bdf8056f82c2c216846d45cd5a5a
5
5
  SHA512:
6
- metadata.gz: e85c29ab49b8d9f25cd528f9d3edba00d99586e48487f1898535906e124491e14fec5568d5f94802f6581190347bd0d3e47bc45a302d1c841c03b5093ef89b4a
7
- data.tar.gz: b264f326a86915605058d38949eaf1d60bceeb680cc4c1839aa0b8abefab5e077a43a9e9f47d68375a0ee83b23ee7ec0ed21a7b116fda37b36df438fb1b89867
6
+ metadata.gz: a3fdd013c5de8112098827d1e339153070c5680aab02c691b6c2590d042e0bdd0b29a26a13f5aac9b0d929aad75a507ed01646f1237a33190ece35eab4bd309b
7
+ data.tar.gz: e053040901b947f721e1c0e6e90a4d24226f0a8818a25cb23e89a960c7003dc2cfe1e1405d9298d55fc9044e51beedad662c4fdc2097f45b65cb9ac014cb658b
data/.circleci/config.yml CHANGED
@@ -5,10 +5,12 @@ executors:
5
5
  parameters:
6
6
  version:
7
7
  description: "Ruby version number"
8
- default: "3.1"
8
+ default: "3.2"
9
9
  type: string
10
10
  docker:
11
11
  - image: ruby:<< parameters.version >>
12
+ environment:
13
+ MT_COMPAT: "1" # Allows old versions of mocha gem to work with minitest
12
14
 
13
15
  commands:
14
16
  bundle_install:
@@ -16,7 +18,7 @@ commands:
16
18
  parameters:
17
19
  key:
18
20
  description: "Cache key"
19
- default: "3.1"
21
+ default: "3.2"
20
22
  type: string
21
23
  steps:
22
24
  - restore_cache:
@@ -48,7 +50,7 @@ jobs:
48
50
  parameters:
49
51
  ruby:
50
52
  description: "Ruby version number"
51
- default: "3.1"
53
+ default: "3.2"
52
54
  type: string
53
55
  executor:
54
56
  name: ruby
@@ -98,6 +100,7 @@ workflows:
98
100
  - "2.7"
99
101
  - "3.0"
100
102
  - "3.1"
103
+ - "3.2"
101
104
  - spec_legacy_ruby:
102
105
  matrix: &legacy_ruby_matrix
103
106
  parameters:
data/Gemfile CHANGED
@@ -7,10 +7,15 @@ if RUBY_VERSION == "1.9.3"
7
7
  # These gems need specific version for Ruby 1.9
8
8
  gem "json", "~> 1.8"
9
9
  gem "minitest", "~> 5.11.3"
10
+ gem "mocha", "~> 1.2"
10
11
  gem "net-ssh", "~> 2.8"
11
12
  gem "rake", "< 12.3"
12
13
  gem "term-ansicolor", "~> 1.3.2"
13
14
  gem "tins", "~> 1.6.0"
15
+ elsif RUBY_VERSION < "2.6"
16
+ # These gems need specific versions for Ruby < 2.6
17
+ gem "minitest", "< 5.16" # rubocop:disable Bundler/DuplicatedGem
18
+ gem "net-ssh", "< 7" # rubocop:disable Bundler/DuplicatedGem
14
19
  end
15
20
 
16
21
  if RUBY_VERSION >= "2.5"
@@ -18,8 +23,8 @@ if RUBY_VERSION >= "2.5"
18
23
  gem "coveralls_reborn", "~> 0.24.0"
19
24
  end
20
25
 
21
- if RUBY_VERSION >= "2.1"
22
- # These gems need at least Ruby 2.1
26
+ if RUBY_VERSION >= "2.5"
27
+ # These gems need at least Ruby 2.5
23
28
  gem "rubocop", "0.50.0"
24
29
 
25
30
  # Optional development dependencies; requires bundler >= 1.10.
@@ -35,6 +40,9 @@ if RUBY_VERSION >= "2.1"
35
40
  end
36
41
  end
37
42
 
43
+ # Needed to make rubocop 0.50.0 work on modern rubies
44
+ gem "safe_yaml" if RUBY_VERSION >= "3.1"
45
+
38
46
  if (sshkit_version = ENV["sshkit"])
39
47
  requirement = begin
40
48
  Gem::Dependency.new("sshkit", sshkit_version).requirement
data/airbrussh.gemspec CHANGED
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 12.0"
34
34
  spec.add_development_dependency "minitest", "~> 5.10"
35
35
  spec.add_development_dependency "minitest-reporters", "~> 1.1"
36
- spec.add_development_dependency "mocha", "~> 1.2"
36
+ spec.add_development_dependency "mocha", "~> 2.1"
37
37
  end
data/appveyor.yml CHANGED
@@ -1,6 +1,8 @@
1
1
  version: "{build}"
2
2
  skip_tags: true
3
3
  skip_branch_with_pr: true
4
+ environment:
5
+ MT_COMPAT: "1" # Allows old versions of mocha gem to work with minitest
4
6
  install:
5
7
  - set PATH=C:\Ruby26-x64\bin;%PATH%
6
8
  - bundle install --retry=3
@@ -13,6 +13,10 @@ module Airbrussh
13
13
  # for the `position` of a command.
14
14
  #
15
15
  class Context
16
+ class << self
17
+ attr_accessor :current_task_name
18
+ end
19
+
16
20
  def initialize(config=Airbrussh.configuration)
17
21
  @history = []
18
22
  @enabled = config.monkey_patch_rake
@@ -47,10 +51,22 @@ module Airbrussh
47
51
  history.index(command.to_s)
48
52
  end
49
53
 
50
- class << self
51
- attr_accessor :current_task_name
54
+ if Object.respond_to?(:prepend)
55
+ module Patch
56
+ def execute(args=nil)
57
+ ::Airbrussh::Rake::Context.current_task_name = name.to_s
58
+ super
59
+ end
60
+ end
52
61
 
53
- def install_monkey_patch
62
+ def self.install_monkey_patch
63
+ require "rake"
64
+ return if ::Rake::Task.include?(::Airbrussh::Rake::Context::Patch)
65
+
66
+ ::Rake::Task.prepend(::Airbrussh::Rake::Context::Patch)
67
+ end
68
+ else
69
+ def self.install_monkey_patch
54
70
  require "rake"
55
71
  return if ::Rake::Task.instance_methods.include?(:_airbrussh_execute)
56
72
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Airbrussh
4
- VERSION = "1.4.1".freeze
4
+ VERSION = "1.5.0".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.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-23 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.2'
95
+ version: '2.1'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.2'
102
+ version: '2.1'
103
103
  description: A replacement log formatter for SSHKit that makes Capistrano output much
104
104
  easier on the eyes. Just add Airbrussh to your Capfile and enjoy concise, useful
105
105
  log output that is easy to read.
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.3.18
167
+ rubygems_version: 3.2.33
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Airbrussh pretties up your SSHKit and Capistrano output