xmpp4r-robot 0.2.2 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39eceea38d3062adc4e51e15f895644fa760eddb
4
- data.tar.gz: 7a173742d0246a8b86ebbe4fdcbafef09c253dad
3
+ metadata.gz: f3a308d413ded47b43f1f6d1f978f00dd6871e21
4
+ data.tar.gz: a65354924d90b545c515010bacbeb8d069732bc3
5
5
  SHA512:
6
- metadata.gz: 646480a723e08ee0651bcf622609e0e63930577acf678d5087278857f8e062126d87da6f88902ba323ad63d57426300e4a988c9f6a3c4b487ca13a269fdff9da
7
- data.tar.gz: 930b91e956bfe21fe5b2bea7e76d83509705e9e04d7400d66a93fd5251b6cfeeed096711e9d7afd2edb7ce57ab0beabd4ece045601d4c1f2f3a324e2c50465cd
6
+ metadata.gz: 7485c9ef92e7cfff7bd9614da22e1dbddbe3b4e4f6b911d410d2f5fdb3fd573930e0b51cb1bee175f3d94e53e7e4233e9633c07b755863f1625909f3d7d1e099
7
+ data.tar.gz: e6a85af2d0de89655deb0ea08b1406c074e5ba2e0f9964d2cc088694810389c8da60efdc2d8385f6fee88969bcb051ed4dab5e6d1f843c5687697ed901c41359
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## xmpp4r-robot 0.2.3 -- 2014-03-12
4
+
5
+ * Ignore nil exception. (why?)
6
+
3
7
  ## xmpp4r-robot 0.2.2 -- 2014-01-25
4
8
 
5
9
  * Should also synchronize @roster.
data/Rakefile CHANGED
@@ -8,6 +8,6 @@ end
8
8
 
9
9
  Gemgem.init(dir) do |s|
10
10
  s.name = 'xmpp4r-robot'
11
- s.version = '0.2.2'
11
+ s.version = '0.2.3'
12
12
  s.add_runtime_dependency('xmpp4r', '~> 0.5')
13
13
  end
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 ruby lib
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.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-01-25"
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.1"
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.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-01-25 00:00:00.000000000 Z
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.1
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.