rake-remote_task 2.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -3
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/rake/remote_task.rb +4 -2
- data/test/test_rake_remote_task.rb +7 -7
- metadata +16 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92b0242f8e9f5dea543c572c7732c9e9784e79af
|
4
|
+
data.tar.gz: 49f144204d6866d1117e7acecda35fc4f5bb5827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d4fa464a4dbddf0475641c0a2b4c60921f4f4ea9d6fc3498701739b0b5c3138d9dbb44d457a61f3efc6408f0a4cb1c7e97c08955d809b7d5be4b725841fc2cb
|
7
|
+
data.tar.gz: 44007dc2b6071ccce48b7ff0e8a7b8df1d0eca8df491cd1ac83140b475c2e37c94c901ed5e823cdbcae01b8d914fa0e8330d4d5d4a6f54f8bbed7108313143ec
|
checksums.yaml.gz.sig
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/rake/remote_task.rb
CHANGED
@@ -45,7 +45,7 @@ end
|
|
45
45
|
|
46
46
|
class Rake::RemoteTask < Rake::Task
|
47
47
|
|
48
|
-
VERSION = "2.
|
48
|
+
VERSION = "2.3.0"
|
49
49
|
|
50
50
|
@@current_roles = []
|
51
51
|
|
@@ -446,13 +446,15 @@ class Rake::RemoteTask < Rake::Task
|
|
446
446
|
Rake::RemoteTask.default_env[name] = Rake::RemoteTask.env[name] =
|
447
447
|
default_block || value
|
448
448
|
|
449
|
-
if Object.
|
449
|
+
if Object.private_instance_methods.include? name.to_sym then
|
450
450
|
Object.send :alias_method, :"old_#{name}", name
|
451
451
|
end
|
452
452
|
|
453
453
|
Object.send :define_method, name do
|
454
454
|
Rake::RemoteTask.fetch name
|
455
455
|
end
|
456
|
+
|
457
|
+
Object.send :private, name
|
456
458
|
end
|
457
459
|
|
458
460
|
##
|
@@ -3,7 +3,7 @@ require 'rake/test_case'
|
|
3
3
|
class TestRakeRemoteTask < Rake::TestCase
|
4
4
|
def teardown
|
5
5
|
Object.send :remove_method, :old_domain if
|
6
|
-
Object.
|
6
|
+
Object.private_instance_methods.include? :old_domain
|
7
7
|
end
|
8
8
|
|
9
9
|
def test_enhance
|
@@ -35,19 +35,19 @@ class TestRakeRemoteTask < Rake::TestCase
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
task.execute nil
|
38
|
-
assert_equal 1, task.some_variable
|
38
|
+
assert_equal 1, task.send(:some_variable)
|
39
39
|
assert_equal 7, x
|
40
|
-
assert task.can_set_nil.nil?
|
41
|
-
assert_equal false, task.lies_are
|
40
|
+
assert task.send(:can_set_nil).nil?
|
41
|
+
assert_equal false, task.send(:lies_are)
|
42
42
|
end
|
43
43
|
|
44
44
|
def test_set_false
|
45
45
|
set :can_set_nil, nil
|
46
46
|
set :lies_are, false
|
47
47
|
|
48
|
-
assert_equal nil, task.can_set_nil
|
48
|
+
assert_equal nil, task.send(:can_set_nil)
|
49
49
|
|
50
|
-
assert_equal false, task.lies_are
|
50
|
+
assert_equal false, task.send(:lies_are)
|
51
51
|
assert_equal false, Rake::RemoteTask.fetch(:lies_are)
|
52
52
|
end
|
53
53
|
|
@@ -84,7 +84,7 @@ class TestRakeRemoteTask < Rake::TestCase
|
|
84
84
|
x = 5
|
85
85
|
task = @rake.remote_task(:some_task, :roles => :db) { x += some_variable }
|
86
86
|
task.execute nil
|
87
|
-
assert_equal 1, task.some_variable
|
87
|
+
assert_equal 1, task.send(:some_variable)
|
88
88
|
assert_equal 6, x
|
89
89
|
end
|
90
90
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-remote_task
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -12,9 +12,9 @@ bindir: bin
|
|
12
12
|
cert_chain:
|
13
13
|
- |
|
14
14
|
-----BEGIN CERTIFICATE-----
|
15
|
-
|
15
|
+
MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
16
16
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
17
|
-
|
17
|
+
GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
|
18
18
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
19
19
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
20
20
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -24,14 +24,14 @@ cert_chain:
|
|
24
24
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
25
25
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
26
26
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY
|
28
|
+
FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e
|
29
|
+
hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h
|
30
|
+
zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B
|
31
|
+
xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
|
32
|
+
VpzF30vNaJK6ZT7xlIsIlwmH
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '5.
|
76
|
+
version: '5.7'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '5.
|
83
|
+
version: '5.7'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rdoc
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,14 +101,14 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - ~>
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '3.
|
104
|
+
version: '3.13'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '3.
|
111
|
+
version: '3.13'
|
112
112
|
description: |-
|
113
113
|
Vlad the Deployer's sexy brainchild is rake-remote_task, extending
|
114
114
|
Rake with remote task goodness.
|
@@ -154,10 +154,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.4.5
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Vlad the Deployer's sexy brainchild is rake-remote_task, extending Rake with
|
161
161
|
remote task goodness.
|
162
|
-
test_files:
|
163
|
-
- test/test_rake_remote_task.rb
|
162
|
+
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|