ruby_rabbitmq_janus 2.6.0.pre.259 → 2.6.0.pre.260
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: 45875850374b5abd1980cfdc2c85c9eb4904f9e60ffd089db1c809cd20c43209
|
4
|
+
data.tar.gz: 3b83a147b0b568f5f7cadcb7b0301dde945d54eb0908993bc66e8e07e6f4c305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f1f043a90a3202e8e9cdc54b5e534bbcf5e02b3da50a1c448cfbb07cf6106a4e6e6336a79959f5e49aaf8ebc596d6b4acb5fbe5d08171c44824fd9b22c82fd3
|
7
|
+
data.tar.gz: e76271975dac432705844852ee941b588ddde10a4b92c4b0d74ac2c3b9922419bad396e24e99738a4e01a995d925caeded880dc168e44014fdef547fc9da5194
|
data/lib/rrj/tools/bin/init.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
# Loads files RRJ and write first message in log,
|
4
4
|
# then initialize binary
|
5
5
|
|
6
|
-
p "Has rails engine ?? #{defined?(Rails)} -- #{defined?(::Rails::Engine)}"
|
7
6
|
require 'rrj/rails' # defined?(::Rails::Engine)
|
8
7
|
require File.join(File.dirname(__FILE__), '..', '..', 'binary')
|
9
8
|
|
@@ -11,59 +11,43 @@ module RubyRabbitmqJanus
|
|
11
11
|
# @return [Boolean] Read option file for a janus cluster section
|
12
12
|
def cluster
|
13
13
|
@options['gem']['cluster']['enabled'].to_s.match?('true') ? true : false
|
14
|
-
rescue => exception
|
15
|
-
p "[cluster] #{exception}"
|
16
14
|
end
|
17
15
|
|
18
16
|
# @return [Symbol] read configuration for log level used in this gem
|
19
17
|
def log_level
|
20
18
|
@options['gem']['log']['level'].upcase.to_sym || :INFO
|
21
|
-
rescue => exception
|
22
|
-
p "[log_level] #{exception}"
|
23
19
|
end
|
24
20
|
|
25
21
|
# @return [Symbol] Read level to log
|
26
22
|
def log_type
|
27
23
|
@options['gem']['log']['type'].downcase.to_sym || :stdout
|
28
|
-
rescue => exception
|
29
|
-
p "[log_type] #{exception}"
|
30
24
|
end
|
31
25
|
|
32
26
|
# @return [String] read configuration for log option
|
33
27
|
def log_option
|
34
28
|
option = @options['gem']['log']['option']
|
35
29
|
option.empty? ? nil : option
|
36
|
-
rescue => exception
|
37
|
-
p "[log_option] #{exception}"
|
38
30
|
end
|
39
31
|
|
40
32
|
# @return [String] Get path to classes in project calling this gem.
|
41
33
|
def listener_path
|
42
34
|
@options['gem']['listener']['path'].to_s ||
|
43
35
|
'app/ruby_rabbitmq_janus/action_events'
|
44
|
-
rescue => exception
|
45
|
-
p "[listener_path] #{exception}"
|
46
36
|
end
|
47
37
|
|
48
38
|
# @return [String] Environment gem executed.
|
49
39
|
def environment
|
50
40
|
@options['gem']['environment'].to_s || 'development'
|
51
|
-
rescue => exception
|
52
|
-
p "[environment] #{exception}"
|
53
41
|
end
|
54
42
|
|
55
43
|
# @return [String] Get orm used (mongoid or active_record)
|
56
44
|
def object_relational_mapping
|
57
45
|
@options['gem']['orm'].to_s || 'mongoid'
|
58
|
-
rescue => exception
|
59
|
-
p "[orm] #{exception}"
|
60
46
|
end
|
61
47
|
|
62
48
|
# @return [String] Get program name or GEM_NAME
|
63
49
|
def program_name
|
64
50
|
@options['gem']['program_name'].to_s || RubyRabbitmqJanus::GEM_NAME
|
65
|
-
rescue => exception
|
66
|
-
p "[program_name] #{exception}"
|
67
51
|
end
|
68
52
|
|
69
53
|
alias env environment
|
@@ -12,8 +12,6 @@ module RubyRabbitmqJanus
|
|
12
12
|
# read configuration for janus time to live for keepalive messages
|
13
13
|
def time_to_live
|
14
14
|
@options['janus']['session']['keepalive'].to_i || 50
|
15
|
-
rescue => exception
|
16
|
-
p "[time_to_live] #{exception}"
|
17
15
|
end
|
18
16
|
|
19
17
|
# @param [Fixnum] index determine what field is readint in array plugins
|
@@ -21,8 +19,6 @@ module RubyRabbitmqJanus
|
|
21
19
|
# @return [String] read configuration for plugin with index
|
22
20
|
def plugin_at(index = 0)
|
23
21
|
@options['janus']['plugins'][index].to_s
|
24
|
-
rescue => exception
|
25
|
-
p "[plugin_at] #{exception}"
|
26
22
|
end
|
27
23
|
|
28
24
|
alias ttl time_to_live
|
@@ -11,36 +11,26 @@ 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 => exception
|
15
|
-
p "[queue_from] #{exception}"
|
16
14
|
end
|
17
15
|
|
18
16
|
# @return [String] Get to name queue_to (pattern)
|
19
17
|
def queue_to
|
20
18
|
@options['queues']['standard']['to'].to_s
|
21
|
-
rescue => exception
|
22
|
-
p "[queue_to] #{exception}"
|
23
19
|
end
|
24
20
|
|
25
21
|
# @return [String] Get to name queue_admin_from (pattern)
|
26
22
|
def queue_admin_from
|
27
23
|
@options['queues']['admin']['from'].to_s
|
28
|
-
rescue => exception
|
29
|
-
p "[queue_admin_from] #{exception}"
|
30
24
|
end
|
31
25
|
|
32
26
|
# @return [String] Get to name queue_admin_from (pattern)
|
33
27
|
def queue_admin_to
|
34
28
|
@options['queues']['admin']['to'].to_s
|
35
|
-
rescue => exception
|
36
|
-
p "[queue_admin_to] #{exception}"
|
37
29
|
end
|
38
30
|
|
39
31
|
# @return [String] Get to name queue JanusInstance
|
40
32
|
def queue_janus_instance
|
41
33
|
@options['queues']['instance'].to_s
|
42
|
-
rescue => exception
|
43
|
-
p "[queue_janus_instances] #{exception}"
|
44
34
|
end
|
45
35
|
end
|
46
36
|
end
|
@@ -13,22 +13,16 @@ 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 => exception
|
17
|
-
p "[admin_pass] #{exception}"
|
18
16
|
end
|
19
17
|
|
20
18
|
# @return [Symbol] read configuration for bunny log level
|
21
19
|
def log_level_rabbit
|
22
20
|
@options['rabbit']['level'].upcase.to_sym || :INFO
|
23
|
-
rescue => exception
|
24
|
-
p "[log_level_rabbit] #{exception}"
|
25
21
|
end
|
26
22
|
|
27
23
|
# @return [Boolean] read configuration for bunny execution
|
28
24
|
def tester?
|
29
25
|
@options['rabbit']['test'].to_s.match?('true') ? true : false
|
30
|
-
rescue => exception
|
31
|
-
p "[tester] #{exception}"
|
32
26
|
end
|
33
27
|
|
34
28
|
# @return [Hash] Format hash for bunny settings
|
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.6.0.pre.
|
4
|
+
version: 2.6.0.pre.260
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|