ruby_rabbitmq_janus 4.0.0.pre.939113634 → 4.0.0.pre.946565704

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: 6f1ce541747c48d06da968f51438155d38ce84c15f59b7610cb41e42ee588897
4
- data.tar.gz: 10bb4edc2d13ff934c787f84454fde5844738051c9eb118738bcf66ecbbeaa6f
3
+ metadata.gz: 1bb00e7f39c052e9d7b30de87397a7f68b58e67d48272f41293ceb6639e3c77b
4
+ data.tar.gz: d019c88a26af9f9d2cba79eac19f749e511e3d351b2b6d9b9573c493e9d3d539
5
5
  SHA512:
6
- metadata.gz: 6810f9782b8fcec0cb691e0bafc50708c970812b27a2c0a24d9a4327377746d2aec51a9c4bc3ef416ba1bb5df378c8f79e70d53f69e6ce881d93539ba268f2e0
7
- data.tar.gz: 205ee2eee6067cba8698fe8a20a849f2575b880144089ee20655c53e8396a39d9bdbb89284f828eabe6ab66955e7dbd5b933096d29088e1696ba21bed71c4118
6
+ metadata.gz: 88d9e399c19e23fc1f575930749cdd0069f0e5532fe3c86e338df246b0b1701a223403bf4d22b1ebbbc90f954c91b525b001d29abdc0edf015318c2c384181e7
7
+ data.tar.gz: 45eb9fc6727d1ba38a4899bf17403848196b31eb6a9a5f6a63a8b303544dec91a3a83a75a8cd0ff45082b78d5f310c27b6334642cfae7c74093f3db36401ab95
@@ -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 unless block_given?
35
+ raise RubyRabbitmqJanus::Errors::Connect::MissingAction \
36
+ unless block_given?
36
37
 
37
38
  Timeout.timeout(60) do
38
39
  start
@@ -56,11 +56,12 @@ module RubyRabbitmqJanus
56
56
  end
57
57
 
58
58
  def rewrite_key_to_string(node)
59
+ p "Rewrite key to string"
59
60
  [
60
61
  node.map do |key, value|
61
62
  [key.to_s, value?(value)]
62
63
  end
63
- ].to_h
64
+ ]
64
65
  end
65
66
 
66
67
  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].match?(/tools/)
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.939113634
4
+ version: 4.0.0.pre.946565704
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-15 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord