airbrussh 1.4.2 → 1.5.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
  SHA256:
3
- metadata.gz: 55fc294193f64fff819d6fd61aa25cb2ae77ed3bb6e11e9b169c6b5a8b48c377
4
- data.tar.gz: cda1c291c971329be31c3fa0d5695ba0511c4afc6340cf96c09d157a5c565f4c
3
+ metadata.gz: 4bceb9642d871762040efd22f8b84694a784dc2eabbfbc07580def795eb51e9d
4
+ data.tar.gz: fd43a9fb4abbe9f2f79f26e42fd91c3b1918988d355af4473fff90fbc2e4614f
5
5
  SHA512:
6
- metadata.gz: e08e903fec21622038b99666116f62bf08f030a7c0d2e42f71b7184a41e87669ddbb894c7180668cc6e0beefa50deabdf91f6a28565bc1208762e668cb7db3ef
7
- data.tar.gz: 558cc51bf180d31d8fcf1a9e38f33030f0bff56688826d0b14ae0b295a44c3d0984d7aebb61edaf59455d74ed7398674019ec79b976cf5bff12edb900fcc7c3f
6
+ metadata.gz: 4a3f04df35b23064f45377292dcb1a85aff41bc19dd8ef78670f372d33d344439a065e5e1e4d4d8495cf1ae9fccb4f7213fbceee4b2fac2d761a4948c85b22b7
7
+ data.tar.gz: 80c043968800dc9f231fc359d0287330ed2952f6c347399420eeadc623ab4bfdce40d407906a7b11cb6e94c5588a880aff157922ae6a82d576871ef969ad3eb6
data/.circleci/config.yml CHANGED
@@ -5,7 +5,7 @@ executors:
5
5
  parameters:
6
6
  version:
7
7
  description: "Ruby version number"
8
- default: "3.2"
8
+ default: "3.3"
9
9
  type: string
10
10
  docker:
11
11
  - image: ruby:<< parameters.version >>
@@ -18,7 +18,7 @@ commands:
18
18
  parameters:
19
19
  key:
20
20
  description: "Cache key"
21
- default: "3.2"
21
+ default: "3.3"
22
22
  type: string
23
23
  steps:
24
24
  - restore_cache:
@@ -50,7 +50,7 @@ jobs:
50
50
  parameters:
51
51
  ruby:
52
52
  description: "Ruby version number"
53
- default: "3.2"
53
+ default: "3.3"
54
54
  type: string
55
55
  executor:
56
56
  name: ruby
@@ -101,6 +101,7 @@ workflows:
101
101
  - "3.0"
102
102
  - "3.1"
103
103
  - "3.2"
104
+ - "3.3"
104
105
  - spec_legacy_ruby:
105
106
  matrix: &legacy_ruby_matrix
106
107
  parameters:
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Matt Brictson
3
+ Copyright (c) 2024 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
@@ -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.2".freeze
4
+ VERSION = "1.5.1".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.2
4
+ version: 1.5.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: 2023-08-08 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
@@ -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.2.33
167
+ rubygems_version: 3.5.3
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Airbrussh pretties up your SSHKit and Capistrano output