right_agent 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,8 +65,8 @@ class AgentManager
|
|
65
65
|
#
|
66
66
|
# === Return
|
67
67
|
# (RightScale::OperationResult):: Always returns success
|
68
|
-
def stats(options
|
69
|
-
@agent.stats(RightScale::SerializationHelper.symbolize_keys(options))
|
68
|
+
def stats(options)
|
69
|
+
@agent.stats(RightScale::SerializationHelper.symbolize_keys(options || {}))
|
70
70
|
end
|
71
71
|
|
72
72
|
# Profile memory use
|
@@ -80,10 +80,10 @@ class AgentManager
|
|
80
80
|
#
|
81
81
|
# === Return
|
82
82
|
# (OperationResult):: Empty success result or error result with message
|
83
|
-
def profile(options
|
83
|
+
def profile(options)
|
84
84
|
require 'memprof'
|
85
85
|
|
86
|
-
options = RightScale::SerializationHelper.symbolize_keys(options)
|
86
|
+
options = RightScale::SerializationHelper.symbolize_keys(options || {})
|
87
87
|
if options[:start]
|
88
88
|
RightScale::Log.info("[profile] Start")
|
89
89
|
$stderr.puts "[profile] Start at #{Time.now}"
|
@@ -209,7 +209,7 @@ module RightScale
|
|
209
209
|
@pending_dispatches += 1
|
210
210
|
@last_request_dispatch_time = received_at.to_i
|
211
211
|
@dispatched.store(token) if @dup_check && !shared && request.kind_of?(Request) && token
|
212
|
-
if actor.method(method).arity == 1
|
212
|
+
if actor.method(method).arity.abs == 1
|
213
213
|
actor.__send__(method, request.payload)
|
214
214
|
else
|
215
215
|
actor.__send__(method, request.payload, request)
|
data/right_agent.gemspec
CHANGED
@@ -24,8 +24,8 @@ require 'rubygems'
|
|
24
24
|
|
25
25
|
Gem::Specification.new do |spec|
|
26
26
|
spec.name = 'right_agent'
|
27
|
-
spec.version = '0.10.
|
28
|
-
spec.date = '2012-05-
|
27
|
+
spec.version = '0.10.3'
|
28
|
+
spec.date = '2012-05-02'
|
29
29
|
spec.authors = ['Lee Kirchhoff', 'Raphael Simon', 'Tony Spataro']
|
30
30
|
spec.email = 'lee@rightscale.com'
|
31
31
|
spec.homepage = 'https://github.com/rightscale/right_agent'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 0.10.
|
9
|
+
- 3
|
10
|
+
version: 0.10.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lee Kirchhoff
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-05-
|
20
|
+
date: 2012-05-02 00:00:00 -07:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|