xmpp4r-robot 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/Rakefile +1 -1
- data/lib/xmpp4r/robot.rb +4 -0
- data/xmpp4r-robot.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3a308d413ded47b43f1f6d1f978f00dd6871e21
|
4
|
+
data.tar.gz: a65354924d90b545c515010bacbeb8d069732bc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7485c9ef92e7cfff7bd9614da22e1dbddbe3b4e4f6b911d410d2f5fdb3fd573930e0b51cb1bee175f3d94e53e7e4233e9633c07b755863f1625909f3d7d1e099
|
7
|
+
data.tar.gz: e6a85af2d0de89655deb0ea08b1406c074e5ba2e0f9964d2cc088694810389c8da60efdc2d8385f6fee88969bcb051ed4dab5e6d1f843c5687697ed901c41359
|
data/CHANGES.md
CHANGED
data/Rakefile
CHANGED
data/lib/xmpp4r/robot.rb
CHANGED
@@ -22,6 +22,7 @@ class Jabber::Robot
|
|
22
22
|
|
23
23
|
@roster_mutex = Mutex.new
|
24
24
|
@helper_mutex = Mutex.new
|
25
|
+
@client = nil # eliminate warning
|
25
26
|
end
|
26
27
|
|
27
28
|
def inspect
|
@@ -130,12 +131,15 @@ class Jabber::Robot
|
|
130
131
|
private
|
131
132
|
def initialize_callbacks
|
132
133
|
client.on_exception do |exp|
|
134
|
+
next unless exp # why exp might be nil?
|
133
135
|
errback.call(exp) if errback
|
134
136
|
|
135
137
|
next if retry_time == 0.0
|
136
138
|
|
137
139
|
$stderr.puts "ERROR: #{exp}: #{exp.backtrace}" +
|
138
140
|
" We'll sleep for #{retry_time} seconds and retry."
|
141
|
+
|
142
|
+
clear_roster_semaphore
|
139
143
|
sleep(retry_time)
|
140
144
|
start
|
141
145
|
end
|
data/xmpp4r-robot.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: xmpp4r-robot 0.2.
|
2
|
+
# stub: xmpp4r-robot 0.2.3 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "xmpp4r-robot"
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.3"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
10
10
|
s.authors = ["Lin Jen-Shin (godfat)"]
|
11
|
-
s.date = "2014-
|
11
|
+
s.date = "2014-03-12"
|
12
12
|
s.description = "Simple XMPP client built upon xmpp4r. Intended for building simple robots."
|
13
13
|
s.email = ["godfat (XD) godfat.org"]
|
14
14
|
s.files = [
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"xmpp4r-robot.gemspec"]
|
28
28
|
s.homepage = "https://github.com/godfat/xmpp4r-robot"
|
29
29
|
s.licenses = ["Apache License 2.0"]
|
30
|
-
s.rubygems_version = "2.2.
|
30
|
+
s.rubygems_version = "2.2.2"
|
31
31
|
s.summary = "Simple XMPP client built upon xmpp4r. Intended for building simple robots."
|
32
32
|
|
33
33
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmpp4r-robot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lin Jen-Shin (godfat)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xmpp4r
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.2.
|
67
|
+
rubygems_version: 2.2.2
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Simple XMPP client built upon xmpp4r. Intended for building simple robots.
|