ruby_rabbitmq_janus 4.0.0.pre.939119110 → 4.0.0.pre.946892338
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15fe775565d6d16a67786ee39525748b88565672141ae0c1a2f26c731d5378a4
|
4
|
+
data.tar.gz: 45612904b8a0b9d9ae92cd7d92f8fd15502eb838470773d327fd3e612d222ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3737484cf573779b9023c33fa54cf0ae091e643b2f02a40e1c3dc4298ac9460de2251a0fcbfefeae21c20d126659747a6406e9759344c9ca635eed214b473810
|
7
|
+
data.tar.gz: 473a96b87bfa7b3fced02ae7e906b24ca695b73d4b915daa3cd44ae83df707f0ca97cbff42bc2ae44363acdaeabb1e46922cff497d5266d3f0fbab556c767c00
|
data/lib/rrj/rabbit/connect.rb
CHANGED
@@ -32,7 +32,8 @@ module RubyRabbitmqJanus
|
|
32
32
|
|
33
33
|
# Create an transaction with rabbitmq and not close
|
34
34
|
def transaction_long
|
35
|
-
raise RubyRabbitmqJanus::Errors::Connect::MissingAction
|
35
|
+
raise RubyRabbitmqJanus::Errors::Connect::MissingAction \
|
36
|
+
unless block_given?
|
36
37
|
|
37
38
|
Timeout.timeout(60) do
|
38
39
|
start
|
@@ -46,8 +46,7 @@ module RubyRabbitmqJanus
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def replace_other
|
49
|
-
|
50
|
-
running_hash(rewrite_key_to_string(values))
|
49
|
+
running_hash(rewrite_key_to_string(@opts['replace'])[0].to_h)
|
51
50
|
end
|
52
51
|
|
53
52
|
def add_other
|
@@ -60,7 +59,7 @@ module RubyRabbitmqJanus
|
|
60
59
|
node.map do |key, value|
|
61
60
|
[key.to_s, value?(value)]
|
62
61
|
end
|
63
|
-
]
|
62
|
+
]
|
64
63
|
end
|
65
64
|
|
66
65
|
def value?(value)
|
@@ -13,7 +13,7 @@ describe RubyRabbitmqJanus::RRJAdmin, type: :request,
|
|
13
13
|
let(:schema_success) { type }
|
14
14
|
let(:parameter) { {} }
|
15
15
|
|
16
|
-
context 'request #list_handles' do
|
16
|
+
context 'when request #list_handles' do
|
17
17
|
context 'when no session/handle' do
|
18
18
|
let(:exception_class) { RubyRabbitmqJanus::Errors::Janus::Responses::InvalidRequestPath }
|
19
19
|
let(:exception_message) { "[457] Reason : Unhandled request 'list_handles' at this path" }
|
data/spec/spec_helper.rb
CHANGED
@@ -87,7 +87,7 @@ RSpec.configure do |config|
|
|
87
87
|
# Clean database before execute an example
|
88
88
|
DatabaseCleaner.strategy = ENV['MONGO'] == 'true' ? :deletion : :truncation
|
89
89
|
config.before do |example|
|
90
|
-
after_load_database unless example.metadata[:type].
|
90
|
+
after_load_database unless example.metadata[:type].include?(:tools)
|
91
91
|
end
|
92
92
|
|
93
93
|
# Use timeout for requester
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.946892338
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|