ruby_rabbitmq_janus 2.0.0 → 2.1.0.pre.128

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -3
  3. data/Rakefile +98 -0
  4. data/config/default.md +6 -3
  5. data/config/default.yml +7 -1
  6. data/lib/generators/ruby_rabbitmq_janus/install_generator.rb +3 -0
  7. data/lib/generators/ruby_rabbitmq_janus/migration_generator.rb +30 -0
  8. data/lib/generators/ruby_rabbitmq_janus/templates/migration.rb +14 -0
  9. data/lib/rrj/admin.rb +2 -0
  10. data/lib/rrj/errors/base/admin.rb +24 -0
  11. data/lib/rrj/errors/base/base.rb +5 -0
  12. data/lib/rrj/errors/base/init.rb +46 -0
  13. data/lib/rrj/errors/base/task.rb +32 -0
  14. data/lib/rrj/errors/error.rb +4 -3
  15. data/lib/rrj/errors/janus/janus.rb +20 -7
  16. data/lib/rrj/errors/janus/messages/admin.rb +33 -0
  17. data/lib/rrj/errors/janus/messages/message.rb +51 -0
  18. data/lib/rrj/errors/janus/messages/standard.rb +33 -0
  19. data/lib/rrj/errors/janus/processus/concurency.rb +23 -0
  20. data/lib/rrj/errors/janus/processus/event.rb +30 -0
  21. data/lib/rrj/errors/janus/processus/keepalive.rb +33 -0
  22. data/lib/rrj/errors/janus/responses/admin.rb +39 -0
  23. data/lib/rrj/errors/janus/responses/event.rb +46 -0
  24. data/lib/rrj/errors/janus/responses/response.rb +44 -0
  25. data/lib/rrj/errors/janus/responses/standard.rb +58 -0
  26. data/lib/rrj/errors/janus/transactions/admin.rb +37 -0
  27. data/lib/rrj/errors/janus/transactions/handle.rb +52 -0
  28. data/lib/rrj/errors/janus/transactions/session.rb +38 -0
  29. data/lib/rrj/errors/janus/transactions/transaction.rb +23 -0
  30. data/lib/rrj/errors/rabbit/connect.rb +58 -0
  31. data/lib/rrj/errors/rabbit/propertie.rb +37 -0
  32. data/lib/rrj/errors/rabbit/publish/admin.rb +30 -0
  33. data/lib/rrj/errors/rabbit/publish/base_publisher.rb +23 -0
  34. data/lib/rrj/errors/rabbit/publish/exclusive.rb +31 -0
  35. data/lib/rrj/errors/rabbit/publish/listener.rb +30 -0
  36. data/lib/rrj/errors/rabbit/publish/non_exclusive.rb +31 -0
  37. data/lib/rrj/errors/rabbit/publish/publisher.rb +30 -0
  38. data/lib/rrj/errors/rabbit/rabbit.rb +14 -23
  39. data/lib/rrj/errors/tools/gem/cluster.rb +44 -0
  40. data/lib/rrj/errors/tools/gem/config.rb +89 -0
  41. data/lib/rrj/errors/tools/gem/log.rb +86 -0
  42. data/lib/rrj/errors/tools/gem/option.rb +37 -0
  43. data/lib/rrj/errors/tools/gem/request.rb +23 -0
  44. data/lib/rrj/errors/tools/replaces/replace.rb +30 -0
  45. data/lib/rrj/errors/tools/replaces/type.rb +30 -0
  46. data/lib/rrj/errors/tools/tools.rb +21 -1
  47. data/lib/rrj/info.rb +1 -1
  48. data/lib/rrj/init.rb +22 -4
  49. data/lib/rrj/janus/messages/admin.rb +9 -4
  50. data/lib/rrj/janus/messages/message.rb +20 -9
  51. data/lib/rrj/janus/messages/standard.rb +8 -2
  52. data/lib/rrj/janus/processus/concurrency.rb +2 -0
  53. data/lib/rrj/janus/processus/event.rb +8 -0
  54. data/lib/rrj/janus/processus/keepalive.rb +15 -23
  55. data/lib/rrj/janus/responses/admin.rb +6 -0
  56. data/lib/rrj/janus/responses/event.rb +8 -0
  57. data/lib/rrj/janus/responses/response.rb +8 -11
  58. data/lib/rrj/janus/responses/standard.rb +12 -0
  59. data/lib/rrj/janus/transactions/admin.rb +6 -0
  60. data/lib/rrj/janus/transactions/handle.rb +25 -3
  61. data/lib/rrj/janus/transactions/session.rb +6 -0
  62. data/lib/rrj/janus/transactions/transaction.rb +3 -9
  63. data/lib/rrj/models/active_record.rb +14 -0
  64. data/lib/rrj/models/concerns/janus_instance_concern.rb +47 -0
  65. data/lib/rrj/models/mongoid.rb +19 -0
  66. data/lib/rrj/rabbit/connect.rb +12 -8
  67. data/lib/rrj/rabbit/propertie.rb +23 -6
  68. data/lib/rrj/rabbit/publish/admin.rb +4 -0
  69. data/lib/rrj/rabbit/publish/base_publisher.rb +2 -1
  70. data/lib/rrj/rabbit/publish/exclusive.rb +4 -0
  71. data/lib/rrj/rabbit/publish/listener.rb +6 -0
  72. data/lib/rrj/rabbit/publish/non_exclusive.rb +4 -0
  73. data/lib/rrj/rabbit/publish/publisher.rb +4 -4
  74. data/lib/rrj/railtie.rb +15 -0
  75. data/lib/rrj/task.rb +51 -0
  76. data/lib/rrj/tools/gem/cluster.rb +65 -0
  77. data/lib/rrj/tools/gem/config.rb +38 -6
  78. data/lib/rrj/tools/gem/log.rb +24 -4
  79. data/lib/rrj/tools/gem/option.rb +21 -17
  80. data/lib/rrj/tools/gem/requests.rb +11 -7
  81. data/lib/rrj/tools/replaces/replace.rb +4 -0
  82. data/lib/rrj/tools/replaces/type.rb +4 -0
  83. data/lib/rrj/tools/tools.rb +1 -0
  84. data/lib/ruby_rabbitmq_janus.rb +3 -0
  85. data/lib/tasks/delete_all_instance.rake +12 -0
  86. data/spec/request/admin/request_handle_info_spec.rb +4 -3
  87. data/spec/request/admin/request_handles_spec.rb +4 -3
  88. data/spec/request/peer/request_trickle_spec.rb +1 -1
  89. data/spec/rrj/rabbit/propertie_spec.rb +37 -2
  90. data/spec/rrj/tools/gem/rrj_cluster_spec.rb +26 -0
  91. data/spec/rrj/tools/gem/rrj_config_spec.rb +78 -0
  92. data/spec/rrj/tools/gem/rrj_log_spec.rb +55 -0
  93. data/spec/rrj/tools/{replace_admin_spec.rb → replace/replace_admin_spec.rb} +0 -0
  94. data/spec/rrj/tools/{replace_handle_spec.rb → replace/replace_handle_spec.rb} +0 -0
  95. data/spec/rrj/tools/{replace_session_spec.rb → replace/replace_session_spec.rb} +0 -0
  96. data/spec/rrj/tools/{replace_spec.rb → replace/replace_spec.rb} +0 -0
  97. data/spec/rrj/tools/{type_spec.rb → replace/type_spec.rb} +0 -0
  98. data/spec/spec_helper.rb +33 -2
  99. data/spec/support/examples_config.rb +10 -0
  100. data/spec/support/examples_message.rb +0 -2
  101. data/spec/support/examples_request.rb +4 -4
  102. data/spec/support/schemas/config/config.json +4 -2
  103. data/spec/support/schemas/config/rabbit_options.json +1 -1
  104. data/spec/support/schemas/config/rabbit_options2.json +13 -0
  105. data/spec/support/schemas/config/rabbit_options_admin.json +1 -1
  106. data/spec/support/schemas/config/rabbit_options_admin2.json +13 -0
  107. metadata +98 -17
  108. data/lib/rrj/errors/init.rb +0 -69
  109. data/lib/rrj/errors/janus/janus_message.rb +0 -53
  110. data/lib/rrj/errors/janus/janus_processus_keepalive.rb +0 -48
  111. data/lib/rrj/errors/janus/janus_response.rb +0 -89
  112. data/lib/rrj/errors/janus/janus_transaction.rb +0 -29
  113. data/lib/rrj/errors/tools/config.rb +0 -43
  114. data/spec/rrj/rrj_config_spec.rb +0 -67
  115. data/spec/rrj/rrj_log_spec.rb +0 -16
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe 'RubyRabbitmqJanus::Log', type: :tools, name: :log do
6
+ it 'Log instance is correctly loading' do
7
+ expect(RubyRabbitmqJanus::Tools::Log.instance).not_to be(nil)
8
+ end
9
+
10
+ it 'Default level log is INFO' do
11
+ # 0 = debug
12
+ # ...
13
+ # 5 = unknown
14
+ expect(RubyRabbitmqJanus::Tools::Log.instance.level).to eq(0)
15
+ end
16
+
17
+ let(:message) { '## test ##' }
18
+ let(:last_line) { IO.readlines('log/ruby-rabbitmq-janus.log')[-1..-1][0] }
19
+
20
+ context 'when write a message unknown' do
21
+ before { RubyRabbitmqJanus::Tools::Log.instance.unknown(message) }
22
+
23
+ it { expect(last_line).to include('A, [RubyRabbitmqJanus] ## test ##') }
24
+ end
25
+
26
+ context 'when write a message fatal' do
27
+ before { RubyRabbitmqJanus::Tools::Log.instance.fatal(message) }
28
+
29
+ it { expect(last_line).to include('F, [RubyRabbitmqJanus] ## test ##') }
30
+ end
31
+
32
+ context 'when write a message error' do
33
+ before { RubyRabbitmqJanus::Tools::Log.instance.error(message) }
34
+
35
+ it { expect(last_line).to include('E, [RubyRabbitmqJanus] ## test ##') }
36
+ end
37
+
38
+ context 'when write a message warn' do
39
+ before { RubyRabbitmqJanus::Tools::Log.instance.warn(message) }
40
+
41
+ it { expect(last_line).to include('W, [RubyRabbitmqJanus] ## test ##') }
42
+ end
43
+
44
+ context 'when write a message info' do
45
+ before { RubyRabbitmqJanus::Tools::Log.instance.info(message) }
46
+
47
+ it { expect(last_line).to include('I, [RubyRabbitmqJanus] ## test ##') }
48
+ end
49
+
50
+ context 'when write a message debug' do
51
+ before { RubyRabbitmqJanus::Tools::Log.instance.debug(message) }
52
+
53
+ it { expect(last_line).to include('D, [RubyRabbitmqJanus] ## test ##') }
54
+ end
55
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'bundler/setup'
4
- require 'ruby_rabbitmq_janus'
5
4
  require 'pry'
6
5
  require 'json-schema-rspec'
6
+ require 'rails'
7
+ require 'active_record'
8
+ require 'ruby_rabbitmq_janus'
7
9
 
8
10
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
9
11
 
@@ -16,6 +18,25 @@ end
16
18
  end
17
19
 
18
20
  RSpec.configure do |config|
21
+ # Configure active record
22
+ # rubocop:disable Style/ColonMethodCall
23
+ # rubocop:disable Security/YAMLLoad
24
+ configuration = YAML::load(File.open('config/database.yml'))
25
+ # rubocop:enable Style/ColonMethodCall
26
+ # rubocop:enable Security/YAMLLoad
27
+
28
+ # Connect to database
29
+ ActiveRecord::Base.establish_connection(configuration)
30
+ config.before(:all) do
31
+ unless ActiveRecord::Base.connection.table_exists? 'janus_instances'
32
+ ActiveRecord::Base.connection.create_table(:janus_instances) do |table|
33
+ table.integer :instance
34
+ table.integer :session, limit: 8
35
+ table.boolean :enable
36
+ end
37
+ end
38
+ end
39
+
19
40
  config.expect_with :rspec do |c|
20
41
  c.syntax = :expect
21
42
  end
@@ -57,7 +78,7 @@ def singleton
57
78
  Singleton.__init__(RubyRabbitmqJanus::Tools::Log)
58
79
  Singleton.__init__(RubyRabbitmqJanus::Tools::Config)
59
80
  Singleton.__init__(RubyRabbitmqJanus::Tools::Requests)
60
- Singleton.__init__(RubyRabbitmqJanus::Janus::Concurrencies::Keepalive)
81
+ Singleton.__init__(RubyRabbitmqJanus::Tools::Cluster)
61
82
  end
62
83
 
63
84
  def gateway
@@ -65,6 +86,7 @@ def gateway
65
86
  @gateway = RubyRabbitmqJanus::RRJ.new
66
87
  @response = nil
67
88
  @options = {}
89
+ find_instance
68
90
  end
69
91
 
70
92
  def gateway_admin
@@ -72,6 +94,7 @@ def gateway_admin
72
94
  @gateway = RubyRabbitmqJanus::RRJAdmin.new
73
95
  @response = nil
74
96
  @options = {}
97
+ find_instance
75
98
  end
76
99
 
77
100
  def gateway_event
@@ -79,6 +102,14 @@ def gateway_event
79
102
  @event = RubyRabbitmq::Janus::Concurencies::Event.instance
80
103
  @event.run(&actions)
81
104
  gateway
105
+ find_instance
106
+ end
107
+
108
+ def find_instance
109
+ ji = RubyRabbitmqJanus::Models::JanusInstance.first
110
+ @session = { 'session_id' => ji.session }
111
+ @instance = { 'instance' => ji.instance }
112
+ @session_instance = @session.merge(@instance)
82
113
  end
83
114
 
84
115
  # Test events response
@@ -4,3 +4,13 @@ shared_examples 'constant is' do |type|
4
4
  it { expect(data).not_to be nil }
5
5
  it { expect(data).to be_kind_of(type) }
6
6
  end
7
+
8
+ shared_examples 'type and default value' do |type, value|
9
+ it 'When type is correct' do
10
+ expect(method).to be_a(type)
11
+ end
12
+
13
+ it 'When default value is correct' do
14
+ expect(method).to eq(value)
15
+ end
16
+ end
@@ -4,10 +4,8 @@ shared_examples 'message is' do |type|
4
4
  it { expect(message).to be_kind_of(type) }
5
5
  end
6
6
 
7
- # rubocop:disable Style/MixinGrouping
8
7
  shared_examples 'message options keys is' do
9
8
  it do
10
9
  expect(message).to include(:routing_key, :correlation_id, :content_type)
11
10
  end
12
11
  end
13
- # rubocop:enable Style/MixinGrouping
@@ -16,7 +16,7 @@ end
16
16
 
17
17
  shared_examples 'transaction should match json empty' do
18
18
  let(:message) do
19
- @gateway.start_transaction(false) do |transaction|
19
+ @gateway.start_transaction(false, @session_instance) do |transaction|
20
20
  @response = transaction.publish_message(@type)
21
21
  end
22
22
  end
@@ -26,7 +26,7 @@ end
26
26
 
27
27
  shared_examples 'transaction should match json schema' do
28
28
  let(:message) do
29
- @gateway.start_transaction do |transaction|
29
+ @gateway.start_transaction(true, @session_instance) do |transaction|
30
30
  @response = transaction.publish_message(@type)
31
31
  end
32
32
  end
@@ -36,7 +36,7 @@ end
36
36
 
37
37
  shared_examples 'transaction handle should match json schema' do
38
38
  let(:message) do
39
- @gateway.start_transaction_handle do |transaction|
39
+ @gateway.start_transaction_handle(true, @session_instance) do |transaction|
40
40
  @response = transaction.publish_message(@type, @options)
41
41
  end
42
42
  end
@@ -46,7 +46,7 @@ end
46
46
 
47
47
  shared_examples 'transaction handle should match json empty' do
48
48
  let(:message) do
49
- @gateway.start_transaction_handle(false) do |transaction|
49
+ @gateway.start_transaction_handle(false, @session_instance) do |transaction|
50
50
  @response = transaction.publish_message(@type, @options)
51
51
  end
52
52
  end
@@ -55,11 +55,13 @@
55
55
  "type": "hash",
56
56
  "properties": {
57
57
  "plugins": { "type": "hash" },
58
- "session": { "type": "hash" }
58
+ "session": { "type": "hash" },
59
+ "cluster": { "type": "hash" }
59
60
  },
60
61
  "required": [
61
62
  "session",
62
- "plugins"
63
+ "plugins",
64
+ "cluster"
63
65
  ]
64
66
  },
65
67
  "gem": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
- "routing_key": { "type": "string", "pattern": "to-janus" },
4
+ "routing_key": { "type": "string", "pattern": "to-janus-1" },
5
5
  "correlation_id": { "type": "string" },
6
6
  "content_type": { "type": "String", "pattern": "application/json" }
7
7
  },
@@ -0,0 +1,13 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "routing_key": { "type": "string", "pattern": "to-janus-2" },
5
+ "correlation_id": { "type": "string" },
6
+ "content_type": { "type": "String", "pattern": "application/json" }
7
+ },
8
+ "required": [
9
+ "routing_key",
10
+ "correlation_id",
11
+ "content_type"
12
+ ]
13
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
- "routing_key": { "type": "string", "pattern": "to-janus-admin" },
4
+ "routing_key": { "type": "string", "pattern": "to-janus-admin-1" },
5
5
  "correlation_id": { "type": "string" },
6
6
  "content_type": { "type": "String", "pattern": "application/json" }
7
7
  },
@@ -0,0 +1,13 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "routing_key": { "type": "string", "pattern": "to-janus-admin-2" },
5
+ "correlation_id": { "type": "string" },
6
+ "content_type": { "type": "String", "pattern": "application/json" }
7
+ },
8
+ "required": [
9
+ "routing_key",
10
+ "correlation_id",
11
+ "content_type"
12
+ ]
13
+ }
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: 2.0.0
4
+ version: 2.1.0.pre.128
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -206,6 +206,48 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '1.8'
209
+ - !ruby/object:Gem::Dependency
210
+ name: activerecord
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '4.2'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '4.2'
223
+ - !ruby/object:Gem::Dependency
224
+ name: rails
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '4.2'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '4.2'
237
+ - !ruby/object:Gem::Dependency
238
+ name: sqlite3
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '1.3'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '1.3'
209
251
  - !ruby/object:Gem::Dependency
210
252
  name: bunny
211
253
  requirement: !ruby/object:Gem::Requirement
@@ -305,16 +347,45 @@ files:
305
347
  - lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
306
348
  - lib/generators/ruby_rabbitmq_janus/initializer_generator.rb
307
349
  - lib/generators/ruby_rabbitmq_janus/install_generator.rb
350
+ - lib/generators/ruby_rabbitmq_janus/migration_generator.rb
351
+ - lib/generators/ruby_rabbitmq_janus/templates/migration.rb
308
352
  - lib/rrj/admin.rb
353
+ - lib/rrj/errors/base/admin.rb
354
+ - lib/rrj/errors/base/base.rb
355
+ - lib/rrj/errors/base/init.rb
356
+ - lib/rrj/errors/base/task.rb
309
357
  - lib/rrj/errors/error.rb
310
- - lib/rrj/errors/init.rb
311
358
  - lib/rrj/errors/janus/janus.rb
312
- - lib/rrj/errors/janus/janus_message.rb
313
- - lib/rrj/errors/janus/janus_processus_keepalive.rb
314
- - lib/rrj/errors/janus/janus_response.rb
315
- - lib/rrj/errors/janus/janus_transaction.rb
359
+ - lib/rrj/errors/janus/messages/admin.rb
360
+ - lib/rrj/errors/janus/messages/message.rb
361
+ - lib/rrj/errors/janus/messages/standard.rb
362
+ - lib/rrj/errors/janus/processus/concurency.rb
363
+ - lib/rrj/errors/janus/processus/event.rb
364
+ - lib/rrj/errors/janus/processus/keepalive.rb
365
+ - lib/rrj/errors/janus/responses/admin.rb
366
+ - lib/rrj/errors/janus/responses/event.rb
367
+ - lib/rrj/errors/janus/responses/response.rb
368
+ - lib/rrj/errors/janus/responses/standard.rb
369
+ - lib/rrj/errors/janus/transactions/admin.rb
370
+ - lib/rrj/errors/janus/transactions/handle.rb
371
+ - lib/rrj/errors/janus/transactions/session.rb
372
+ - lib/rrj/errors/janus/transactions/transaction.rb
373
+ - lib/rrj/errors/rabbit/connect.rb
374
+ - lib/rrj/errors/rabbit/propertie.rb
375
+ - lib/rrj/errors/rabbit/publish/admin.rb
376
+ - lib/rrj/errors/rabbit/publish/base_publisher.rb
377
+ - lib/rrj/errors/rabbit/publish/exclusive.rb
378
+ - lib/rrj/errors/rabbit/publish/listener.rb
379
+ - lib/rrj/errors/rabbit/publish/non_exclusive.rb
380
+ - lib/rrj/errors/rabbit/publish/publisher.rb
316
381
  - lib/rrj/errors/rabbit/rabbit.rb
317
- - lib/rrj/errors/tools/config.rb
382
+ - lib/rrj/errors/tools/gem/cluster.rb
383
+ - lib/rrj/errors/tools/gem/config.rb
384
+ - lib/rrj/errors/tools/gem/log.rb
385
+ - lib/rrj/errors/tools/gem/option.rb
386
+ - lib/rrj/errors/tools/gem/request.rb
387
+ - lib/rrj/errors/tools/replaces/replace.rb
388
+ - lib/rrj/errors/tools/replaces/type.rb
318
389
  - lib/rrj/errors/tools/tools.rb
319
390
  - lib/rrj/info.rb
320
391
  - lib/rrj/init.rb
@@ -333,6 +404,9 @@ files:
333
404
  - lib/rrj/janus/transactions/handle.rb
334
405
  - lib/rrj/janus/transactions/session.rb
335
406
  - lib/rrj/janus/transactions/transaction.rb
407
+ - lib/rrj/models/active_record.rb
408
+ - lib/rrj/models/concerns/janus_instance_concern.rb
409
+ - lib/rrj/models/mongoid.rb
336
410
  - lib/rrj/rabbit/connect.rb
337
411
  - lib/rrj/rabbit/propertie.rb
338
412
  - lib/rrj/rabbit/publish/admin.rb
@@ -342,6 +416,9 @@ files:
342
416
  - lib/rrj/rabbit/publish/non_exclusive.rb
343
417
  - lib/rrj/rabbit/publish/publisher.rb
344
418
  - lib/rrj/rabbit/rabbit.rb
419
+ - lib/rrj/railtie.rb
420
+ - lib/rrj/task.rb
421
+ - lib/rrj/tools/gem/cluster.rb
345
422
  - lib/rrj/tools/gem/config.rb
346
423
  - lib/rrj/tools/gem/log.rb
347
424
  - lib/rrj/tools/gem/option.rb
@@ -353,6 +430,7 @@ files:
353
430
  - lib/rrj/tools/replaces/type.rb
354
431
  - lib/rrj/tools/tools.rb
355
432
  - lib/ruby_rabbitmq_janus.rb
433
+ - lib/tasks/delete_all_instance.rake
356
434
  - spec/request/admin/request_handle_info_spec.rb
357
435
  - spec/request/admin/request_handles_spec.rb
358
436
  - spec/request/admin/request_sessions_spec.rb
@@ -383,14 +461,15 @@ files:
383
461
  - spec/rrj/responses/responses_event_spec.rb
384
462
  - spec/rrj/responses/responses_response_spec.rb
385
463
  - spec/rrj/responses/responses_standard_spec.rb
386
- - spec/rrj/rrj_config_spec.rb
387
- - spec/rrj/rrj_log_spec.rb
388
464
  - spec/rrj/rrj_spec.rb
389
- - spec/rrj/tools/replace_admin_spec.rb
390
- - spec/rrj/tools/replace_handle_spec.rb
391
- - spec/rrj/tools/replace_session_spec.rb
392
- - spec/rrj/tools/replace_spec.rb
393
- - spec/rrj/tools/type_spec.rb
465
+ - spec/rrj/tools/gem/rrj_cluster_spec.rb
466
+ - spec/rrj/tools/gem/rrj_config_spec.rb
467
+ - spec/rrj/tools/gem/rrj_log_spec.rb
468
+ - spec/rrj/tools/replace/replace_admin_spec.rb
469
+ - spec/rrj/tools/replace/replace_handle_spec.rb
470
+ - spec/rrj/tools/replace/replace_session_spec.rb
471
+ - spec/rrj/tools/replace/replace_spec.rb
472
+ - spec/rrj/tools/replace/type_spec.rb
394
473
  - spec/spec_helper.rb
395
474
  - spec/support/aruba.rb
396
475
  - spec/support/examples_config.rb
@@ -399,7 +478,9 @@ files:
399
478
  - spec/support/examples_response.rb
400
479
  - spec/support/schemas/config/config.json
401
480
  - spec/support/schemas/config/rabbit_options.json
481
+ - spec/support/schemas/config/rabbit_options2.json
402
482
  - spec/support/schemas/config/rabbit_options_admin.json
483
+ - spec/support/schemas/config/rabbit_options_admin2.json
403
484
  - spec/support/schemas/request/admin/handle_info.json
404
485
  - spec/support/schemas/request/admin/handles.json
405
486
  - spec/support/schemas/request/admin/sessions.json
@@ -448,9 +529,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
448
529
  version: '0'
449
530
  required_rubygems_version: !ruby/object:Gem::Requirement
450
531
  requirements:
451
- - - ">="
532
+ - - ">"
452
533
  - !ruby/object:Gem::Version
453
- version: '0'
534
+ version: 1.3.1
454
535
  requirements: []
455
536
  rubyforge_project:
456
537
  rubygems_version: 2.4.8