Projects
home:rottame:rubygems
rubygem-tomte-protocol
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
rubygem-tomte-protocol.spec
Changed
@@ -1,7 +1,7 @@ %define mod_name tomte-protocol %define mod_full_name %{mod_name}-%{version} Name: rubygem-tomte-protocol -Version: 1.1.1 +Version: 1.2.0 Release: 0 Summary: Tomte protocol License: Apache-2.0
View file
tomte-protocol-1.1.1.gem/checksums.yaml.gz -> tomte-protocol-1.2.0.gem/checksums.yaml.gz
Changed
@@ -1,7 +1,7 @@ --- SHA256: - metadata.gz: dea9987c77320b8e4ec71cbed8675176cc5c62a833abbae71b002617b4ea7c89 - data.tar.gz: 0b4ef81797a21ee678cc29e145b89866902bd2e75fc164905eb156de58430007 + metadata.gz: 9454225d13ea1a72e8eafe52ee263270ab950ae97a39145844325936342749fe + data.tar.gz: '0028671a23e0d368f4cc54d5b618ec1d61e911735694dfa3149974d80dda955c' SHA512: - metadata.gz: 87031758d37df3b614b896520b7b7f89a6654b13895f2443a06fdecd777d8fd8bf8c411ac6553cd41d5341ab4502ec7b3f35fa04bba21ab99ca0349091ee26c7 - data.tar.gz: 34b66cbeb4f1207dce81908c9e750f2d1a586276a288b6b2ee45b7491d67c74c1192947ab91d34b43685b911bb8045f074885592838ee0e9a5186d994d30e299 + metadata.gz: 33be0541655d14c1e67dff8fcf96be08ff751c16ed73a3433a2c34513956bb7a7e339febfc6eb4f60ea97d236e2c8717350a87ca407a5610a857f487ecb4328c + data.tar.gz: '0989d138f216c0a37bdf0bd3079c8b23949e3599c131ac64adbe78113f3996540540095f1e86c609ca8befbdb1f4f645b1c34677e05e4a7d595fd2b9af8bc1ed'
View file
tomte-protocol-1.1.1.gem/data/lib/tomte/protocol/endpoint/adapter.rb -> tomte-protocol-1.2.0.gem/data/lib/tomte/protocol/endpoint/adapter.rb
Changed
@@ -15,6 +15,11 @@ # class Adapter + class ConnectionError < StandardError + end + class AuthenticationError < StandardError + end + DEFAULT_ENVELOPER = nil attr_reader :identity, :name @@ -87,7 +92,7 @@ if(uri = options.delete(:uri)) begin - options.merge! parse_uri(uri.chomp('/')) + options.merge! parse_uri(uri.chomp('/')).reject{|k,v| v.nil?} options:name ||= "endpoint to '#{uri}'" rescue ArgumentError => e raise Error, e.message
View file
tomte-protocol-1.1.1.gem/data/lib/tomte/protocol/endpoint/async.rb -> tomte-protocol-1.2.0.gem/data/lib/tomte/protocol/endpoint/async.rb
Changed
@@ -83,9 +83,14 @@ end def disconnect!(&block) - - @client.disconnect do - log.debug "- Endpoint '#{name}', disconnected." + begin + @client.disconnect do + log.debug "- Endpoint '#{name}', disconnected." + block.call if block_given? + end + rescue + log.error "- Endpoint '#{name}', error in disconnect!: #{$!.to_s}".red + log.debug "\n | #{$!.class.name} (#{$!.to_s})\n | #{$!.backtrace.join("\n | ")}".blue block.call if block_given? end end @@ -135,7 +140,7 @@ def tcp_connection_loss(conn, settings) log.error "= Endpoint '#{name}', tcp connection loss. reconnecting...".important! - conn.reconnect(false, 2) + conn.reconnect(false, 10) end def error(conn, connection_close) @@ -150,15 +155,16 @@ end def generic_on_tcp_connection_failure(settings) - log.error "= Endpoint '#{name}' failed to connect to the broker.".important! log.debug settings.ai.subindent + raise ConnectionError.new "= Endpoint '#{name}' failed to connect to the broker." end def generic_on_possible_authentication_failure(settings) log.error "= Endpoint '#{name}' failed to authenticate to the broker.".important! log.debug settings.ai.subindent + raise AuthenticationError.new "= Endpoint '#{name}' failed to authenticate to the broker." end
View file
tomte-protocol-1.1.1.gem/data/lib/tomte/protocol/version.rb -> tomte-protocol-1.2.0.gem/data/lib/tomte/protocol/version.rb
Changed
@@ -1,5 +1,5 @@ module Tomte module Protocol - VERSION = '1.1.1' + VERSION = '1.2.0' end end
View file
tomte-protocol-1.1.1.gem/metadata.gz -> tomte-protocol-1.2.0.gem/metadata.gz
Changed
@@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: tomte-protocol version: !ruby/object:Gem::Version - version: 1.1.1 + version: 1.2.0 platform: ruby authors: - Lele Forzani autorequire: bindir: bin cert_chain: -date: 2019-12-27 00:00:00.000000000 Z +date: 2020-05-28 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: tomte-core @@ -208,8 +208,7 @@ - !ruby/object:Gem::Version version: '0' requirements: -rubyforge_project: -rubygems_version: 2.7.6.2 +rubygems_version: 3.1.2 signing_key: specification_version: 4 summary: A ruby framework for designing distributed, message oriented, agents
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.