ruby_rabbitmq_janus 4.0.0.pre.850041590 → 4.0.0.pre.939149205
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 +4 -4
 - data/lib/rrj/rabbit/connect.rb +2 -1
 - data/lib/rrj/rails.rb +2 -2
 - data/spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb +1 -1
 - data/spec/spec_helper.rb +1 -25
 - 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: 6d53e982100d16d6475ba37377ff8a29aebd72baa45c46f717de46eebd96d77d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6e507ebf8e8b46e484661161821ef85b8281f548e3828e1132583b13dcab9172
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 1b84f58bbc66f47437ee9b8bd6e4da3e40fe1ba7d1075ee0b92c00a769b132b14eb3a18b9dc15641e7a1dee9b1ae4e03541e1b2ef41c289207bf58281c0f46e3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9966f6d0e54017d8ac614665d9a2ff65f1d3cd42b6b29cc60ca742d89829c63383d303a3e7eb1c7592db10b7036b8aa7aa7ef30d80fbdef97e4bcf75432334ff
         
     | 
    
        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
         
     | 
    
        data/lib/rrj/rails.rb
    CHANGED
    
    | 
         @@ -22,8 +22,8 @@ module RubyRabbitmqJanus 
     | 
|
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
                  Log.debug "[RRJ] Create process : #{number}"
         
     | 
| 
       24 
24 
     | 
    
         
             
                  process = RubyRabbitmqJanus::Process::Concurrencies
         
     | 
| 
       25 
     | 
    
         
            -
                  actions =  
     | 
| 
       26 
     | 
    
         
            -
                  admin_actions =  
     | 
| 
      
 25 
     | 
    
         
            +
                  actions = ActionEvents.new.actions
         
     | 
| 
      
 26 
     | 
    
         
            +
                  admin_actions = ActionAdminEvents.new.actions
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
                  listeners = []
         
     | 
| 
       29 
29 
     | 
    
         
             
                  (1..number).each do
         
     | 
| 
         @@ -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
    
    | 
         @@ -1,30 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            require 'simplecov'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'simplecov_json_formatter'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            SimpleCov.start do
         
     | 
| 
       7 
     | 
    
         
            -
              # Folders exclude
         
     | 
| 
       8 
     | 
    
         
            -
              add_filter '/errors/'
         
     | 
| 
       9 
     | 
    
         
            -
              add_filter 'lib/rrj/info.rb'
         
     | 
| 
       10 
     | 
    
         
            -
              add_filter '/generators/'
         
     | 
| 
       11 
     | 
    
         
            -
              add_filter '/spec/'
         
     | 
| 
       12 
     | 
    
         
            -
              add_filter '/tasks/'
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
              # Define groups
         
     | 
| 
       15 
     | 
    
         
            -
              add_group 'Entry Point',    [%w[admin init rails railtie rspec task task_admin].map { |fi| "lib/rrj/#{fi}.rb" }, 'lib/ruby_rabbitmq_janus.rb']
         
     | 
| 
       16 
     | 
    
         
            -
              add_group 'Janus',          'lib/rrj/janus'
         
     | 
| 
       17 
     | 
    
         
            -
              add_group 'Models',         'lib/rrj/models'
         
     | 
| 
       18 
     | 
    
         
            -
              add_group 'Process',        'lib/rrj/process'
         
     | 
| 
       19 
     | 
    
         
            -
              add_group 'RabbitMQ',       'lib/rrj/rabbit'
         
     | 
| 
       20 
     | 
    
         
            -
              add_group 'Tools',          'lib/rrj/tools'
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
              # Merge result
         
     | 
| 
       23 
     | 
    
         
            -
              use_merging true
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
              # Formatter
         
     | 
| 
       26 
     | 
    
         
            -
              formatter SimpleCov::Formatter::JSONFormatter
         
     | 
| 
       27 
     | 
    
         
            -
            end
         
     | 
| 
       28 
4 
     | 
    
         | 
| 
       29 
5 
     | 
    
         
             
            # Load gems dependencies
         
     | 
| 
       30 
6 
     | 
    
         
             
            require 'bundler/setup'
         
     | 
| 
         @@ -111,7 +87,7 @@ RSpec.configure do |config| 
     | 
|
| 
       111 
87 
     | 
    
         
             
              # Clean database before execute an example
         
     | 
| 
       112 
88 
     | 
    
         
             
              DatabaseCleaner.strategy = ENV['MONGO'] == 'true' ? :deletion : :truncation
         
     | 
| 
       113 
89 
     | 
    
         
             
              config.before do |example|
         
     | 
| 
       114 
     | 
    
         
            -
                after_load_database unless example.metadata[:type]. 
     | 
| 
      
 90 
     | 
    
         
            +
                after_load_database unless example.metadata[:type].include?(:tools)
         
     | 
| 
       115 
91 
     | 
    
         
             
              end
         
     | 
| 
       116 
92 
     | 
    
         | 
| 
       117 
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.939149205
         
     | 
| 
       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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-06-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: activerecord
         
     |