ruby_rabbitmq_janus 4.0.0.pre.1001043172 → 4.0.0.pre.1001107243
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -2
- data/lib/rrj/process/thread_runner_concern.rb +1 -1
- data/lib/rrj/tools/bin/config.rb +4 -3
- data/lib/rrj/tools/gem/config/janus.rb +1 -1
- data/lib/rrj/tools/gem/config/queues.rb +4 -4
- data/lib/rrj/tools/gem/config/rabbit.rb +1 -1
- data/spec/ruby_rabbitmq_janus/janus/messages/message_spec.rb +0 -2
- data/spec/ruby_rabbitmq_janus/rabbit/{publisher/base_spec.rb → base_event_spec.rb} +2 -2
- data/spec/support/examples_base.rb +0 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d5766da243b55836c829b03e0ce7a654af495e630770fefc112b1ebdb6c2daa
|
4
|
+
data.tar.gz: 2b74dc79d49fffe9a92880ba8ca4db7be085793db4bff57347564b0cda921785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32854afb4ec8535e859bc4c249531e553d9426f3872231c291a0b79fc82e52917b98bb62ff5c7e10544c1c4d504581b3ab1dfb3dede0dc9a19a145a8931863a
|
7
|
+
data.tar.gz: 88195796a4effb46fb5b2332c9a68bc8a6645014e093c380a26da0a521a0c6c756da652f44cea1a560ae11f4b9fe3bae10639a612fe017e470ff45e486480f3e
|
data/Rakefile
CHANGED
@@ -203,5 +203,4 @@ task spec: %I[config thread set_session_timeout disallow_token admin
|
|
203
203
|
janus_instance detach destroy trickles standard message errors
|
204
204
|
event response list_handles list_tokens keepalive logger
|
205
205
|
replace set_max_nack_queue tricke handle_info connect listener
|
206
|
-
base_event publisher_admin non_exclusive exclusive propertie
|
207
|
-
]
|
206
|
+
base_event publisher_admin non_exclusive exclusive propertie]
|
data/lib/rrj/tools/bin/config.rb
CHANGED
@@ -14,7 +14,8 @@ begin
|
|
14
14
|
Config.load_and_set_settings(config_conf)
|
15
15
|
end
|
16
16
|
rescue LoadError => exception
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
puts 'Custom configuration is not present,' \
|
18
|
+
" use default configuration. (#{exception})"
|
19
|
+
rescue StandardError => exception
|
20
|
+
puts exception
|
20
21
|
end
|
@@ -19,7 +19,7 @@ module RubyRabbitmqJanus
|
|
19
19
|
# @return [String] read configuration for plugin with index
|
20
20
|
def plugin_at(index = 0)
|
21
21
|
@options['janus']['plugins'][index].to_s
|
22
|
-
rescue
|
22
|
+
rescue StandardError
|
23
23
|
raise RubyRabbitmqJanus::Errors::Tools::Plugins, index
|
24
24
|
end
|
25
25
|
|
@@ -11,28 +11,28 @@ module RubyRabbitmqJanus
|
|
11
11
|
# @return [String] Get to name queue_from (pattern)
|
12
12
|
def queue_from
|
13
13
|
@options['queues']['standard']['from'].to_s
|
14
|
-
rescue
|
14
|
+
rescue StandardError
|
15
15
|
raise RubyRabbitmqJanus::Errors::Tools::QueueFrom
|
16
16
|
end
|
17
17
|
|
18
18
|
# @return [String] Get to name queue_to (pattern)
|
19
19
|
def queue_to
|
20
20
|
@options['queues']['standard']['to'].to_s
|
21
|
-
rescue
|
21
|
+
rescue StandardError
|
22
22
|
raise RubyRabbitmqJanus::Errors::Tools::QueueTo
|
23
23
|
end
|
24
24
|
|
25
25
|
# @return [String] Get to name queue_admin_from (pattern)
|
26
26
|
def queue_admin_from
|
27
27
|
@options['queues']['admin']['from'].to_s
|
28
|
-
rescue
|
28
|
+
rescue StandardError
|
29
29
|
raise RubyRabbitmqJanus::Errors::Tools::QueueAdminFrom
|
30
30
|
end
|
31
31
|
|
32
32
|
# @return [String] Get to name queue_admin_from (pattern)
|
33
33
|
def queue_admin_to
|
34
34
|
@options['queues']['admin']['to'].to_s
|
35
|
-
rescue
|
35
|
+
rescue StandardError
|
36
36
|
raise RubyRabbitmqJanus::Errors::Tools::QueueAdminTo
|
37
37
|
end
|
38
38
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe RubyRabbitmqJanus::Rabbit::
|
5
|
+
describe RubyRabbitmqJanus::Rabbit::BaseEvent, type: :rabbit,
|
6
6
|
name: :base_event do
|
7
|
-
let(:publish) {
|
7
|
+
let(:publish) { described_class.new }
|
8
8
|
|
9
9
|
describe 'BaseEvent' do
|
10
10
|
describe '#new' do
|
@@ -55,20 +55,6 @@ RSpec.shared_examples 'when transaction not exclusive success' do
|
|
55
55
|
include_examples 'when transaction not exclusive'
|
56
56
|
|
57
57
|
it { expect(transaction.to_json).to eql('{}') }
|
58
|
-
|
59
|
-
=begin
|
60
|
-
describe 'read listener' do
|
61
|
-
before do
|
62
|
-
listener
|
63
|
-
transaction
|
64
|
-
end
|
65
|
-
|
66
|
-
let(:listener) { @act = Actions.new.actions }
|
67
|
-
let(:response) { RubyRabbitmqJanus::Process::Concurrencies::Event.new.run(&@act) }
|
68
|
-
|
69
|
-
it { expect(response).to match_json_schema(schema_success) }
|
70
|
-
end
|
71
|
-
=end
|
72
58
|
end
|
73
59
|
|
74
60
|
RSpec.shared_examples 'when transaction not exclusive exception' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_rabbitmq_janus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.pre.
|
4
|
+
version: 4.0.0.pre.1001107243
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
@@ -663,12 +663,12 @@ files:
|
|
663
663
|
- spec/ruby_rabbitmq_janus/process/concurrencies/concurrency_spec.rb
|
664
664
|
- spec/ruby_rabbitmq_janus/process/concurrencies/event_admin_spec.rb
|
665
665
|
- spec/ruby_rabbitmq_janus/process/concurrencies/event_spec.rb
|
666
|
+
- spec/ruby_rabbitmq_janus/rabbit/base_event_spec.rb
|
666
667
|
- spec/ruby_rabbitmq_janus/rabbit/connect_spec.rb
|
667
668
|
- spec/ruby_rabbitmq_janus/rabbit/listener/from_spec.rb
|
668
669
|
- spec/ruby_rabbitmq_janus/rabbit/propertie_instance_classic_spec.rb
|
669
670
|
- spec/ruby_rabbitmq_janus/rabbit/propertie_instance_token_spec.rb
|
670
671
|
- spec/ruby_rabbitmq_janus/rabbit/publisher/admin_spec.rb
|
671
|
-
- spec/ruby_rabbitmq_janus/rabbit/publisher/base_spec.rb
|
672
672
|
- spec/ruby_rabbitmq_janus/rabbit/publisher/exclusive_spec.rb
|
673
673
|
- spec/ruby_rabbitmq_janus/rabbit/publisher/non_exclusive_spec.rb
|
674
674
|
- spec/ruby_rabbitmq_janus/rrj_admin_add_token_spec.rb
|