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 +4 -4
- data/.circleci/config.yml +4 -3
- data/LICENSE.txt +1 -1
- data/lib/airbrussh/rake/context.rb +19 -3
- data/lib/airbrussh/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bceb9642d871762040efd22f8b84694a784dc2eabbfbc07580def795eb51e9d
|
4
|
+
data.tar.gz: fd43a9fb4abbe9f2f79f26e42fd91c3b1918988d355af4473fff90fbc2e4614f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
@@ -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
|
-
|
51
|
-
|
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
|
|
data/lib/airbrussh/version.rb
CHANGED
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
|
+
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:
|
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.
|
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
|