asir_beanstalk 1.2.6 → 1.2.7
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.
- data/Changelog +4 -0
- data/lib/asir/transport/beanstalk.rb +7 -6
- data/lib/asir_beanstalk/version.rb +1 -1
- data/spec/beanstalk_spec.rb +3 -2
- metadata +3 -3
data/Changelog
CHANGED
@@ -131,13 +131,14 @@ module ASIR
|
|
131
131
|
# !SLIDE
|
132
132
|
# Beanstalk protocol support
|
133
133
|
|
134
|
-
def
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
}
|
134
|
+
def conduit_status
|
135
|
+
t0 = Time.now
|
136
|
+
x = {
|
137
|
+
:stats => stats,
|
138
|
+
:stats_tube => tube && stats_tube,
|
140
139
|
}
|
140
|
+
x[:response_time] = Time.now - t0
|
141
|
+
{ :beanstalkd => x }
|
141
142
|
end
|
142
143
|
|
143
144
|
def stats
|
data/spec/beanstalk_spec.rb
CHANGED
@@ -85,12 +85,13 @@ describe "ASIR::Transport::Beanstalk" do
|
|
85
85
|
s.should == :NOT_FOUND
|
86
86
|
end
|
87
87
|
|
88
|
-
it "should be able to get
|
89
|
-
s = t.
|
88
|
+
it "should be able to get conduit_status" do
|
89
|
+
s = t.conduit_status
|
90
90
|
s = s[:beanstalkd]
|
91
91
|
s.should_not == nil
|
92
92
|
s[:stats].class.should == Hash
|
93
93
|
s[:stats_tube].class.should == Hash
|
94
|
+
s[:response_time].class.should == Float
|
94
95
|
end
|
95
96
|
|
96
97
|
context "with a sent message" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asir_beanstalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
segments:
|
121
121
|
- 0
|
122
|
-
hash:
|
122
|
+
hash: 2838955884663425346
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
none: false
|
125
125
|
requirements:
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
segments:
|
130
130
|
- 0
|
131
|
-
hash:
|
131
|
+
hash: 2838955884663425346
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
134
|
rubygems_version: 1.8.25
|