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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6069e8e1ccf8f92943654f52100d7414de95b20a834da816d9ecf6a2b9bf231
4
- data.tar.gz: dc412ef9a3573fc04a6d31e98657f6af752c059fb6dd8112fea261c8e5752f9b
3
+ metadata.gz: 9d5766da243b55836c829b03e0ce7a654af495e630770fefc112b1ebdb6c2daa
4
+ data.tar.gz: 2b74dc79d49fffe9a92880ba8ca4db7be085793db4bff57347564b0cda921785
5
5
  SHA512:
6
- metadata.gz: 6f0edfb9ab019e9d547300f17edc3d2a001d36767de2ec4551bae5b3f59288d4b64fa945c09015fd4e234b8414632f0499d992b8bd2558703fe778f28697d23c
7
- data.tar.gz: 6a35acf79fe896f6380ed50de78cc4199831fd57aec2941b2d69070588153c7fe5275d202ab188751a135724c4d8b336fae9d08e155c9a0e28ff47164b104752
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]
@@ -38,7 +38,7 @@ module RubyRabbitmqJanus
38
38
  loop do
39
39
  @thread.thread_variable_get(name_publisher)
40
40
  .listen_events(&block)
41
- rescue => exception
41
+ rescue StandardError => exception
42
42
  ::Log.warn exception
43
43
  end
44
44
  end
@@ -14,7 +14,8 @@ begin
14
14
  Config.load_and_set_settings(config_conf)
15
15
  end
16
16
  rescue LoadError => exception
17
- p "Don't use gem config : #{exception}"
18
- rescue => exception
19
- p exception
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
@@ -13,7 +13,7 @@ module RubyRabbitmqJanus
13
13
  # @return [String] read configuration fir queue admin
14
14
  def admin_pass
15
15
  @options['rabbit']['admin_pass'].to_s
16
- rescue
16
+ rescue StandardError
17
17
  raise RubyRabbitmqJanus::Errors::Tools::AdminPassword
18
18
  end
19
19
 
@@ -4,8 +4,6 @@ require 'spec_helper'
4
4
 
5
5
  describe RubyRabbitmqJanus::Janus::Messages::Message, type: :messages,
6
6
  name: :message do
7
- before { @gateway }
8
-
9
7
  let(:template) { 'base::info' }
10
8
  let(:msg_new) { described_class.new(template) }
11
9
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe RubyRabbitmqJanus::Rabbit::Publisher, type: :rabbit,
5
+ describe RubyRabbitmqJanus::Rabbit::BaseEvent, type: :rabbit,
6
6
  name: :base_event do
7
- let(:publish) { RubyRabbitmqJanus::Rabbit::BaseEvent.new }
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.1001043172
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